Skip to content

Remove MoneyRequestParticipantsSelector.js and copy any changes since Nov 27 into MoneyTemporaryForRefactorRequestParticipantsSelector #34617

Closed

Description

@tgolen

This is a part of #29107. You can look at that issue for more context behind the cleanup process.

Problem

The app has two redundant components:

Old Component: MoneyRequestParticipantsSelector
New Component MoneyTemporaryForRefactorRequestParticipantsSelector

Solution

Following the examples (example 1, example 2), the Old Component needs to be completely removed from the codebase

  1. Look at the history of the Old Component
  2. If there are any changes since Nov 27, 2023 which have not been added to the New Component, copy those changes
  3. Replace all uses of the Old Component with the New Component
  4. Remove all traces of Old Component
  5. Be sure to update all routes and navigation to use the new :action param (instead of being hard-coded with "create")
  6. Update any logic like isEditing to use the new action param from the route

Activity

  1. added
    Help WantedApply this label when an issue is open to proposals by contributors
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jan 16, 2024
  2. melvin-bot commented on Jan 16, 2024

    @melvin-bot

    Triggered auto assignment to @kevinksullivan (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. KrAbhas commented on Jan 16, 2024

    @KrAbhas
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Remove MoneyRequestParticpantsSelector.js and copy any changes since Nov 27 into MoneyTemporaryForRefactorRequestParticipantsSelector.js

    What is the root cause of that problem?

    Cleaning of MoneyRequestParticpantsSelector

    What changes do you think we should make in order

    We will be deleting the component here:

    This component appears in MoneyRequestParticipantsPage which will also be removed

    import MoneyRequestParticipantsSelector from './MoneyRequestParticipantsSelector';

    Looking at the changes in history we can see a quiet a few commits made after Nov 27. On further analysis, some of the changes are already in MoneyTemporaryForRefactorRequestParticipantsSelector. We will go commit by commit and add the remaining necessary logic to MoneyTemporaryForRefactorRequestParticipantsSelector

  4. njmulsqb commented on Jan 17, 2024

    @njmulsqb

    I would love to take this!

  5. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jan 17, 2024
  6. melvin-bot commented on Jan 17, 2024

    @melvin-bot

    Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

  7. melvin-bot commented on Jan 17, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (External)

  8. MahmudjonToraqulov commented on Jan 17, 2024

    @MahmudjonToraqulov
    Contributor

    I would love to take this!

  9. dummy-1111 commented on Jan 17, 2024

    @dummy-1111
    Contributor

    I would love to take this!

  10. 79 remaining items

  11. DylanDylann commented on Apr 20, 2024

    @DylanDylann
    Contributor

    @dangrous The guideline in the description isn't correct. We have a Slack thread to discuss it before.

    1. There are 2 components (It is not a page):
      - App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js
      - App/src/components/DistanceRequest/index.js (It seems we don’t have issue to handle it like MoneyRequestParticipantsSelector)
      These components are used in the old components and no longer being used in new components so we only need to remove it
  12. DylanDylann commented on Apr 23, 2024

    @DylanDylann
    Contributor

    Waiting for the response from @dangrous

  13. DylanDylann commented on Apr 23, 2024

    @DylanDylann
    Contributor

    Oh wait, It seems MoneyRequestParticipantsSelector is removed somewhere so let's close this one

  14. DylanDylann commented on Apr 24, 2024

    @DylanDylann
    Contributor

    @kevinksullivan This issue is outdated now, let's close this one

  15. dangrous commented on Apr 26, 2024

    @dangrous
    Contributor

    Yep you're right, looks like that component is gone now. However we still have the weirdly named MoneyTemporaryForRefactorRequestParticipantsSelector.js - do we know if there's a plan to change that?

  16. brunovjk commented on Apr 26, 2024

    @brunovjk
    Contributor

    @dangrous Yes we have. Pasyukevich from Callstack will migrate to TS and rename: #29107 (comment)

  17. dangrous commented on Apr 26, 2024

    @dangrous
    Contributor

    Got it, thanks! So @kevinksullivan if you agree I think we can close this, as @DylanDylann suggests

  18. melvin-bot commented on Apr 30, 2024

    @melvin-bot

    @dangrous, @kevinksullivan, @DylanDylann Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  19. kevinksullivan commented on Apr 30, 2024

    @kevinksullivan
    Contributor

    Sounds good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions