Skip to content

Conversation

@lmolkova
Copy link
Member

@lmolkova lmolkova commented Jan 10, 2025

Fix #1581

Addresses DB-related portion of #608, replaces db-related things from #1711 and #1613.

  1. Rename db.system to db.system.name. It gives us a good opportunity to clean up constants, batching multiple breaking changes together (see below)
  2. Removes deprecated constants from new enum and updates existing constants to follow consistent naming
  3. Removes db prefix from system-specific attributes following Add system-specific naming guidance #1708:
    • some systems don't fit into one domain (e.g. redis is a cache and database and also a messaging system)
    • not all operations that are done on the database are related to DB (control plane, auth, scaling, node communication)
    • we're quite inconsistent in naming
  4. Adjusts _ -> . where it makes sense

Merge requirement checklist

@lmolkova lmolkova changed the title Align with naming guidance: db.system to db.system.name, namespace constants, remove db from system-specific names Consistent naming: db.system to db.system.name, namespace constants, remove db from system-specific names Jan 10, 2025
@lmolkova lmolkova marked this pull request as ready for review January 10, 2025 02:52
@lmolkova lmolkova requested review from a team as code owners January 10, 2025 02:52
Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

I think I'm coming around to your proposal in #608 (comment)

@lmolkova lmolkova force-pushed the db-rename-system-and-attributes branch from bdcb0a2 to 6f9d66a Compare January 12, 2025 18:58
@lmolkova lmolkova force-pushed the db-rename-system-and-attributes branch from 7574011 to 4509a9f Compare January 17, 2025 00:16
@lmolkova lmolkova force-pushed the db-rename-system-and-attributes branch from 28b213b to ab5268f Compare January 24, 2025 06:51
it indicates that the operation was performed on multiple regions i.e. cross-regional call.
note: >
Region name matches the format of `displayName`
in [Azure Location API](https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location)
Copy link
Contributor

@chalin chalin Oct 1, 2025

Choose a reason for hiding this comment

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

The following link in model/azure/registry.yaml for id: azure.cosmosdb.operation.contacted_regions is invalid (404):

in Azure Location API

Screenshot:

Image

Copy link
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Should db.system be db.system.name?

5 participants