HMS-9590: refactor create template feature#763
Draft
Starle21 wants to merge 50 commits intocontent-services:mainfrom
Draft
HMS-9590: refactor create template feature#763Starle21 wants to merge 50 commits intocontent-services:mainfrom
Starle21 wants to merge 50 commits intocontent-services:mainfrom
Conversation
Contributor
fd23679 to
38391bc
Compare
c1b55d7 to
75a9b69
Compare
add temporary set data in new template store upon change in old store
use it in TemplateModalBase
update: playwright tests upon create template feature refactor. Import and snapshot hardcoded repositories in the backend, that a template cannot be created without. The previous version of the playwright tests was not properly testing this requirement.
use new template in redhatRepositories use new template in customRepositories delete old leftovers in define content store
to better capture its purpose
remove store, make review content always expanded
change in UI: template name --> title, description --> detail update PW tests to accomodate text changes in UI
extract sort table into shared; divide table into subcomponents, divide table controls into subcomponents
extract sort, use early returns in top component and controls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Please open and see detailed notes for the refactor in
src/features/notes-refactor.Testing steps
Manual testing
To be able to compare and run both the old and the new code,
I created a temporary path, which I placed the original code under, at
insights/content/templates/originalThe new code is under the original path
insights/content/templates/addPlaywright tests
Please note that the playwright integration test
InstallUploadRepoContent.specis failingdue to an unknown reason and the issue is being investigatied. However, this does not
block you from reviewing and manually testing this PR.
For testing with playwright locally, you need to run this PR with this backend PR below:
#testwith content-services/content-sources-backend#1358