Skip to content
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

Add default source #21

Merged
merged 4 commits into from May 2, 2022
Merged

Add default source #21

merged 4 commits into from May 2, 2022

Conversation

sarathms
Copy link
Contributor

@sarathms sarathms commented Jan 26, 2022

Fixes #19

  • Include default source as 'Community Member'

The submission is created like this.
image

@vercel
Copy link

vercel bot commented Jan 26, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/ooni/test-lists/5h2zQsbSs2ADzpCrZMhWgT3HYPad
✅ Preview: https://test-lists.test.ooni.org

@sarathms sarathms marked this pull request as ready for review January 27, 2022 15:50
@sarathms sarathms requested a review from hellais January 27, 2022 15:50
@@ -1,84 +0,0 @@
// {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action is now performed within components/submit/EditForm.js

@@ -27,7 +27,7 @@ export const EditForm = ({ oldEntry, error, onSubmit, onCancel, layout = 'column
url: formData.get('url'),
category_code: categoryCode,
date_added: oldEntry.date_added ?? today,
source: oldEntry.source ?? '',
source: oldEntry.source !== '' ? oldEntry.source : 'Community Member',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's put this value inside of a constant at the beginning of the file and replace the value with "test-lists.ooni.org contribution"

@vercel
Copy link

vercel bot commented May 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
test-lists ✅ Ready (Inspect) Visit Preview May 2, 2022 at 3:06PM (UTC)

Copy link
Member

@hellais hellais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐳

@sarathms sarathms merged commit 25dd694 into main May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display source in pull requests contributed via web platform
2 participants