Main to session recording (#178)

* fix: 🐛 add model hook to host route for dynamic host catalogs (#1659)

* fix: 🐛 add model hook to host route for dynamic host catalogs

✅ Closes: ICU-8594

* refactor: 💡 remove page formatting for host route

* [COMPLIANCE] Add Copyright and License Headers (#1660)

Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alcaide Corvo <ccorvo@hashicorp.com>

* chore(deps-dev): bump webpack from 5.59.1 to 5.76.0 (#1654)

Bumps [webpack](https://github.com/webpack/webpack) from 5.59.1 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.59.1...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Randall Morey <randall@randallmorey.com>
Co-authored-by: Carlos Alcaide Corvo <ccorvo@hashicorp.com>

* Feature metadata (#1661)

* feat: 🎸 load edition from controller-metadata.json

* refactor: 💡 rename edition and add licensed features support

* chore: 🤖 support dev toggling of licensed features

* chore: 🤖 rename ent edition

* Update ui/admin/app/services/feature-edition.js

* Update ui/admin/app/instance-initializers/feature-edition.js

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>

* chore: 🤖 cleanup

* chore: 🤖 feature edition disabled in tests / fix test cases

* test: 💍 remove feature disable calls in tests

* test: 💍 fix broken tests

* fix: 🐛 fix config bug

* fix: 🐛 fix broken test due to feature flags

---------

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>

* chore: 🤖 yarn.lock update

* fix: 🐛 fix test features

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: lisbet-alvarez <107949262+lisbet-alvarez@users.noreply.github.com>
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alcaide Corvo <ccorvo@hashicorp.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
Co-authored-by: github-team-secure-boundary <hc-github-team-secure-boundary@hashicorp.com>
Co-authored-by: hc-github-team-secure-boundary <82989682+hc-github-team-secure-boundary@users.noreply.github.com>
This commit is contained in:
40 files changed
+351 -335

No files matched your search

+27 -21
View File
@@ -5,12 +5,27 @@
'use strict';
const features = require('./features');
const v8 = require('v8');
const {
defaultEdition,
featureEditions,
licensedFeatures,
} = require('./features');
const APP_NAME = process.env.APP_NAME || 'Boundary';
const API_HOST = process.env.API_HOST || '';
const clone = (obj) => v8.deserialize(v8.serialize(obj));
module.exports = function (environment) {
// Start with a fresh copy of the features config every run, since it
// could be modified by an environment.
const features = {
defaultEdition,
featureEditions: clone(featureEditions),
licensedFeatures: clone(licensedFeatures),
};
let ENV = {
modulePrefix: 'admin',
environment,
@@ -100,8 +115,7 @@ module.exports = function (environment) {
timeout: 4000,
},
selectedEdition: features.selectedEdition,
featureEditions: features.featureEditions,
features: features,
featureFlags: {},
};
@@ -127,14 +141,16 @@ module.exports = function (environment) {
};
// Default edition in development
ENV.selectedEdition = 'enterprise';
features.enableFeaturesInAllEditions(
{
// Show edition toggle in UI in development
'dev-edition-toggle': true,
},
ENV
);
ENV.features.defaultEdition = 'enterprise';
// Enable development-only features
ENV.features.featureEditions.oss['dev-edition-toggle'] = true;
ENV.features.featureEditions.enterprise['dev-edition-toggle'] = true;
ENV.features.featureEditions.hcp['dev-edition-toggle'] = true;
// Enable licensed features by default in enterprise and hcp
Object.keys(ENV.features.licensedFeatures).forEach((feature) => {
ENV.features.featureEditions.enterprise[feature] = true;
ENV.features.featureEditions.hcp[feature] = true;
});
}
if (environment === 'test') {
@@ -152,16 +168,6 @@ module.exports = function (environment) {
ENV.flashMessageDefaults.timeout = 0;
ENV.enableConfirmService = false;
/**
* Enable additional features for testing purposes.
* [TODO] Tests should be refactored such that each test case
* explicitly enables the features and/or edition that it needs.
* By default, tests should have no features enabled. This explicit
* approach ensures that test cases are easy to read and understand,
* since their feature requirements are embedded.
*/
ENV.selectedEdition = 'enterprise';
}
if (environment === 'production') {