Skip to content

feature/SOF 7843#99

Merged
VsevolodX merged 6 commits intomainfrom
feature/SOF-7843
Mar 4, 2026
Merged

feature/SOF 7843#99
VsevolodX merged 6 commits intomainfrom
feature/SOF-7843

Conversation

@VsevolodX
Copy link
Copy Markdown
Member

  • update: calculate hash
  • update: test hashing

"schemaVersion": "2022.8.16"
},
"hash": "b7353f1be53119573f184497442e3202"
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit, but should we get this from standata?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe, that's what I did for WF. But at least hash must be here in the common folder to compare Py/JS.

def test_calculate_hash_matches_fixture():
fixture_path = Path(__file__).parent.parent / "fixtures" / "application_hash.json"
fixture = json.loads(fixture_path.read_text())
from mat3ra.standata.applications import ApplicationStandata
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why import here?? Should be at the top

pyproject.toml Outdated
"mat3ra-code",
"mat3ra-utils[extra]"
"mat3ra-utils[extra]",
"mat3ra-standata"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't need standata here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

oh, only in tests, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

no, we do need.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 3, 2026

Coverage after merging feature/SOF-7843 into main will be

89.33%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src/js
   ApplicationRegistry.ts92.12%88.14%100%92.77%137, 147–149, 152–154, 168, 168, 73–74, 78, 94
   application.ts100%100%100%100%
   applicationMixin.ts100%100%100%100%
   executable.ts100%100%100%100%
   executableMixin.ts100%100%100%100%
   flavor.ts100%100%100%100%
   flavorMixin.ts100%100%100%100%
   index.ts0%100%0%0%1, 10–11, 13, 16–19, 2, 20–29, 3–9
   template.ts100%100%100%100%
   templateMixin.ts98.13%90.91%100%100%103, 103
src/js/context
   ContextProvider.ts96.83%83.33%100%100%117, 81
   ContextProviderRegistryContainer.ts100%100%100%100%
   JSONSchemaDataProvider.ts100%100%100%100%
   JSONSchemaFormDataProvider.ts100%100%100%100%
   JinjaContextProvider.ts100%100%100%100%

@VsevolodX VsevolodX merged commit 76838f9 into main Mar 4, 2026
10 checks passed
@VsevolodX VsevolodX deleted the feature/SOF-7843 branch March 4, 2026 01:05
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.

2 participants