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

Fix apply again bug on continuous applications #8638

Conversation

tomas-stefano
Copy link
Collaborator

Context

When the user is in conditions_not_met, after login it is rendered the complete page.

The problem with this page that on this page the user can "apply again" and create a new application form and bypass any cap that we have.

We shouldn't never render the complete page whenever the status so I decided to write a system spec to guarantee that whenever is the status we never render the complete page (only for continuous applications!).

Guidance to review

On conditions not met, does it redirect to the right place?

Link to Trello card

https://trello.com/c/ohrxOhLE/732-apply-candidates-incorrectly-able-to-enter-apply-again-status

When the user is in conditions_not_met, after login it is rendered
the complete page.

We shouldn't never render the complete page whenever the status
so I decided to write a system spec to guarantee that whenever is
the status we never render the complete page (only for continous
    applications!).
@tomas-stefano tomas-stefano added deploy_v2 Deploy the review app to AKS Continuous applications Work relating to continuous applications labels Oct 5, 2023
@tomas-stefano tomas-stefano requested review from a team October 5, 2023 15:57
@github-actions github-actions bot temporarily deployed to review_aks-8638 October 5, 2023 16:02 Destroyed
@tomas-stefano tomas-stefano temporarily deployed to review_aks October 5, 2023 16:02 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023

You have one or more flakey tests on this branch! ❄️ ❄️ ❄️

Failed 1 out of 3 times at ./spec/forms/candidate_interface/pick_course_form_spec.rb:75: ⚠️ expected: ["PGCE with QTS full time", "PGCE full time", "PGCE with QTS full time"] got: ["PGCE full time", "PGCE with QTS full time", "PGCE with QTS full time"]

(compared using eql?)

�[37mDiff:�[0m

�[34m┌ (Key) ──────────────────────────┐�[0m
�[34m│ �[0m�[35m‹-› in expected, not in actual�[0m�[34m │�[0m
�[34m│ �[0m�[33m‹+› in actual, not in expected�[0m�[34m │�[0m
�[34m│ �[0m‹ › in both expected and actual�[34m │�[0m
�[34m└─────────────────────────────────┘�[0m

[
�[35m- "PGCE with QTS full time",�[0m
"PGCE full time",
�[33m+ "PGCE with QTS full time",�[0m
"PGCE with QTS full time"
]

@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023

Code Coverage

Coverage typeFromTo
⬆️Lines covered95.09%95.64%

@github-actions github-actions bot temporarily deployed to review_aks-8638 October 5, 2023 16:23 Destroyed
@tomas-stefano tomas-stefano temporarily deployed to review_aks October 5, 2023 16:23 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2023

Code Coverage

Coverage typeFromTo
⬆️Lines covered95.1%95.64%

@tomas-stefano tomas-stefano merged commit b528565 into main Oct 6, 2023
120 of 121 checks passed
@tomas-stefano tomas-stefano deleted the 732-apply-candidates-incorrectly-able-to-enter-apply-again-status branch October 6, 2023 09:10
@tomas-stefano tomas-stefano temporarily deployed to review_aks October 6, 2023 09:10 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Continuous applications Work relating to continuous applications deploy_v2 Deploy the review app to AKS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants