Skip to content
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

Redundant Nulls Removal #2055

Open
wants to merge 25 commits into
base: experimental
Choose a base branch
from

Conversation

parthshindee
Copy link
Contributor

@parthshindee parthshindee commented Aug 15, 2024

Summary

Campus Mobile codebase contains a large number of unnecessary nullable variables and null checks. This issue removes a majority of the redundant nulls.

Resolves #1955

Changelog

[General] [Change] - Removed redundant nulls throughout the app

Test Plan

morebytes and others added 19 commits July 19, 2024 16:09
- Rewrote some logic to mitigate need for nullable variables (i.e., empty strings instead of nullables)
- app_provider
- ImageLoader
- Image
- NoticesModel, NoticesCard
- BuildInfo
- ContinueReadingButton
- LinkifyWithCatch
- CardContainer (partially)
- WebViewContainer (partially)
- DotsIndicator
- EventTime
- LastUpdatedWidget
- TimeRangeWidget
- DiningCard (partially), DiningDataProvider (partially), Item model, DiningMenuItem
- EmployeeIdDataProvider (partially)
- EventsDataProvider, EventsModel
- ScannerMessageDataProvider
- SpeedTestProvider (partially)
- Shuttle (partially)
- MessagesDataProvider, MessageService
- ParkingModel, all Parking cards
- CardsProvider
- Home card
- News
- EventsModel
- NoticesDataProvider
- UserDataProvider, UserProfileService
- Notifications models, Notifications cards, Notifications providers
- WebView
- PushNotifications (wrapper)
- EmployeeIdDataProvider
- MapSearchModel, MapSearchService, MapsDataProvider, Maps cards
@parthshindee parthshindee linked an issue Aug 15, 2024 that may be closed by this pull request
6 tasks
@morebytes morebytes requested review from morebytes and removed request for c3bryant September 25, 2024 21:55
…ls_removal

# Conflicts:
#	ios/Podfile.lock
#	lib/core/models/availability.dart
#	lib/core/providers/availability.dart
#	lib/core/providers/cards.dart
#	lib/core/providers/messages.dart
#	lib/core/providers/user.dart
#	lib/core/services/dining.dart
#	lib/core/services/map.dart
#	lib/core/services/triton_media.dart
#	lib/core/services/weather.dart
#	lib/ui/availability/availability_display.dart
#	lib/ui/availability/manage_availability_view.dart
#	lib/ui/common/webview_container.dart
#	lib/ui/notifications/notifications_list_view.dart
#	lib/ui/profile/login.dart
Cleaned up some merge mistakes
…w? The way Coordinates is set up in the app, the entire system needs to be redesigned at some point to prevent future bugs like this
@morebytes
Copy link
Contributor

Talked w/ Charles. Decided to pause this until the Dart 3 migration gets merged in

@morebytes
Copy link
Contributor

Spoke with Alex. Most likely this will be paused until after the next release of Campus Mobile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: PR Review
Development

Successfully merging this pull request may close these issues.

Remove redundant nulls
3 participants