Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Jira Legacy
serverSystem JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId2207a759-5bc8-39c5-9cd2-aa9ccc1f65dd
keySB-1053110552

Overview

As part of the linked story - we need to add the new role to set of existing roles for Data dashboards.

Solution

Approach 1

We will add the following record to existing Roles table:

(id, name, rolegroupid, status) → ( "REPORT_ADMIN", "Report Admin", "REPORT_ADMIN", 1)

We will also have to add the migration file for up-gradation purposes.

Pros:

  • Easy to maintain
  • Can store complex definitions or extend in future if required

Approach 2: Hard-code into System Settings.

Cons:

...

ticket SB-8173 - user search result is being enhanced, and following new filters will get added:

User Type/ Medium/ Class/ Subject

District/ Block/ School/ Role

This will require us to enhance the searching capability in learning platform to support - startsWith operator, so that locations search can allow auto-complete feature.

Proposed Solution

We will be adding support for operators startsWith and endsWith so that API user can create such filters for searching.

User will have to specify query as follows:


Code Block
languagejs
titleQuery Snippet
POST   /v1/location/search

{
 "filters":{
   "type: : "block",
   "startsWith" : {"name": "KA"}
  }
}
   

Based on above query, first matching page of records will be returned.

Currently, there seems to be some bug/issue due to which starts_with, or ends_with filter are not working correctly.