-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2721 from GSA-TTS/main
- Loading branch information
Showing
24 changed files
with
230 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Record Deployment And Add New Relic Monitor | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- prod | ||
tags: | ||
- v1.* | ||
|
||
jobs: | ||
newrelic: | ||
runs-on: ubuntu-latest | ||
name: New Relic Record Deployment | ||
steps: | ||
# This step builds a var with the release tag value to use later | ||
- name: Set Release Version from Tag | ||
run: echo "RELEASE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV | ||
# This step creates a new Change Tracking Marker | ||
- name: Add New Relic Application Deployment Marker | ||
uses: newrelic/[email protected] | ||
with: | ||
apiKey: ${{ secrets.NEW_RELIC_API_KEY }} | ||
guid: ${{ secrets.NEW_RELIC_DEPLOYMENT_ENTITY_GUID }} | ||
version: "${{ env.RELEASE_VERSION }}" | ||
user: "${{ github.actor }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
from .home import Home | ||
from .no_robots import no_robots | ||
from .submission_progress_view import ( # noqa | ||
SubmissionProgressView, | ||
submission_progress_check, | ||
) | ||
from .tribal_data_consent import TribalDataConsent | ||
|
||
from .upload_report_view import UploadReportView | ||
|
||
from .unlock_after_certification import UnlockAfterCertificationView | ||
|
||
# In case we want to iterate through all the views for some reason: | ||
views = [ | ||
Home, | ||
SubmissionProgressView, | ||
TribalDataConsent, | ||
UnlockAfterCertificationView, | ||
UploadReportView, | ||
no_robots, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,21 @@ | ||
from .models import Posts | ||
from django.views import generic | ||
from django.shortcuts import render, redirect | ||
from django.urls import reverse | ||
from django.http import HttpResponse | ||
|
||
|
||
# class based views for posts | ||
class Home(generic.View): | ||
""" | ||
This is for the root path: / | ||
It will return the home template if not authenticated and the audit table if | ||
authenticated. | ||
""" | ||
|
||
def get(self, request, *args, **kwargs): | ||
if request.user.is_authenticated: | ||
url = reverse("audit:MySubmissions") | ||
return redirect(url) | ||
template_name = "home.html" | ||
extra_context = {} | ||
return render(request, template_name, extra_context) | ||
|
||
|
||
# class based view for each post | ||
class postdetail(generic.DetailView): | ||
"""Basic details class""" | ||
|
||
model = Posts | ||
template_name = "post.html" | ||
|
||
|
||
# robots.txt | ||
def NoRobots(context): | ||
content = "User-agent: *\nDisallow: /" | ||
return HttpResponse(content, content_type="text/plain") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from django.http import HttpResponse | ||
|
||
|
||
def no_robots(_context): | ||
""" | ||
Return Disallow for * | ||
""" | ||
content = "User-agent: *\nDisallow: /" | ||
return HttpResponse(content, content_type="text/plain") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,7 +120,6 @@ | |
"api", | ||
"users", | ||
"report_submission", | ||
"cms", | ||
# "data_distro", | ||
"dissemination", | ||
"support", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.