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

[bulk-import][backend] Tech Debt: refactor backend code

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 1.4
    • 1.3
    • Bulk Import Plugin
    • None
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • RHDH Core Team 3263

      Acceptance Criteria

      • Refactor code that is too long/too complex:
        • router.test.ts: most of the tests here can move under specific handler tests (under `src/service/handlers`)
          • The remaining tests could cover other cases like the auth layer
        • Code duplication in bulkimports.test.ts and router.test.ts reported by SonarCloud
        • githubApiService.ts: could reduce complexity of some functions
        • Split catalogInfoGenerator into different files. Its name does not reflect what it does.
      • Add more tests
      • Move generated code (like openapi.d.ts or openapidocument.ts) under a `src/generated` folder
      • ...

              rh-ee-asoro Armel Soro
              rh-ee-asoro Armel Soro
              RHIDP - Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: