Skip to content

Calculate number of activities for an organization correctly#1404

Merged
themarolt merged 2 commits intomainfrom
bugfix/enriching-orgs-that-have-no-activities-C-2190
Aug 31, 2023
Merged

Calculate number of activities for an organization correctly#1404
themarolt merged 2 commits intomainfrom
bugfix/enriching-orgs-that-have-no-activities-C-2190

Conversation

@themarolt
Copy link
Contributor

@themarolt themarolt commented Aug 31, 2023

Changes proposed ✍️

What

🤖 Generated by Copilot at 6a2286d

Refactored the query for finding organizations to enrich in organizationRepository.ts. Used the activities table instead of the memberActivityAggregatesMVs table for more accurate and faster results. Added a filter for contributory activities.

🤖 Generated by Copilot at 6a2286d

activities table
better for enrichment query
cutting old logic

Why

How

🤖 Generated by Copilot at 6a2286d

  • Modify the query for finding organizations to enrich using the activities table (link)

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screehshots to the PR description for relevant FE changes
  • New backend functionality has been unit-tested.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.

@themarolt themarolt added the Bug Created by Linear-GitHub Sync label Aug 31, 2023
@themarolt themarolt requested a review from skwowet August 31, 2023 08:32
@themarolt themarolt merged commit c31410f into main Aug 31, 2023
@themarolt themarolt deleted the bugfix/enriching-orgs-that-have-no-activities-C-2190 branch August 31, 2023 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants