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

Test linode power #3

Merged
merged 2 commits into from
May 16, 2016
Merged

Test linode power #3

merged 2 commits into from
May 16, 2016

Conversation

na3d
Copy link
Contributor

@na3d na3d commented May 16, 2016

Sorry, GitHub glitch when switching to public.

@eatonphil
Copy link
Contributor

Actually, this is fine. As long as this works, I'm fine with it. I'll submit another PR cleaning things up. Ready to merge?

@ddevault ddevault merged commit 1c814ab into linode:master May 16, 2016
alioso added a commit that referenced this pull request Mar 1, 2019
johnwcallahan referenced this pull request in johnwcallahan/manager May 16, 2019
App.tsx fetches `profile`, which is now used to determine if OBJ is enabled. We used to request buckets and clusters on initial App load, but now we need to wait for the profile response.

I could have:
1) Implemented getProfile().then(() => getEverythingElse()) sort of logic.
2) Added CDU logic to App.tsx to check if profile has been loaded, THEN maybe do OBJ requests.
3) Move OBJ requests to ObjectStorageLanding.

I opted for #3, because the first two options resulted in a performance hit for all users.

We could move these requests back to App.tsx once OBJ is generally available.
johnwcallahan added a commit that referenced this pull request May 22, 2019
…ed. (#4916)

* Use /profile to determine isObjectStorageEnabled

Previously, OBJ was enabled per environment, set by a variable in .env.

Now, we ALSO check the response on /profile, which may return `beta_programs: ["Object Storage EAP"]`. If a user is enrolled in the Object Storage EAP beta program, we enable OBJ, even if it's globally disabled for the environment.

This allows us to enable OBJ per-customer in a production environment.

* Use fuzzier string matching (review feedback)

* Update CDU logic in PrimaryNav (review feedback)

Check to see if `profile` has been updated, because profile.beta_programs could have changed, which means that we might need to show different menu items.

Also check if the account is managed for the same reason.

* Move OBJ requests to OBJ Landing instead of App

App.tsx fetches `profile`, which is now used to determine if OBJ is enabled. We used to request buckets and clusters on initial App load, but now we need to wait for the profile response.

I could have:
1) Implemented getProfile().then(() => getEverythingElse()) sort of logic.
2) Added CDU logic to App.tsx to check if profile has been loaded, THEN maybe do OBJ requests.
3) Move OBJ requests to ObjectStorageLanding.

I opted for #3, because the first two options resulted in a performance hit for all users.

We could move these requests back to App.tsx once OBJ is generally available.

* Dispatch requestAccount() on App load

* Add Linode.AccountCapability type

This is currently only returned from the beta API, so it is not yet included on the Account interface.

* Use account.capabilities vs. profile.beta_programs

* Add missing PrimaryNav test

* Update accountCapabilities tests

* Fix comment

* Add loading and errors states

We show a loading state if we don’t have a response from /account yet, otherwise there would be a brief 404 while /account loads if you go to /object-storage/buckets directly.

We also handle the request to /account resulting in an error.

* Use React.FC instead of StatelessComponent

* Add LandingLoading component

This component accepts props that control delay of rendering the component. It could potentially be used for everywhere we display <CircleProgress /> on a Landing page.

* Use <LandingLoading /> and simplify Error state
jstamis-linode added a commit that referenced this pull request Dec 17, 2019
acourdavault pushed a commit that referenced this pull request Feb 21, 2020
santoshp210-akamai referenced this pull request in santoshp210-akamai/manager Feb 13, 2024
bnussman-akamai added a commit that referenced this pull request Aug 8, 2024
…noreDeprecations` Typescript Options (#10755)

* save changes #1

* save changes #2

* save changes #3

* save changes #4

* save changes #5

* save changes #6

* save changes #7

* save changes #8

* fix image select

* save changes #9

* save changes #10

* last issue is filtering

* fix unit test by fixing button types

* finally resolved all tsc errors

* Added changeset: Remove `suppressImplicitAnyIndexErrors` and `ignoreDeprecations` Typescript Options

* fix cypress feature flag util hopefully

* another attemnpt to fix cypress feature flag util function

* make image select close onSelect to match previous behavior

* feedback @jaalah-akamai

---------

Co-authored-by: Banks Nussman <banks@nussman.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants