Skip to content

coderd/database: GetProvisionerJobsByIDsWithQueuePosition should take tags into account #15843

@johnstcn

Description

@johnstcn
          We'll need to amend this to take into account matching tags. Queue position could be 1/3 for the provisioners that match, but 20/50 on a larger scale (but that's nonsensical). Do we have an issue that tracks this?

Originally posted by @mafredri in #15835 (comment)

GetProvisionerJobsByIDsWithQueuePosition currently calculates queue position regardless of tag set. We should calculate queue position separately for each tag set in this query.

Note: this gets slightly more complex when we also take into account that tag sets are equivalent regardless of ordering (e.g. {"foo":"1", "bar":"2"} is equivalent to {"bar":"2", "foo":"1"}.

Metadata

Metadata

Labels

need-backendIssues that need backend work

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy