call filters: autogenerate name for multi-tenancy purposes#401
Conversation
1c854f8 to
35f3184
Compare
|
This change depends on a change that failed to merge. |
|
recheck |
|
Build failed.
|
|
Build failed.
|
|
Build failed.
|
b9d6385 to
44eb037
Compare
|
Build failed.
|
|
Build failed.
|
|
Build succeeded.
|
2b1d8b8 to
60775c9
Compare
|
Build succeeded.
|
60775c9 to
3f4ac46
Compare
|
Build failed.
|
|
recheck |
|
Build failed.
|
| # NOTE(afournier): we use a UUID as if it was the callfilter UUID but it's not | ||
| # Call filters do not use UUIDs yet |
There was a problem hiding this comment.
Would it be hard to add the UUID column right now? This would avoid a painful migration (i.e. parsing names to get the UUID) later on when we do add the UUID column.
There was a problem hiding this comment.
It's another ticket completely. Call filters are far from being the only resource still using an integer ID.
It's also hard, requiring changes in function keys, fallbacks, etc.
There was a problem hiding this comment.
And how about adding the column uuid but keeping the id as primary key, only ensuring that the uuid is unique? That way we have the uuid in the database, we can use it for the callfilter name and the primary key migration id -> uuid will be easier.
3f4ac46 to
5dbc2a0
Compare
|
Build succeeded.
|
| yield s.check_bogus_field_returns_error, url, 'name', 123 | ||
| yield s.check_bogus_field_returns_error, url, 'name', None | ||
| yield s.check_bogus_field_returns_error, url, 'name', True | ||
| yield s.check_bogus_field_returns_error, url, 'name', {} | ||
| yield s.check_bogus_field_returns_error, url, 'name', [] |
There was a problem hiding this comment.
Do we have any test covering the deprecated way by sending only a name? We still want to support that use case and it needs at least 2 tests (one for success, one for error/invalid data)
5dbc2a0 to
2312375
Compare
|
Build failed.
|
e064f14 to
e53ede0
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
|
Build failed.
|
|
recheck |
|
Build succeeded.
|
They do not use UUIDs yet
e53ede0 to
61b6c83
Compare
|
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
1 similar comment
|
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
|











Depends-On: wazo-platform/xivo-dao#224
Depends-On: wazo-platform/xivo-manage-db#203