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

F t31116 demosplan UI no longer use routing #91

Merged
merged 56 commits into from
Feb 21, 2023

Conversation

ahmad-demos
Copy link
Contributor

https://yaits.demos-deutschland.de/T31116

  • no longer use routing in demosplan-ui
  • instead of routing value, using props, and add this value in demosplan-core.

@ahmad-demos ahmad-demos added enhancement New feature or request review:frontend labels Jan 30, 2023
@ahmad-demos ahmad-demos marked this pull request as ready for review January 31, 2023 13:09
@@ -53,7 +68,7 @@ export default {

computed: {
userFilteredSegmentUrl () {
return Routing.generate('dplan_segments_list', { procedureId: this.procedureId }) + '/' + this.userHash
return Routing.generate(this.segmentsListRoute, { procedureId: this.procedureId }) + '/' + this.userHash
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want to pass the complete route - the result of Routing.generate - not just the String that has to be generated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -75,7 +90,7 @@ export default {
}

// Get count of segments assigned to the current user
const segmentUrl = Routing.generate('api_resource_list', { resourceType: 'StatementSegment' })
const segmentUrl = Routing.generate(this.resourceListRoute, { resourceType: 'StatementSegment' })
Copy link
Contributor

Choose a reason for hiding this comment

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

see above and all other changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

src/components/core/DpDashboardTaskCard.vue Outdated Show resolved Hide resolved
src/components/core/DpEditor/DpBoilerPlateModal.vue Outdated Show resolved Hide resolved
src/components/core/DpEditor/DpEditor.vue Outdated Show resolved Hide resolved
src/components/core/DpEditor/DpEditor.vue Outdated Show resolved Hide resolved
src/components/core/DpRegisterFlyout.vue Outdated Show resolved Hide resolved
@ahmad-demos
Copy link
Contributor Author

...and we should add a changelog entry for this PR

Done in 57ffba6

CHANGELOG.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@salisdemos salisdemos left a comment

Choose a reason for hiding this comment

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

Please Check sonarCloud

CHANGELOG.md Outdated
Comment on lines 5 to 6
### Changed
- ([#91](https://github.com/demos-europe/demosplan-ui/pull/91)) Pass routes as props ([@ahmad-demos](https://github.com/ahmad-demos))
Copy link
Contributor

Choose a reason for hiding this comment

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

this is BREAKING.

And we should mention That Routing.generate is not used internally anymore. (in most the places)

Copy link
Contributor

Choose a reason for hiding this comment

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

If I understood correctly, breaking changes are not mentioned as such until version 1?
Also, I'm not sure we need to mention internal changes?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. I thought we should mention this, because its not internal since You have to pass (other) props/values in the components.

Its just possible to make braeaking changes without bumping a major version (but with telling in the chagnelog). That was, what was I thought.

Copy link
Contributor

Choose a reason for hiding this comment

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

but I am not sure at all

@ahmad-demos ahmad-demos requested review from hwiem and removed request for hwiem February 20, 2023 13:55
@ahmad-demos ahmad-demos merged commit 077359c into main Feb 21, 2023
@ahmad-demos ahmad-demos deleted the f_T31116_demosplan_ui_no_longer_use_routing branch February 21, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request review:frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants