Commit graph

120 commits

Author SHA1 Message Date
Clemente Raposo
1e6b530091 Legacy handler Unit Test cleanup 2021-03-30 19:21:32 +01:00
Clemente Raposo
b1b048a152 Add AppListStrings Legacy Handler
- Add AppListStrings Legacy handler
- Update AppListStrings Item data provider to use legacy handler
- Add unit tests for legacy handler
2021-03-30 19:21:32 +01:00
Clemente Raposo
c02ab30a05 Add SystemConfig Legacy Handler
- Add SystemConfi Legacy handler
- Add service configuration to specify which configs are exposed to the frontend
- Update Systemconfig Item and Collection data provider to use legacy handler
- Add unit tests for legacy handler
2021-03-30 19:21:32 +01:00
Clemente Raposo
32d40be3e7 Add AppStrings Legacy Handler
- Add AppStrings Legacy handler
-- Inject some User module key into app strings
- Update AppStrings Item data provider to use legacy handler
- Add unit tests for legacy handler
2021-03-30 19:21:32 +01:00
Clemente Raposo
99f28973f7 Fix unit tests 2021-03-30 19:21:32 +01:00
Clemente Raposo
bd2e3d6e0c Add session swapping to LegacyHandlers
- Autowire LegacyHandlers as Symfony Services
-- Configure legacy handlers folder in service.yml
-- Replace handler instantiation with service injection

- Add init and close to legacy handlers
-- Swap sessions
-- Swap current dir
-- Add config to allow moving values between sessions
-- replace hard coded values with injected configuration

- Remove unused services and corresponding unit test
-- NavbarService.php
-- AuthenticationService.php

- Refactor Authentication Handler to
-- call init and close methods

- Refactor navbar handler to be used as a service
-- Adjust navbar unit tests
2021-03-30 19:21:32 +01:00
Dillon-Brown
93c4e2ce91 Add legacy handler to fetch module sub menu data 2021-03-30 19:21:32 +01:00
Dillon-Brown
ed5feb3938 Fix NonGroupedNavTabs returning sorted array by default 2021-03-30 19:21:32 +01:00
Dillon-Brown
b83d27edcd Complete navigation user action menu contract 2021-03-30 19:21:32 +01:00
Dillon-Brown
287ed2fb15 Add Angular CSRF protection 2021-03-30 19:21:31 +01:00
Dillon-Brown
9bff8530c6 Add Suite-8 user authentication 2021-03-30 19:21:31 +01:00
Clemente Raposo
ca0e00dfd1 Fix Legacy re-directs for subpaths
- Add units tests to check that :
-- requests to the api aren't taken as legacy
-- valid requests done in a subpath instance are considered valid
2021-03-30 19:21:31 +01:00
Dillon-Brown
fdb97afcb3 Fix NavTabs to return agreed navbar contract 2021-03-30 19:21:31 +01:00
Clemente Raposo
b809e5c85b Add ClassicView routing
Redirect Suite7 requests to Suite8 ClassicView routes for valid actions
- Use Symfony kernel events
- Use Symfony service configuration and DI for module mapping

Add legacy redirection tests
- Add acceptance test support
-- Add config helper
- Fix issue when running `codcept run`
-- functional tests missing
- Add functional tests for legacy routing
- Add unit tests for legacy routing
2021-03-30 19:21:31 +01:00
Dillon-Brown
ece6ae6377 Add additional configuration options to codeception
This updates the codeception unit tests to remove the LEGACY_PATH constant and to define legacy test runners so that we can test session related methods.
2021-03-30 19:21:31 +01:00
Dillon-Brown
a787d0d82f Add codeception testing framework
This implements the basic structure that will be used for future unit, functional and acceptance tests.
2021-03-30 19:21:30 +01:00
Dillon-Brown
587a79613e Add API Platform Framework with Symfony/Flex
This implements the basic structure that will be used for the API and core application.
2021-03-30 19:21:30 +01:00
Dillon-Brown
bab8ce3390 Add grouped navigation tabs legacy handler 2021-03-30 19:21:30 +01:00
Dillon-Brown
cad4ee309c Add non-group navigation tabs legacy handler 2021-03-30 19:21:30 +01:00
Matt Lorimer
9a1442f726 Move tests to root directory 2021-03-30 19:21:30 +01:00