aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md33
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.md34
-rw-r--r--.github/ISSUE_TEMPLATE/user_story.md16
-rw-r--r--.github/PULL_REQUEST_TEMPLATE.md11
-rw-r--r--wqflask/utility/redis_tools.py2
-rw-r--r--wqflask/wqflask/templates/new_security/not_authenticated.html20
6 files changed, 105 insertions, 11 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 00000000..789d6a57
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,33 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: '[Bug] Bug Title'
+labels: ''
+assignees: ''
+
+---
+
+**Describe the bug**
+
+A clear and concise description of what the bug is.
+
+**To Reproduce**
+
+Steps to reproduce the behavior
+
+**Expected behavior**
+
+A clear and concise description of what you expected to happen.
+
+**Screenshots**
+
+If applicable, add screenshots to help explain your problem.
+
+**Environment setup (please complete the following information):**
+
+- OS: [e.g. Linux]
+- Racket Version [e.g. v7.6]
+
+**Additional context**
+
+Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 00000000..254754c6
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,34 @@
+---
+name: Feature request
+about: Suggest a new feature for this project(Very Specific)
+title: '[Feature] My-cool-feature'
+labels: ''
+assignees: ''
+
+---
+
+## Is your feature request related to a problem? Please describe.
+
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+## Describe the solution you'd like
+
+A clear and concise description of what you want to happen.
+
+## Describe alternatives you've considered
+
+A clear and concise description of any alternative solutions or features you've considered.
+
+## User Stories (optional)
+
+As a _[role or persona]_, I want _[goal/ need]_ so that _[why]_
+
+**Feature:** _[Brief description of feature]_
+
+_[Any additional descriptions on feature]_
+
+**Scenario:** Please use _[Gherkin](https://cucumber.io/docs/gherkin/reference/)_ here
+
+## Additional context
+
+Add any other context or screenshots about the feature request here.
diff --git a/.github/ISSUE_TEMPLATE/user_story.md b/.github/ISSUE_TEMPLATE/user_story.md
new file mode 100644
index 00000000..2682fc98
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/user_story.md
@@ -0,0 +1,16 @@
+---
+name: User Story
+about: Suggest an idea for this project
+title: ['Feature] My-cool-new-feature'
+labels: ''
+assignees: ''
+
+---
+
+As a _[role or persona]_, I want _[goal/ need]_ so that _[why]_
+
+**Feature:** _[Brief description of feature]_
+
+_[Any additional descriptions on feature]_
+
+**Scenario:** Please use _[Gherkin](https://cucumber.io/docs/gherkin/reference/)_ here
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 00000000..223e24ef
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,11 @@
+#### Description
+
+#### How should this be tested?
+
+#### Any background context you want to provide?
+
+#### What are the relevant pivotal tracker stories?
+
+#### Screenshots (if appropriate)
+
+#### Questions
diff --git a/wqflask/utility/redis_tools.py b/wqflask/utility/redis_tools.py
index 1377a564..81ba04ea 100644
--- a/wqflask/utility/redis_tools.py
+++ b/wqflask/utility/redis_tools.py
@@ -288,7 +288,7 @@ def add_resource(resource_info, update=True):
else:
resource_id = hmac.hmac_creation('{}:{}'.format(str(resource_info['type']), str(resource_info['data']['dataset'])))
- if not Redis.hexists("resources", resource_id):
+ if update or not Redis.hexists("resources", resource_id):
Redis.hset("resources", resource_id, json.dumps(resource_info))
return resource_info
diff --git a/wqflask/wqflask/templates/new_security/not_authenticated.html b/wqflask/wqflask/templates/new_security/not_authenticated.html
index 7d0d3060..ea688346 100644
--- a/wqflask/wqflask/templates/new_security/not_authenticated.html
+++ b/wqflask/wqflask/templates/new_security/not_authenticated.html
@@ -1,11 +1,11 @@
-{% extends "base.html" %}
-{% block title %}Authentication Needed{% endblock %}
-{% block content %}
- <div class="container">
- <div class="page-header">
- <h3>You lack the permissions to view this data.</h3>
- </div>
- <p>Please contact the data's owner or GN administrators if you believe you should have access to this data.</p>
- </div>
-
+{% extends "base.html" %}
+{% block title %}Authentication Needed{% endblock %}
+{% block content %}
+ <div class="container">
+ <div class="page-header">
+ <h3>You lack the permissions to view these data.</h3>
+ </div>
+ <p>Please contact the data's owner or GN administrators if you believe you should have access to these data.</p>
+ </div>
+
{% endblock %} \ No newline at end of file