-
Notifications
You must be signed in to change notification settings - Fork 42
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
[meta] stop slicing ember-data model collections #5660
Comments
ballpark:
|
This looks like something I can help out on, so I will start attacking a chunk here or there. |
FYI, I'm working on a PR that would remove all the pertinent |
and i'm de-slicing our models. |
131 -> 104:
|
@stopfstedt I'm going to try tackling the frontend component that are in subdirs next. |
104 -> 79:
|
79 -> 37:
|
37 -> 29:
|
@stopfstedt not sure if the rest of these can/should be removed. Will need to do more investigation. |
below 30! nice. i'll make a pass over the remainder tomorrow and see if/where slicing is actually still needed. will report back here. |
@stopfstedt is this issue resolved? |
@michaelchadwick i think we're almost there. current state of affairs $ grep -lr '\.slice()' packages/ | egrep -v '(dist|node_modules|coverage)' | sort
packages/frontend/app/components/courses/root.js
packages/frontend/app/components/global-search-box.js
packages/frontend/app/components/instructor-groups/list.js
packages/frontend/app/components/new-directory-user.js
packages/frontend/app/components/program-year/objective-list.js
packages/frontend/app/components/reports/subject/new/course.js
packages/frontend/app/components/reports/subject/new/session.js
packages/frontend/tests/integration/components/program-year/list-test.js
packages/ilios-common/addon/components/course/objective-list.js
packages/ilios-common/addon/components/detail-learning-materials.js
packages/ilios-common/addon/components/learningmaterial-search.js
packages/ilios-common/addon/components/learning-materials-sort-manager.js
packages/ilios-common/addon/components/mesh-descriptor-last-tree-number.js
packages/ilios-common/addon/components/mesh-manager.js
packages/ilios-common/addon/components/objective-sort-manager.js
packages/ilios-common/addon/components/offering-manager.js
packages/ilios-common/addon/components/print-course.js
packages/ilios-common/addon/components/session-copy.js
packages/ilios-common/addon/components/session-offerings-time-block-offerings.js
packages/ilios-common/addon/components/sessions-grid-offering-table-offerings.js
packages/ilios-common/addon/helpers/sort-by.js
packages/ilios-common/addon/helpers/sort-by-position.js
packages/ilios-common/addon/models/course.js
packages/ilios-common/addon/models/course-objective.js
packages/ilios-common/addon/models/session.js
packages/ilios-common/addon/utils/array-helpers.js
packages/test-app/tests/integration/components/user-search-test.js just de-sliced |
and we're done with this, for now. final list of calls to stefan@nichtsnutz: ~/dev/projects/frontend on master[$]
$ grep -lr '\.slice()' packages/ | egrep -v '(dist|node_modules|coverage)' | sort
packages/frontend/app/components/courses/root.js
packages/frontend/app/components/global-search-box.js
packages/frontend/app/components/instructor-groups/list.js
packages/frontend/app/components/new-directory-user.js
packages/frontend/app/components/program-year/objective-list.js
packages/frontend/app/components/reports/subject/new/course.js
packages/frontend/app/components/reports/subject/new/session.js
packages/frontend/tests/integration/components/program-year/list-test.js
packages/ilios-common/addon/components/course/objective-list.js
packages/ilios-common/addon/components/detail-learning-materials.js
packages/ilios-common/addon/components/learningmaterial-search.js
packages/ilios-common/addon/components/learning-materials-sort-manager.js
packages/ilios-common/addon/components/mesh-descriptor-last-tree-number.js
packages/ilios-common/addon/components/mesh-manager.js
packages/ilios-common/addon/components/objective-sort-manager.js
packages/ilios-common/addon/components/offering-manager.js
packages/ilios-common/addon/components/print-course.js
packages/ilios-common/addon/components/session-copy.js
packages/ilios-common/addon/components/session-offerings-time-block-offerings.js
packages/ilios-common/addon/components/sessions-grid-offering-table-offerings.js
packages/ilios-common/addon/helpers/sort-by.js
packages/ilios-common/addon/helpers/sort-by-position.js
packages/ilios-common/addon/models/course.js
packages/ilios-common/addon/models/course-objective.js
packages/ilios-common/addon/models/session.js
packages/ilios-common/addon/utils/array-helpers.js |
this was a kludge we used to convert these to arrays on the cheap for further processing.
that's no longer necessary.
remove all invocations of
Array::slice()
where they are no longer needed.for reference, see ilios/frontend#7946 (review)
The text was updated successfully, but these errors were encountered: