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

feat(bulk-model-sync): workaround removed and outdated resolveInfo after import into MPS #830

Conversation

odzhychko
Copy link
Contributor

@odzhychko odzhychko commented Jun 19, 2024

In projects, loading all libraries and plugins can take significant time. This workaround enables to sync projects better that do not want to load all libraries and plugins. With this workaround, the name or resolveInfo property of a target is used as the resoleInfo property on a reference even if the concept of the target could not be fully loaded.

To be verified by reviewers

  • Relevant public API members have been documented
  • Documentation related to this PR is complete
    • Boundary conditions are documented
    • Exceptions are documented
    • Nullability is documented if used
  • Touched existing code has been extended with documentation if missing
  • Code is readable
  • New features and fixed bugs are covered by tests

Copy link
Contributor

github-actions bot commented Jun 19, 2024

Test Results

130 files  +1  130 suites  +1   9m 57s ⏱️ +10s
773 tests +2  764 ✅ +2  9 💤 ±0  0 ❌ ±0 
783 runs  +2  774 ✅ +2  9 💤 ±0  0 ❌ ±0 

Results for commit dc44995. ± Comparison against base commit 5e8a62b.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jun 19, 2024

JVM coverage report

Overall Project 50.31% -0.11%
Files changed 56.77%

File Coverage
MPSBulkSynchronizer.kt 41.37% -16.99%

val modulesToImport = getModulesToImport()
ModelImporter(rootOfImport, continueOnError).importIntoNodes(modulesToImport)
println("Import finished.")
} catch (ex: Exception) {

Check warning

Code scanning / detekt

The caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled. Warning

The caught exception is too generic. Prefer catching specific exceptions to the case that is currently handled.
@odzhychko
Copy link
Contributor Author

This PR ist still a draft, because I want to talk about in our refinment.
See https://issues.modelix.org/issue/MODELIX-813/Avoid-changing-resolveInfo-tags-for-unrelated-children#focus=Comments-4-3611.0-0

@odzhychko odzhychko marked this pull request as ready for review June 19, 2024 08:38
@odzhychko odzhychko requested review from mhuster23 and a team as code owners June 19, 2024 08:38
…ter import into MPS

In projects, loading all libraries and plugins can significant time.
This workaround enables to sync projects better that do not want to load all libraries and plugins.
With this workaround, the `name` or `resolveInfo` property of a target is used as the `resoleInfo` property on a reference even if the concept of the target could not be fully loaded.
@odzhychko odzhychko force-pushed the MODELIX-813-set-resolveInfo-in-updated-modules-for-targets-without-concept branch from 4760368 to dc44995 Compare June 19, 2024 14:12
@odzhychko odzhychko requested a review from languitar June 19, 2024 14:15
@odzhychko odzhychko enabled auto-merge June 19, 2024 14:19
@odzhychko odzhychko merged commit cd81c99 into main Jun 19, 2024
16 checks passed
@odzhychko odzhychko deleted the MODELIX-813-set-resolveInfo-in-updated-modules-for-targets-without-concept branch June 19, 2024 14:24
@slisson
Copy link
Member

slisson commented Jun 20, 2024

🎉 This PR is included in version 8.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants