Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented May 14, 2025

What do these changes do?

Reported by @mguidon

Using the folder content viewer (right side of the Data Browser), was not always working, and was requesting more files than required. This PR fixes it.

DataBrowsing

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this May 14, 2025
@odeimaiz odeimaiz added this to the Bazinga! milestone May 14, 2025
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels May 14, 2025
@odeimaiz odeimaiz marked this pull request as ready for review May 14, 2025 08:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses a bug in the Data Browsing functionality by ensuring that only the necessary files are requested when browsing folders. Key changes include:

  • Refactoring duplicated folder-opening logic into a new __openPath helper method.
  • Updating event listeners in TreeFolderView.js to use the new __openPath method for a consistent code path.
  • Removing the outdated osparc/dashboard/FoldersTree.js file that is no longer needed.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
services/static-webserver/client/source/class/osparc/file/TreeFolderView.js Introduces the __openPath helper method to centralize folder-opening logic and streamline event handlers.
services/static-webserver/client/source/class/osparc/dashboard/FoldersTree.js Removes the redundant FoldersTree implementation, simplifying folder management.

Copy link
Member

@mguidon mguidon left a comment

Choose a reason for hiding this comment

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

Thanks

@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label May 14, 2025
@odeimaiz
Copy link
Member Author

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented May 14, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 306fe84

@sonarqubecloud
Copy link

@mergify mergify bot merged commit 306fe84 into ITISFoundation:master May 14, 2025
59 checks passed
@odeimaiz odeimaiz deleted the fix/data-browser branch May 14, 2025 09:09
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 6, 2025
92 tasks
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:frontend issue affecting the front-end (area group) bug buggy, it does not work as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants