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

It should be able to limit questions to one type of talks only #523

Closed
Nakaner opened this issue Nov 7, 2018 · 9 comments
Closed

It should be able to limit questions to one type of talks only #523

Nakaner opened this issue Nov 7, 2018 · 9 comments
Labels
good first issue A default GitHub label inviting first time contributors help wanted A default GitHub label inviting outside help size: regular The average issue stage: wip This issue is being worked on type: feature

Comments

@Nakaner
Copy link
Contributor

Nakaner commented Nov 7, 2018

Problem you are facing

I would like to ask all speakers of one of our four types of talks at FOSSGIS 2019 to release their content under CC-BY. But I don't want to ask those how submit a workshop because their material will not be published.

Possible Solution

The admin of a conference should be able to select which types of talks a questions should apply to.

@rixx
Copy link
Member

rixx commented Feb 20, 2019

"type of talk" is a pretty wide area. We could restrict by tracks (which not all events use) or submission types, or both.

@Nakaner
Copy link
Contributor Author

Nakaner commented Feb 20, 2019

The limitation to one or many submission types is implemented in the linked pull request which you are free to modify.

@rixx
Copy link
Member

rixx commented Feb 20, 2019

Since tracks work differently, a couple of additional considerations would have to take place. That's why I opened up the question of which restriction should be implemented. Your PR is of course noted and will be merged in time, as long as we don't determine that questions should be restricted by track only.

@rixx rixx closed this as completed in 173a590 Feb 23, 2019
@rixx
Copy link
Member

rixx commented Nov 20, 2019

I think there is sufficient interest to warrant re-opening the issue.

@rixx rixx reopened this Nov 20, 2019
@Nakaner
Copy link
Contributor Author

Nakaner commented Nov 20, 2019

The limitation to one or many submission types is implemented in the linked pull request which you are free to modify.

I do not know why I did not link the pull request back then but that's the link: #582 (I don't know how easy it can be merged nowadays because I have not followed Pretalx development for the last few months in detail)

@rixx
Copy link
Member

rixx commented Nov 20, 2019

Yeah, I'll look into it – I changed a bunch of core CfP code recently which will probably require a couple of changes. Thank you!

@rixx rixx added this to the 2020 milestone Jan 13, 2020
@rixx rixx added good first issue A default GitHub label inviting first time contributors help wanted A default GitHub label inviting outside help labels Feb 25, 2020
@rixx
Copy link
Member

rixx commented Feb 25, 2020

This is an issue that is well-suited for external contributors – let me know if I can be of any help, either via this issue or via support@pretalx.com.

What this is about

pretalx provides a Question model to get arbitrary information from speakers or reviewers.

pretalx also divides submissions by type, and (optionally) track. It would be useful to allow questions to be limited by certain submission types, just like they can already be limited to certain tracks.

How to get started

First of all, leave a comment on this issue to make sure nobody else starts working on this issue at the same time!

Next, you need pretalx running locally on your machine. First, fork the repository to your own GitHub account. Then clone it locally (or set it as your remote if you already cloned it earlier)

Follow the developer setup guide, and then play around with pretalx a bit.
Have a look at the places impacting this issue. Look at the code responsible for the issues (searching for relevant words or files should help you find your way around). We have an explanation of our code structure and the actual data models.

How to do this

The Question model is in pretalx/submission/models/question.py, and the submission_types field should follow the tracks field pretty much exactly. Add it to pretalx.orga.forms.cfp.QuestionForm, too. Create a migration with the makemigrations command, and apply the migration with the migrate command.

Then have a look at the way the track restriction is implemented in pretalx.submission.forms.question, and do the same for the new submission type restriction. This is the form used to display all answer inputs for a given submission.

Please also have a look at the pretalx.event.models.event.Event model, and its copy_data_from field – it already copies questions and their tracks, and should now do the same for submission types.

Submit the PR

There are a number of tutorials on the Pull Request workflow online, for example this short version by GitHub itself and this more in-depth tutorial.

Remember to provide documentation and tests, if applicable. Run the tests before opening your PR, including style checks. We have a contribution guide, which ought to prove helpful at this stage.

@rahmonov
Copy link
Contributor

rahmonov commented Mar 3, 2020

Hey @rixx. Can I take this one?

@rixx
Copy link
Member

rixx commented Mar 4, 2020

For sure!

@rixx rixx added stage: wip This issue is being worked on and removed stage: up for grabs labels Mar 4, 2020
@rixx rixx closed this as completed Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A default GitHub label inviting first time contributors help wanted A default GitHub label inviting outside help size: regular The average issue stage: wip This issue is being worked on type: feature
Projects
None yet
Development

No branches or pull requests

3 participants