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

Chore: Fixes #9678: Fix API and mobile startup regressions caused by folder refactor #9679

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Jan 7, 2024

Summary

Fixes two regressions related to 7637163 (fixes #9678).

Note:

  • This pull request fixes an unreleased regression. As such, it has been labeled Chore.
  • The regression should affect the web clipper and mobile apps (and also possibly some desktop plugins). As such, an alternative pull request title could be Mobile,Clipper,Desktop: Fixes #9678: Fix regressions caused by folder refactor.

Testing

This pull request adds an automated test to verify that the API-related change works.

The mobile fix was tested on Android 7 by

  1. starting the mobile app, and
  2. syncing.

const { ErrorNotFound } = require('../utils/errors');

export default async function(request: Request, id: string = null, link: string = null) {
if (request.method === 'GET' && !id) {
if (request.query.as_tree) {
const folders = await FoldersScreenUtils.allForDisplay({ fields: requestFields(request, BaseModel.TYPE_FOLDER) });
const folders = await allForDisplay({ fields: requestFields(request, BaseModel.TYPE_FOLDER) });
Copy link
Owner

Choose a reason for hiding this comment

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

I don't know how I missed that, thanks for the fix!

@laurent22 laurent22 merged commit 94e3582 into laurent22:dev Jan 8, 2024
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.

Mobile: Fails to start with error "cannot set property dispatch of undefined"
2 participants