-
Notifications
You must be signed in to change notification settings - Fork 2
Remove unused or rarely used features #221
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
Open
jpmckinney
wants to merge
49
commits into
main
Choose a base branch
from
no-ocds-show
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
3e20297
chore(refactor): Eliminate cove_ocds.lib package. first_render is not…
jpmckinney 93b3440
build: Upgrade libcoveocds
jpmckinney 59e1d60
feat: Remove OCDS Show
jpmckinney eb21e2e
feat: Remove release and record tables
jpmckinney 48bc988
feat: Remove Key Field Information
jpmckinney 8c3a343
chore(content): Remove "More Information" and "User Tracking" blocks
jpmckinney 054da03
feat: Remove conversion to CSV and Excel
jpmckinney e058861
Merge branch 'main' into no-ocds-show
jpmckinney a3369bf
feat: Remove version switching. Always check against the latest versi…
jpmckinney fc09c99
chore: Add bootstrap files directly
jpmckinney f54a46f
chore: Add font files directly
jpmckinney 90e5bde
feat: Merge the used parts of lib-cove-web with some refactoring
jpmckinney af76d4b
fix: Make source_url required (regression from making it blank but no…
jpmckinney da62f32
fix: Don't show publisher name if name not present
jpmckinney 9ad2e16
feat: Remove unneeded model fields and methods
jpmckinney b7638f5
test: Remove footer tests
jpmckinney 87566e0
fix: Don't delete the same files repetitively and forever
jpmckinney d915fb4
build: Add werkzeug
jpmckinney 8b2423b
docs: Add Security comments (SSRF)
jpmckinney 8c8da15
build: Add requests. Add migration.
jpmckinney 41a1f4f
build: Upgrade ocdsextensionregistry
jpmckinney f884750
fix: Fix conditions for tabular files. Remove unnecessary filters, al…
jpmckinney 845bbe8
i18n: Run python manage.py makemessages -a
jpmckinney 39e0abd
i18n: Fix translated strings that are partial sentences, and fix subs…
jpmckinney 46ced91
i18n: Remove deleted translations
jpmckinney 264a2d4
chore: Fix blocktrans syntax from previous commits
jpmckinney 693a573
i18n: Fix translated strings that are broken sentences
jpmckinney d350416
chore: Skip sorting keys
jpmckinney 6cbfacd
chore: Make modal sample size easier to configure
jpmckinney f05d9d3
chore: common_error_types is always empty for OCDS
jpmckinney 19364e2
chore: Remove curly quotes
jpmckinney be217ba
chore: Fix Docker lettercase warning
jpmckinney 1e586b8
ci: Reuse workflow for automerge
jpmckinney c7d459e
ci: Reuse workflow for i18n
jpmckinney 4b8bcd7
ci: Reuse workflow for docker
jpmckinney cbfca5c
ci: Reuse workflow for lint
jpmckinney 6910617
Build
jpmckinney ae2dfb0
ci(lint): Add PAT
jpmckinney 0b7dc68
Merge branch 'main' into no-ocds-show
jpmckinney 7ae3c0f
test: Use spaces instead of tabs in fixtures
jpmckinney 75b3e76
chore: Update settings to handbook template
jpmckinney 1760f89
feat: Add sort filter, as values are no longer guaranteed to be sorte…
jpmckinney f79d9b7
ci: Pin coveralls action
jpmckinney 850534d
Merge branch 'main' into no-ocds-show-merge
jpmckinney 64dd2b3
test: Remove trailing whitespace from fixtures
jpmckinney 4eeeab2
ci: Add permissions to workflows
jpmckinney 6a71d0e
Merge branch 'main' into no-ocds-show
jpmckinney 796d1a9
build: Upgrade ocdsextensionregistry
jpmckinney d897661
chore: Use new ruff-check hook id
jpmckinney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,35 +1,8 @@ | ||
# The pull_request_target workflow trigger is dangerous. Do not add unrelated logic to this workflow. | ||
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target | ||
name: Auto-merge | ||
on: pull_request_target | ||
permissions: | ||
pull-requests: write # to approve the PR | ||
contents: write # to merge the PR | ||
jobs: | ||
dependabot: | ||
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: dependabot-metadata | ||
uses: dependabot/fetch-metadata@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' || steps.dependabot-metadata.outputs.package-ecosystem == 'github_actions' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh pr review --approve ${{ github.event.pull_request.html_url }} | ||
- if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' || steps.dependabot-metadata.outputs.package-ecosystem == 'github_actions' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }} | ||
precommit: | ||
if: ${{ github.event.pull_request.user.login == 'pre-commit-ci[bot]' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh pr review --approve ${{ github.event.pull_request.html_url }} | ||
- env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }} | ||
automerge: | ||
uses: open-contracting/.github/.github/workflows/automerge.yml@main | ||
permissions: | ||
pull-requests: write | ||
contents: write |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,4 +1,4 @@ | ||
|
||
The DRT is a web application that allows you to review Open Contracting data, validate it against the Open Contracting Data Standard, and review it for errors or places for improvement. You can also use it to convert data between JSON and Excel spreadsheet formats. | ||
The DRT is a web application that allows you to review Open Contracting data, validate it against the Open Contracting Data Standard, and review it for errors or places for improvement. | ||
|
||
Docs about running locally etc. at https://ocds-data-review-tool.readthedocs.io/en/latest/ |
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,12 +1,12 @@ | ||
from cove.urls import ( | ||
handler500, # noqa: F401 | ||
urlpatterns, | ||
) | ||
from django.conf import settings | ||
from django.conf.urls.static import static | ||
from django.urls import re_path | ||
from django.urls import include, re_path | ||
|
||
import cove_ocds.views | ||
|
||
urlpatterns += [re_path(r"^data/(.+)$", cove_ocds.views.explore_ocds, name="explore")] | ||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | ||
urlpatterns = [ | ||
re_path(r"^$", cove_ocds.views.data_input, name="index"), | ||
re_path(r"^data/(.+)$", cove_ocds.views.explore_ocds, name="explore"), | ||
re_path(r"^i18n/", include("django.conf.urls.i18n")), | ||
*static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT), | ||
] |
This file contains hidden or 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,14 @@ | ||
from http import HTTPStatus | ||
|
||
|
||
class DataReviewToolError(Exception): | ||
"""Base class for exceptions from within this module.""" | ||
|
||
|
||
class InputError(DataReviewToolError): | ||
"""Raised if the input data is irretriavable or unprocessabe.""" | ||
|
||
def __init__(self, message="", heading="", status=HTTPStatus.OK): | ||
self.message = message | ||
self.heading = heading | ||
self.status = status |
This file contains hidden or 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,23 @@ | ||
from django import forms | ||
from django.utils.translation import gettext_lazy as _ | ||
|
||
from cove_ocds import models | ||
|
||
|
||
class UploadForm(forms.ModelForm): | ||
class Meta: | ||
model = models.SuppliedData | ||
fields = ["original_file"] | ||
labels = {"original_file": _("Upload a file (.json, .xlsx, .ods, .csv)")} | ||
|
||
|
||
class UrlForm(forms.ModelForm): | ||
source_url = forms.URLField(required=True, label=_("Supply a URL")) | ||
|
||
class Meta: | ||
model = models.SuppliedData | ||
fields = ["source_url"] | ||
|
||
|
||
class TextForm(forms.Form): | ||
paste = forms.CharField(label=_("Paste (JSON only)"), widget=forms.Textarea) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.