-
Notifications
You must be signed in to change notification settings - Fork 521
[feat] Extend access controls and billing settings #4330
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
Merged
junaway
merged 28 commits into
release/v0.100.0
from
feat/add-access-controls-in-env-vars
May 19, 2026
Merged
Changes from 22 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
c33134f
initial research
jp-agenta 90d9017
initial design
jp-agenta 71000ee
clean up design
jp-agenta da0548d
actually, initial implementation done
jp-agenta 335ed1f
follow-up implementation
jp-agenta b716f56
Merge branch 'release/v0.99.8' into feat/add-access-controls-in-env-vars
jp-agenta eef81db
quick fix
jp-agenta ba00f60
regenerate fern clients and api references
jp-agenta 63b6292
Merge feat/clean-up-meters
jp-agenta d06bc73
Merge feat/clean-up-meters
jp-agenta 9b5f235
merge and fix
jp-agenta 5a3b833
another CR
jp-agenta f72853b
Merge branch 'feat/clean-up-meters' into feat/add-access-controls-in-…
jp-agenta 794d81d
some clean-up
jp-agenta 0b9ae13
Merge branch 'feat/clean-up-meters' into feat/add-access-controls-in-…
jp-agenta 73d4aa4
Merge branch 'feat/clean-up-meters' into feat/add-access-controls-in-…
jp-agenta 2ffe682
fix stripe meters mapping
jp-agenta 20bbb48
fix stripe conversion and format and drop billing docs
jp-agenta 4065458
Merge branch 'feat/clean-up-meters' into feat/add-access-controls-in-…
junaway 4273a36
fix downgrade in migration
jp-agenta 2edab92
Merge branch 'release/v0.100.0' into feat/add-access-controls-in-env-…
jp-agenta 6438b22
fix support findongs
jp-agenta d10ee9a
add project-scoped roles overlay
jp-agenta fd8442a
fix entitlements, endpoints, tabs, and more
jp-agenta 91a60dd
fix entitlements, endpoints, tabs, docs, and more
jp-agenta 3badc76
Fix docs and invite flow
jp-agenta cf541eb
fix type-related issues
jp-agenta 0c57b28
copilot CR and comments
jp-agenta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
61 changes: 61 additions & 0 deletions
61
...tabases/postgres/migrations/core/versions/a1b2c3d4e5f7_unify_org_member_role_to_viewer.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| """Unify organization_members.role 'member' to 'viewer' | ||
|
|
||
| Aligns the organization scope with workspace/project scopes on a single | ||
| least-permission role slug. The runtime access-controls layer | ||
| (`ee.src.core.entitlements.controls`) treats `viewer` as the per-scope | ||
| minima for every scope; this migration brings stored data and the column | ||
| default in line with that. | ||
|
|
||
| - Rewrites every row with role='member' to role='viewer'. | ||
| - Changes the column server default from 'member' to 'viewer'. | ||
|
|
||
| The downgrade reverses both, restoring the previous behavior. | ||
|
|
||
| Revision ID: a1b2c3d4e5f7 | ||
| Revises: 9d3e8f0a1b2c | ||
| Create Date: 2026-05-13 00:00:00.000000 | ||
| """ | ||
|
|
||
| from typing import Sequence, Union | ||
|
|
||
| from alembic import op | ||
| import sqlalchemy as sa | ||
| from sqlalchemy import text | ||
|
|
||
|
|
||
| revision: str = "a1b2c3d4e5f7" | ||
| down_revision: Union[str, None] = "9d3e8f0a1b2c" | ||
| branch_labels: Union[str, Sequence[str], None] = None | ||
| depends_on: Union[str, Sequence[str], None] = None | ||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| conn = op.get_bind() | ||
|
|
||
| conn.execute( | ||
| text("UPDATE organization_members SET role = 'viewer' WHERE role = 'member'") | ||
| ) | ||
|
|
||
| op.alter_column( | ||
| "organization_members", | ||
| "role", | ||
| server_default="viewer", | ||
| existing_type=sa.String(), | ||
| existing_nullable=False, | ||
| ) | ||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| conn = op.get_bind() | ||
|
|
||
| op.alter_column( | ||
| "organization_members", | ||
| "role", | ||
| server_default="member", | ||
| existing_type=sa.String(), | ||
| existing_nullable=False, | ||
| ) | ||
|
|
||
| conn.execute( | ||
| text("UPDATE organization_members SET role = 'member' WHERE role = 'viewer'") | ||
| ) | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.