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

refactored areas for Apply & Admin #74

Merged
merged 65 commits into from
Feb 27, 2025

Conversation

HamzaIbraheem-DFE
Copy link
Contributor

No description provided.

pete160682 and others added 30 commits February 14, 2025 15:44
…tor-inner-API-and-Web-to-use-BaseMediator-approach-for-new-qualifications

Peter/award 261 refactor inner api and web to use base mediator approach for new qualifications
…fication-controller-with-best-REST-API-practices

REST API best practices refactor
…ions-QuestionOptions

Award 220 pages questions question options
#44)

* Added distributed memory cache to web if in development in aodp.web - currently after dataprotect in dev flow. Ran and tested locally for login and  direct page navigation. Removed caching references in aodp.authentication as ticket store will use what is defined in program.cs to my knowledge via DI.
The code is as was in terms of the openid config from sprint 3.

* Stub auth code in program moved into the auth project
Exracted roles class out of program
Added Extension method for distributed cache
Removed distrubted cache from DP as added on previous commit.
Removed redundant usings
Removed commented out code that was already in program.cs
Tested local auth against external provider. Tested direct page auth. Tested Signout of external provider
Tested stub code works
Utilised rediconfiguration connectionstring already used for dp
Can only test the redis cache once deployed.

* configuration.getsection for the connection is no longer required as moved out to adddistrbutedcache extension

* missing using. Git was being confusing.
…stion-Guidance-Description-field-should-accept-markdown-and-provide-a-preview-of-the-rendered-HTML
HamzaIbraheem-DFE and others added 24 commits February 24, 2025 13:05
DASD-12820 - Updated YAML to reference DEMO VG
…rkdown-Warning

Added warning against using Markdown headers to the form builder Markdown helper.
…-App-Create-CSV-download-functionality-for-new-qualifications
#60)

* Policies defined for isreviewuser, isapplyuser,isadminformsuser and isadminimport user

Polices are defined via conventional routes within program.cs

Root home now contains links to static home pages for each START page

AutoRedirect via link on home page that redirects user to appropriate area depending on who they authenticate as
either
/admin
/admin/import
/review
/apply.

User will only be able to access areas that they have the appropriate policy for.  This applies after authentication as well if manually redirect to url. 403 page created.
Currently 403 page contains autoredirect link if authenticated to take you to the area you have access to via policy def,

* Added role constants and updated program.cs to use these.

* apply (A0) home page markup updated to figma design

* Forgot to commit update  to roleconstants file.

* Simplied not authorised page . Thought originally would be in wwwroot, revised to use standard layout .

Removed capitalisation on the initial index page of start and landing.

* not authorised file commit

* Qualification routing change back to how it was. Clarified with peter the reason for the change from a route parameter to fromquery. Modified The routes accordingly and the endpoint is now accessible and locked down via the policy.

The qualification work resides under /review/qualifications and is locked down with the review policy

Qualification page has two exposed methods each returning a different view. There's no data and it resulted in a 404 so i added a call to
app.UseStatusCodePagesWithRedirects("/Error/{0}");
Whenever a 403 or 404 occurs a redirect will occur to the appropriate not authorised or not found action.

I Imagine these error pages will need further styling work going forward
Made text validation use word count instead of character length.
…ate-CSV-download-functionality-for-new-qualifications

Award 363 web app create csv download functionality for new qualifications
This reverts commit 4a2753f.
This reverts commit 185b99e.
@HamzaIbraheem-DFE HamzaIbraheem-DFE changed the title refactored areas for Apply & RAdmin refactored areas for Apply & Admin Feb 26, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
3.3% Duplication on New Code (required ≤ 3%)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@HamzaIbraheem-DFE HamzaIbraheem-DFE merged commit 12c4c75 into AODP-Sprint5 Feb 27, 2025
4 of 5 checks passed
@HamzaIbraheem-DFE HamzaIbraheem-DFE deleted the hamza/area-refactor branch February 27, 2025 10:10
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.

7 participants