Commit Graph

50 Commits

Author SHA1 Message Date
rubic0n
28beb28a78 Upgrade to Rails 6
- Added listen gem because rails app:update failed without it
- Removes nsa gem because it requires activesupport < 6
  Oddly, there's a newer version per GitHub that's not on RubyGems
  that raises the requirement to < 7. But, we need a new release
  before we can use that.
- Upgrade rails-i18n to v6, for Rails 6 compatibility
- Remove redis-rails since it requires Rails < 6, but we can just use
  the regular Rails :redis_cache_store that was introduced in 5.2.
- Run `rails app:update`
  - Had to weed through the `config/environments` changes to pick up
    newly added settings, while not losing settings that were
    intentionally configured
  - This generated config/initializers/new_framework_defaults_6_0.rb.
    The goal is to uncomment all of the settings in that file. Once
    they're all uncommented, delete the file and edit
    config/application.rb's load_defaults to be 6.0.
  - force_ssl controller method is deprecated in favor of a Rails
    config setting.
  - bin/setup was generated by Rails
  - Verbose query logging in development is really helpful. It shows
    you what line of code caused a query to execute.
  - Calling establish_connection after worker boot isn't necessary
    with ActiveRecord anymore. ActiveRecord handles it gracefully.
  - Rails generated a migration to add a foreign key for ActiveStorage.
    Gab currently doesn't use ActiveStorage, and instead uses Paperclip
    (since ActiveStorage didn't exist when Mastadon started). So, this
    change isn't relevant to Gab.
- Added ` || ''` in the profiles controller, because I was unable
  to save a change to a newly created profile. (This probably
  explains the 500 error I received on prod Gab recently.)
2021-01-23 09:01:31 -06:00
Fosco Marotto
775439f194 [index] Add index on polls id and lock_version 2021-01-17 21:26:56 -05:00
Fosco Marotto
bde7172ba4 [index] Add 2 indexes on accounts table 2021-01-17 12:51:15 -05:00
Fosco Marotto
e29925e534 [index] index on users.remember_token 2021-01-17 11:13:39 -05:00
Fosco Marotto
c1213f4137 [index] add index on reports.action_taken 2021-01-08 12:36:49 -05:00
Fosco Marotto
7a58d0fa58 [index] Add index on status_stats.created_at 2021-01-03 15:02:40 -05:00
Fosco Marotto
ecb5c6554c [index] add index on status_revisions.status_id 2021-01-02 23:12:32 -05:00
admin
fb0b654e11 Update 20201203213108_add_unread_count_to_chat_conversation_accounts_not_null.rb 2020-12-22 20:07:30 +00:00
mgabdev
6fbea0a59e Progress on little important things
removing .mov for now until we can figure out solution with videojs, added model to track username changes, got chat creation flow down, progress on bookmark collections, albums, filtering blocks/mutes from group, explore, collection timelines
2020-12-22 01:36:38 -05:00
mgabdev
2bbb5be505 Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into feature/removing_ruby_junk 2020-12-21 18:38:35 -05:00
mgabdev
47cd60f851 Progress
added composer query string functionality for url, text. fixed issue with no user in base_controller, cleaned up video component, albums starting
2020-12-17 23:46:37 -05:00
mgabdev
5a37a7090e Progress
accounts approved, video player testing, bookmark collections
2020-12-17 01:34:00 -05:00
mgabdev
8f94ffad9c Progress 2020-12-16 02:39:07 -05:00
mgabdev
75d52c841e Progress 2020-12-15 19:31:30 -05:00
Fosco Marotto
f0d4e89279 [migration] make this index creation conditional 2020-12-12 16:46:53 -08:00
mgabdev
586935f07f Merge branch 'develop' of https://code.gab.com/gab/social/gab-social into feature/removing_ruby_junk 2020-12-09 00:00:35 -05:00
mgabdev
c18991f174 Added LinkBlock functionality in admin
• Added:
- LinkBlock functionality in admin
2020-12-08 23:19:10 -05:00
mgabdev
137a36b810 Progress with DMs
Progress with DMs
2020-12-03 17:13:11 -05:00
mgabdev
9a43c51085 Progress on dms, code cleanup
Progress on dms, code cleanup
2020-12-02 23:22:51 -05:00
mgabdev
6e17b7c17b Updated GroupCategory functionality with Groups
• Updated:
- GroupCategory functionality with Groups
2020-09-10 17:12:43 -05:00
mgabdev
cc224d7659 Added password field to Group model
• Added:
- password field to Group model
2020-09-02 17:56:16 -05:00
mgabdev
4a8cd0b585 Updates to groups sorting
• Updates to groups sorting
2020-08-08 13:08:48 -05:00
mgabdev
421ca77587 Added new migrations
• Added:
- new migrations
2020-08-06 23:19:34 -05:00
mgabdev
0c2b6fb112 Added migration for CreateGroupPinnedStatuses
• Added:
- migration for CreateGroupPinnedStatuses
2020-08-06 00:24:12 -05:00
mgabdev
bc54a281e6 Added migration for adding has_quote to statuses
• Added:
- migration for adding has_quote to statuses
2020-08-05 23:15:38 -05:00
mgabdev
f3ff407ba0 Added migration for adding slug, is_private, is_visible, tags, category to group
• Added:
- migration for adding slug, is_private, is_visible, tags, category to group
2020-08-05 23:01:37 -05:00
mgabdev
da62ddbbc8 Added migrations for CreatingGroupCategories
• Added:
- migrations for CreatingGroupCategories
2020-08-05 23:01:15 -05:00
mgabdev
09489ec03e Removed add_index from AddExpiresAtToStatus
• Removed:
- add_index from AddExpiresAtToStatus
2020-07-24 21:44:37 -05:00
mgabdev
86c1b3c75d Added expires_at to Status
• Added:
- expires_at key to Status
2020-07-24 18:49:00 -05:00
mgabdev
13af58da7a Added bookmarks
• Added:
- bookmarks for GabPRO members only
- migration for creation of StatusBookmarks
- all necessary routes, controllers
- redux for adding, removing, fetching and displaying bookmarks
- bookmark icon
- doorkeeper scopes
- backend and frontend support

Bookmarks behave like likes/favorites, except they aren't shared with other users and do not have an associated counter.

dfea7368c9
2020-07-24 18:48:31 -05:00
mgabdev
405ace09da Added migration for creating Shortcuts
• Added:
- migration for creating Shortcuts
2020-07-21 22:17:20 -05:00
admin
5b22f7eda7 Update db/migrate/20200710130615_add_pro_users_feed_materialized_view.rb 2020-07-10 13:45:25 +00:00
admin
02c71b8af9 Update 20200710130615_add_pro_users_feed_materialized_view.rb 2020-07-10 13:38:10 +00:00
admin1
d5293c2e1d added pro_users_feed_matview 2020-07-10 09:33:13 -04:00
mgabdev
5c36a30b69 Added new migrations for adding indexes
• Added:
- new migrations for adding indexes
2020-07-07 17:25:47 -05:00
mgabdev
bb0182c1e1 pull 2020-05-11 23:34:18 -04:00
mgabdev
dbe5461df2 Non-follows allowed in lists 2020-04-30 12:34:13 -04:00
mgabdev
fed036be08 Progress 2020-04-22 01:00:11 -04:00
Alex Gleason
4052329ca4
Add unique_email field 2020-03-10 17:44:32 -05:00
mgabdev
f7037644f0 Don't use ForeignKey for User.last_read_notification
dc7bc17267
2020-01-16 18:25:25 -05:00
mgabdev
7fb0b462e2 Fix notifications
https://gitlab.com/soapbox-pub/soapbox/merge_requests/120/diffs#diff-content-917c7fb80cf426cfae1e7baaa21b3d90ccb2b29c
2020-01-16 18:24:10 -05:00
2458773093
cdc0b8dd2f new revision migrations 2019-09-17 17:21:45 +03:00
2458773093
044e9695fe model/migration for promoted statuses 2019-09-04 00:14:50 +03:00
2458773093
3e5b9a994f migration for quote schema update 2019-08-04 15:24:37 +03:00
2458773093
bf2d54201b group member count optimization 2019-07-22 03:46:00 +03:00
2458773093
7bd832c9bd better migrations for unread count field on group accounts table 2019-07-22 02:50:01 +03:00
2458773093
a6f09dc0c7 group unread count 2019-07-22 01:06:32 +03:00
2458773093
520c125e21 group_removed_users table to forbid users joining once removed 2019-07-16 20:46:03 +03:00
robcolbert
1ef1a3881d change all GitHub links to Gab's GitLab at code.gab.com 2019-07-03 13:26:13 -04:00
robcolbert
bd0b5afc92 Gab Social. All are welcome. 2019-07-02 03:10:25 -04:00