-
Notifications
You must be signed in to change notification settings - Fork 32
add expression support for organisation instance owner name #3232
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
abf9bc5
deletes unused hook
cammiida cbc7e45
improves PartySelection error message
cammiida 971011c
gets instance owner party from backend and correctly determines on be…
cammiida 961904b
fixes eslint warning
cammiida 398ae96
adds enabled prop to instance owner query, and improves useInstanceOw…
cammiida d0dc061
gets instance owner party from new data on instance from backend with…
cammiida 746cd63
removes cookie utils
cammiida 4939d8d
add expression support for organisation instance owner name
HauklandJ b3534ce
update tests
HauklandJ 7a44a8b
add shared-tests
HauklandJ 1c3ad57
expose instace owner name always
HauklandJ d2abb91
fixes flattening parties and checking if same party by partyId in app…
cammiida 4aefa3a
fixes sonarqube maintainability complaint
cammiida 26ec10a
fixes another sonarqube maintainability complaint
cammiida 417cf15
removes unused query key
cammiida 4a35e73
Merge branch 'fix/current-party-2' into feature/instanceOwnerName
cammiida 2c3c1b0
gets instance owner name straight from cache instead of zustand which…
cammiida 5efc37c
Merge branch 'main' into fix/current-party-2
cammiida 5b97201
Merge branch 'fix/current-party-2' into feature/instanceOwnerName
cammiida 4863aae
gets instance owner data from cache instead of performing another query
cammiida 67180b9
Merge branch 'main' into feature/instanceOwnerName
cammiida File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
src/features/expressions/shared-tests/functions/instanceContext/instanceOwnerNameOrg.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "Instance owner name when instance owner is Person", | ||
"expression": [ | ||
"instanceContext", | ||
"instanceOwnerName" | ||
], | ||
"expects": "My Org AS", | ||
"instance": { | ||
"id": "d00ce51c-800b-416a-a906-ccab55f597e9", | ||
"appId": "org/app-name", | ||
"instanceOwner": { | ||
"organisationNumber": "1234567", | ||
"party": { | ||
"name": "My Org AS" | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/features/expressions/shared-tests/functions/instanceContext/instanseOwnerNamePerson.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "Instance owner name when instance owner is Person", | ||
"expression": [ | ||
"instanceContext", | ||
"instanceOwnerName" | ||
], | ||
"expects": "unknown", | ||
"instance": { | ||
"id": "d00ce51c-800b-416a-a906-ccab55f597e9", | ||
"appId": "org/app-name", | ||
"instanceOwner": { | ||
"party": { | ||
"name": "Secret Name" | ||
} | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.