Skip to content

ui/services: convert IntegrationKeyCreateDialog & IntegrationKeyList to ts#2568

Merged
tony-tvu merged 13 commits into
masterfrom
ts-IntegrationKeyCreateDialog
Oct 13, 2022
Merged

ui/services: convert IntegrationKeyCreateDialog & IntegrationKeyList to ts#2568
tony-tvu merged 13 commits into
masterfrom
ts-IntegrationKeyCreateDialog

Conversation

@tony-tvu

@tony-tvu tony-tvu commented Aug 18, 2022

Copy link
Copy Markdown
Collaborator
  • Identified the issue which this PR solves.
  • Read the CONTRIBUTING document.
  • Code builds clean without any errors or warnings.
  • Added appropriate tests for any new functionality.
  • All new and existing tests passed.
  • Added comments in the code, where necessary.
  • Ran make check to catch common errors. Fixed any that came up.

Description:
Part of an ongoing effort to convert existing javascript files to typescript.

Note: IntegrationKeyCreateDialog and IntegrationKeyList were both converted in this PR to avoid receiving this error:
Cannot destructure property 'service' of 'cache5.readQuery(...)' as it is null.
This error occurs when IntegrationKeyCreateDialog.js created a new integration key without a cache available in IntegrationKeyList.tsx, since IntegrationKeyList.tsx uses urql instead of apollo now.

Which issue(s) this PR fixes:
#2318

Out of Scope:

  • switch out Apollo client with urql

@tony-tvu tony-tvu changed the title ui/services: convert IntegrationKeyCreateDialog to ts ui/services: convert IntegrationKeyCreateDialog & IntegrationKeyList to ts Aug 18, 2022
Comment thread web/src/app/services/IntegrationKeyList.tsx Outdated
Tony Vu and others added 4 commits September 23, 2022 14:40
Co-authored-by: Katie Sydlik-Badgerow <38022260+KatieMSB@users.noreply.github.com>
KatieMSB
KatieMSB previously approved these changes Sep 23, 2022
KatieMSB
KatieMSB previously approved these changes Oct 3, 2022
Comment thread web/src/app/services/IntegrationKeyCreateDialog.tsx Outdated
Comment thread web/src/app/services/IntegrationKeyList.tsx Outdated

@Lanithane Lanithane left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a couple small things ^ otherwise looks good

Co-authored-by: Nathaniel Cook <NathanielJCook@outlook.com>
Comment thread web/src/app/services/IntegrationKeyCreateDialog.tsx
Comment thread web/src/app/services/IntegrationKeyCreateDialog.tsx
Lanithane
Lanithane previously approved these changes Oct 13, 2022
@tony-tvu tony-tvu merged commit f1936f4 into master Oct 13, 2022
@tony-tvu tony-tvu deleted the ts-IntegrationKeyCreateDialog branch October 13, 2022 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants