[reporting] indexed device deployments lack data

Description

deployments indexed lack some of the information available from regular deployment listing endpoint, examples

  • deployment status

  • finished time

  • list of artifact ids in the deployment

some of this information could be obtained when aggregating the response data, but that would likely not be complete, on the other hand using the aggregation endpoint to obtain that data might not be suitable in all use cases (e.g. when showing the list of deployments with pagination and sorting)

Affects versions

None

Environment

None

Activity

Show:

Fabio TranchitellaFebruary 27, 2023 at 5:21 PM

I agree

Krzysztof JaśkiewiczFebruary 27, 2023 at 10:40 AM
Edited

if I’m not wrong, according to UX design, it should be possible to sort device deployments by artifact size in the first place, and we can use reporting endpoint for that.
There is also a comment about deployments view - “Later, sorting and filtering could be added to further help the user identify deployments with issues”. My understanding was that we don’t need this for now. I’m also not sure about the use case here.
If we need some advanced sorting, filtering and maybe aggregation, we should think about indexing deployments in reporting IMO (and keeping only simply operations on mongodb).

Fabio TranchitellaFebruary 26, 2023 at 9:41 PM

PR:

Manuel ZedelFebruary 26, 2023 at 9:12 AM

to clarify the discrepancy this endpoint /deployments/search should be made consistent with the rest of the API to maybe /deployments/devices/searchas this apparently doesn’t search deployments in the sense as they are to referred to on the same level in the deployments service.

Fabio TranchitellaFebruary 26, 2023 at 4:22 AM
Edited

and , I believe there is a misunderstanding. Based on the last comment from Manuel, what he needs is sorting by total transferred data in the “GET /deployments”, which we cannot implement with reporting because we don’t index the deployments.

I created a new task for it:

Fixed

Details

Assignee

Reporter

Labels

Story Points

Priority

Days in progress

0

Backlog

yes

Zendesk Support

Checklist

Created February 21, 2023 at 6:14 PM
Updated April 8, 2023 at 3:20 AM
Resolved February 27, 2023 at 10:19 AM