exoplatform / app-center

**Deprecated** Add-on to manage external applications
https://github.com/Meeds-io/app-center
GNU Lesser General Public License v3.0
0 stars 1 forks source link

Feedbacks #2

Open azayati opened 4 years ago

azayati commented 4 years ago

@vsellier feedbacks:

@thomasdelhomenie feedbacks:

azayati commented 4 years ago

personally, I'm not convinced by USER_NAME what is the functional meaning of this column ?

@vsellier The functional meaning of this column is that such application id is favorite for such user name. What is the problem with the user name ?

azayati commented 4 years ago

What is the expected number of applications ? The performance will probably be not very good with searches like 'like '%' + name + '%'

@vsellier No functional limit right now for created applications, but the favorite applications per user is limited by a global setting param defined by the admin, for which query the problem of performance can occur ?

azayati commented 4 years ago

This PR fixes:

@vsellier

  • changelog-1.0.0.xml
  • The tables should be prefixed by something like AC_ or few letters allowing to identify them
  • https://github.com/exo-addons/app-center/blob/master/app-center- services/src/main/resources/db.changelogs/changelog-1.0.0.xml#L48 why 250 the usual size is 200
  • Inconsistency between the namedquery getAppByNameOrTitle and it's parameters

@thomasdelhomenie

  • The size of the URL field in the database is too short, URLs can be longer then 250 characters. (Set to 500)
  • Using "like '%...%'" in named queries on permissions can cause issues IMO, for example if several groups have the same beginning (/group1 and /group10)
  • IMO we should not retrieve the groups of the user in the DAO, but instead pass the list of the groups to the DAO and build a query with this list of groups.
vsellier commented 4 years ago

personally, I'm not convinced by USER_NAME what is the functional meaning of this column ?

@vsellier The functional meaning of this column is that such application id is favorite for such user name. What is the problem with the user name ? I thought this column is on the APPLICATION table, so I was asking why not naming it like OWNER or something like that. It this case your are right as the table name is enough to deduct the meaning

azayati commented 4 years ago

There are a lot of npm dependencies ( https://github.com/exo-addons/app-center/blob/master/app-center-webapps/src/main/frontend/package.json#L34-L55 ), most of them are probably useless or should not be used:

@thomasdelhomenie: All useless dependencies are removed, the war size is about 80Ko now