-
Notifications
You must be signed in to change notification settings - Fork 91
refactor: full process in instance #18220
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
Open
adamhaeger
wants to merge
36
commits into
main
Choose a base branch
from
refactor/full-process-in-instance-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
2de4323
set up instance queries
adamhaeger fb06dd2
wip
adamhaeger 64ab066
tests fixed
adamhaeger 4baf12e
fixed tests
adamhaeger e1428e4
Merge branch 'main' into refactor/api-client-instance
adamhaeger 09fa547
lint
adamhaeger 16537ef
including full process from instance endpoint
adamhaeger 799bd23
added fixture
adamhaeger 907374d
updated verified files
adamhaeger 9cbc6d9
Merge branch 'main' into refactor/api-client-instance
adamhaeger 4dfede3
fixing verified files
adamhaeger c2e5157
fixes after code review
adamhaeger e583ad0
fixes after code review
adamhaeger 55afd01
Merge branch 'main' into refactor/api-client-instance
adamhaeger c531062
frontend using full process from instance
adamhaeger 0f68e53
bugfix
adamhaeger 1e68738
Merge branch 'refactor/api-client-instance' into refactor/full-proces…
adamhaeger 04693be
added HydrateFallback to prevent log errors
adamhaeger 1fa54ba
test fix
adamhaeger b6b63a2
merge main
adamhaeger 49ec78a
merge
adamhaeger af10ae2
removing irrelevant changes
adamhaeger bb66a31
fixed feedback test
adamhaeger b187bd1
merge main
adamhaeger d19b17c
reverted non intended changes
adamhaeger f043f56
reverted non intended changes
adamhaeger 70b7f5a
reverted non intended changes
adamhaeger 93db8e5
fixed on entry test
adamhaeger a4bd2c0
Merge branch 'main' into refactor/full-process-in-instance-2
adamhaeger 872f61d
fixing tests
adamhaeger f6bd725
merge
adamhaeger 9a8085c
removed unused file
adamhaeger cc1136e
merge
adamhaeger 4949001
fix: add delay in GetSnapshotAppLogs to avoid flaky log capture on CI
adamhaeger a53d406
merge
adamhaeger 2e95556
refactor: separated full instance into its own endpoint (#18390)
adamhaeger 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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Altinn/altinn-studio
Length of output: 7856
🏁 Script executed:
sed -n '140,160p' src/App/backend/src/Altinn.App.Api/Controllers/ProcessController.csRepository: Altinn/altinn-studio
Length of output: 895
🏁 Script executed:
sed -n '275,295p' src/App/backend/src/Altinn.App.Api/Controllers/ProcessController.csRepository: Altinn/altinn-studio
Length of output: 740
Remove unnecessary null-conditional operators from lines 147 and 151.
Both
StartProcessandNextElementmethods checkresult.Successbefore accessingProcessStateChange, and theProcessChangeResulttype uses[MemberNotNullWhen(true, nameof(ProcessStateChange))]to guarantee non-null access whenSuccessis true.result.ProcessStateChange?.Eventsshould beresult.ProcessStateChange.Eventsresult.ProcessStateChange?.NewProcessStateshould beresult.ProcessStateChange.NewProcessStateLine 287 correctly follows this pattern without the null-conditional operator. The current inconsistency obscures the actual contract and reduces code clarity.
🤖 Prompt for AI Agents