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

Filter advice by team not user.team #1889

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

kevincarrogan
Copy link
Contributor

@kevincarrogan kevincarrogan commented Apr 12, 2024

Aim

Use team field directly from the advice objects as opposed to looking up through the user.

This pairs with API changes that always store the team at a point in time instead of changing if the user changes team.

LTD-4899

@kevincarrogan kevincarrogan force-pushed the LTD-4899-use-static-team-on-advice branch 3 times, most recently from c1bd748 to 65b5ec6 Compare April 16, 2024 08:19
@@ -78,7 +78,7 @@ Feature: I want to record my user advice and any comments and conditions relatin
When I click the application previously created
And I assign myself to the case
And I click the recommendations and decision tab
And I expand the details for "MOD-ECJU has approved with licence conditions"
And I expand the details for "MOD-CapProt has approved with licence conditions"
Copy link
Contributor

Choose a reason for hiding this comment

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

has this needed to change as a result of the other changes in this PR to filter by advice["team"]? or for some other reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. This test was written relying on the fact that previous advice given would follow the users team but now we are statically linking the team then this needed to change.

@kevincarrogan kevincarrogan force-pushed the LTD-4899-use-static-team-on-advice branch 2 times, most recently from b42f3fe to ed1891d Compare April 16, 2024 15:27
Copy link
Contributor

@depsiatwal depsiatwal left a comment

Choose a reason for hiding this comment

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

lgtm

@kevincarrogan kevincarrogan force-pushed the LTD-4899-use-static-team-on-advice branch from ed1891d to ca95855 Compare April 24, 2024 09:38
@kevincarrogan kevincarrogan merged commit 8a074b3 into dev Apr 24, 2024
12 checks passed
@kevincarrogan kevincarrogan deleted the LTD-4899-use-static-team-on-advice branch April 24, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants