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 parsing nested JSON properties and schema check for nested properties #398

Merged
merged 31 commits into from
Sep 12, 2024

Conversation

linyguo
Copy link
Contributor

@linyguo linyguo commented Aug 13, 2024

  • Add a function to support parsing nested properties
  • Update test scenarios for nested properties and schema check

Signed-off-by: linyguo <lingyunguo@microsoft.com>
msftcoderdjw
msftcoderdjw previously approved these changes Sep 9, 2024
@msftcoderdjw msftcoderdjw merged commit 04619e4 into eclipse-symphony:main Sep 12, 2024
5 checks passed
@msftcoderdjw
Copy link
Contributor

Fixed #210

LeiQL pushed a commit to LeiQL/symphony that referenced this pull request Sep 19, 2024
…operties (eclipse-symphony#398)

* support nested json properties

* update go mod for coa

* update scenario 04

* update go.sum

* go mod tidy

* update ut and syntax

* update schema doc

* fix test case

* update samples

* add doc for gojq

* revert file

Signed-off-by: linyguo <lingyunguo@microsoft.com>

* revert file

Signed-off-by: linyguo <lingyunguo@microsoft.com>

* revert symphony-ghcr-values.yaml

* merge update unit test

* resolve go mod

* update gojq format string

* revert sample changes

* update

* update config expression check and docs

---------

Signed-off-by: linyguo <lingyunguo@microsoft.com>
Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>
@linyguo linyguo deleted the users/lingyun/nestedJson branch September 19, 2024 01:46
@linyguo linyguo restored the users/lingyun/nestedJson branch September 19, 2024 01:47
@linyguo linyguo deleted the users/lingyun/nestedJson branch September 19, 2024 01:47
msftcoderdjw added a commit that referenced this pull request Sep 19, 2024
* target logs

* fix iot test

* logging

* Add trace value in unwinding parent catalogs (#454)

* add traceValue when read catalog property in parent catalog

* update trace value

* Turn off validation in standalone mode for cross type check (#446)

* Turn off standalone validation for cross type check

* Handle state.Spec is nil

---------

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* add parent circular dependency check in catalog validation (#453)

* add parent circular dependency validation

* update manifest name

* update helper function

---------

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* Block campaign update and delete with running activation (#458)

* update actions/upload-artifact version from v2 to v4 (#461)

* Support parsing nested JSON properties and schema check for nested properties (#398)

* support nested json properties

* update go mod for coa

* update scenario 04

* update go.sum

* go mod tidy

* update ut and syntax

* update schema doc

* fix test case

* update samples

* add doc for gojq

* revert file

Signed-off-by: linyguo <lingyunguo@microsoft.com>

* revert file

Signed-off-by: linyguo <lingyunguo@microsoft.com>

* revert symphony-ghcr-values.yaml

* merge update unit test

* resolve go mod

* update gojq format string

* revert sample changes

* update

* update config expression check and docs

---------

Signed-off-by: linyguo <lingyunguo@microsoft.com>
Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* update canary sample for minikube (#462)

* Log lines improvement for workflow and solution deployment and small refactors (#447)

* Log lines improvement and small refactors

* return status when nextStage is not empty

* Check pause status when selfDriving is false. Fix typo

* Check pauseRequested regardless of selfDriving or not

---------

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* fixed broken markdown links (#471)

* use () to convert expression output to string (#470)

* add context in evaluation context (#459)

* add context in evaluation context

* update context in stage manager

---------

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* checking if the activation still exist for waitcount = 0 or waitcount very large. (#460)

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* fix helm test

---------

Signed-off-by: linyguo <lingyunguo@microsoft.com>
Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>
Co-authored-by: linyguo <lingyunguo@microsoft.com>
Co-authored-by: Xingdong Li <xdlisjtu@gmail.com>
Co-authored-by: Renjie Li <renjieli@microsoft.com>
Co-authored-by: Haishi2016 <hbai@microsoft.com>
yanjiaxin534 pushed a commit to yanjiaxin534/symphony that referenced this pull request Nov 19, 2024
* target logs

* fix iot test

* logging

* Add trace value in unwinding parent catalogs (eclipse-symphony#454)

* add traceValue when read catalog property in parent catalog

* update trace value

* Turn off validation in standalone mode for cross type check (eclipse-symphony#446)

* Turn off standalone validation for cross type check

* Handle state.Spec is nil

---------

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* add parent circular dependency check in catalog validation (eclipse-symphony#453)

* add parent circular dependency validation

* update manifest name

* update helper function

---------

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* Block campaign update and delete with running activation (eclipse-symphony#458)

* update actions/upload-artifact version from v2 to v4 (eclipse-symphony#461)

* Support parsing nested JSON properties and schema check for nested properties (eclipse-symphony#398)

* support nested json properties

* update go mod for coa

* update scenario 04

* update go.sum

* go mod tidy

* update ut and syntax

* update schema doc

* fix test case

* update samples

* add doc for gojq

* revert file

Signed-off-by: linyguo <lingyunguo@microsoft.com>

* revert file

Signed-off-by: linyguo <lingyunguo@microsoft.com>

* revert symphony-ghcr-values.yaml

* merge update unit test

* resolve go mod

* update gojq format string

* revert sample changes

* update

* update config expression check and docs

---------

Signed-off-by: linyguo <lingyunguo@microsoft.com>
Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* update canary sample for minikube (eclipse-symphony#462)

* Log lines improvement for workflow and solution deployment and small refactors (eclipse-symphony#447)

* Log lines improvement and small refactors

* return status when nextStage is not empty

* Check pause status when selfDriving is false. Fix typo

* Check pauseRequested regardless of selfDriving or not

---------

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* fixed broken markdown links (eclipse-symphony#471)

* use () to convert expression output to string (eclipse-symphony#470)

* add context in evaluation context (eclipse-symphony#459)

* add context in evaluation context

* update context in stage manager

---------

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* checking if the activation still exist for waitcount = 0 or waitcount very large. (eclipse-symphony#460)

Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>

* fix helm test

---------

Signed-off-by: linyguo <lingyunguo@microsoft.com>
Co-authored-by: Jiawei Du <59427055+msftcoderdjw@users.noreply.github.com>
Co-authored-by: linyguo <lingyunguo@microsoft.com>
Co-authored-by: Xingdong Li <xdlisjtu@gmail.com>
Co-authored-by: Renjie Li <renjieli@microsoft.com>
Co-authored-by: Haishi2016 <hbai@microsoft.com>
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.

6 participants