Skip to content

Commit 01912ba

Browse files
chore: mount project-level context API unconditionally (#11258)
The mounting was originally wrapped in a flag check, but this means that the flag has to be enabled at startup for the routes to get mounted. This, in turn, means that if you enable the flag after startup, the Ui will start trying to call the project-level API, but not get any results because the routes are not mounted. The API is still marked as beta, so this can be rolled back if we want to.
1 parent adf9f2b commit 01912ba

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/lib/features/project/project-controller.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,10 @@ export default class ProjectController extends Controller {
211211
this.use('/', new ProjectStatusController(config, services).router);
212212
this.use('/', new FeatureLifecycleController(config, services).router);
213213
this.use('/', new FeatureLinkController(config, services).router);
214-
215-
if (this.flagResolver.isEnabled('projectContextFields')) {
216-
this.use(
217-
'/',
218-
new ContextController(config, services, 'project').router,
219-
);
220-
}
214+
this.use(
215+
'/',
216+
new ContextController(config, services, 'project').router,
217+
);
221218
}
222219

223220
async getProjects(

0 commit comments

Comments
 (0)