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

Clean up blocks and userrequests #105

Merged
merged 4 commits into from
Jun 16, 2020
Merged

Clean up blocks and userrequests #105

merged 4 commits into from
Jun 16, 2020

Conversation

eheinrich
Copy link
Member

In preparation for turning off the request and lake shims, anything having to do with userrequests and blocks should have been removed.

@@ -2145,100 +2142,6 @@ def test_cannot_cancel_completed_rg(self, modify_mock):
self.assertEqual(Request.objects.get(pk=completed_r.id).state, 'COMPLETED')


@patch('observation_portal.common.state_changes.modify_ipp_time_from_requests')
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't remember why we kept these commented-out tests... They are testing the isDirty endpoint, which we replaced with the last_changed endpoint, which is tested elsewhere. And they also check some request state updates, but state transitions are also tested elsewhere. Let me know if you see anything that this would have been testing that I should add a test for!

Copy link
Member

Choose a reason for hiding this comment

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

pretty sure we commented them early on when the pond block stuff was removed, just to remember to cover those cases later. I don't see anything special in them now, so I think it's fine to delete

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 96.605% when pulling 95348cc on remove-shims into 539df88 on master.

Copy link
Member

@jnation3406 jnation3406 left a comment

Choose a reason for hiding this comment

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

many deleted files, I like it

@@ -2145,100 +2142,6 @@ def test_cannot_cancel_completed_rg(self, modify_mock):
self.assertEqual(Request.objects.get(pk=completed_r.id).state, 'COMPLETED')


@patch('observation_portal.common.state_changes.modify_ipp_time_from_requests')
Copy link
Member

Choose a reason for hiding this comment

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

pretty sure we commented them early on when the pond block stuff was removed, just to remember to cover those cases later. I don't see anything special in them now, so I think it's fine to delete

@eheinrich eheinrich merged commit 4fd730a into master Jun 16, 2020
@eheinrich eheinrich deleted the remove-shims branch June 16, 2020 19:27
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.

None yet

3 participants