Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the Metapath context funtions #162

Open
4 of 12 tasks
david-waltermire opened this issue Oct 5, 2024 · 2 comments
Open
4 of 12 tasks

Support the Metapath context funtions #162

david-waltermire opened this issue Oct 5, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@david-waltermire
Copy link
Contributor

david-waltermire commented Oct 5, 2024

User Story

As a Metapath expression author, such as when writing Metaschema constraints, there is need query information provided by the Metapath dynamic context. such as the current date/time and information about the current document being operated on. The metapath context functions provide this information.

Goals

Implement the following Metapath functions:

Dependencies

None.

Acceptance Criteria

  • Positive test cases with full coverage are created for each function.
  • Negative test cases that cover error conditions are created for each function.
  • All website and readme documentation affected by the changes in this issue have been updated.
  • A Pull Request (PR) is submitted that fully addresses the goals of this User Story. This issue is referenced in the PR.
  • The CI-CD build process runs without any reported errors on the PR. This can be confirmed by reviewing that all checks have passed in the PR.

Revisions

No response

@david-waltermire david-waltermire added the enhancement New feature or request label Oct 5, 2024
@aj-stein-gsa
Copy link
Contributor

Thank you for explaining what makes these functions different re context and proposing the work. I agree these are super important and deserving to implement. Is a now or P2/P3 priority in registry parlance terms?

aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Oct 20, 2024
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Oct 21, 2024
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Oct 22, 2024
@david-waltermire david-waltermire moved this from To Triage to Ready in Spec and Tooling Work Board Oct 23, 2024
david-waltermire pushed a commit to david-waltermire/metaschema-java that referenced this issue Nov 26, 2024
david-waltermire added a commit that referenced this issue Nov 26, 2024
* Completed support for the FnImplicitTimezone Metapath function and associated unit test for #162.
* Added time data types and the FnCurrentTime Metapath function and unit test.

---------

Co-authored-by: A.J. Stein <[email protected]>
david-waltermire added a commit to david-waltermire/metaschema-java that referenced this issue Dec 4, 2024
aj-stein-gsa added a commit that referenced this issue Dec 4, 2024
* Added the fn:current-date Metapath function in support of #162.

* Correct URL link to XPath current-date, not current-dateTime docs

---------

Co-authored-by: A.J. Stein <[email protected]>
@david-waltermire david-waltermire moved this from Ready to In progress in Spec and Tooling Work Board Dec 6, 2024
@david-waltermire david-waltermire self-assigned this Dec 6, 2024
@david-waltermire david-waltermire moved this from In progress to Blocked in Spec and Tooling Work Board Dec 12, 2024
@david-waltermire
Copy link
Contributor Author

The remaining functions fn:position and fn:last require significant refactoring and an adjustment to the approach for managing the focus. This work needs to be deferred until work on v3.0.0 starts.

Marking it as blocked for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Blocked
Development

No branches or pull requests

2 participants