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

Front-end Library Routing refactor #11614

Merged
merged 8 commits into from
Mar 16, 2021

Conversation

OlegZharkov
Copy link
Contributor

@OlegZharkov OlegZharkov commented Mar 12, 2021

depends on #11485 and will be a draft until 11485 is merged

What did you do?

Refactored library Router.

Why did you make this change?

The code looks cleaner, we don't need to define each possible library route in buildapp.py and AnalysisRouter.js anymore, LibraryFolderRouter will take care. Also it adds consistency in router naming.

Additionally it fixes a following bug:
it was not possible to return into upper library folder with the 'back' browser button, this PR will fix this issue

How to test the changes?

  • This is a refactoring of components with existing test coverage.
    Quite a few selenium tests are already in place
  • Instructions for manual testing are as follows:
    Go to libraries and surf, also use back <- and front -> buttons in your browser

@OlegZharkov OlegZharkov marked this pull request as ready for review March 15, 2021 12:26
@github-actions github-actions bot added this to the 21.05 milestone Mar 15, 2021
@OlegZharkov OlegZharkov changed the title Library Routing refactor Front-end Library Routing refactor Mar 15, 2021
Copy link
Member

@dannon dannon left a comment

Choose a reason for hiding this comment

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

I'll try to explore fixing up this routing without using # urls.

@OlegZharkov
Copy link
Contributor Author

Sorry @dannon, you were right. I've read a bit here and there, and figured it out. I probably shouldn't have argued about it and just done it right away. I hope it looks better now. Thanks a lot for checking it!

@dannon
Copy link
Member

dannon commented Mar 16, 2021

@OlegZharkov No worries about a little bit of discussion man :)

This looks like exactly what I was thinking of -- I'm really glad you jumped on it and knocked it before I could even follow up this evening!

@dannon dannon merged commit 695e723 into galaxyproject:dev Mar 16, 2021
@github-actions
Copy link

This PR was merged without a "kind/" label, please correct.

@dannon dannon added kind/enhancement kind/refactoring cleanup or refactoring of existing code, no functional changes and removed kind/enhancement labels Mar 16, 2021
@OlegZharkov
Copy link
Contributor Author

OlegZharkov commented Mar 16, 2021

can someone also add kind/bug label here, please?

@bgruening
Copy link
Member

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/libraries Data libraries area/testing/selenium area/testing area/UI-UX kind/bug kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants