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

Fix resolving drives in search results #8045

Merged
merged 2 commits into from
Dec 1, 2022

Conversation

JammingBen
Copy link
Collaborator

@JammingBen JammingBen commented Nov 30, 2022

Description

We've fixed a bug where folder listing was not reloaded when being in a space/share root and navigating into another space/share root via search.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@JammingBen JammingBen self-assigned this Nov 30, 2022
Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

Can you think of a regression-test in jest? We could write one for the GenericSpace view that checks the call to the loader task whenever the item or space changes.

Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

💯

@sonarcloud
Copy link

sonarcloud bot commented Nov 30, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -348,6 +353,10 @@ export default defineComponent({
]),

async performLoaderTask(sameRoute: boolean, path?: string, fileId?: string | number) {
if (this.loadResourcesTask.isRunning) {
Copy link
Member

Choose a reason for hiding this comment

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

For the record: If space and item (= relative item path in that space) both changed, the loader task is called twice. This is skipping one of the task executions.

@kulmann kulmann merged commit d13e45d into stable-6.0 Dec 1, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix-resolving-drives-in-search branch December 1, 2022 14:21
@micbar micbar mentioned this pull request May 3, 2023
89 tasks
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