We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This switch case (open && edgeCount) uses edge_count = vs. other cases using edge_count<=.
(open && edgeCount)
edge_count =
edge_count<=
We were previously using open = nil and using edge count = n to find groups with open member slots.
open = nil
edge count = n
When adding open = true, we now get 0 results because of the edge count equality requirement.
open = true
func ListGroups(ctx context.Context, logger *zap.Logger, db *sql.DB, name, langTag string, open *bool, edgeCount, limit int, cursorStr string) (*api.GroupList, error) { ... case open != nil && edgeCount > -1: // Filtering by open/closed and edge count. state := 0 if !*open { state = 1 } params = append(params, state, edgeCount) query = ` SELECT id, creator_id, name, description, avatar_url, state, edge_count, lang_tag, max_count, metadata, create_time, update_time FROM groups WHERE disable_time = '1970-01-01 00:00:00 UTC' AND state = $2 AND edge_count = $3`
The text was updated successfully, but these errors were encountered:
NK-631 Problem listing groups with "edge count" && "open" filters
Sorry, something went wrong.
This is currently preventing us from showing only public groups with available slots but we can try to work around this in the runtimes in some way
No branches or pull requests
This switch case
(open && edgeCount)
usesedge_count =
vs. other cases usingedge_count<=
.We were previously using
open = nil
and usingedge count = n
to find groups with open member slots.When adding
open = true
, we now get 0 results because of the edge count equality requirement.The text was updated successfully, but these errors were encountered: