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

LF contributor unmerge #2224

Merged
merged 15 commits into from
Feb 27, 2024
Merged

LF contributor unmerge #2224

merged 15 commits into from
Feb 27, 2024

Conversation

gaspergrom
Copy link
Contributor

Changes proposed ✍️

What

copilot:summary

copilot:poem

Why

How

copilot:walkthrough

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screenshots 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.

@gaspergrom gaspergrom added the Improvement Created by Linear-GitHub Sync label Feb 26, 2024
@gaspergrom gaspergrom self-assigned this Feb 26, 2024
@gaspergrom gaspergrom changed the title Improvement/lf contributor unmerge LF contributor unmerge Feb 26, 2024
static async unmerge(memberId, preview) {
const tenantId = AuthCurrentTenant.get();

const response = await authAxios.post(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you sync with Anil about which segments we should pass in the request?
Since we are not explicitly passing any, by default it will send all sub projects ids of the selected project group. Not sure that's what we want

Copy link
Collaborator

@epipav epipav Feb 27, 2024

Choose a reason for hiding this comment

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

we're not using segments on merge/unmerge bcs we already know what segments a member belongs to. If a user can see the member in current segment, they should be able to unmerge it, and we deduce the unmerged members segments from its activities that were moved
It's okay to not send the segment information to these endpoints

Copy link
Contributor

Choose a reason for hiding this comment

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

@epipav makes sense. If it's an extraction and we don't know the segments we will create the member in the same segments as the original one?

Copy link
Collaborator

@epipav epipav Feb 27, 2024

Choose a reason for hiding this comment

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

yes, we sync the member to opensearch to segments that the primary member is in. We also set the member.manuallyCreated to true for secondary member

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good

epipav and others added 12 commits February 27, 2024 12:23
…within unmerge preview (#2208)

(cherry picked from commit fa23e5b)
Co-authored-by: anilb <[email protected]>

(cherry picked from commit 878394b)
(cherry picked from commit 0c6fd0f)
(cherry picked from commit 653404b)
(cherry picked from commit 8dd2025)
(cherry picked from commit d0e3ae6)
(cherry picked from commit dc3f905)
(cherry picked from commit 3661569)
(cherry picked from commit 407ae3a)
@gaspergrom gaspergrom force-pushed the improvement/lf-contributor-unmerge branch from 7cf1eb8 to 80eddda Compare February 27, 2024 11:27
@epipav epipav merged commit 3d2928d into crowd-linux Feb 27, 2024
11 checks passed
@epipav epipav deleted the improvement/lf-contributor-unmerge branch February 27, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants