Keep extension data source state durable - #105
Merged
Merged
Conversation
IlyaasK
marked this pull request as ready for review
July 27, 2026 21:58
IlyaasK
force-pushed
the
hypeship/extension-acceptance-fixture
branch
from
July 28, 2026 13:23
a06c10b to
08f1ba9
Compare
IlyaasK
force-pushed
the
hypeship/extension-durable-metadata
branch
from
July 28, 2026 13:23
0f9ca3b to
f35b190
Compare
IlyaasK
force-pushed
the
hypeship/extension-acceptance-fixture
branch
from
July 28, 2026 13:28
08f1ba9 to
a06c10b
Compare
IlyaasK
force-pushed
the
hypeship/extension-durable-metadata
branch
from
July 28, 2026 13:28
f35b190 to
0f9ca3b
Compare
Sayan-
approved these changes
Jul 28, 2026
IlyaasK
force-pushed
the
hypeship/extension-acceptance-fixture
branch
from
July 29, 2026 19:36
a06c10b to
de11cd5
Compare
IlyaasK
force-pushed
the
hypeship/extension-durable-metadata
branch
from
July 29, 2026 19:41
0f9ca3b to
1b19253
Compare
IlyaasK
changed the base branch from
hypeship/extension-acceptance-fixture
to
main
July 29, 2026 19:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
last_used_atfrom thekernel_extensiondata-source schema and state modelWhy this is v0 work
Terraform manages durable desired configuration. Extension usage timestamps change at runtime and would make data-source state depend on browser activity, so they must not enter the provider’s durable state boundary.
Tests
go test -short -timeout=2m ./...go test -race -short -timeout=2m ./internal/datasources/extensiongo vet ./...go mod verifygo mod tidy -diffterraform fmt -check -recursive examplesbash scripts/check-markdown-links.shbash scripts/check-docs.shgit diff --checkgofmt -l cmd internalAcceptance status
No live API operation is required for this schema correction. The stacked extension data-source acceptance PR verifies stable live metadata and a no-drift plan.
Intentionally unsupported
Note
Medium Risk
Breaking schema change for anyone depending on
last_used_atin configs or modules; behavior is intentional but requires consumer updates.Overview
Removes
last_used_atfrom thekernel_extensiondata source so Terraform state only holds durable extension metadata (id,name,project_id,created_at,size_bytes). Usage timestamps from the API are no longer mapped inflattenExtensionor exposed in the schema.Generated docs and tests are updated accordingly, including asserting
last_used_atis absent from the schema and removing nullablelast_used_atread coverage.Reviewed by Cursor Bugbot for commit 1b19253. Bugbot is set up for automated code reviews on this repo. Configure here.