Skip to content

Conversation

@jgw4sq
Copy link

@jgw4sq jgw4sq commented Mar 10, 2016

I created a new view so that the user can display specific documents restrained by providerupdatetime via url query.

I wrote a new test case in order to confirm that it works as expected.

url(r'^documents/status', views.status, name='status'),
url(r'^documents/(?P<source>\w+)/$', views.DocumentsFromSource.as_view(), name='source'),
url(r'^documents/(?P<source>[a-z]+)/(?P<docID>(.*))/$', views.document_detail, name='document_detail'),
url(r'^documents/from=(?P<from>\d{4}-\d{2}-\d{2})&until=(?P<until>\d{4}-\d{2}-\d{2})/$', views.DocumentsByProviderUpdatedDateTime.as_view(), name='providerupdate'),
Copy link
Member

Choose a reason for hiding this comment

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

Instead of adding a new URL route, can you add this optional query parameter to the documents/ route?

@erinspace
Copy link
Member

@jgw4sq code review pass 1 complete!

@jgw4sq jgw4sq closed this Mar 11, 2016
@jgw4sq jgw4sq deleted the feature/queryurlbyproviderupdatetime branch March 11, 2016 19:06
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