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

Pick core schema only based on required_version constraint #1027

Merged
merged 4 commits into from
Aug 9, 2022

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Aug 4, 2022

Depends on hashicorp/terraform-schema#129

Closes #993

UX Impact

While the primary motivation behind the change was performance, it brings a minor UX impact.

IntelliSense with too old version (e.g. 0.10)

Before: No IntelliSense available, most schema-dependent jobs providing data for IntelliSense fail, as per errors in log.

Screenshot 2022-08-08 at 12 02 43

After: 0.12-based IntelliSense provided, no errors in log.

Screenshot 2022-08-08 at 12 18 26


The UX for too new version (e.g. 1.5.0) and for when the version is not known (yet) remains practically the same, it is just hopefully more obvious from the changed code combined with the upstream tfschema changes.

@radeksimko radeksimko added the enhancement New feature or request label Aug 4, 2022
@radeksimko radeksimko added this to the v0.29.0 milestone Aug 4, 2022
@radeksimko radeksimko self-assigned this Aug 4, 2022
@radeksimko radeksimko force-pushed the f-core-schema-via-constraints branch 3 times, most recently from f9ed19c to 5c1c18c Compare August 5, 2022 17:26
@radeksimko radeksimko force-pushed the f-core-schema-via-constraints branch from 5c1c18c to 7024141 Compare August 8, 2022 10:06
@radeksimko radeksimko force-pushed the f-core-schema-via-constraints branch from 7024141 to 83c4b47 Compare August 8, 2022 10:13
@radeksimko radeksimko marked this pull request as ready for review August 8, 2022 11:19
@radeksimko radeksimko requested a review from a team as a code owner August 8, 2022 11:19
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

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

Nice work! 👍

@radeksimko radeksimko merged commit 391f8b7 into main Aug 9, 2022
@radeksimko radeksimko deleted the f-core-schema-via-constraints branch August 9, 2022 13:49
@github-actions
Copy link

github-actions bot commented Sep 9, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

decoder: Pick core schema only based on required_version constraint
2 participants