canvas-lms/packages
Jackson Howe 9057b4a765 Don't load planner again when switching students
When an observer switches students on the classic dashboard, we let
the planner know by calling `reloadPlannerForObserver` (from
DashboardHeader.js). The planner handles saving the new state
internally and makes requests to get new data. We don't need to call
`loadPlannerDashboard` after a switch (unless it hasn't been loaded
yet) since this will cause duplicate requests; in this case, the
first request didn't yet contain the correct context code data for the
selected student and was resulting in 401s.

Additionally, clear the loading state when resetting for a new observee;
this could contain bookmarks to fetch more items that are only
applicable to the previous observee.

closes LS-3213
flag = observer_picker

Test plan:
 - Enable observer_picker flag
 - Visit dashboard (planner view) as an observer with at least 2
   students, each of which is enrolled in different courses
 - Switch from one student to another in the picker
 - Expect everything to load smoothly
 - Make sure the planner still works for students in classic and k5
   mode

Change-Id: I0e1c7fe0213558863b357be5f0f47c38fad9bf83
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/293565
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>
2022-06-10 15:32:51 +00:00
..
array-erase rename some things 2021-04-06 01:12:49 +00:00
babel-preset-pretranslated-format-message Run prettier on packages/ 2019-10-11 19:29:16 +00:00
babel-preset-pretranslated-translations-package-format-message Use new translation package for packages 2020-01-03 20:34:46 +00:00
backbone-identity-map rename some things 2021-04-06 01:12:49 +00:00
backbone-input-filter-view rename some things 2021-04-06 01:12:49 +00:00
backbone-input-view rename some things 2021-04-06 01:12:49 +00:00
bootstrap-dropdown rename some things 2021-04-06 01:12:49 +00:00
bootstrap-select replace node-sass with dart-sass 2021-07-15 17:35:35 +00:00
browser-sniffer rename some things 2021-04-06 01:12:49 +00:00
browserslist-config-canvas-lms rename canvas-supported-browsers to browserslist-config-canvas-lms 2019-08-08 20:12:31 +00:00
canvas-media add media comments to message students who 2022-05-24 20:48:11 +00:00
canvas-planner Don't load planner again when switching students 2022-06-10 15:32:51 +00:00
canvas-rce remove canvas's i18n clone in RCE 2022-06-09 17:08:16 +00:00
compose rename some things 2021-04-06 01:12:49 +00:00
convert-case rename some things 2021-04-06 01:12:49 +00:00
date-js rename some things 2021-04-06 01:12:49 +00:00
datetime ensure workspace pkgs aren't fetched from registry 2022-01-18 19:15:21 +00:00
datetime-moment-parser extract @canvas/timezone into a package 2021-08-24 17:43:05 +00:00
defer-promise rename some things 2021-04-06 01:12:49 +00:00
deparam rename some things 2021-04-06 01:12:49 +00:00
ember rename some things 2021-04-06 01:12:49 +00:00
escape-regex rename some things 2021-04-06 01:12:49 +00:00
force-screenreader-to-reparse rename some things 2021-04-06 01:12:49 +00:00
format-message-estree-util Fix i18n:exract 2021-06-24 18:01:47 +00:00
get-cookie Rename packages/get-cookie package 2022-02-07 18:37:05 +00:00
html-escape rename some things 2021-04-06 01:12:49 +00:00
intl-polyfills Redo the locale polyfiller using new features from @formatjs 2022-02-15 17:53:56 +00:00
jest-moxios-utils Upgrade Jest to 26 2021-11-15 19:28:14 +00:00
jquery-fancy-placeholder rename some things 2021-04-06 01:12:49 +00:00
jquery-kyle-menu Fix jQuery Kyle Menu to support JAWS 2021-10-06 21:47:54 +00:00
jquery-pageless rename some things 2021-04-06 01:12:49 +00:00
jquery-popover rename some things 2021-04-06 01:12:49 +00:00
jquery-qtip rename some things 2021-04-06 01:12:49 +00:00
jquery-scroll-into-view rename some things 2021-04-06 01:12:49 +00:00
jquery-scroll-to-visible rename some things 2021-04-06 01:12:49 +00:00
jquery-selectmenu show SG student menu focus ring when tabbing 2021-11-10 19:40:33 +00:00
jquery-sticky rename some things 2021-04-06 01:12:49 +00:00
jquery-tinypubsub rename some things 2021-04-06 01:12:49 +00:00
jquery-tree rename some things 2021-04-06 01:12:49 +00:00
jqueryui Address date/time parsing issues in non-en locales 2021-09-29 06:15:56 +00:00
js-utils babel independence: k5uploader & js-utils 2022-03-11 21:00:09 +00:00
k5uploader babel independence: k5uploader & js-utils 2022-03-11 21:00:09 +00:00
link-header-parsing rename some things 2021-04-06 01:12:49 +00:00
lodash-underscore rename some things 2021-04-06 01:12:49 +00:00
make-promise-pool rename some things 2021-04-06 01:12:49 +00:00
mathml Revert "Fix equation image resize for quizzes" 2022-02-19 00:22:21 +00:00
obj-flatten rename some things 2021-04-06 01:12:49 +00:00
obj-select rename some things 2021-04-06 01:12:49 +00:00
obj-unflatten rename some things 2021-04-06 01:12:49 +00:00
old-copy-of-react-14-that-is-just-here-so-if-analytics-is-checked-out-it-doesnt-change-yarn.lock upgrade react from 15.x to 16.x 2018-09-26 19:04:47 +00:00
parse-browser-info rename some things 2021-04-06 01:12:49 +00:00
persistent-array instrument datetime natural parsing 2021-09-16 18:33:40 +00:00
prevent-default rename some things 2021-04-06 01:12:49 +00:00
query-string-encoding rename some things 2021-04-06 01:12:49 +00:00
react-dnd-test-backend rename some things 2021-04-06 01:12:49 +00:00
ready Now that we have streaming, execute JS sooner 2019-09-19 23:10:43 +00:00
round rename some things 2021-04-06 01:12:49 +00:00
sanitize-html-with-tinymce Fix Find Outcome button when Adding/Viewing Rubric 2021-12-21 21:04:21 +00:00
sanitize-url rename some things 2021-04-06 01:12:49 +00:00
shortid rename some things 2021-04-06 01:12:49 +00:00
slickgrid replace node-sass with dart-sass 2021-07-15 17:35:35 +00:00
str-pluralize rename some things 2021-04-06 01:12:49 +00:00
strip-tags rename some things 2021-04-06 01:12:49 +00:00
translations [i18n] Update package translations 2022-04-09 04:49:42 +00:00
url-encoding rename some things 2021-04-06 01:12:49 +00:00
validated-apollo rename some things 2021-04-06 01:12:49 +00:00
with-breakpoints rename some things 2021-04-06 01:12:49 +00:00