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

Revit_Engine: Improve error message when diffing with duplicate elementIds #1247

Conversation

IsakNaslundBh
Copy link
Contributor

@IsakNaslundBh IsakNaslundBh commented Aug 30, 2022

Issues addressed by this PR

Closes #1246

Improves the error message given when duplicate ids is detected. Gives further guidance to use physical elements rather than structural if structural elements are detected.

Changing the Diffing method called to one one step deeper as ids are already extracted.

Test files

(from @alelom) added a test for this PR in DiffingTests_Prototypes. Run all tests in that solution to verify this PR.

Changelog

Additional comments

@IsakNaslundBh IsakNaslundBh added the type:feature New capability or enhancement label Aug 30, 2022
@IsakNaslundBh IsakNaslundBh self-assigned this Aug 30, 2022
Copy link
Member

@alelom alelom left a comment

Choose a reason for hiding this comment

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

Some optional changes requested - happy to chat.

@pawelbaran
Copy link
Member

Thank you @alelom for the in-depth review. I think there is nothing left for me 😉 so happy to get it merged as soon as @alelom is happy with the changes 👍

@IsakNaslundBh
Copy link
Contributor Author

Thanks @alelom !

Have commited your suggested change with a minor fix and fixed a typo in the comments :)

@IsakNaslundBh IsakNaslundBh requested a review from alelom August 31, 2022 12:43
alelom added a commit to BHoM/DiffingTests_Prototypes that referenced this pull request Aug 31, 2022
@alelom
Copy link
Member

alelom commented Aug 31, 2022

I've added a test for this PR in DiffingTests_Prototypes.

@IsakNaslundBh @pawelbaran I ran all the tests to verify that nothing is broken, all happy. If you can, please try running them too -- should be our procedure to test for regressions with diffing, in general.

@IsakNaslundBh
Copy link
Contributor Author

@alelom I have run through all tests, with all passing.

If you are happy, would you mind approving so that we can get this merged? :)

Copy link
Member

@alelom alelom left a comment

Choose a reason for hiding this comment

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

Approved based on changes, discussion and tests.

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check required

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2022

@IsakNaslundBh to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

@pawelbaran
Copy link
Member

@BHoMBot check copyright-compliance
@BHoMBot check dataset-compliance
@BHoMBot check ready-to-merge

@bhombot-ci
Copy link

bhombot-ci bot commented Sep 1, 2022

@pawelbaran to confirm, the following actions are now queued:

  • check copyright-compliance
  • check dataset-compliance
  • check ready-to-merge

There are 21 requests in the queue ahead of you.

@pawelbaran pawelbaran merged commit 78794e0 into main Sep 1, 2022
@pawelbaran pawelbaran deleted the Revit_Engine-#1246-Improve-messaging-for-RevitDiffing-when-duplicate-ElementIds-are-detected branch September 1, 2022 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New capability or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revit_Engine: Improve messaging for RevitDiffing when duplicate ElementIds are detected
3 participants