-
Notifications
You must be signed in to change notification settings - Fork 333
Allow remove splash screen #2588
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
Conversation
f8187cb
to
6ddcf42
Compare
E.deleteTeamSplashScreen tid | ||
now <- input | ||
memList <- getTeamMembersForFanout tid | ||
let e = newEvent tid now (EdTeamUpdate newTeamUpdateData) |
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.
I'm not very happy about this: deleting the splash screen is not the same as changing nothing. :) Maybe add a new constructor to TeamUpdateData
?
updateTeamDeleteSplashScreenH zusr zcon tid = do | ||
zusrMembership <- E.getTeamMember tid zusr | ||
void $ permissionCheckS SSetTeamData zusrMembership | ||
E.deleteTeamSplashScreen tid |
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.
I'm not convinced this is the right approach, but the alternative of changing TeamUpdateData
to accomodate both leaving the splash screen intact (Nothing
) and setting it to Nothing
(???) doesn't appeal to me either. We could change the Maybe
to something like:
data ChangeSplashScreen = Keep | Delete | Set AssetKey
But then how would that translate into json? like this?:
{ ...
"splash_screen": null | {"delete"} | {"set": "key"},
...
}
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.
I mean:
"splash_screen": null | {"delete": true} | {"set": "key"},
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.
I ended up doing what Patryk suggested earlier, namely do the same thing we're already doing for the Icon (aka Logo) here.
This reverts commit a8f4d89. (different approach coming up.)
(like with `Icon`.)
6ddcf42
to
7364411
Compare
Golden tests are still failing, but it's ready for review! |
ok, this failure is also legit, fix coming up. |
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.
LGTM.
https://wearezeta.atlassian.net/browse/SQSERVICES-759
Checklist
make git-add-cassandra-schema
to update the cassandra schema documentation.changelog.d
.