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

[FEATURE REQUEST] Select correct user and navigate to the correct file when opening via deep link #4212

Merged
merged 16 commits into from
Dec 7, 2023

Conversation

manuelplazaspalacio
Copy link
Contributor

@manuelplazaspalacio manuelplazaspalacio commented Nov 14, 2023

@manuelplazaspalacio manuelplazaspalacio self-assigned this Nov 14, 2023
@manuelplazaspalacio manuelplazaspalacio force-pushed the feature/select_user_navigate_file_deep_link branch 2 times, most recently from b55500a to a1fed5b Compare November 14, 2023 16:28
@manuelplazaspalacio manuelplazaspalacio marked this pull request as ready for review November 14, 2023 16:31
@manuelplazaspalacio manuelplazaspalacio force-pushed the feature/select_user_navigate_file_deep_link branch from a1fed5b to b654d80 Compare November 14, 2023 16:35
@JuancaG05 JuancaG05 force-pushed the feature/select_user_navigate_file_deep_link branch 3 times, most recently from 4fe1f64 to 8f811bf Compare November 22, 2023 14:10
@JuancaG05 JuancaG05 removed their request for review November 22, 2023 14:15
@JuancaG05 JuancaG05 force-pushed the feature/select_user_navigate_file_deep_link branch 2 times, most recently from 42a241e to 38be4db Compare November 22, 2023 15:49
Copy link
Contributor

@jabarros jabarros left a comment

Choose a reason for hiding this comment

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

LGTM

@jesmrec
Copy link
Collaborator

jesmrec commented Nov 27, 2023

Starting QA...

@jesmrec
Copy link
Collaborator

jesmrec commented Nov 27, 2023

(1) [FIXED]

Open files in root of oC10 does not work for me. Tested with two different servers, getting Unknown error or The user doesn't have access to the file

Files pointed are stored in the root folder of oC10 account (that means, already discovered) and they are already downloaded.

Screen_recording_20231127_124340.mp4

Pixel 2 Android 11
c3bb396b5

@jesmrec
Copy link
Collaborator

jesmrec commented Nov 27, 2023

(2) [WONT FIX]

When there are some accounts in the device, the way to check which account is the pointed file in, is checking whether the file id exists in an account.

But, is posible that two accounts on the device have a file with the same id (likely in oC10 that is numerical) . In that case, link is not correctly solved.

Pixel 2 Android 11
c3bb396b5

@michaelstingl
Copy link
Contributor

(2)

But, is posible that two accounts on the device have a file with the same id (likely in oC10 that is numerical) . In that case, link is not correctly solved.

Coordinate with iOS team, then maybe document behaviour.

@JuancaG05
Copy link
Collaborator

@jesmrec (1) should be fixed, (2) won't be fixed now, and it also works now for servers that include /index.php in their URL. We use now the meta endpoint (/remote.php/dav/meta/) for oC10 as well.

@JuancaG05 JuancaG05 force-pushed the feature/select_user_navigate_file_deep_link branch from b5463a1 to 41dca9d Compare November 28, 2023 16:36
@JuancaG05 JuancaG05 force-pushed the feature/select_user_navigate_file_deep_link branch from 41dca9d to 642aa62 Compare November 30, 2023 12:15
@jesmrec
Copy link
Collaborator

jesmrec commented Dec 5, 2023

(3)

Behaviour against lack of connection is not correct:

  • If file is discovered and not downloaded, opening the link should show the Details view, no matter if the file is previewable or not (same as clicking directly the file)
  • If the file is downloaded, lack of connection does not have to avoid opening it.
  • If a folder is discovered, it should show the content

Lack of connection should affect only if the item has not been discovered yet, or if it is not downloaded showing the Details view.

@jesmrec
Copy link
Collaborator

jesmrec commented Dec 5, 2023

(4)

Current iteration is not working with links against shared items (mountpoint drives). Just against personal and project drives.

@michaelstingl is this OK ftm, or is also required for 4.2 (beta.1 or official)?

@michaelstingl
Copy link
Contributor

@michaelstingl is this OK ftm, or is also required for 4.2 (beta.1 or official)?

Okay as "known limitation" for the beta1 I'd say 👍

@jesmrec jesmrec requested a review from Aitorbp December 7, 2023 07:45
@jesmrec
Copy link
Collaborator

jesmrec commented Dec 7, 2023

(3) and (4) will be addressed in different issues, so this is approved with restrictions:

  • Behaviour without connection is not totally correct
  • Links over shared items are not handled

@jesmrec jesmrec merged commit 0d66997 into master Dec 7, 2023
2 checks passed
@jesmrec jesmrec deleted the feature/select_user_navigate_file_deep_link branch December 7, 2023 07:50
Aitorbp pushed a commit that referenced this pull request Feb 5, 2024
…ile_deep_link

[FEATURE REQUEST] Select correct user and navigate to the correct file when opening via deep link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Select correct user and navigate to the correct file when opening via deep link
6 participants