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

PaYaml schema and OM updates #651

Merged
merged 1 commit into from
May 15, 2024
Merged

PaYaml schema and OM updates #651

merged 1 commit into from
May 15, 2024

Conversation

joem-msft
Copy link
Contributor

@joem-msft joem-msft commented May 7, 2024

Update schema and OM according to latest changes

Schema Updates:

  • Update to use Control Type Identifiers in schema
  • Added Groups on Screens, ControlInstances, ComponentDefinitions per XR
  • Added CodeComponent contorl instances, aka PCF controls, per XR
  • Added VSCode snippets for App, Screens, and ControlInstances
  • Removed App.Children.Host from schema; it needs additional design review

Model Updates:

  • Update ordering of PaFileRoot properties
  • Rename ControlInstance.ControlType to ControlTypeId to keep consistency
  • Add tests which verify when full usage of schema is used that round-trip is not lossy
  • Added support for Groups on Screens, ControlInstances, ComponentDefinitions per XR
  • Added extension method DescendantControlInstances for iterating thru control tree in document order
  • Added unit tests for DescendantControlInstances
  • Remove AppInstance.Children as the current design is not sufficient
  • Renamed PersistenceException to PaPersistenceException to remove naming ambiguity when in doc svr code

Also:

  • Added build script that will process schema files. It removes comments and also enables some build-time modifications to the schema for public consumption.

@joem-msft joem-msft marked this pull request as ready for review May 8, 2024 00:30
@joem-msft joem-msft requested review from a team as code owners May 8, 2024 00:30
@joem-msft joem-msft force-pushed the users/joemay/PaYaml-next branch 2 times, most recently from fe4540d to 205aed2 Compare May 8, 2024 22:10
src/Persistence/PaPersistenceException.cs Outdated Show resolved Hide resolved
@joem-msft joem-msft force-pushed the users/joemay/PaYaml-next branch 3 times, most recently from b3c2c8f to 6952e03 Compare May 10, 2024 23:40
Schema Updates:
- Changed schema version from 2.2 to 3.0
- Update to use Control Type Identifiers in schema
- Added `Groups` on Screens, ControlInstances, ComponentDefinitions per XR
- Added `CodeComponent` contorl instances, aka PCF controls, per XR
- Added VSCode snippets for App, Screens, and ControlInstances
- Removed `App.Children.Host` from schema; it needs additional design review

Model Updates:
- Update ordering of PaFileRoot properties
- Rename `ControlInstance.ControlType` to `ControlTypeId` to keep consistency
- Add tests which verify when full usage of schema is used that round-trip is not lossy
- Added support for `Groups` on Screens, ControlInstances, ComponentDefinitions per XR
- Added extension method `DescendantControlInstances` for iterating thru control tree in document order
- Added unit tests for `DescendantControlInstances`
- Remove `AppInstance.Children` as the current design is not sufficient
- Renamed `PersistenceException` to `PersistenceLibraryException` to remove naming ambiguity when in doc svr code

Also:
- Added build script that will process schema files. It removes comments and also enables some build-time modifications to the schema for public consumption.
@petrochuk petrochuk dismissed their stale review May 15, 2024 00:14

class renamed

@joem-msft joem-msft enabled auto-merge (squash) May 15, 2024 00:44
@joem-msft joem-msft merged commit 8637a76 into master May 15, 2024
4 checks passed
@joem-msft joem-msft deleted the users/joemay/PaYaml-next branch May 15, 2024 18:03
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