Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NLMaps Web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Will
NLMaps Web
Commits
51b57b4f
Commit
51b57b4f
authored
4 years ago
by
Simon Will
Browse files
Options
Downloads
Patches
Plain Diff
Make it possible to query feedback by nl substring
parent
07f06269
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
nlmapsweb/forms/feedback.py
+1
-0
1 addition, 0 deletions
nlmapsweb/forms/feedback.py
nlmapsweb/templates/list_feedback.html
+1
-0
1 addition, 0 deletions
nlmapsweb/templates/list_feedback.html
nlmapsweb/views/feedback.py
+2
-0
2 additions, 0 deletions
nlmapsweb/views/feedback.py
with
4 additions
and
0 deletions
nlmapsweb/forms/feedback.py
+
1
−
0
View file @
51b57b4f
...
...
@@ -36,6 +36,7 @@ class FeedbackEditForm(BaseForm):
class
FeedbackListForm
(
ParsingModelForm
):
page
=
IntegerField
(
'
Page
'
,
default
=
1
)
nl_part
=
StringField
(
'
NL Substring
'
)
class
AdminFeedbackListForm
(
FeedbackListForm
):
...
...
This diff is collapsed.
Click to expand it.
nlmapsweb/templates/list_feedback.html
+
1
−
0
View file @
51b57b4f
...
...
@@ -13,6 +13,7 @@
{{ feedback_list_form.user.label }}{{ feedback_list_form.user() }}
{% endif %}
{{ feedback_list_form.model.label }}{{ feedback_list_form.model() }}
{{ feedback_list_form.nl_part.label }}{{ feedback_list_form.nl_part() }}
{{ feedback_list_form.page.label }}{{ feedback_list_form.page() }}
<input
type=
"submit"
value=
"Show Feedback"
>
</form>
...
...
This diff is collapsed.
Click to expand it.
nlmapsweb/views/feedback.py
+
2
−
0
View file @
51b57b4f
...
...
@@ -366,6 +366,8 @@ def list_feedback():
filters
=
{
'
model
'
:
model
,
'
offset
'
:
offset
,
'
limit
'
:
page_size
}
if
user_id
is
not
None
:
filters
[
'
user_id
'
]
=
user_id
if
feedback_list_form
.
nl_part
.
data
:
filters
[
'
nl_part
'
]
=
feedback_list_form
.
nl_part
.
data
response
=
mt_server
.
post
(
'
query_feedback
'
,
json
=
filters
)
response_data
=
response
.
json
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment