Fernando Valverde
7caafc8ea7
Fix Rpush app when creating Android notification ( #15529 )
...
* Fix Rpush app when creating Android notification
* Include Android devices in Service spec
* Apply suggestions from code review
Co-authored-by: Michael Kohl <citizen428@forem.com>
Co-authored-by: Michael Kohl <citizen428@forem.com>
2021-11-30 10:05:40 +05:30
Josh Puetz
7f88e4a722
Add mutable flag to APNS notifcation payload ( #14777 )
2021-09-21 15:37:43 -05:00
Josh Puetz
ed1731fd95
Change mobile new comment notification text and add sound ( #14678 )
2021-09-13 11:15:58 -05:00
Fernando Valverde
e45b6c5ab2
Adds validations to avoid creating unnecessary PNs ( #14621 )
...
* Adds validations to avoid creating unnecessary PNs
* Fix conditional + add tests
* Trigger CI
* Trigger CI
* Add missing rpush mock in spec
* Mock before testing d'oh
* Extend ability to mock rpush in helpers
* Remove unnecessary user3 from spec
2021-08-31 15:00:30 -06:00
Michael Kohl
baa94a0abd
Various cleanups ( #14616 )
...
* Remove unused constant
* Remove unused column from OrganizationMembership
* Remove outdated comment
* Remove references to no longer existing roles
* Remove legacy service worker code
* Remove duration_in_seconds_column from podcast_episodes
* Remove app_bundle from devices
2021-08-31 09:17:24 +07:00
dependabot[bot]
609afc71c7
Bump rubocop from 1.15.0 to 1.16.0 ( #13894 )
...
* Bump rubocop from 1.15.0 to 1.16.0
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Enable new cops and fix violations
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rhymes <github@rhymes.dev>
2021-06-02 09:11:38 -04:00
Michael Kohl
b7ff9aadd1
Clean up SiteConfig ( #13738 )
...
* Remove obsolete SiteConfig values
* Remove DUS
* fixup! Remove obsolete SiteConfig values
* fixup! Remove obsolete SiteConfig values
* Add DUS for removing SiteConfig values
* Fix specs
* Fix specs
* Clean up more DUS
* Update DUS
* Fix remaining spec
* Remove leftover spec
* Fix more specs
* Fix spec
* Remove deprecated spec
* Rearrange specs
* Temporarily disable specs
2021-05-18 09:38:31 +07:00
rhymes
cf9f6094cd
Have specs run without Redis and refactor ConsumerApp and Device ( #13647 )
...
* Add fakeredis gem
* Mock Pusher::PushNotifications in specs
* Remove Redis from Travis
* Add Android tests to ConsumerApp specs
* Use mock for push notification tests and refactor ConsumerApp and Device code
* Fix remaining broken specs
* Use symbols
* Cleanup rpush helpers
* Pusher::PushNotifications is no more
* Use human friendly platform in Admin::ConsumerApps index page
2021-05-07 08:03:16 +02:00
Fernando Valverde
e602d50d32
Push Notification multi app support ( #13304 )
...
* PushNotificationTarget model + /admin/push_notifications (index)
* Admin panel CRUD + request tests
* Migrate Redis backed Rpush model responsibilities into PushNotificationTarget
* Fix failing specs
* Fix conflicts + clean up test by using constant reference
* Removed unused policy
* policy + services + misc feedback
* PushNotificationTarget refactored to AppIntegration
* Review feedback
* Some small cleanup
* Refactor AppIntegration -> ConsumerApp
* Fixing specs
* Trigger Travis
* More naming refactor changes
* Refactor services into queries
* Revert to where(...).first, fix typo and tests
* Apply suggestions from code review
Co-authored-by: rhymes <rhymes@hey.com>
* PR review feedback - create_or_find_by, validations, renaming + more tests
* Fix aria-label text
* Remove unnecessary individual index - composite index will do
Co-authored-by: rhymes <rhymes@hey.com>
2021-04-21 17:13:01 -06:00
Josh Puetz
c3174cade8
Push Notification stats instrumentation ( #13118 )
2021-04-19 09:42:01 -05:00
Fernando Valverde
99af03f819
Sanitize Rpush iOS PEM certificate ( #13129 )
2021-03-25 11:09:29 -06:00
Fernando Valverde
cf3bde4259
Add mobile push notifications to Forem ( #12419 )
...
* First commit with iOS PN working
* RPush cleanup worker + unique jobs config
* Remove rpush tables from schema.rb
* PR feedback
* Feature flag and test for route
* Tests and feature flag PushNotification ::Send
* Update app/controllers/devices_controller.rb
Co-authored-by: Michael Kohl <citizen428@dev.to>
* Update spec/routing/devices_routes_spec.rb
Co-authored-by: Michael Kohl <citizen428@dev.to>
* Update spec/services/push_notifications/send_spec.rb
Co-authored-by: Michael Kohl <citizen428@dev.to>
* PR feedback
* Set Rpush driver and url
* More PR feedback
* Apply suggestions from code review
Co-authored-by: Jamie Gaskins <jgaskins@gmail.com>
* PR feedback from Rhymes
* Don’t double render
* Sure
Co-authored-by: Josh Puetz <hi@joshpuetz.com>
Co-authored-by: Josh Puetz <josh@dev.to>
Co-authored-by: Michael Kohl <citizen428@dev.to>
Co-authored-by: Jamie Gaskins <jgaskins@gmail.com>
2021-03-12 14:08:18 -06:00