Skip to content

Accept new class for cache service input#189

Merged
alexluckett merged 8 commits intofeat/DF-370-save-progressfrom
feature/injectable-cache-service
Sep 8, 2025
Merged

Accept new class for cache service input#189
alexluckett merged 8 commits intofeat/DF-370-save-progressfrom
feature/injectable-cache-service

Conversation

@alexluckett
Copy link
Copy Markdown
Contributor

@alexluckett alexluckett commented Sep 3, 2025

Proposed change

Adds a new cache service option to the plugin. Useful for overriding the cache Key, setState, etc.

Jira ticket:

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Misc. (documentation, build updates, etc)

Checklist

  • You have executed this code locally and it performs as expected.
  • You have added tests to verify your code works.
  • You have added code comments and JSDoc, where appropriate.
  • There is no commented-out code.
  • You have added developer docs in README.md and docs/* (where appropriate, e.g. new features).
  • The tests are passing (npm run test).
  • The linting checks are passing (npm run lint).
  • The code has been formatted (npm run format).

@alexluckett alexluckett force-pushed the feature/injectable-cache-service branch from b86b65e to 462993c Compare September 3, 2025 16:35
@davidjamesstone davidjamesstone force-pushed the feat/DF-370-save-progress-config branch from dc857a3 to 762f4cd Compare September 4, 2025 07:50
Base automatically changed from feat/DF-370-save-progress-config to feat/DF-370-save-progress September 4, 2025 08:26
@alexluckett alexluckett force-pushed the feature/injectable-cache-service branch from b7f2b5f to 306c24f Compare September 4, 2025 15:28
@davidjamesstone davidjamesstone force-pushed the feat/DF-370-save-progress branch from 55accfe to f426d14 Compare September 5, 2025 14:59
@alexluckett alexluckett force-pushed the feature/injectable-cache-service branch from 8fbda5a to fb2a0f0 Compare September 5, 2025 16:32
@alexluckett alexluckett force-pushed the feature/injectable-cache-service branch from fb2a0f0 to 932335d Compare September 5, 2025 16:36
@alexluckett alexluckett marked this pull request as ready for review September 5, 2025 16:40
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Sep 5, 2025

* @param {ADDITIONAL_IDENTIFIER} [_additionalIdentifier]
* @returns
*/
Key(_request, _additionalIdentifier) {
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.

Just wondering why this is pascal?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Legacy reasons, it's always been like that for some reason. Worth us changing soon, I'll leave it for now until the dust has settled on these PRs.

Copy link
Copy Markdown
Contributor

@whitewaterdesign whitewaterdesign left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@alexluckett alexluckett merged commit 8b4f780 into feat/DF-370-save-progress Sep 8, 2025
11 checks passed
@alexluckett alexluckett deleted the feature/injectable-cache-service branch September 8, 2025 10:38
davidjamesstone added a commit that referenced this pull request Sep 8, 2025
* Renamed saveAndReturn to saveAndExit

* Further rename to saveAndExit

* Line ending

* Update save and exit config options (#187)

* Export plugin schema

* Update save and exit options

* Update save and exit configuration options

* Update cacheService to remove old save and exit implementation

* Update save and exit tests

* Update save and exit docs

* Remove old save and return exit page

* Add FormResponseToolkit for convenience

* Refactor to use new FormResponseToolkit

* Add and export "AnyRequest" type

* Add, export and use "AnyFormRequest" type

* Add docs on restoring a saved session

* Allow Save and Exit from the summary page

* Accept new class for cache service input (#189)

* Renamed saveAndReturn to saveAndExit

* Further rename to saveAndExit

* Accept new class for cache service input

* Accept a CacheService instance instead of a cache name

* Export CacheService

* use kebab case to align cache service with file form service

* Add trailing newline to satisfy editorconfig

* Fix state leakage between tests

---------

Co-authored-by: Jez Barnsley <jbarnsley.github@gmail.com>

* chore(release): #major

---------

Co-authored-by: David Stone <davidjamesstone@gmail.com>
Co-authored-by: Alex Luckett <alexluckett@users.noreply.github.com>
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