Skip to content

Add destroyed column to BookmarkLocation table (##3729) #3774

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

Merged
merged 2 commits into from
May 27, 2020

Conversation

gvaibhav1734
Copy link
Contributor

Description (required)
Fixes #3729

What changes did you make and why?

  1. Database version changed from 12 to 13
  2. Migration to add column location_destroyed to BookmarkLocation table
  3. Updated Tests and Dao to reflect the new column

Tests performed (required)
Tested {prodDebug, betaDebug} on {Pixel 2 emulator} with API level {28}.
Checked for successful database migration (on emulator) as well.

Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

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

Could you please add tests to make sure this change works as expected?

@codecov-commenter
Copy link

codecov-commenter commented May 26, 2020

Codecov Report

Merging #3774 into master will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master   #3774   +/-   ##
========================================
  Coverage      7.01%   7.02%           
  Complexity      319     319           
========================================
  Files           290     290           
  Lines         12614   12604   -10     
  Branches       1007    1003    -4     
========================================
  Hits            885     885           
+ Misses        11661   11651   -10     
  Partials         68      68           
Impacted Files Coverage Δ Complexity Δ
...mons/bookmarks/locations/BookmarkLocationsDao.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...in/java/fr/free/nrw/commons/data/DBOpenHelper.java 0.00% <ø> (ø) 0.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df76aef...f5e0054. Read the comment docs.

Copy link
Collaborator

@ashishkumar468 ashishkumar468 left a comment

Choose a reason for hiding this comment

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

LGTM

@macgills
Copy link
Contributor

@ashishkumar468 are there any further tickets for Room migration? It isn't very beneficial to the project to keep maintaining these unwieldy classes

@ashishkumar468
Copy link
Collaborator

@macgills Not that I know of, this should be it :)

@macgills
Copy link
Contributor

@ashishkumar468 I'll create a ticket for converting each remaining ContentProvider so?

@ashishkumar468
Copy link
Collaborator

Yes that would be great, thanks :)

@macgills macgills merged commit 82d662c into commons-app:master May 27, 2020
@gvaibhav1734 gvaibhav1734 deleted the db_add_destroyed branch May 27, 2020 17:26
ashishkumar468 pushed a commit to ashishkumar468/apps-android-commons that referenced this pull request Oct 10, 2020
…ommons-app#3774)

* Add destroyed column to BookmarkLocation table (#commons-app#3729)

* switch with fall through for migrations
ashishkumar468 pushed a commit to ashishkumar468/apps-android-commons that referenced this pull request Oct 10, 2020
…ommons-app#3774)

* Add destroyed column to BookmarkLocation table (#commons-app#3729)

* switch with fall through for migrations
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.

Update bookmarkLocationDao to include "destroyed" info.
4 participants