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

Integration: Save / Login functionality not as expected #1162

Conversation

create-issue-branch[bot]
Copy link
Contributor

@create-issue-branch create-issue-branch bot commented Jan 14, 2025

'Login to save' button now automatically saves after logging in.

Closes #843

@danhalson danhalson self-assigned this Jan 28, 2025
@@ -42,17 +42,26 @@ export const useProjectPersistence = ({
const accessToken = user?.access_token;
const params = { reactAppApiEndpoint, accessToken };

if (saveTriggered) {
if (saveTriggered || localStorage.getItem("awaitingSave")) {
Copy link
Member

Choose a reason for hiding this comment

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

This looks great, where is awaitingSave set?

Copy link
Contributor

Choose a reason for hiding this comment

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

it's set in standalone, when the login to save button is clicked - there's an incoming PR for that

Copy link
Member

Choose a reason for hiding this comment

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

ah roger! I shall press the happy green button of joy!

Copy link
Member

@conorriches conorriches left a comment

Choose a reason for hiding this comment

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

very nice 🙌

danhalson and others added 2 commits January 29, 2025 09:19
Test deployment to try out a potential workaround for cloudflare issue:

```
Update - We are continuing to work on a fix for native CRC32 checksum handling in R2 APIs. If you run into an issue, please see the documentation for workarounds based on the SDK that you are using: https://developers.cloudflare.com/r2/examples/aws/
Jan 22, 2025 - 16:33 UTC
Update - We are continuing to work on a fix for this issue.
Jan 17, 2025 - 11:23 UTC
Identified - AWS recently updated their SDKs to enable CRC32 checksums on multiple object operations by default. 
R2 does not currently support CRC32 checksums, and the default configurations will return header related errors such as Header 'x-amz-checksum-algorithm' with value 'CRC32' not implemented. 

Impacted users can either pin AWS SDKs to a prior version or modify the configuration to restore the prior default behavior of not checking checksums on upload. 

For more details, see the examples section of the R2 Docs for the relevant SDK: 
https://developers.cloudflare.com/r2/examples/aws/
Jan 17, 2025 - 03:20 UTC
```

---------

Co-authored-by: Conor <[email protected]>
@danhalson danhalson temporarily deployed to previews/1162/merge January 29, 2025 09:19 — with GitHub Actions Inactive
@danhalson danhalson temporarily deployed to previews/1162/merge January 29, 2025 09:20 — with GitHub Actions Inactive
@danhalson danhalson merged commit d554021 into main Jan 29, 2025
8 checks passed
@danhalson danhalson deleted the bugfix/843-Integration_Save_/_Login_functionality_not_as_expected branch January 29, 2025 10:00
@danhalson danhalson mentioned this pull request Feb 6, 2025
danhalson added a commit that referenced this pull request Feb 6, 2025
## What's Changed
* Support output tabs in pyodide by @loiswells97 in
#1157
* Downloading the instructions by @loiswells97 in
#1160
* Hack open function to write files in main thread by @loiswells97 in
#1146
* Try pinning previous ubuntu version to avoid cloudflare issue by
@danhalson in
#1178
* Integration: Save / Login functionality not as expected by
@create-issue-branch in
#1162
* HTML audio video support by @loiswells97 in
#1179
* Feat/editable instructions by @loiswells97 in
#1166
* Add remove instructions button modal by @jamiebenstead in
#1176
* fix dark mode colours by @conorriches in
#1182
* Copy change: Project steps to Project instructions by @loiswells97 in
#1183
* Fixing padding for first line of code block by @loiswells97 in
#1184
* Fix contrast on dark mode instructions code block by @loiswells97 in
#1187
* Markdown changes by @jamiebenstead in
#1188
* Remove line from demoInstructions by @jamiebenstead in
#1189
* Instructions syntax highlighting for CEfE by @loiswells97 in
#1190
* Fixing instructions state when set to an empty string by @loiswells97
in #1191
* Identify caching issue for editor-ui by @create-issue-branch in
#1186

## New Contributors
* @jamiebenstead made their first contribution in
#1176

**Full Changelog**:
v0.28.14...v0.29.0
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.

Integration: Save / Login functionality not as expected
2 participants