Skip to content
New issue

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

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

Already on GitHub? # to your account

Feat/v2 to v3 translation updates #360

Merged
merged 10 commits into from
Jun 11, 2021
Merged

Conversation

JieXiong9119
Copy link
Contributor

@JieXiong9119 JieXiong9119 commented Jun 4, 2021

What does this PR do?

This PR includes follow-up updates on the version translation tool developed in #348. The updated v2_to_v3.xsl file should bring in all the breaking changes from v2 to v3, for transforming BuildingSync v2 xml instances to v3 (via any xslt processor).

What are the relevant PRs?

Breaking changes that are accounted for in #348:

Breaking changes added into xsl on this PR:

1. Initial implement changes for
WallID
WindowID
DoorID
PrimaryHVACSystemType
2. Create Python script for PC users
3. Update README.md
@JieXiong9119 JieXiong9119 self-assigned this Jun 4, 2021
@JieXiong9119 JieXiong9119 changed the base branch from develop to develop-v3 June 4, 2021 05:17
@JieXiong9119 JieXiong9119 linked an issue Jun 4, 2021 that may be closed by this pull request
Copy link
Contributor

@macintoshpie macintoshpie left a comment

Choose a reason for hiding this comment

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

Awesome! Could you add examples of these in the buildingsync test file so the transformations are tested? Once these comments get wrapped up this should be good to go

translation/xsltproc.py Outdated Show resolved Hide resolved
translation/v2_to_v3.xsl Outdated Show resolved Hide resolved
@JieXiong9119
Copy link
Contributor Author

Awesome! Could you add examples of these in the buildingsync test file so the transformations are tested? Once these comments get wrapped up this should be good to go

I just created a test.xml file in the subfolder. Could you take a look?

@macintoshpie macintoshpie self-requested a review June 11, 2021 17:48
Copy link
Contributor

@macintoshpie macintoshpie left a comment

Choose a reason for hiding this comment

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

Hey Jie, I moved your example file into the spec/data/v2_for_translation.xml file b/c this is the one that actually gets tested.

After doing that there are some failures, it looks like we are still missing some translations. Could you add them to the translator?

Screen Shot 2021-06-11 at 11 46 33 AM

Screen Shot 2021-06-11 at 11 46 42 AM

Copy link
Contributor

@macintoshpie macintoshpie left a comment

Choose a reason for hiding this comment

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

Great! 💥

@macintoshpie macintoshpie merged commit ec22698 into develop-v3 Jun 11, 2021
@macintoshpie macintoshpie deleted the feat/v2-to-v3-translation branch June 11, 2021 20:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update version translator to include all breaking changes
2 participants