Skip to content

add restore functionality - #143

Open
mithereal wants to merge 62 commits into
revelrylabs:masterfrom
data-twister:master
Open

add restore functionality#143
mithereal wants to merge 62 commits into
revelrylabs:masterfrom
data-twister:master

Conversation

@mithereal

Copy link
Copy Markdown

adds the inverse functions of soft delete by setting deleted_at field to nil

@mithereal

Copy link
Copy Markdown
Author

the reasoning for writing this is bc, i cannot locate the restore function in the codebase, can you tell me which file it is located in? also the reasoning i named it soft_restore is to follow the naming schema of the codebase and to prevent code clashes from other using librarys that might have the restore function defined.

Comment thread lib/ecto/soft_delete_repo.ex Outdated
Comment thread lib/ecto/soft_delete_repo.ex Outdated

@Matsa59 Matsa59 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The code looks good.

For tests, dunno what to recommend, maybe the maintainer should take a look and suggest a new test strategy

Comment thread lib/ecto/soft_delete_migration.ex Outdated
Comment thread lib/ecto/soft_delete_repo.ex Outdated
Comment thread test/soft_delete_repo_test.exs
Comment thread .formatter.exs Outdated
mithereal and others added 2 commits February 12, 2024 12:39
Co-authored-by: Alexandre Lepretre <alexandre.lprtr@gmail.com>

@mithereal mithereal left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

should be good now i removed the index that was not necessary and cleaned up the test

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.

2 participants