Skip to content

CBG-4865: Update database schema for API Docs#7765

Merged
torcolvin merged 3 commits intomainfrom
CBG-4865
Sep 22, 2025
Merged

CBG-4865: Update database schema for API Docs#7765
torcolvin merged 3 commits intomainfrom
CBG-4865

Conversation

@RIT3shSapata
Copy link
Contributor

CBG-4865

Describe your PR here...

  • Updated descriptions of deprecated config options in database schema
  • Deprecated {database}.cache.enable_star_channel

Pre-review checklist

  • Removed debug logging (fmt.Print, log.Print, ...)
  • Logging sensitive data? Make sure it's tagged (e.g. base.UD(docID), base.MD(dbName))
  • Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in docs/api

Dependencies (if applicable)

  • Link upstream PRs
  • Update Go module dependencies when merged

Integration Tests

Copilot AI review requested due to automatic review settings September 18, 2025 13:43
@github-actions
Copy link

github-actions bot commented Sep 18, 2025

Redocly previews

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates database schema documentation for API specifications, focusing on clarifying the status of deprecated configuration options.

  • Updated descriptions for deprecated configuration options to reflect current behavior
  • Added deprecation marking for enable_star_channel property
  • Clarified that certain options are no longer configurable and have fixed values

default: 60
enable_star_channel:
description: Used to control whether Sync Gateway should use the all documents (*) channel.
description: Used to control whether Sync Gateway should use the all documents (*) channel. This is not configurable and the value is set to `true`.
Copy link

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

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

[nitpick] The description is confusing as it says the option 'is used to control' something but then states it's 'not configurable'. Consider rephrasing to: 'Controls whether Sync Gateway uses the all documents (*) channel. This option is deprecated and always set to true.' to better align with the deprecated status.

Suggested change
description: Used to control whether Sync Gateway should use the all documents (*) channel. This is not configurable and the value is set to `true`.
description: Controls whether Sync Gateway uses the all documents (*) channel. This option is deprecated and always set to `true`.

Copilot uses AI. Check for mistakes.
default: 75
allow_conflicts:
description: This controls whether to allow conflicting document revisions. This option is going to be removed from sync gateway, and conflicts will not be allowed.
description: This controls whether to allow conflicting document revisions. This option is removed from sync gateway, and conflicts will not be allowed.
Copy link

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

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

The description contains inconsistent capitalization of 'sync gateway'. It should be 'Sync Gateway' to match the product name capitalization used elsewhere in the documentation.

Suggested change
description: This controls whether to allow conflicting document revisions. This option is removed from sync gateway, and conflicts will not be allowed.
description: This controls whether to allow conflicting document revisions. This option is removed from Sync Gateway, and conflicts will not be allowed.

Copilot uses AI. Check for mistakes.
deprecated: true
enable_shared_bucket_access:
description: Whether to use extended attributes to store Sync Gateway document (`_sync`) metadata.
description: Whether to use extended attributes to store Sync Gateway document (`_sync`) metadata. The extended attributes cannot be disabled.
Copy link

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

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

[nitpick] The description is unclear about what 'cannot be disabled' refers to. Consider rephrasing to: 'Whether to use extended attributes to store Sync Gateway document (_sync) metadata. This option is deprecated and extended attributes are always enabled.' to better clarify the deprecated behavior.

Suggested change
description: Whether to use extended attributes to store Sync Gateway document (`_sync`) metadata. The extended attributes cannot be disabled.
description: Whether to use extended attributes to store Sync Gateway document (`_sync`) metadata. This option is deprecated and extended attributes are always enabled.

Copilot uses AI. Check for mistakes.
@torcolvin torcolvin removed their assignment Sep 18, 2025
@torcolvin torcolvin merged commit ff08ca5 into main Sep 22, 2025
47 checks passed
@torcolvin torcolvin deleted the CBG-4865 branch September 22, 2025 14:06
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.

3 participants