-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Several instances of undeclared dependency usage #2584
Comments
Some of those are intentional, most of them are not. I've run the ui5-migration tooling on Several of the findings in |
Change has been submitted and fixed most of the issues above. I reopen the ticket as there are some left overs: === sap.m === src/sap.m/src/sap/m/SegmentedButton.js src/sap.m/src/sap/m/ViewSettingsDialog.js src/sap.m/src/sap/m/ViewSettingsPopover.js === sap.ui.commons === src/sap.ui.core/src/sap/ui/core/message/Message.js src/sap.ui.core/src/sap/ui/core/message/MessageManager.js src/sap.ui.core/src/sap/ui/core/message/MessageMixin.js |
Thank you Frank. I merged the commit for this issue into our fork of the 1.60 SDK. The only change that seemed odd to me was the removal of the jquery.sap.global import from src/sap.m/src/sap/m/ShellRenderer.js. Wouldn't the use of the jQuery.sap.require API in that ShellRenderer trigger jQuery.sap.stubs to load jquery.sap.global? |
If we would be able to boot the framework already without the monolithic On the other side, relying on transitive dependencies is considered bad style, so maybe we should re-add the dependency or add Parameters as a top-level dependency. |
Old issue but the remaining findings will be gone with UI5 2.X. Therefore closing this issue. |
OpenUI5 version: 1.60 (but checked that issue is still present in master branch)
Browser/version (+device/version): N/A
Any other tested browsers/devices(OK/FAIL): N/A
URL (minimal example if possible): N/A
User/password (if required and possible - do not post any confidential information here): N/A
Steps to reproduce the problem:
What is the expected result?
Dependency modules are imported before they are used.
What happens instead?
In the cases listed below, APIs from the modules are used without importing them first.
Any other information? (attach screenshot if possible)
I tried to leave out any non-runtime file from the list (like support, demokit, documentation,
unit test, etc.). There are a few files in the list I wasn't sure about so I left them in.
=== sap.m ===
src/sap.m/src/sap/m/FacetFilter.js
sap.m.Popover
sap.m.Button
sap.m.SearchField
sap.ui.model.FilterOperator
sap.m.Page
sap.m.Bar
sap.m.Dialog
sap.m.List
sap.m.StandardListItem
sap.ui.core.CustomData
sap.ui.model.json.JSONModel
sap.m.CheckBox
sap.m.Text
sap.m.Toolbar
sap.m.ToolbarSpacer
src/sap.m/src/sap/m/FacetFilterList.js
sap.ui.model.FilterOperator
sap.ui.model.FilterType
src/sap.m/src/sap/m/ios7.js
sap.ui.base.EventProvider
sap.ui.Device
sap.ui.base.EventProvider
sap.m._Ios7._rTagRegex.test
sap.m._Ios7
src/sap.m/src/sap/m/LabelRenderer.js
sap.ui.core.LabelEnablement
sap.ui.core.VerticalAlign
src/sap.m/src/sap/m/Menu.js
sap.ui.core.Popup.Dock
src/sap.m/src/sap/m/OverflowToolbarRenderer.js
sap.m.BarInPageEnabler
src/sap.m/src/sap/m/PanelRenderer.js
sap.ui.Device
src/sap.m/src/sap/m/PDFViewerRenderer.js
jquery.sap.global (It provides jQuery.sap.log.warning)
src/sap.m/src/sap/m/SegmentedButton.js
sap.m.Button
sap.m.Image
src/sap.m/src/sap/m/ViewSettingsDialog.js
sap.m.Dialog
sap.m.Button
sap.m.ButtonType
sap.m.NavContainer
sap.m.Label
sap.m.Bar
sap.m.SegmentedButton
sap.m.Page
sap.m.ViewSettingsItem
src/sap.m/src/sap/m/ViewSettingsPopover.js
sap.m.CheckBox
sap.m.SegmentedButtonItem
sap.m.Label
sap.m.SearchField
=== sap.tnt ===
src/sap.tnt/src/sap/tnt/NavigationListItem.js
sap.ui.core.TextDirection
sap.ui.core.TextAlign
src/sap.tnt/src/sap/tnt/SideNavigation.js
sap.ui.base.ManagedObject
src/sap.tnt/src/sap/tnt/ToolHeader.js
sap.ui.Device
sap.m.PlacementType
src/sap.tnt/src/sap/tnt/ToolPageRenderer.js
sap.ui.Device
=== sap.ui.commons ===
src/sap.ui.commons/src/sap/ui/commons/DatePicker.js
sap.ui.unified.Calendar
sap.ui.unified.DateRange
=== sap.ui.core ===
src/sap.ui.core/src/sap/ui/core/BusyIndicatorUtils.js
sap.ui.core.BusyIndicatorSize
src/sap.ui.core/src/sap/ui/core/message/Message.js
sap.ui.core.MessageType
src/sap.ui.core/src/sap/ui/core/message/MessageManager.js
sap.ui.core.MessageType
src/sap.ui.core/src/sap/ui/core/message/MessageMixin.js
sap.ui.core.LabelEnablement
=== sap.ui.dt ===
src/sap.ui.dt/src/sap/ui/dt/ContextMenuControl.js
sap.ui.Device
src/sap.ui.dt/src/sap/ui/dt/plugin/CutPaste.js
sap.ui.Device
src/sap.ui.dt/src/sap/ui/dt/plugin/DragDrop.js
sap.ui.Device
=== sap.ui.layout ===
src/sap.ui.layout/src/sap/ui/layout/AssociativeSplitter.js
sap.ui.layout.SplitterLayoutData
src/sap.ui.layout/src/sap/ui/layout/Splitter.js
sap.ui.layout.SplitterLayoutData
=== sap.ui.unified ===
src/sap.ui.unified/src/sap/ui/unified/calendar/DatesRowRenderer.js
sap.ui.core.CalendarType
src/sap.ui.unified/src/sap/ui/unified/calendar/MonthsRow.js
sap.ui.unified.DateRange
src/sap.ui.unified/src/sap/ui/unified/calendar/TimesRow.js
sap.ui.unified.DateRange
src/sap.ui.unified/src/sap/ui/unified/CalendarDateInterval.js
sap.ui.unified.DateRange
src/sap.ui.unified/src/sap/ui/unified/CalendarLegend.js
sap.ui.unified.CalendarLegendItem
src/sap.ui.unified/src/sap/ui/unified/CalendarMonthInterval.js
sap.ui.unified.DateRange
src/sap.ui.unified/src/sap/ui/unified/CalendarOneMonthInterval.js
sap.ui.unified.DateRange
src/sap.ui.unified/src/sap/ui/unified/CalendarRow.js
sap.ui.unified.CalendarAppointment
src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
sap.ui.unified.DateRange
sap.ui.unified.Calendar
src/sap.ui.unified/src/sap/ui/unified/CalendarWeekInterval.js
sap.ui.unified.DateRange
=== sap.ui.ux3 ===
src/sap.ui.ux3/src/sap/ui/ux3/DataSetSimpleView.js
sap.ui.model.ChangeReason
src/sap.ui.ux3/src/sap/ui/ux3/Notifier.js
sap.ui.base.EventProvider
The text was updated successfully, but these errors were encountered: