Skip to content

Extract collection fetching code into hook#3746

Merged
dvail merged 1 commit intodv/collections-extract-form-from-drawerfrom
dv/collection-extract-fetching-hook
Nov 10, 2022
Merged

Extract collection fetching code into hook#3746
dvail merged 1 commit intodv/collections-extract-form-from-drawerfrom
dv/collection-extract-fetching-hook

Conversation

@dvail
Copy link
Contributor

@dvail dvail commented Nov 8, 2022

Description (3 of 3)

This extracts the collection and embedded collection fetching logic into a reusable hook, which will be needed later when we add an independent modal for displaying the collection form.

Checklist

  • Investigated and inspected CI test results
  • Unit test and regression tests added
  • Evaluated and added CHANGELOG entry if required
  • Determined and documented upgrade steps
  • Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

@openshift-ci
Copy link

openshift-ci bot commented Nov 8, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@dvail dvail force-pushed the dv/collections-extract-form-from-drawer branch from af904f2 to 305d20b Compare November 8, 2022 17:57
@dvail dvail force-pushed the dv/collection-extract-fetching-hook branch from ce1248d to e5ac8cf Compare November 8, 2022 17:57
@dvail dvail force-pushed the dv/collections-extract-form-from-drawer branch from 305d20b to 3a90073 Compare November 8, 2022 18:10
@dvail dvail force-pushed the dv/collection-extract-fetching-hook branch from e5ac8cf to ec29509 Compare November 8, 2022 18:10
@dvail dvail force-pushed the dv/collections-extract-form-from-drawer branch from 3a90073 to 20e0d73 Compare November 8, 2022 18:11
@dvail dvail force-pushed the dv/collection-extract-fetching-hook branch from ec29509 to 9efeb2a Compare November 8, 2022 18:11
@dvail dvail marked this pull request as ready for review November 9, 2022 17:08
@dvail dvail requested review from bradr5 and pedrottimark November 9, 2022 17:09
Copy link
Contributor

@pedrottimark pedrottimark left a comment

Choose a reason for hiding this comment

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

Aha, after important decision that modal is a view, then asymmetry is logical outcome:

  • Encapsulate read requests in hook for form and modal.
  • Import create, delete, update requests in form only.

@dvail dvail force-pushed the dv/collections-extract-form-from-drawer branch from 58bc8d4 to eabbc39 Compare November 10, 2022 18:53
@dvail dvail force-pushed the dv/collection-extract-fetching-hook branch from cf65fef to d0811eb Compare November 10, 2022 18:53
@dvail dvail merged commit 802f911 into dv/collections-extract-form-from-drawer Nov 10, 2022
@dvail dvail deleted the dv/collection-extract-fetching-hook branch November 10, 2022 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants