teamEightTO / polito-se2-23-08

Repository for the 01SQNOV - Software Engineering II course - Thesis Management project
GNU General Public License v3.0
0 stars 1 forks source link

E2E Testing (TM-2): Filters for thesis list #12

Closed RiccardoVukovic320029 closed 11 months ago

RiccardoVukovic320029 commented 12 months ago

Need for backend functions that retrieve lists of research groups, titles, supervisors and subjects in order to develop proposal filters

lorenzobn commented 12 months ago

Hello Riccardo,

Thank you for opening this issue. Can you please specify more details about what you need so we can correctly address this?

RiccardoVukovic320029 commented 12 months ago

Hi Lorenzo, in order to develop a filtering function for the thesis list, it is needed to create backend routes that retrieves:

  1. a list of all existing research groups
  2. a list of all existing supervisors
  3. a list of all existing subjects A user, pressing on one of the filter keywords in the main page's sidebar, will be able to open a menu that will show a list coherent with the selected filter and will be able to choose one of the list's element. For example: the user selects the keyword "By research group", a sidebar menu will show up containing all research groups retrieved from the database. Eventually the user will choose for example "research group A" and the thesis list will be filtered by means of this keyword.

P.S. it's still to be clarified what 'filter by title' means, since the title is most probably unique and the searchbar allows to make this type of filter way better

lorenzobn commented 11 months ago

Hello Riccardo,

The latest commit solved this issue:

1) For the research groups, you can call the endpoint /groups and it will give you all the GROUPS in the DB 2) For the supervisors, you can call the endpoint /cosupervisors and it return the list of all internal cosupervisors (since they are all teachers, they can also be supervisors) 3) I would replace subject button in the sidebar with STATUS. Since we have to only search for the THESIS_PROPOSALS fields, the status is the only one missing. No need for an additional API because the status already comes in /thesis-proposals

lorenzobn commented 11 months ago

Done with latest commit. Closing.