- 
                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
base: main
Are you sure you want to change the base?
Conversation
          PR Compliance Guide 🔍Below is a summary of compliance checks for this PR: 
 Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label  | 
    ||||||||||||||||||
          PR Code Suggestions ✨Explore these optional code suggestions: 
  | 
    ||||||||||||
| 
           This pull request is automatically being deployed by Amplify Hosting (learn more).  | 
    
| - 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`. | 
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 organization parameter, on top level ?
| #### 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> | 
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.
remove
User description
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Added docs pages
Please also include the path for the added docs
/)/platform-overview/port-components/blueprint)Updated docs pages
Please also include the path for the updated docs
/)/platform-overview/port-components/blueprint)PR Type
Documentation
Description
Update import paths in examples file to use
./examples/subdirectoryAdd clarification on classic PAT organization scoping behavior
Document entity deletion threshold for cleanup after restricting organizations
Add detailed guidance for first-time installs with multiple organizations
Diagram Walkthrough
File Walkthrough
examples.md
Reorganize import paths to examples subdirectorydocs/build-your-software-catalog/sync-data-to-catalog/git/github-ocean/examples.md
./examples/subdirectory prefixgithub-ocean.md
Clarify organization scoping and first-time install behaviordocs/build-your-software-catalog/sync-data-to-catalog/git/github-ocean/github-ocean.md
organizationsspecifiedsyncs all scoped organizations
intended
installation.mdx
Add entity deletion threshold guidance for organization cleanupdocs/build-your-software-catalog/sync-data-to-catalog/git/github-ocean/installation/installation.mdx
detailed instructions
entityDeletionThreshold: 1configuration for entity cleanuporganizationsare not specified