-
Notifications
You must be signed in to change notification settings - Fork 31
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
Rename data type to "organization" to match data in store #959
Conversation
@mariepauline |
@olemartinorg Yes, I can look into limiting the changes :) The problem is when trying to access data about organization from state. The naming of organisation was set 3 years ago, so maybe there is another way to change it to make it work? I guess the only thing that's important is that it is the same all over |
This is the first time I'm hearing of someone relying on our internal state! 🤔 We have no stability guarantees on that (on the contrary, it's pretty much guaranteed to change). I'd love to hear more about what you are working on, and in what way you're building on our baseline app frontend. 😊 If the redux state is something we should take care to keep somewhat backwards stable as a contract to your project(s), that could affect our roadmap/backlog, as we have concrete suggestions to change it (see #345).
If by mismatch, you mean that it's spelled differently different places, I think we'll just have to live with that. We should be careful when rolling out backwards incompatible changes, and I don't think uniform spelling is a good enough justification for that. I agree that changing the property name in |
@olemartinorg Well, we're not really 😅 I'm just playing around with the code to see how we can start on our app for Brønnøysundregistrene. So a meeting where we can present our case would be great! 😄 |
I see! Looking forward to hear more about your project. 🤩 As for this issue, if you reduce the change to renaming the property in |
@mariepauline I'm marking this as draft for now. Go ahead and mark it ready for review if you get around to it again, or let me know if you want to close it. |
297a4d4
to
1a3ed44
Compare
@olemartinorg I have now changed only IParty and tested it as well as I could |
Description
Different spelling of type organization causes the data to be inaccessible in code. In the store "organization" is used and this PR renames every instance of the word to this.
Redux store:

This is just a suggestion, but I thought it was better to provide a fix than to just create an issue.
Verification/QA
src/layout/layout.d.ts
andlayout.schema.v1.json
, and these are all backwards-compatiblekind/*
label to this PR for proper release notes grouping