-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Surface "abandoned" state on projects in UI #4995
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
Closed
dojutsu-user
wants to merge
30
commits into
readthedocs:master
from
dojutsu-user:abandoned-projects-additions
Closed
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
09d8213
admin func for to update the abandoned project's slug
dojutsu-user d212759
add is_abandoned boolean field in Project model
dojutsu-user 906d0c4
generate migrations file
dojutsu-user 8f034b7
update admin action docs string and set is_abandoned flag
dojutsu-user c1c25ed
Add templates
dojutsu-user 99dde0c
Add admin action for requesting namespace
dojutsu-user 33c58ff
Add abandoned state on sidebar
dojutsu-user 6378a4a
fix indentation
dojutsu-user 62ef610
send an email notifying the user
dojutsu-user c699012
Add tests
dojutsu-user 843f2a9
remove redundant import
dojutsu-user 033f58b
use inbuilt notification system
dojutsu-user eb9a1af
Update tests with slight improvement
dojutsu-user b03400a
Add test for task
dojutsu-user 4df938f
fix lint
dojutsu-user c36b421
Remove unnecessary imports
dojutsu-user b03d597
remove abandon_project_confirm.html/txt
dojutsu-user 633be03
improve tests
dojutsu-user 965d540
Add log.info
dojutsu-user ae2bda8
Merge branch 'master' into abandoned-projects-additions
dojutsu-user c4104b8
rename migrations file
dojutsu-user 23c2123
Merge branch 'abandoned-projects-additions' of https://github.com/doj…
dojutsu-user 8ee2d67
Merge branch 'master' into abandoned-projects-additions
dojutsu-user 8d29c0b
Merge branch 'master' into abandoned-projects-additions
dojutsu-user 236c37d
Merge branch 'master' into abandoned-projects-additions
dojutsu-user 113e11e
Merge branch 'master' into abandoned-projects-additions
dojutsu-user d90bdd0
Merge branch 'master' into abandoned-projects-additions
dojutsu-user 36dcb16
Rename migrations file
dojutsu-user cac446d
Merge master branch
dojutsu-user a67d640
fix imports
dojutsu-user 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
20 changes: 20 additions & 0 deletions
20
readthedocs/projects/migrations/0042_add_is_abandoned_field.py
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,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.16 on 2018-12-13 10:35 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('projects', '0041_index-repo-field'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='project', | ||
name='is_abandoned', | ||
field=models.BooleanField(default=False, verbose_name='Is abandoned'), | ||
), | ||
] |
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
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,19 @@ | ||
{% extends "core/email/common.html" %} | ||
|
||
{% block top-right %} | ||
{{ proj_name }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<p> | ||
We've had a request from one of our users for the project name {{ proj_name }} on Read the Docs. You are the current owner, and we wanted to reach out to you in accordance with our Abandoned Project policy (<a href="http://docs.readthedocs.io/en/latest/abandoned-projects.html">http://docs.readthedocs.io/en/latest/abandoned-projects.html</a>). | ||
</p> | ||
|
||
<p> | ||
Since this is a fork of the existing owners project, {{ proj_name }}, you must show us the additional work that has been done in order to keep the new project name, that is different than the existing version of the project. | ||
</p> | ||
|
||
<p> | ||
Please reply to this email either allowing or disallowing the transfer of the name on Read the Docs within 6 weeks, otherwise we will take the action of *initiating the transfer to a new owner* by default. | ||
</p> | ||
{% endblock %} |
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,6 @@ | ||
{% extends "core/email/common.txt" %} | ||
{% block content %} | ||
We've had a request from one of our users for the project name {name} on Read the Docs. You are the current owner, and we wanted to reach out to you in accordance with our Abandoned Project policy (http://docs.readthedocs.io/en/latest/abandoned-projects.html). | ||
Since this is a fork of the existing owners project, {name}, you must show us the additional work that has been done in order to keep the new project name, that is different than the existing version of the project. | ||
Please reply to this email either allowing or disallowing the transfer of the name on Read the Docs within 6 weeks, otherwise we will take the action of *initiating the transfer to a new owner* by default. | ||
{% endblock %} |
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.