Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
15b6f4b7
Unverified
Commit
15b6f4b7
authored
6 months ago
by
Matheus Barbosa Silva
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
regression: Disable marketplace apps on license removal or downgrade (#33628)
parent
e3629e06
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/meteor/ee/server/apps/orchestrator.js
+6
-0
6 additions, 0 deletions
apps/meteor/ee/server/apps/orchestrator.js
apps/meteor/ee/server/startup/apps/trialExpiration.ts
+4
-3
4 additions, 3 deletions
apps/meteor/ee/server/startup/apps/trialExpiration.ts
with
10 additions
and
3 deletions
apps/meteor/ee/server/apps/orchestrator.js
+
6
−
0
View file @
15b6f4b7
...
...
@@ -204,6 +204,12 @@ export class AppServerOrchestrator {
await
Promise
.
all
(
apps
.
map
((
app
)
=>
this
.
getNotifier
().
appUpdated
(
app
.
getID
())));
}
async
disableMarketplaceApps
()
{
const
apps
=
await
this
.
getManager
().
get
({
installationSource
:
'
marketplace
'
});
await
Promise
.
all
(
apps
.
map
((
app
)
=>
this
.
getManager
().
disable
(
app
.
getID
())));
}
async
unload
()
{
// Don't try to unload it if it's already been
// unlaoded or wasn't unloaded to start with
...
...
This diff is collapsed.
Click to expand it.
apps/meteor/ee/server/startup/apps/trialExpiration.ts
+
4
−
3
View file @
15b6f4b7
...
...
@@ -4,12 +4,13 @@ import { Meteor } from 'meteor/meteor';
import
{
Apps
}
from
'
../../apps
'
;
Meteor
.
startup
(
async
()
=>
{
const
migratePriv
ateAppsCallback
=
async
()
=>
{
const
upd
ateAppsCallback
=
async
()
=>
{
if
(
!
Apps
.
isInitialized
)
return
;
void
Apps
.
migratePrivateApps
();
void
Apps
.
disableMarketplaceApps
();
};
License
.
onInvalidateLicense
(
migratePriv
ateAppsCallback
);
License
.
onRemoveLicense
(
migratePriv
ateAppsCallback
);
License
.
onInvalidateLicense
(
upd
ateAppsCallback
);
License
.
onRemoveLicense
(
upd
ateAppsCallback
);
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment