Skip to content

Conversation

@malmstein
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/1157893581871903/1171986548569356

Description:
As part of the remove of the Sticky Search Experiment we also want to make sure that if there was a job already scheduled it's properly removed from the WorkManager

This PR adds that functionality, making it easier in the future to remove old jobs.

Steps to test this PR:

  1. Install current Production apk
  2. Create a release version of this branch and update
  3. Open the app
  4. Use a db viewer to check that the old TAG CONTINUOUS_APP_USE_REQUEST_TAG is no longer present in the WorkManager

}

@Test
fun allDeprecatedWorkIsCancelledUponStart() = runBlocking<Unit> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Our tests names follow a when<condition>Then<expectedResult> naming convention. This test doesn't seem to validate what the name suggest e.g if I delete the new call to cancelAllUnnecessaryWork this test still passes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, I will modify the test to enqueue a few deprecated jobs!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

and change the name of course

@CDRussell
Copy link
Member

@malmstein, can you advise where in the DB to look for the tag name? I can't find it, even when inspecting the DB on develop so I can't verify it's gone on this branch. thanks

@malmstein malmstein merged commit 8a30a96 into develop Apr 29, 2020
@malmstein malmstein deleted the feature/david/remove_sticky_search_deprecated_jobs branch April 29, 2020 09:49
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.

3 participants