This repository was archived by the owner on Sep 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 638
Expand args for updating comments #1245
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
089448c
Define each argument for updating comments and set the sanitization c…
rachelbaker 6e069cc
Add handling for update comment arguments in `prepare_item_for_update…
rachelbaker 9694f0e
Allow users with `moderate_comments` to set comment karma
rachelbaker de1b7bb
Return an error if the user is creating a comment tries to set the au…
rachelbaker 6f8fe89
Don't set a default for the comment_type
rachelbaker 9083a08
Remove double sanitization on create and update comment args
rachelbaker a3a64e3
Expand update comment tests to include added args.
rachelbaker 15ff9f4
Add tests for creating comments karma and author error responses.
rachelbaker 26e1d72
Merge branch 'develop' into fix-940
rachelbaker 750d4c4
Merge branch 'develop' into fix-940
rachelbaker deb8ead
Remove duplicate `author` param setting in create comment arguments
rachelbaker db1d6b6
Merge branch 'develop' into fix-940
rachelbaker 3050f78
Remove duplicate author argument in comment create endpoint.
rachelbaker ebb0497
Add missing `author_name` parameter to the create and edit comment en…
rachelbaker 3e1e25d
Remove prepare_item_for_update method in favor of using prepare_item_…
rachelbaker 4c0881c
Add unit test for updating a comment with the date_gmt argument
rachelbaker 96436e7
Return error for comments that try to change type with test
rachelbaker 15df46e
Remove type casting from prepare_item_for_database method
rachelbaker 30988dc
Allow the status param to be set when creating comments if user has m…
rachelbaker a08d2fb
Add tests for setting the status parameter when creating comments
rachelbaker fb95029
Add test_ prefix to comment tests where missing
rachelbaker e1191d0
Fix bugs in test methods
rachelbaker a2728a0
Escape smart quotes in test string
rachelbaker 056d8fe
Correct return value on prepare_item_for_database
rachelbaker 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
Add handling for update comment arguments in `prepare_item_for_update…
…` method
- Loading branch information
commit 6e069cc51ddddb34cd88f9252782d4efcd8dab4e
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
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.
I think casting shouldn't be needed as this is sanitized with
absintThere 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.
@joehoyle addressed in 15df46e