Skip to content
New issue

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

fix: added multidevice support to query_active_history #451

Merged
merged 3 commits into from
May 29, 2023

Conversation

ErikBjare
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Patch coverage: 31.81% and project coverage change: +0.11 🎉

Comparison is base (6468b39) 24.22% compared to head (451722a) 24.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #451      +/-   ##
==========================================
+ Coverage   24.22%   24.33%   +0.11%     
==========================================
  Files          27       27              
  Lines        1540     1553      +13     
  Branches      251      256       +5     
==========================================
+ Hits          373      378       +5     
- Misses       1142     1150       +8     
  Partials       25       25              
Impacted Files Coverage Δ
src/stores/activity.ts 29.10% <0.00%> (-1.14%) ⬇️
src/queries.ts 51.30% <77.77%> (+3.51%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/queries.ts Outdated
} else {
const afkbucket: string = afkbuckets;
q = q.concat([
`not_afk = union_no_overlap(not_afk, query_bucket("${escape_doublequote(afkbucket)}");`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`not_afk = union_no_overlap(not_afk, query_bucket("${escape_doublequote(afkbucket)}");`,
`not_afk = union_no_overlap(not_afk, query_bucket("${escape_doublequote(afkbucket)}"));`,

let q = ['not_afk = [];'];
for (const afkbucket of afkbuckets) {
q = q.concat([
`not_afk_curr = query_bucket("${escape_doublequote(afkbucket)}");`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`not_afk_curr = query_bucket("${escape_doublequote(afkbucket)}");`,
`not_afk_curr = flood(query_bucket("${escape_doublequote(afkbucket)}"));`,

@ErikBjare ErikBjare merged commit 9b387d2 into master May 29, 2023
@ErikBjare ErikBjare deleted the dev/query-active-history-multidevice branch May 29, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant