Skip to content

Feat/df 370 save progress#182

Merged
davidjamesstone merged 7 commits intomainfrom
feat/DF-370-save-progress
Sep 8, 2025
Merged

Feat/df 370 save progress#182
davidjamesstone merged 7 commits intomainfrom
feat/DF-370-save-progress

Conversation

@jbarnsley10
Copy link
Copy Markdown
Contributor

@jbarnsley10 jbarnsley10 commented Sep 1, 2025

Proposed change

Renames 'Save and Return' to 'Save and Exit'

Jira ticket:
DF-370

  • 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).

jbarnsley10 and others added 5 commits September 5, 2025 15:57
* 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
@davidjamesstone davidjamesstone force-pushed the feat/DF-370-save-progress branch from 55accfe to f426d14 Compare September 5, 2025 14:59
const baseKey = this.generateKey
? this.generateKey(request)
: this.defaultKeyGenerator(request)
Key(request: AnyRequest, additionalIdentifier?: ADDITIONAL_IDENTIFIER) {
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 case?

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, mostly just a name refactor from what I can see

* 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>
@alexluckett
Copy link
Copy Markdown
Contributor

@jbarnsley10 before you merge this, we'll mark it as a major release.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Sep 8, 2025

@davidjamesstone davidjamesstone merged commit 86e36c8 into main Sep 8, 2025
9 checks passed
@davidjamesstone davidjamesstone deleted the feat/DF-370-save-progress branch September 8, 2025 11:54
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.

4 participants