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

Attribute COMMENT #324

Merged
merged 18 commits into from
Oct 6, 2023
Merged

Attribute COMMENT #324

merged 18 commits into from
Oct 6, 2023

Conversation

dehume
Copy link
Contributor

@dehume dehume commented Sep 22, 2023

Add support for COMMENT for both objects and columns within objects:

  • Cluster
  • Cluster Replica
  • Database
  • Index (Materialize Object issue)
  • Materialized View
  • Role (Materialize Object issue)
  • Schema
  • Secret
  • Sink
  • Source (Multi)
  • Connection (Multi)
  • Table
  • Table (Column)
  • Type
  • View

@dehume dehume requested a review from bobbyiliev as a code owner September 22, 2023 15:09
@dehume
Copy link
Contributor Author

dehume commented Sep 22, 2023

Using Table as a POC, will then implement with other objects

NOTE: Since the state queries will take a dependency on mz_comments we cannot release this until it is entirely generally available.

@dehume dehume linked an issue Sep 22, 2023 that may be closed by this pull request
@dehume dehume changed the title [WIP] Attribute COMMENT Attribute COMMENT Oct 5, 2023
@dehume dehume requested a review from morsapaes October 5, 2023 17:22
@@ -14,6 +15,7 @@ import (
var clusterReplicaSchema = map[string]*schema.Schema{
"name": ObjectNameSchema("replica", true, true),
"cluster_name": ClusterNameSchema(),
"comment": CommentSchema(true),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Three resources: roles, cluster replicas and indexes are still marked as force new. Breaking out into a followup issue #329

Copy link
Contributor

@bobbyiliev bobbyiliev left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you for taking care of all those changes!

@dehume dehume merged commit 0fd34bd into main Oct 6, 2023
@dehume dehume deleted the Resource-Comment branch October 6, 2023 11:36
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.

Support COMMENT attribute
2 participants