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

Felix/hinter2 #303

Merged
merged 17 commits into from
Jul 1, 2013
Merged

Felix/hinter2 #303

merged 17 commits into from
Jul 1, 2013

Conversation

fephsun
Copy link
Contributor

@fephsun fephsun commented Jun 28, 2013

Experimental release of crowdsourced hinting module. Expected to be used in 2.01x starting Tuesday, July 2.

@rocha
@pmitros

@ghost ghost assigned dianakhuang Jun 28, 2013
default='False')
debug = String(help='String "True"/"False" - allows multiple voting', scope=Scope.content,
default='False')
# hints[answer] = {str(pk): [hint_text, #votes]}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this commented out? If it's supposed to be a helpful comment, I think you want to add some actual text to explain what this means.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, sorry. That's how I document dictionary-like data structures. It means "hints is a dictionary that takes answer keys. Each value is itself a dictionary, accepting pk keys as strings, and returning [hint text, #votes] pairs as values."

I'll add an explanation to the comment.

@dianakhuang
Copy link
Contributor

Those are my current comments. I don't want to force you into a redesign too soon, but long term planning, I think this would work with more object-oriented design in this. You're doing a lot of indexing to pull out information out of these structured lists, and it would make your code a lot easier to read if you created small struct-like classes to hold this information.

Felix Sun and others added 15 commits July 1, 2013 10:25
Conflicts:
	common/static/coffee/src/logger.coffee
Added moderation feature - you can now choose to hold all hints for moderator approval before showing.
… the crowdsource hinter module. (Old tests no longer cover all the code, now that moderation has been added.)
…ier to read. Fixed database non-initialization bug in crowdsource hinter module.
Fixed some bugs in the tests for crowdsourced hinter.
Hinter now displays vote count after voting.

Began testing templates.
Chiseled a little at writing template tests.
Began enforcing one-vote-per-person.  This can be disabled with debug="True" in the <crowdsource_hinter> tag.

Started tests of the hint manager.
…anager.

Expanded tests of hint_manager.

Enabled the hint_manager by default in development environments.
Expanded test coverage a little.
Carlos Andrés Rocha and others added 2 commits July 1, 2013 10:34
Fixed various commenting things.

Removed an unused function in the crowdsourced module coffeescript.

Improved commenting in hint_manager.

Fixed pep and pylint violations.
@dianakhuang
Copy link
Contributor

👍 I think this is ready to be merged.

fephsun added a commit that referenced this pull request Jul 1, 2013
@fephsun fephsun merged commit b015a22 into master Jul 1, 2013
Kelketek referenced this pull request in open-craft/edx-platform Nov 6, 2014
…nsitional_ids

mattdrayer/api-migrate_transitional_ids: Cleaned up two additional table...
yokose-ks added a commit to nttks/edx-platform that referenced this pull request Oct 2, 2015
@cahrens cahrens mentioned this pull request Mar 4, 2016
diegomillan pushed a commit to eduNEXT/edx-platform that referenced this pull request Sep 14, 2016
CrewS pushed a commit to CrewS/edx-platform-1 that referenced this pull request Feb 18, 2019
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 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.

2 participants