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] Migrate TransactionDao calls to TransactionRepository part - 1 #3228

Merged
merged 9 commits into from
Jun 10, 2024

Conversation

rishi2062
Copy link
Contributor

Pull Request (PR) Checklist

Please check if your pull request fulfills the following requirements:

  • The PR is submitted to the main branch.
  • I've read the Contribution Guidelines and my PR doesn't break the rules.
  • I've read and understand the Developer Guidelines.
  • I confirm that I've run the code locally and everything works as expected.
  • 🎬 I've attached a screen recoding of the changes.

Tip: drag & drop the video to the PR description.

What's changed?

Describe with a few bullets what's new:

  • a
  • b
  • c

💡 Tip: Please, attach screenshots and screen recordings. It helps a lot!

Risk Factors

What may go wrong if we merge your PR?

  • a - Maybe Some db calls inconsistency due to change between toEntity(), toLegacy(), toDomain() etc
  • b

In what cases your code won't work?

  • a
  • b

Does this PR closes any GitHub Issues?

Check Ivy Wallet Issues.

Replace ISSUE_NUMBER with the number of the GitHub issue that this PR is fixing. If you've done that correctly, you'll see the issue title linked when previewing your PR description.

!Note: Do not link the PR number. Link the number/id of the GitHub Issue from issues.

Troubleshooting CI failures ❌

GitHub Actions failing? Read our CI Troubleshooting guide.

@rishi2062
Copy link
Contributor Author

Hey @ILIYANGERMANOV , some more changes are there including test, but i wanted your comments, whether my procedures are correct.
Note : I have made sure not to hinder domain layer with any legacy data type return methods, so in the ui i am changing the returns wherever it is being required.

Copy link
Collaborator

@ILIYANGERMANOV ILIYANGERMANOV left a comment

Choose a reason for hiding this comment

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

Overall looks like a step in the right direction. Left some comments that must be addressed

@rishi2062
Copy link
Contributor Author

Hi @ILIYANGERMANOV , i stuck up with one issue, in BackupUseCaseTest , in that json needs to import 117 data, but it is importing 0 and that making the unitTest failed.
potential case might be due to savMany() improper handling, i can try to bypass that run, but any other solutions?

@rishi2062
Copy link
Contributor Author

@ILIYANGERMANOV when we are using flagDelete, basically we are only changing isDeleted reference in db,
but when we are calling it delete, it is getting removed completely.
So this is what we are looking for?

@ILIYANGERMANOV
Copy link
Collaborator

@ILIYANGERMANOV when we are using flagDelete, basically we are only changing isDeleted reference in db, but when we are calling it delete, it is getting removed completely. So this is what we are looking for?

Yup, exactly 💯 We no longer have cloud sync to keep the record in DB. So let's just remove it

@rishi2062
Copy link
Contributor Author

rishi2062 commented Jun 10, 2024

@ILIYANGERMANOV when we are using flagDelete, basically we are only changing isDeleted reference in db, but when we are calling it delete, it is getting removed completely. So this is what we are looking for?

Yup, exactly 💯 We no longer have cloud sync to keep the record in DB. So let's just remove it

Cool then, i have already done the changes for this. So we can consider this as a final commit for transaction Migration, if any changes required ping me.

@ILIYANGERMANOV ILIYANGERMANOV merged commit 61eecc1 into Ivy-Apps:main Jun 10, 2024
8 checks passed
@rishi2062
Copy link
Contributor Author

Thanks @ILIYANGERMANOV , got some good explanation on why exactly we need to do some implementation in a specific way😁.

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.

Migrate TransactionDao calls to TransactionRepository
2 participants