Skip to content

Addition of groups to the FaF journey#873

Merged
EdwinKruglov merged 20 commits into
developfrom
feature/faf-group-journey
Feb 15, 2022
Merged

Addition of groups to the FaF journey#873
EdwinKruglov merged 20 commits into
developfrom
feature/faf-group-journey

Conversation

@EdwinKruglov

Copy link
Copy Markdown
Contributor

Changes in this PR

PiperS52 and others added 10 commits February 8, 2022 09:34
* added step view, updating journey order and framework_requests_controller

* switching to openstruct for step 2

* hint with openstruct - still need to remove bold

* view in place with correct validation

* added group attribute to framework_request table - DSI and no-DSI journeys both successful

* updated tests for previous DSI journey, accounting for new step order and group validation

* updated tests for create non-dsi journey

* uncommenting capybara helper lines

Co-authored-by: Simon Piper <simonpiper@C02FL95VMD6M.local>
- add "Search for a group or trust" page to the FaF journey
- add group_uid to framework_requests
- update "Search for a school" help text
* updated step 5 view, framework_request_controller and presenter

* added uid to framework_request model

* removing uid from framework_requests and schema

* add conditional render for group uid for mats

* updating comments

* added to tests for create framework

* fixing rubocop

* updated tests inc presenter

* addressed comments

* fixing rubocop

Co-authored-by: Simon Piper <simonpiper@C02FL95VMD6M.local>
…863)

- allow users belonging to groups (MATs and SATs) to use the service
* feature in place - tests to be updated

* fixed validation message for 302

* updated tests

* fix rubocop

* uncommenting capybara helper lines

Co-authored-by: Simon Piper <simonpiper@C02FL95VMD6M.local>
Co-authored-by: Simon Piper <simonpiper@C02FL95VMD6M.broadband>
…on-schools

Add group and school search to the non-dsi faf journey
* updated step 5 view, framework_request_controller and presenter

* added uid to framework_request model

* removing uid from framework_requests and schema

* add conditional render for group uid for mats

* updating comments

* added to tests for create framework

* fixing rubocop

* updated tests inc presenter

* addressed comments

* fixing rubocop

* validation and navigation working - legend to be removed

* removed legend

* added test

Co-authored-by: Simon Piper <simonpiper@C02FL95VMD6M.local>
Co-authored-by: Simon Piper <simonpiper@C02FL95VMD6M.broadband>
- update content for kick-out page
- add trusts to the DSI journey school page
- add (MAT) string to trusts listed on DSI journey school page


Co-authored-by: Simon Piper <simonpiper@C02FL95VMD6M.local>
Co-authored-by: Edwin Kruglov <edwin.kruglov@education.gov.uk>
@EdwinKruglov EdwinKruglov added the enhancement New feature or request label Feb 14, 2022
@viezly

viezly Bot commented Feb 14, 2022

Copy link
Copy Markdown

This pull request is split into 8 parts for easier review.
👀 Review pull request on Viezly

Changed files are located in these folders:

  • /
  • app
  • app/assets/javascripts
  • app/controllers
  • app/models/support
  • app/services
  • app/views/framework_requests
  • config
  • db
  • lib
  • spec/factories
  • spec/features/self-serve
  • spec/forms/self-serve
  • spec/presenters/self-serve

@peterdavidhamilton

Copy link
Copy Markdown
Contributor

@EdwinKruglov a reminder that work @kennyevil has done on forms give us the option to use position? and go_to!, if these methods improve readability and make it easier to understand the logic please make sure we use them in the controller.

Comment thread app/controllers/framework_requests_controller.rb Outdated
Comment thread app/controllers/framework_requests_controller.rb
Comment thread app/forms/framework_support_form_schema.rb Outdated
Comment thread app/presenters/framework_request_presenter.rb

@peterdavidhamilton peterdavidhamilton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should use position? instead. Made a few other comments.

Comment thread app/controllers/framework_requests_controller.rb Outdated
Comment thread app/forms/framework_support_form.rb Outdated
instance_variable_get :@group
end

# @return [nil]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice one @EdwinKruglov. Can these be a 2 liner, maybe with guard clause? Also, every method is currently public but I'm sure that's not the case anymore. @d-a-v-e is looking at getting the feature coverage of FaF up, but can you get unit test coverage for this form class in this branch, currently the whole file is being skipped.

@EdwinKruglov EdwinKruglov enabled auto-merge (squash) February 15, 2022 09:23
@EdwinKruglov EdwinKruglov merged commit ff1f6c0 into develop Feb 15, 2022
@EdwinKruglov EdwinKruglov deleted the feature/faf-group-journey branch February 15, 2022 09:33
AndrewCowle pushed a commit that referenced this pull request Feb 23, 2022
- Make navigation changes
- Add "Is this the group or trust?" page
- Add trusts to DSI journey and update kick-out page
- Add school type to non-DSI CYA page
- Add group search page
- Add "Is it a school or group?" page
- Make trust members eligible to access the service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants