Skip to content
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

Remove rest-hooks for specifications load #10764

Merged
merged 4 commits into from
Mar 22, 2022

Conversation

jamakase
Copy link
Contributor

@jamakase jamakase commented Mar 1, 2022

What

Partially removes rest-hooks resources #10400

@jamakase jamakase self-assigned this Mar 1, 2022
@jamakase jamakase requested a review from a team as a code owner March 1, 2022 14:47
@github-actions github-actions bot added area/frontend area/platform issues related to the platform labels Mar 1, 2022
@@ -21,7 +21,6 @@
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.1.16",
"@fullstory/browser": "^1.4.9",
"@rest-hooks/legacy": "^2.0.5",
Copy link
Collaborator

Choose a reason for hiding this comment

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

🎉

@timroes
Copy link
Collaborator

timroes commented Mar 9, 2022

Before we move this onto react-query I think we should solve the problem with relaoding data when focus changed, to prevent reloading the source definitions on focus changes.

Testing this also seems to break the app for me locally. Whenever you go to the "New Source" or "New destination" page, it will immediately try to load the source/destination specification, before the user selected an actual source/destination from the dropdown. It will then have sourceDefinitionId being empty and the query thus fail with a 400:

Peek.2022-03-09.09-58.mp4

@jamakase jamakase temporarily deployed to more-secrets March 9, 2022 18:30 Inactive
@jamakase jamakase temporarily deployed to more-secrets March 9, 2022 18:31 Inactive
@jamakase
Copy link
Contributor Author

Fixed the problem with unnecessary call.

Copy link
Collaborator

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Code LGTM, tested locally to setup connection, seems not to break anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants