-
Notifications
You must be signed in to change notification settings - Fork 84
Conversation
@b123400, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ben181231, @cheungpat and @limouren to be potential reviewers. |
@b123400 Make sure that your PR title and comment is public consumable because the PR title and comment is usually included in the merge commit. Specifically “a server side thing” is not good for public understanding, though I totally understand what you are talking about. |
pkg/server/handler/schema.go
Outdated
for _, v := range payload.RawDefaultAccess { | ||
ace := skydb.RecordACLEntry{} | ||
if err := (*skyconv.MapACLEntry)(&ace).FromMap(v); err != nil { | ||
return skyerr.NewInvalidArgument("invalid _default_access entry", []string{"_default_access"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The argument name should be default_access
, right?
CREATE TABLE _record_default_access ( | ||
record_type text NOT NULL, | ||
default_access jsonb, | ||
UNIQUE (record_type, default_access) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unique constraint should be on record_type
only ?
@b123400 @rickmak @cheungpat Do we need a default ACL for all record types ? |
Updated to fix the issue |
connect #309
Client side needs update as well