diff --git a/components/context/ProductLandingContext.tsx b/components/context/ProductLandingContext.tsx index e9a06a702c..d1e27671b8 100644 --- a/components/context/ProductLandingContext.tsx +++ b/components/context/ProductLandingContext.tsx @@ -42,7 +42,6 @@ export type ProductLandingContextT = { productVideo: string productVideoTranscript: string featuredLinks: Record> - productCodeExamples: Array productUserExamples: Array<{ username: string; description: string }> productCommunityExamples: Array<{ repo: string; description: string }> featuredArticles: Array<{ @@ -117,7 +116,6 @@ export const getProductLandingContextFromRequest = async ( }, whatsNewChangelog: req.context.whatsNewChangelog || [], changelogUrl: req.context.changelogUrl || [], - productCodeExamples: req.context.productCodeExamples || [], productCommunityExamples: req.context.productCommunityExamples || [], ghesReleases: req.context.ghesReleases || [], diff --git a/components/landing/CodeExampleCard.tsx b/components/landing/CodeExampleCard.tsx deleted file mode 100644 index b8f050715a..0000000000 --- a/components/landing/CodeExampleCard.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import { RepoIcon } from '@primer/octicons-react' -import { CodeExample } from 'components/context/ProductLandingContext' -import { TruncateLines } from 'components/ui/TruncateLines' -import { Label } from '@primer/react' - -type Props = { - example: CodeExample -} -export const CodeExampleCard = ({ example }: Props) => { - return ( - -
-

{example.title}

-

{example.description}

-
- {example.tags.map((tag) => { - return ( - - ) - })} -
-
-
- - - {example.href} - -
-
- ) -} diff --git a/components/landing/CodeExamples.tsx b/components/landing/CodeExamples.tsx deleted file mode 100644 index 6c75361e8f..0000000000 --- a/components/landing/CodeExamples.tsx +++ /dev/null @@ -1,120 +0,0 @@ -import { useEffect, useState } from 'react' -import { ArrowRightIcon, SearchIcon } from '@primer/octicons-react' -import { Text } from '@primer/react' - -import { useProductLandingContext } from 'components/context/ProductLandingContext' -import { useTranslation } from 'components/hooks/useTranslation' -import { CodeExampleCard } from 'components/landing/CodeExampleCard' -import { Link } from 'components/Link' - -const PAGE_SIZE = 6 -export const CodeExamples = () => { - const { productCodeExamples } = useProductLandingContext() - const { t } = useTranslation('product_landing') - const [numVisible, setNumVisible] = useState(PAGE_SIZE) - const [search, setSearch] = useState('') - const [typed, setTyped] = useState('') - - useEffect(() => { - setNumVisible(PAGE_SIZE) // reset the visible count (only matters after searching) - }, [search]) - - const isSearching = !!search - let searchResults: typeof productCodeExamples = [] - if (isSearching) { - // The following replace method escapes special characters in regular expression creation. - const matchReg = new RegExp(search.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'), 'i') - searchResults = productCodeExamples.filter((example) => { - const searchableStr = `${example.tags.join(' ')} ${example.title} ${example.description}` - return matchReg.test(searchableStr) - }) - } - - return ( -
-
{ - event.preventDefault() - setSearch(typed.trim()) - }} - > - - {t('code_example.search_examples')} - - setTyped(event.target.value)} - value={typed} - /> - -
- - {isSearching && ( -
-

- {t('search_results_for')}: {search} -

-

- {t('matches_displayed')}: {searchResults.length} -

-
- )} -
    - {(isSearching ? searchResults : productCodeExamples.slice(0, numVisible)).map((example) => { - return ( -
  • - -
  • - ) - })} -
- - {numVisible < productCodeExamples.length && !isSearching && ( - - )} - - {isSearching && searchResults.length === 0 && ( -
-
- {' '} -
-

- {t('sorry')} {search} -

-

- {t('no_example')}
{t('try_another')} -

- - {t('learn')} - -
- )} -
- ) -} diff --git a/components/landing/ProductLanding.tsx b/components/landing/ProductLanding.tsx index c5c3f3910e..dc2525a3e9 100644 --- a/components/landing/ProductLanding.tsx +++ b/components/landing/ProductLanding.tsx @@ -7,7 +7,6 @@ import { FeaturedArticles } from 'components/landing/FeaturedArticles' import { GuideCards } from 'components/landing/GuideCards' import { SponsorsExamples } from 'components/landing/SponsorsExamples' import { CommunityExamples } from 'components/landing/CommunityExamples' -import { CodeExamples } from 'components/landing/CodeExamples' import { LandingSection } from 'components/landing/LandingSection' import { useTranslation } from 'components/hooks/useTranslation' import { ProductArticlesList } from 'components/landing/ProductArticlesList' @@ -18,14 +17,8 @@ import { RestRedirect } from 'components/RestRedirect' export const ProductLanding = () => { const router = useRouter() const { isEnterpriseServer } = useVersion() - const { - title, - shortTitle, - featuredLinks, - productUserExamples, - productCommunityExamples, - productCodeExamples, - } = useProductLandingContext() + const { title, shortTitle, featuredLinks, productUserExamples, productCommunityExamples } = + useProductLandingContext() const { t } = useTranslation('product_landing') return ( @@ -40,16 +33,6 @@ export const ProductLanding = () => { - {productCodeExamples.length > 0 && ( - - - - )} - {productCommunityExamples.length > 0 && ( diff --git a/content/admin/identity-and-access-management/using-saml-for-enterprise-iam/managing-team-synchronization-for-organizations-in-your-enterprise.md b/content/admin/identity-and-access-management/using-saml-for-enterprise-iam/managing-team-synchronization-for-organizations-in-your-enterprise.md index 3beb3f6e2b..b3c7ac42b5 100644 --- a/content/admin/identity-and-access-management/using-saml-for-enterprise-iam/managing-team-synchronization-for-organizations-in-your-enterprise.md +++ b/content/admin/identity-and-access-management/using-saml-for-enterprise-iam/managing-team-synchronization-for-organizations-in-your-enterprise.md @@ -26,6 +26,10 @@ If you use SAML at the enterprise level with Azure AD as your IdP, you can enabl {% data reusables.identity-and-permissions.about-team-sync %} +{% ifversion team-sync-manage-org-invites %} +{% data reusables.identity-and-permissions.team-sync-org-invites %} +{% endif %} + {% data reusables.identity-and-permissions.sync-team-with-idp-group %} {% data reusables.identity-and-permissions.team-sync-disable %} @@ -53,3 +57,12 @@ You can also configure and manage team synchronization for an individual organiz {% data reusables.identity-and-permissions.team-sync-confirm %} 7. Review the details for the IdP tenant you want to connect to your enterprise account, then click **Approve**. 8. To disable team synchronization, under "Team synchronization", click **Disable team synchronization**. + +{% ifversion team-sync-manage-org-invites %} +## Managing whether team synchronization can invite non-members to organizations + +{% data reusables.enterprise-accounts.access-enterprise %} +{% data reusables.enterprise-accounts.settings-tab %} +{% data reusables.enterprise-accounts.security-tab %} +1. Under "Team synchronization", select or deselect **Do not allow Team Sync to invite non-members to organizations.** +{% endif %} \ No newline at end of file diff --git a/content/code-security/codeql-cli/codeql-cli-manual/database-add-diagnostic.md b/content/code-security/codeql-cli/codeql-cli-manual/database-add-diagnostic.md index 9e1e7bec62..ebe3f7f638 100644 --- a/content/code-security/codeql-cli/codeql-cli-manual/database-add-diagnostic.md +++ b/content/code-security/codeql-cli/codeql-cli-manual/database-add-diagnostic.md @@ -30,6 +30,8 @@ codeql database add-diagnostic --source-id= --source-name= .. \[Experimental] Add a piece of diagnostic information to a database. +Available since `v2.12.6`. + ## Primary options #### `` diff --git a/content/code-security/codeql-cli/codeql-cli-manual/database-analyze.md b/content/code-security/codeql-cli/codeql-cli-manual/database-analyze.md index cc3de4f42f..7fd9f1eb97 100644 --- a/content/code-security/codeql-cli/codeql-cli-manual/database-analyze.md +++ b/content/code-security/codeql-cli/codeql-cli-manual/database-analyze.md @@ -334,9 +334,9 @@ How to handle warnings from the QL compiler. One of: `error`: Treat warnings as errors. -#### `--[no-]debug-info` +#### `--no-debug-info` -Emit source location info in RA for debugging. +Don't emit source location info in RA for debugging. #### `--[no-]fast-compilation` @@ -361,9 +361,9 @@ improvements in the compiler early. In releases where there are no recent improvements to enable, this option silently does nothing. Thus it is safe to set it once and for all -in you global CodeQL config file. +in your global CodeQL config file. -The newest features are always on by default in [codeql test run](/code-security/codeql-cli/codeql-cli-manual/test-run). +Available since `v2.11.1`. #### `--[no-]local-checking` diff --git a/content/code-security/codeql-cli/codeql-cli-manual/database-export-diagnostics.md b/content/code-security/codeql-cli/codeql-cli-manual/database-export-diagnostics.md index 04420d109c..f786e13946 100644 --- a/content/code-security/codeql-cli/codeql-cli-manual/database-export-diagnostics.md +++ b/content/code-security/codeql-cli/codeql-cli-manual/database-export-diagnostics.md @@ -33,6 +33,8 @@ codeql database export-diagnostics --format= [--output=]