Skip to content

Commit

Permalink
Clean TeamAccess notification usage
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinovega committed Dec 13, 2024
1 parent 4dfdd46 commit f312d7b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion daikoku/app/jobs/QueueJob.scala
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ class QueueJob(
Json.obj(
"$in" -> JsArray(
Seq(
"TeamAccess",
"TeamInvitation",
"ApiSubscription",
"ApiSubscriptionAccept",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,6 @@ export function SimpleNotification(props: ISimpleNotificationProps) {
title={translate('Ask access to API')}
/>
);
case 'TeamAccess':
return (
<i
className="fas fa-users"
style={{ marginRight: 5 }}
title={translate('Ask to join a team')}
/>
);
case 'TransferApiOwnership':
return (
<i
Expand Down Expand Up @@ -421,7 +413,6 @@ export function SimpleNotification(props: ISimpleNotificationProps) {
switch (action.__typename) {
case 'ApiAccess':
return `${sender.name}/${props.notification.action.team?.name ?? translate("Unknown team") }`;
case 'TeamAccess':
case 'NewPostPublished':
case 'NewIssueOpen':
case 'NewCommentOnIssue':
Expand Down Expand Up @@ -477,11 +468,6 @@ export function SimpleNotification(props: ISimpleNotificationProps) {
Request access to {(infos as any).api.name}
</Translation>
</div>)}
{notification.action.__typename === 'TeamAccess' && (<div>
<Translation i18nkey="notif.membership.team">
membership request to your team
</Translation>
</div>)}
{notification.action.__typename === 'TransferApiOwnership' && (<div>
{`request to transfer the ownership of `}
<strong>{(infos as any).api.name}</strong>
Expand Down
6 changes: 0 additions & 6 deletions daikoku/javascript/src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1665,12 +1665,6 @@ export const graphql = {
name
}
}
... on TeamAccess {
team {
_id
name
}
}
... on TeamInvitation {
team {
_id
Expand Down

0 comments on commit f312d7b

Please sign in to comment.