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

[JSON Logic] Part 2: Computed Attribute skeleton #36

Merged
merged 11 commits into from
Sep 12, 2023

Conversation

brennj
Copy link
Collaborator

@brennj brennj commented Aug 22, 2023

Requires: #34 and #35 for full context and to work correctly. Must only be merged when they are.

This is a breakdown of #28 to make it more digestible for review.

Add in x-jsf-logic-computedAttrs (with reference to values defined in x-jsf-logic.computedValues) support.

  • Ensures when there is a x-jsf-logicComputedAttrs are present, it reads from x-jsf-logic.computedValues for that computed value.
  • From this PR, any plain string based single value is supported. (Where you need titles, etc, inline rules, they will come in following PRs)
  • Forced values are supported for this.
  • Adds a test to show how this works for basic values (const, default)

src/helpers.js Outdated Show resolved Hide resolved
src/jsonLogic.js Show resolved Hide resolved
src/jsonLogic.js Outdated Show resolved Hide resolved
@brennj brennj force-pushed the json-logic-add-computedattrs branch from f990a57 to 6b06f89 Compare August 31, 2023 13:39
Base automatically changed from json-logic-skeleton to main August 31, 2023 14:35
chore: clean up conditional additions

chore: remove const tests

chore: remove dupe file

chore: remove group array stuff

chore: clean up yupschema

chore: clean up helpers a small bit

chore: remove all error handling for now

chore: clean up package-lock

chore: more removing stuff

chore: clean more
@brennj brennj force-pushed the json-logic-add-computedattrs branch from 6b06f89 to d2cc213 Compare August 31, 2023 14:42
@brennj brennj merged commit 80c2958 into main Sep 12, 2023
3 checks passed
@brennj brennj deleted the json-logic-add-computedattrs branch September 12, 2023 07:43
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