feat: removed data attribute from snapshot #212
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This pull request refactors how snapshot data is structured and accessed throughout the codebase, simplifying the snapshot format by removing the unnecessary
datawrapper. It updates all relevant code, tests, and fixtures to directly referencedomainat the root level, improving consistency and clarity. Additionally, it updates dependencies and bumps the project version.Snapshot Data Structure Refactor
datawrapper, sodomainis now at the root level. All code references tosnapshot.data.domainare updated tosnapshot.domainfor consistency. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]domaindirectly. [1] [2] [3] [4] [5] [6] [7] [8] [9]API and Logic Adjustments
data.domaintodomain. [1] [2] [3] [4]domainportion of the response.Version and Dependency Updates
4.5.0inpackage.jsonandsonar-project.properties. [1] [2]@typescript-eslint/eslint-pluginand@typescript-eslint/parserdev dependencies to8.46.0.These changes streamline the snapshot format, making the codebase easier to maintain and reducing the risk of errors due to inconsistent data structures.
Breaking change
Snapshot content before:
{ "data": { "domain": { "name": "switcher-domain", "activated": true, "group": [...] } } }Snapshot content now:
{ "domain": { "name": "switcher-domain", "activated": true, "group": [...] } }