forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Capture that IPR disclosures are removed under the Objectively …
…False IPR Disclosure Policy (ietf-tools#6231) * feat: Capture that IPR disclosures are removed under the Objectively False IPR Disclosure Policy (ietf-tools#6088) * chore: Move PUBLISH_IPR_STATES from settings_local to settings * fix: Add migration for removed_objfalse in IprEventTypeName * fix: De-conflict migration * fix: De-conflict migration * style: Move PUBLISH_IPR_STATES ahead of not-production block
- Loading branch information
Showing
13 changed files
with
186 additions
and
20 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,90 @@ | ||
# Generated by Django 4.2.4 on 2023-08-23 21:38 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("doc", "0006_statements"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="docevent", | ||
name="type", | ||
field=models.CharField( | ||
choices=[ | ||
("new_revision", "Added new revision"), | ||
("new_submission", "Uploaded new revision"), | ||
("changed_document", "Changed document metadata"), | ||
("added_comment", "Added comment"), | ||
("added_message", "Added message"), | ||
("edited_authors", "Edited the documents author list"), | ||
("deleted", "Deleted document"), | ||
("changed_state", "Changed state"), | ||
("changed_stream", "Changed document stream"), | ||
("expired_document", "Expired document"), | ||
("extended_expiry", "Extended expiry of document"), | ||
("requested_resurrect", "Requested resurrect"), | ||
("completed_resurrect", "Completed resurrect"), | ||
("changed_consensus", "Changed consensus"), | ||
("published_rfc", "Published RFC"), | ||
( | ||
"added_suggested_replaces", | ||
"Added suggested replacement relationships", | ||
), | ||
( | ||
"reviewed_suggested_replaces", | ||
"Reviewed suggested replacement relationships", | ||
), | ||
("changed_action_holders", "Changed action holders for document"), | ||
("changed_group", "Changed group"), | ||
("changed_protocol_writeup", "Changed protocol writeup"), | ||
("changed_charter_milestone", "Changed charter milestone"), | ||
("initial_review", "Set initial review time"), | ||
("changed_review_announcement", "Changed WG Review text"), | ||
("changed_action_announcement", "Changed WG Action text"), | ||
("started_iesg_process", "Started IESG process on document"), | ||
("created_ballot", "Created ballot"), | ||
("closed_ballot", "Closed ballot"), | ||
("sent_ballot_announcement", "Sent ballot announcement"), | ||
("changed_ballot_position", "Changed ballot position"), | ||
("changed_ballot_approval_text", "Changed ballot approval text"), | ||
("changed_ballot_writeup_text", "Changed ballot writeup text"), | ||
("changed_rfc_editor_note_text", "Changed RFC Editor Note text"), | ||
("changed_last_call_text", "Changed last call text"), | ||
("requested_last_call", "Requested last call"), | ||
("sent_last_call", "Sent last call"), | ||
("scheduled_for_telechat", "Scheduled for telechat"), | ||
("iesg_approved", "IESG approved document (no problem)"), | ||
("iesg_disapproved", "IESG disapproved document (do not publish)"), | ||
("approved_in_minute", "Approved in minute"), | ||
("iana_review", "IANA review comment"), | ||
("rfc_in_iana_registry", "RFC is in IANA registry"), | ||
( | ||
"rfc_editor_received_announcement", | ||
"Announcement was received by RFC Editor", | ||
), | ||
("requested_publication", "Publication at RFC Editor requested"), | ||
( | ||
"sync_from_rfc_editor", | ||
"Received updated information from RFC Editor", | ||
), | ||
("requested_review", "Requested review"), | ||
("assigned_review_request", "Assigned review request"), | ||
("closed_review_request", "Closed review request"), | ||
("closed_review_assignment", "Closed review assignment"), | ||
("downref_approved", "Downref approved"), | ||
("posted_related_ipr", "Posted related IPR"), | ||
("removed_related_ipr", "Removed related IPR"), | ||
( | ||
"removed_objfalse_related_ipr", | ||
"Removed Objectively False related IPR", | ||
), | ||
("changed_editors", "Changed BOF Request editors"), | ||
("published_statement", "Published statement"), | ||
], | ||
max_length=50, | ||
), | ||
), | ||
] |
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
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,11 +1,12 @@ | ||
# Copyright The IETF Trust 2007-2019, All Rights Reserved | ||
# Copyright The IETF Trust 2007-2023, All Rights Reserved | ||
# | ||
from django.conf import settings | ||
from django.contrib.sitemaps import GenericSitemap | ||
from ietf.ipr.models import IprDisclosureBase | ||
|
||
# changefreq is "never except when it gets updated or withdrawn" | ||
# so skip giving one | ||
|
||
queryset = IprDisclosureBase.objects.filter(state__in=('posted','removed')) | ||
queryset = IprDisclosureBase.objects.filter(state__in=settings.PUBLISH_IPR_STATES) | ||
archive = {'queryset':queryset, 'date_field': 'time', 'allow_empty':True } | ||
IPRMap = GenericSitemap(archive) # type: ignore |
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
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,24 @@ | ||
# Copyright The IETF Trust 2023, All Rights Reserved | ||
|
||
from django.db import migrations | ||
|
||
def forward(apps, schema_editor): | ||
IprDisclosureStateName = apps.get_model("name", "IprDisclosureStateName") | ||
IprDisclosureStateName.objects.create(slug="removed_objfalse", name="Removed Objectively False", order=5) | ||
IprEventTypeName = apps.get_model("name", "IprEventTypeName") | ||
IprEventTypeName.objects.create(slug="removed_objfalse", name="Removed Objectively False") | ||
|
||
def reverse(apps, schema_editor): | ||
IprDisclosureStateName = apps.get_model("name", "IprDisclosureStateName") | ||
IprDisclosureStateName.objects.filter(slug="removed_objfalse").delete() | ||
IprEventTypeName = apps.get_model("name", "IprEventTypeName") | ||
IprEventTypeName.objects.filter(slug="removed_objfalse").delete() | ||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("name", "0007_appeal_artifact_typename"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(forward, reverse), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
{% extends "base.html" %} | ||
{# Copyright The IETF Trust 2015, All Rights Reserved #} | ||
{# Copyright The IETF Trust 2015-2023, All Rights Reserved #} | ||
{% load origin %} | ||
{% block title %}{{ ipr.title }}{% endblock %} | ||
{% block content %} | ||
{% origin %} | ||
<h1>{{ ipr.title }}</h1> | ||
<p class="alert alert-info my-3"> | ||
This IPR disclosure was removed at the submitter's request. | ||
{% if ipr.state.slug == "removed" %} | ||
This IPR disclosure was removed at the submitter's request. | ||
{% elif ipr.state.slug == "removed_objfalse" %} | ||
This IPR disclosure was removed as objectively false. | ||
{% endif %} | ||
</p> | ||
{% endblock %} |
Oops, something went wrong.