Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-3931

Entities of repositories under a configured org in catalog-backend-module-github-org plugin are not deleted from the catalog when the imported repository is deleted from bulk imports

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 1.4
    • 1.3
    • Bulk Import Plugin
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • RHIDP-4171 - Improve user experience on the bulk import pages
    • Hide
      Repositories might be added to Developer Hub from various sources (like statically in an app-config file or dynamically when enabling GitHub discovery). By design, the bulk import plugin will only track repositories that are accessible from the configured GitHub integrations.
      When both the Bulk Import and the GitHub Discovery plugins are enabled, the repositories the latter discovers might be listed in the Bulk Import pages.
      However, attempting to delete a repository added by the discovery plugin from the Bulk Import Jobs may have no effect, as any entities registered from this repository might still be present in the Developer Hub catalog.
      There is unfortunately no known workaround yet.
      Show
      Repositories might be added to Developer Hub from various sources (like statically in an app-config file or dynamically when enabling GitHub discovery). By design, the bulk import plugin will only track repositories that are accessible from the configured GitHub integrations. When both the Bulk Import and the GitHub Discovery plugins are enabled, the repositories the latter discovers might be listed in the Bulk Import pages. However, attempting to delete a repository added by the discovery plugin from the Bulk Import Jobs may have no effect, as any entities registered from this repository might still be present in the Developer Hub catalog. There is unfortunately no known workaround yet.
    • Known Issue
    • Done
    • RHDH Core Team 3263

      Description of problem:

      Entities of repos under a configured org in `backstage-plugin-catalog-backend-module-github-org-dynamic` plugin are not deleted from the catalog when the imported repo is deleted from bulk imports.

      Screen Recording 2024-09-11 at 3.45.22 PM.mov

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. Enable bulk-import plugin.
      2. Enable /dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-org-dynamic plugin and configure an org.
      3. Navigate to bulk import from sidebar and click on add repo
      4. Select one repo from org configured in `catalog-backend-module-github-org` plugin and one from another repo that isn't configured in above plugin.
      5. Click on create pull request and merge the PRs of both repos.
      6. Wait for entities of both repo to appear in catalog.
      7. Navigate back to bulk import and delete both repos from added repositories table.
      8. Navigate to catalog and verify the entities are deleted for both the repos.

      Actual results: Entities of repos under a configured org in catalog-backend-module-github-org plugin are not deleted from the catalog when the repo is deleted from bulk imports

      Expected results: entities of both repos should be deleted.

      Reproducibility (Always/Intermittent/Only Once): Always

      Build Details: 1.3/latest

      Additional info (Such as Logs, Screenshots, etc):

      Screen Recording 2024-09-11 at 3.45.22 PM.mov

            Unassigned Unassigned
            skhileri Subhash Khileri
            RHIDP - Plugins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: