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

[v3] Remove __inputs in state #3772

Merged
merged 2 commits into from
Dec 10, 2024
Merged

[v3] Remove __inputs in state #3772

merged 2 commits into from
Dec 10, 2024

Conversation

EronWright
Copy link
Contributor

This PR implements the next stage of removing the __inputs from state. In this stage, the provider has "v2" and "v3" behavior. In "v2" mode, the behavior is unchanged. In "v3" mode, Configure asserts that the engine is passing the old inputs, and doesn't write __inputs to state. The fallback code that reads the __inputs from state is effectively inoperative in the "v3" mode.

Added a line item to this ticket for the final phase which is to remove the "v2" code:
#3754

Closes #2686

Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Copy link
Member

@danielrbradley danielrbradley left a comment

Choose a reason for hiding this comment

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

Approach looks sound to me 👍

Comment on lines 10 to 12
func GetVersion() semver.Version {
return semver.MustParse(Version)
}
Copy link
Member

Choose a reason for hiding this comment

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

Same as other PR .. this needs a default for unit tests.

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 35.29412% with 11 lines in your changes missing coverage. Please review.

Project coverage is 56.64%. Comparing base (a8d8df8) to head (15c1f2c).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
provider/pkg/provider/provider.go 42.85% 3 Missing and 1 partial ⚠️
provider/pkg/version/version.go 42.85% 3 Missing and 1 partial ⚠️
provider/pkg/provider/crud/crud.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3772      +/-   ##
==========================================
- Coverage   56.65%   56.64%   -0.02%     
==========================================
  Files          77       78       +1     
  Lines       11954    11969      +15     
==========================================
+ Hits         6773     6780       +7     
- Misses       4683     4689       +6     
- Partials      498      500       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@EronWright EronWright enabled auto-merge (squash) December 10, 2024 20:14
@EronWright EronWright merged commit b2e76de into master Dec 10, 2024
23 checks passed
@EronWright EronWright deleted the issue-2686 branch December 10, 2024 20:41
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.

Remove __inputs in state
2 participants