Skip to content

[BUG] My Discoverable Projects/Engines - No Favorites Version #645

Closed
SEMOSS/Semoss
#852
@themaherkhalil

Description

@themaherkhalil
Contributor

A clear and concise description of what the issue is.

There are no favorited (bookmarked) apps or engines that are discoverable. The FE makes the call passing in favorites=true but in reality this filter is never used by the BE and the same list of apps/engines is returned in both calls.

Image

Image

How to reproduce the issue

  1. Create an app or engine
  2. Make it discoverable
  3. Remove your access to the app or engine
  4. Go back to the proper catalog page - go into discoverable tab
  5. Favorites section / call should not be made

Activity

changed the title [-]My Discoverable Projects/Engines - No Favorites Version[/-] [+][BUG] My Discoverable Projects/Engines - No Favorites Version[/+] on Mar 2, 2025
johbaxter

johbaxter commented on Mar 4, 2025

@johbaxter
Contributor

@phkem

At the end of the day, there is no concept of Favorited Discoverable apps.

On the FE we make a Reactor Call to get Favorited Apps when switching to the discoverable tab. We shouldn't make that extra frontend call for MyDiscoverableProjects(onlyFavorites=[true]).

Image

But to also answer your question,

We should not show the ability to bookmark the app either while looking at a discoverable app

ppatel9703

ppatel9703 commented on May 8, 2025

@ppatel9703

@rameshpaulraj Pls do a investigation prior to passing it off to either fe devs

kyang4

kyang4 commented on May 14, 2025

@kyang4

For reference, please see this related ticket: SEMOSS/Semoss#701

samarthKharote

samarthKharote commented on May 16, 2025

@samarthKharote

Recreated the issue, I found
In the SEMOSS UI, users can toggle between My Apps and Discoverable tabs. Within My Apps, users have the ability to bookmark their favorite applications. The issue arises when:
-A user bookmarks one app in My Apps, leaving others unbookmarked.
-The user switches to the "Discoverable" tab.
-Upon returning to the My Apps tab, all apps appear bookmarked, not just the one initially selected.

So far, debugged the backend files which are related to this bug.
While inspecting, I found, there might be a chance of wrong query creation for PROJECTPERMISSION table where logic is putting "favoritesOnly" as "TRUE" for every project/app.
Need to conduct tests with modifying the subquery for the "favoritesOnly" part.

samarthKharote

samarthKharote commented on May 23, 2025

@samarthKharote

Deeply investigated the bug from backend side. can conclude that the bug is from backend only.
Need to modify setProjectFavorite() part from MyprojectsReactor.Class >> SecurityProjectUtils.Class files

samarthKharote

samarthKharote commented on May 23, 2025

@samarthKharote

I submitted my modification and raised a PR for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @themaherkhalil@rameshpaulraj@johbaxter@phkem@ppatel9703

    Issue actions

      [BUG] My Discoverable Projects/Engines - No Favorites Version · Issue #645 · SEMOSS/semoss-ui