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.
Motivation and Context
This PR would cover a part of the feature request #1369 (Deep linking for models).
The part it aims to cover is the ability to directly link to models in the URL.
The goal with this feature would be the following:
Description
(This PR seems to be the newer version of #5237)
Extend the functionality of the deep-linking plugin:
#/models
#/models/ModelName
Necessary refactors to make the above possible:
Bugs fixed:
dev-e2e-cypress
script was calling the wrong script to start the cypress serverKnown bugs:
Help needed!
It would be nice if someone with actual knowledge about ReactJs and SwaggerUi and DeepLinking could help out :)
Is this PR introducing breaking changes?
Please help me to decide if this PR is introducing breaking changes or not!
I think these might be considered as breaking changes:
[DONE] How to fix the scrolling to the specific model?
The problem is that the
zenscroll
library cannot get the position of theModelCollapse
component right, so it does not scroll to the right place. I couldn't figure out how to fix this yet, any help is appreciated.One random idea I had is to somehow include the
div
with themodel-${name}
id in theModelCollapse
component, because that element's position seems to be working well for positioning (offsetTop
gives back an appropriate number), but this seems to be something that might become a breaking change, so I'm somewhat reluctant to go this way.UPDATE: I implemented this idea in the second commit and it made the scrolling possible.
How Has This Been Tested?
Manually & added e2e tests.
Checklist
My PR contains...
src/
is unmodified: changes to documentation, CI, metadata, etc.)package.json
)My changes...
Documentation
Automated tests