Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init discover resources inside the discover component #39166

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

avatus
Copy link
Contributor

@avatus avatus commented Mar 10, 2024

Fixes: #39163

This PR will make the RESOURCES value initialized inside the component. Before, it was initialized at a global level which would get a falsy value for cfg.isEnterprise.

I checked around to see other global instances of cfg used and didn't find any (yet) but I'll still keep looking around. So far, it seems most references are held within functions which is good since none of them are called until after the app is initialized.

This PR fixes the issue above, but if any other instances of a global cfg use pop up, i'll open a separate PR with all of them

@avatus avatus requested a review from flyinghermit March 10, 2024 21:18
@github-actions github-actions bot requested review from gzdunek and kimlisa March 10, 2024 21:18
Copy link

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@avatus avatus added the no-changelog Indicates that a PR does not require a changelog entry label Mar 10, 2024
@avatus avatus removed the request for review from gzdunek March 11, 2024 01:28
Copy link
Contributor

@flyinghermit flyinghermit left a comment

Choose a reason for hiding this comment

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

Thanks.

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from kimlisa March 11, 2024 13:10
@avatus avatus added this pull request to the merge queue Mar 11, 2024
Merged via the queue into master with commit 73757d8 Mar 11, 2024
36 of 37 checks passed
@avatus avatus deleted the avatus/fix_resource_init branch March 11, 2024 14:45
github-merge-queue bot pushed a commit that referenced this pull request Mar 27, 2024
* Prevent code splitting (#38706)

This will prevent the react bundle from being code split. This means
that our entire javascript bundle will be a single file as well as our
css file. It also removes hashing from the included webassets. The reason
for this change is to allow different versioned proxies to coexist behind a
load balancer. If we remove code splitting, then the only time our bundle
will load is on initial hit, and the web client will then have the entire
bundle.

This also removes React.lazy. React.lazy wrapped components in a promise
to allow for dynamic imports during runtime. This is no longer needed.

Lastly, to clean up the default exports used by react lazy, this removes
(most) default exports for feature components. Assist and telemetry-boot
are not included in the javascript bundle

* Fix the import on the account settings page (#39015)

* Fix auth connector imports (#39019)

* Init discover resources inside the discover component (#39166)

* Use ETag headers for served javascript files (#39251)

---------

Co-authored-by: Bartosz Leper <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SAML app discover tile not showing up in enterprise build
3 participants