This commit is contained in:
@@ -81,7 +81,7 @@ TAG GROUP DEPRECATED 2018-12-05
|
||||
If a tag is deleted it must be removed from any tag groups and if there are no other items in that tag group then the tag group must be deleted as well??
|
||||
- Or maybe is just an empty group with a warning symbol in ui
|
||||
Tag groups will become a major way to save filters for things because a lot of filtering will be by tags so this should be a solid feature.
|
||||
- RETRIEVAL / PICKLISTS: need to modify the tag picklist to optionally return TAGGROUP names as well as identify they are group so UI can feature differently
|
||||
- RETRIEVAL / LISTS: need to modify the tag list to optionally return TAGGROUP names as well as identify they are group so UI can feature differently
|
||||
|
||||
FILTERING AND SORTING BY TAG-GROUP
|
||||
- All code that filters and sorts by tag should accept a tag group as a separate type of input and dynamically build the tag filter list from the group and individual tags separately
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum pick list controller
|
||||
///
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
@@ -41,19 +41,19 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get tag picklist
|
||||
/// Get tag list
|
||||
/// </summary>
|
||||
/// <param name="query">The query to filter the returned list by</param>
|
||||
/// <returns>Filtered list (maximum 25 items are returned for any query)</returns>
|
||||
[HttpGet("picklist")]
|
||||
public async Task<IActionResult> GetPickList([FromQuery]string query)
|
||||
[HttpGet("list")]
|
||||
public async Task<IActionResult> GetList([FromQuery]string query)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
{
|
||||
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
|
||||
}
|
||||
|
||||
return Ok(ApiOkResponse.Response(await TagUtil.PickListFilteredAsync(ct, query), true));
|
||||
return Ok(ApiOkResponse.Response(await TagUtil.TagListFilteredAsync(ct, query), true));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace AyaNova.Biz
|
||||
|
||||
//Pick list for driving pick list route
|
||||
//going with contains for now as I think it's more useful in the long run and still captures startswith intent by user
|
||||
public static async Task<List<string>> PickListFilteredAsync(AyContext ct, string q)
|
||||
public static async Task<List<string>> TagListFilteredAsync(AyContext ct, string q)
|
||||
{
|
||||
//This path is intended for internal use and accepts that there may not be a filter specified
|
||||
//however the client will always require a filter to display a tag list for choosing from
|
||||
|
||||
Reference in New Issue
Block a user