-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Remove member affiliation question; remove code question from SO and WI forms #2552
Merged
elichad
merged 6 commits into
feature/member-codes
from
feature/remove-member-affiliation
Oct 26, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b67f751
remove member_affiliation field
elichad 46f87ed
remove member_affiliation from validate_member_code
elichad 084ba12
remove tests of member_affiliation
elichad 5f6ddd3
clean up SOW and WI forms/tests
elichad 0073491
remove member_affiliation from autofill test
elichad e7d55ab
remove rogue space
elichad 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 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
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,21 @@ | ||
# Generated by Django 3.2.20 on 2023-10-23 13:45 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('extrequests', '0032_add_member_affiliation_and_member_code'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='selforganisedsubmission', | ||
name='member_affiliation', | ||
), | ||
migrations.RemoveField( | ||
model_name='workshopinquiryrequest', | ||
name='member_affiliation', | ||
), | ||
] |
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 |
---|---|---|
|
@@ -11,16 +11,7 @@ | |
from extrequests.models import SelfOrganisedSubmission | ||
import extrequests.views | ||
from workshops.forms import EventCreateForm | ||
from workshops.models import ( | ||
Curriculum, | ||
Event, | ||
Language, | ||
Membership, | ||
Organization, | ||
Role, | ||
Tag, | ||
Task, | ||
) | ||
from workshops.models import Curriculum, Event, Language, Organization, Role, Tag, Task | ||
from workshops.tests.base import FormTestHelper, TestBase | ||
|
||
|
||
|
@@ -353,12 +344,6 @@ def test_accept_with_event_autofill(self): | |
"""Ensure that fields are autofilled correctly when creating an Event from a | ||
SelfOrganisedSubmission.""" | ||
# Arrange | ||
expected_membership = Membership.objects.create( | ||
name="Hogwarts", | ||
agreement_start=date.today() - timedelta(weeks=26), | ||
agreement_end=date.today() + timedelta(weeks=26), | ||
registration_code="hogwarts55", | ||
) | ||
sos = SelfOrganisedSubmission.objects.create( | ||
# required fields | ||
state="p", | ||
|
@@ -374,8 +359,6 @@ def test_accept_with_event_autofill(self): | |
online_inperson="online", | ||
workshop_listed=False, | ||
additional_contact="[email protected]", | ||
member_affiliation="yes", | ||
member_code="hogwarts55", | ||
) | ||
curriculum = Curriculum.objects.filter(name__contains="Data Carpentry").first() | ||
sos.workshop_types.set([curriculum]) | ||
|
@@ -399,7 +382,6 @@ def test_accept_with_event_autofill(self): | |
self.assertEqual(form_initial["host"].pk, sos.institution.pk) | ||
self.assertEqual(form_initial["start"], sos.start) | ||
self.assertEqual(form_initial["end"], sos.end) | ||
self.assertEqual(form_initial["membership"].pk, expected_membership.pk) | ||
|
||
def test_discarded_request_not_accepted_with_event(self): | ||
rv = self.client.get( | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
Event, | ||
KnowledgeDomain, | ||
Language, | ||
Membership, | ||
Organization, | ||
Role, | ||
Tag, | ||
|
@@ -511,12 +510,6 @@ def test_accept_with_event_autofill(self): | |
"""Ensure that fields are autofilled correctly when creating an Event from a | ||
WorkshopInquiryRequest.""" | ||
# Arrange | ||
expected_membership = Membership.objects.create( | ||
name="Hogwarts", | ||
agreement_start=date.today() - timedelta(weeks=26), | ||
agreement_end=date.today() + timedelta(weeks=26), | ||
registration_code="hogwarts55", | ||
) | ||
wi = WorkshopInquiryRequest.objects.create( | ||
# required fields | ||
state="p", | ||
|
@@ -535,8 +528,6 @@ def test_accept_with_event_autofill(self): | |
online_inperson="online", | ||
workshop_listed=False, | ||
additional_contact="[email protected]", | ||
member_affiliation="yes", | ||
member_code="hogwarts55", | ||
) | ||
curriculum = Curriculum.objects.filter(name__contains="Data Carpentry").first() | ||
wi.requested_workshop_types.set([curriculum]) | ||
|
@@ -558,7 +549,6 @@ def test_accept_with_event_autofill(self): | |
self.assertEqual(form_initial["host"].pk, wi.institution.pk) | ||
self.assertEqual(form_initial["start"], wi.preferred_dates) | ||
self.assertEqual(form_initial["end"], wi.preferred_dates + timedelta(days=1)) | ||
self.assertEqual(form_initial["membership"].pk, expected_membership.pk) | ||
|
||
def test_discarded_request_not_accepted_with_event(self): | ||
rv = self.client.get( | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it expected from someone submitting their form to know who "Member Affiliate" is? Can it be confused with someone on the core team?
If so, I'd add an explanation who Member Affiliate is, e.g.
"Please contact your Member Affiliate (usually a person distributing codes in your organization) to verify your code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this wording came from the workshops team, @sheraaronhurt what are your thoughts on Piotr's comment here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM