diagnostic-insights-show-data-with-no-assignments #12809
Draft
+20
−10
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.
WHAT
Filter student_learning_sequences in Rails instead of SQL
WHY
The combination of JOINs for both non-ELL and ELL diagnostics in the SQL combined with filtering via WHERE for only non-ELL OR ELL diagnostics meant that if there were some non-ELL assignments, but no ELL diagnostics, specific User records were being removed from the results for ELL assignments. This could be solved in SQL by using an additional ON condition in the LEFT JOIN in SQL, but Rails does not provide a clean way of applying such a condition, so it's easiest to move this logic to Rails.
HOW
.where
clause from the SQL that fetches data.select
directive to the code that determines which StudentLearningSequence records to include in the returned payloadWhat have you done to QA this feature?