Skip to content

fix: remove videos.play from project key scopes - #190

Closed
shimonewman wants to merge 1 commit into
mainfrom
fix-remove-videos-play-scope
Closed

shimonewman wants to merge 1 commit into
mainfrom
fix-remove-videos-play-scope

Conversation

@shimonewman

Copy link
Copy Markdown
Contributor

What does this PR do?

Removes the VideosPlay = 'videos.play' member from the ProjectKeyScopes enum in src/enums/project-key-scopes.ts. VideosRead and VideosWrite are unchanged.

Notes for reviewers

  • Type-level breaking change: code that references ProjectKeyScopes.VideosPlay will no longer compile. The member shipped in 32.4.0. Nothing else in this repo references it.
  • Doc comments not touched: src/services/videos.ts still mentions the videos.play scope in several method descriptions (as a scope guests hold for playback). Those are left as is in this PR.
  • No version bump or changelog entry is included.

Test plan

No tests were run; the change is a single enum member deletion with no other references to VideosPlay in the source.

🤖 Generated with Claude Code

Drop the VideosPlay member from the ProjectKeyScopes enum.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@appwrite

appwrite Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
970fb6d Reviewed Reviewed 🟡 B · Needs changes before merging 🛑 Changes requested View review

The removal breaks existing consumers of a released exported enum and needs a compatible fix or a major-version release.

Removes VideosPlay (videos.play) from the exported project key scopes enum. The VideosRead and VideosWrite scopes remain unchanged.

Findings (1)
Finding Where
🟠 Ship this public API removal only in a breaking release src/enums/project-key-scopes.ts:116
Fix with agent prompt
### Issue 1
src/enums/project-key-scopes.ts:116
**Ship this public API removal only in a breaking release**

`ProjectKeyScopes` is exported from the package entry point, and this member was already included in the 32.4.0 release. Removing it makes existing TypeScript consumers that use `ProjectKeyScopes.VideosPlay` fail to compile when upgrading; without a major-version release and a changelog entry, this is an undocumented breaking change. Please preserve compatibility here or make the removal part of a major release.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Walkthrough (1)
File Change
src/enums/project-key-scopes.ts Removes the VideosPlay enum member.

Reviewed 970fb6d

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Tier B · 1 blocking finding to address. Summary

PresencesRead = 'presences.read',
PresencesWrite = 'presences.write',
VideosPlay = 'videos.play',
VideosRead = 'videos.read',

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ship this public API removal only in a breaking release

ProjectKeyScopes is exported from the package entry point, and this member was already included in the 32.4.0 release. Removing it makes existing TypeScript consumers that use ProjectKeyScopes.VideosPlay fail to compile when upgrading; without a major-version release and a changelog entry, this is an undocumented breaking change. Please preserve compatibility here or make the removal part of a major release.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/enums/project-key-scopes.ts
Line: 116

Comment:
**Ship this public API removal only in a breaking release**

`ProjectKeyScopes` is exported from the package entry point, and this member was already included in the 32.4.0 release. Removing it makes existing TypeScript consumers that use `ProjectKeyScopes.VideosPlay` fail to compile when upgrading; without a major-version release and a changelog entry, this is an undocumented breaking change. Please preserve compatibility here or make the removal part of a major release.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

🟠 Major · bug · Reply if this doesn't apply.

@shimonewman shimonewman closed this Dec 1, 2026
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.

1 participant