Commit e806c3a
feat(frontier): add scope fields to preference messages (#441)
* feat(frontier): add scope fields to preference messages
Add scope_type and scope_id fields to support org-scoped user preferences:
- Preference message: add scope_type (field 6) and scope_id (field 7)
- PreferenceRequestBody message: add scope_type (field 4) and scope_id (field 5)
- ListCurrentUserPreferencesRequest message: add scope_type (field 1) and scope_id (field 2)
These fields enable users to have different preference values per organization context
while maintaining backward compatibility with global preferences (empty scope = global).
Related: raystack/frontier#1347
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* feat(frontier): add scope fields to ListUserPreferencesRequest
Add scope_type and scope_id fields to ListUserPreferencesRequest to
allow filtering user preferences by scope context.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent b1687af commit e806c3a
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4115 | 4115 | | |
4116 | 4116 | | |
4117 | 4117 | | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
4118 | 4126 | | |
4119 | 4127 | | |
4120 | 4128 | | |
| |||
4129 | 4137 | | |
4130 | 4138 | | |
4131 | 4139 | | |
4132 | | - | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
4133 | 4150 | | |
4134 | 4151 | | |
4135 | 4152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
558 | 564 | | |
559 | 565 | | |
560 | 566 | | |
| |||
947 | 953 | | |
948 | 954 | | |
949 | 955 | | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
950 | 962 | | |
951 | 963 | | |
952 | 964 | | |
| |||
0 commit comments