canvas-lms/lib/canvas
Adrian Packel c4813ed94c Have conditional release use posted not muted
When post policies is enabled, pass the current submission's
posted/hidden status in the "muted" field so that it accurately reflects
the state of the submission. When post policies is disabled, pass the
assignment's muted status as before. Also, update some queries in the
conditional release service to check the submission's posted status if
post policies is enabled.

fixes GRADE-2316

Test plan:
- Have Canvas and conditional release set up
- In Canvas, enable new gradebook for a course and flip on the post
  policies setting:
  > PostPolicy.enable_feature!
- Create two assignments
  - In the gradebook, change the grade posting policy of one of the
    assignments to "Manually"
  - Leave the other as "Automatically"
- Assign grades to students in each assignment
  - For the auto-posted assignment, grade change events should be
    emitted with muted = false
  - For the manual-posted assignment, grade change events should be
    emitted with muted = true
  - Post grades for the manual-posted assignment
    - Grade change events should now be emitted with muted = false
- Confirm that mastery paths are generally doing the right thing

Change-Id: I7af38836ebd9b3361526a4c03565694ae0770f88
Reviewed-on: https://gerrit.instructure.com/202283
Tested-by: Jenkins
QA-Review: Michael Brewer-Davis <mbd@instructure.com>
Product-Review: Michael Brewer-Davis <mbd@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
Reviewed-by: Jeremy Neander <jneander@instructure.com>
2019-07-24 20:55:32 +00:00
..
builders da licença part 27 2017-04-27 21:53:31 +00:00
cache_register create a granular timestamp system for use in cache keys 2019-05-08 15:24:01 +00:00
cassandra da licença part 27 2017-04-27 21:53:31 +00:00
cdn Fix icon font showing up garbled sometimes 2019-06-17 19:29:42 +00:00
core_ext bump oauth2 gem 2019-04-10 16:29:00 +00:00
dynamic_settings add attachment specific subdomain if configured 2018-11-19 22:39:50 +00:00
dynamo_db move dynamodb gems to default group 2019-05-29 15:15:13 +00:00
errors dots and new lines 2018-01-17 16:56:26 +00:00
failure_percent_counter switch to redis server side script for failure percent counter 2017-01-19 23:41:39 +00:00
migration fix selecting content in course copy 2019-05-13 20:22:33 +00:00
oauth Fix json parse error in using jwk via url 2019-07-05 13:53:39 +00:00
plugins Add route for image search proxy 2019-05-10 20:48:14 +00:00
security Allow canvas.instructure.com aud in LTI Advantage 2019-07-17 16:12:04 +00:00
aws.rb da licença part 27 2017-04-27 21:53:31 +00:00
cache_register.rb ensure cache register uses consistent nodes across shards 2019-06-14 15:21:30 +00:00
cdn.rb fix brotli header check in lib/canvas/cdn.rb 2019-05-10 21:20:40 +00:00
crocodoc.rb use the proper methods for getting plugin settings 2019-05-02 20:31:18 +00:00
draft_state_validations.rb da licença part 27 2017-04-27 21:53:31 +00:00
dynamic_settings.rb allow configuring the default service tree for consul 2018-09-27 19:29:49 +00:00
error_stats.rb use inst_statsd 2019-03-25 17:00:49 +00:00
errors.rb da licença part 27 2017-04-27 21:53:31 +00:00
event_stream_logger.rb use inst_statsd 2019-03-25 17:00:49 +00:00
failure_percent_counter.rb da licença part 27 2017-04-27 21:53:31 +00:00
grade_validations.rb da licença part 27 2017-04-27 21:53:31 +00:00
hash_ring.rb Add copyright message to remaining .rb files 2018-03-19 13:38:50 +00:00
icu.rb codify our sorting cases in a spec 2018-03-14 21:05:57 +00:00
jwt_workflow.rb Generate right ENV.context_asset_string on eportfolios 2019-07-16 20:31:29 +00:00
live_events.rb Have conditional release use posted not muted 2019-07-24 20:55:32 +00:00
live_events_callbacks.rb Add course_progress event 2019-07-19 16:45:42 +00:00
lock_explanation.rb Use an attribute we can trust for prereqs lookup 2019-06-10 18:16:05 +00:00
lockdown_browser.rb da licença part 27 2017-04-27 21:53:31 +00:00
message_helper.rb da licença part 27 2017-04-27 21:53:31 +00:00
migration.rb da licença part 27 2017-04-27 21:53:31 +00:00
outcome_import_validations.rb Outcome import creation/status endpoints 2018-03-05 19:22:03 +00:00
password_policy.rb da licença part 27 2017-04-27 21:53:31 +00:00
plugin.rb support RSA-SHA256 message signing for SAML 2018-03-05 23:47:35 +00:00
redis.rb use inst_statsd 2019-03-25 17:00:49 +00:00
redis_config.rb da licença part 27 2017-04-27 21:53:31 +00:00
redis_wrapper.rb da licença part 27 2017-04-27 21:53:31 +00:00
reloader.rb protect against SIGHUP hooks crashing existing processes 2017-09-19 22:19:29 +00:00
request_forgery_protection.rb da licença part 27 2017-04-27 21:53:31 +00:00
security.rb Create proxy API for Unsplash download confirmation 2019-05-16 19:37:24 +00:00
soft_deletable.rb delete scores when an assignment group is deleted 2018-01-04 20:33:02 +00:00
twilio.rb use inst_statsd 2019-03-25 17:00:49 +00:00