Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

check app env and suppress back-to link in the frontend app. #3508

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

stopfstedt
Copy link
Member

another attempt at fixing ilios/ilios#4774

this time, we check the environment for the application "name" (modulePrefix key).
note: we can't get to it using getConfig from @ember/macros, so i'm using the tried/true approach instead.

module('Unit | Controller | events', function (hooks) {
setupTest(hooks);

// TODO: Replace this with your real tests.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably delete the entire test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test stub gets generated by the ember CLI when creating a new controller. it has marginal value, perhaps we should remove all of those controller tests.

@@ -4,6 +4,7 @@ const API_VERSION = require('./api-version.js');

module.exports = function (environment /*, appConfig */) {
var ENV = {
modulePrefix: 'ilios',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is the right place this should go anymore. I dunno for sure though based on EmberCLI/pull/10049 having it here probably pushes it up the tree, I think it should go in tests/dummy/config/environment.js I may be wrong though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for catching this. this was leftover from tinkering around with env settings and shouldn't be there. removed. ✔️

this was leftover kruft from tinkering around with this.
@stopfstedt stopfstedt requested a review from jrjohnson August 22, 2023 19:49
@jrjohnson jrjohnson merged commit d3918f3 into ilios:master Aug 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants