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

Hosting byop fixes #1828

Merged
merged 3 commits into from
Jun 24, 2023
Merged

Hosting byop fixes #1828

merged 3 commits into from
Jun 24, 2023

Conversation

drunkplato
Copy link
Contributor

Description

Reviewer Checklist

  • Pipeline passes
  • Docs have been added / updated
  • Tests have been added / updated
  • Has been refactored if necessary

@vercel
Copy link

vercel bot commented Jun 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hosting-holium-com ✅ Ready (Inspect) Visit Preview Jun 24, 2023 2:19pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
holium-com ⬜️ Ignored (Inspect) Jun 24, 2023 2:19pm
join-holium-com ⬜️ Ignored (Inspect) Jun 24, 2023 2:19pm


if (!token || !serverId || !email || !provisionalShipId) return false;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This prevented all new users from uploading a pier, serverId and email were not set if you attempt onboarding in incognito mode or private browsing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch, serverId will be undefined for new users, but email should be defined after Create Account.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both are unused and I don't have email in my local storage, just going to keep what is used. token and provisionalShipId

@@ -73,7 +73,7 @@ export default function Login({ prefilledEmail, redirectAfterLogin }: Props) {
};

const onLogin = async (email: string, password: string) => {
const response = await thirdEarthApi.login(email, password);
const response = await thirdEarthApi.login(email, password, true);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not loading the CSEK, caused all claim invite users to not be able to see the Download Realm page in some cases.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good, it's this check here:

} else if (response.client_side_encryption_key) {

@@ -36,16 +36,37 @@ const HostingPresenter = () => {
const changeMaintenanceWindowModal = useToggle(false);
const ejectIdModal = useToggle(false);

const identities = useMemo(() => ships.map((ship) => ship.patp), [ships]);
const identities = useMemo(
() => ships.map((ship) => ship.patp || ship.title),
Copy link
Contributor

Choose a reason for hiding this comment

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

BYOP ships should have a patp, is this covering some case where the user gets to the account page before the BYOP ship has finished booting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. This has happened in two cases already.

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.

2 participants