-
Notifications
You must be signed in to change notification settings - Fork 60
Add Documentation Note for Deleting Unwanted Entities After First Time Installs of GitHub Ocean Multi Orgs #2932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
emekanwaoma
wants to merge
3
commits into
main
Choose a base branch
from
PORT-16636
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+82
−51
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,11 +32,39 @@ Starting from **version 3.0.0-beta**, the GitHub integration supports syncing da | |
|
|
||
| :::info Multi-organization configuration | ||
| - GitHub App and fine-grained PAT: use `githubOrganization` (single organization). | ||
| - Classic PAT: to sync multiple organizations, list them in your port mapping under `organizations`. | ||
| - Classic PAT: | ||
| - To sync multiple organizations, list them in your port mapping under `organizations`. | ||
| - If `organizations` are not specified, the integration will sync all organizations the classic PAT is scoped to. | ||
| - Precedence: if `githubOrganization` is set in the environment variables or config and `organizations` are listed in port mapping, the integration syncs only the `githubOrganization` (single‑org behavior). | ||
| - Performance: syncing multiple organizations increases API calls and may slow down the integration. | ||
| ::: | ||
|
|
||
| #### Cleanup after restricting organizations | ||
|
|
||
| If you initially synced multiple organizations (e.g., on a first‑time install before your mapping was ready) and later restrict organizations in your mapping, set `entityDeletionThreshold: 1` temporarily and resync to ensure previously ingested, now‑unwanted entities are deleted. Revert the threshold afterwards (default ≈ 0.9) or remove completely. | ||
|
|
||
| <details> | ||
| <summary><b>Entity deletion threshold (click to expand)</b></summary> | ||
|
|
||
| ```yaml showLineNumbers | ||
|
|
||
| entityDeletionThreshold: 1 | ||
| resources: | ||
| - kind: organization | ||
| selector: | ||
| query: 'true' | ||
| port: | ||
| entity: | ||
| mappings: | ||
| identifier: .login | ||
| title: .login | ||
| blueprint: '''githubOrganization''' | ||
| properties: | ||
| login: .login | ||
| id: .id | ||
| ``` | ||
| </details> | ||
|
Comment on lines
+42
to
+66
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove |
||
|
|
||
| ### Create access token | ||
|
|
||
| To allow Port to fetch data from your GitHub Organization(s), you need to create an access token. Port supports two types of tokens for authentication: personal access tokens and GitHub app installation tokens. | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indicate the location of the
organizationparameter, on top level ?