Commit Graph
81 Commits
Author SHA1 Message Date
James Smith 73d65f788b delegate permissions to groups memberships in default policy 2025-12-10 23:05:39 +00:00
James Smith ddb2378b56 let groups have permissions on things 2025-12-10 23:05:39 +00:00
James Smith 7433a58f3b add method to match permissions back to presets 2025-10-23 23:46:10 +01:00
James Smith 0e9a2d7144 check that owner relation isn't overwritten by presets 2025-10-23 17:24:53 +01:00
James Smith 0335087af4 make sure public validations are applied when using presets 2025-10-23 17:21:13 +01:00
James Smith 6bafa9ef4f Allow permission presets to be used during normal updates 2025-10-23 17:00:18 +01:00
James Smith 6f55216dd3 Ignore all links to the local hostname
If we do need to link between models, we will do it with proper relationships.
2025-10-15 15:49:24 +01:00
James Smith b561219a2a add tests for permission_preset 2025-10-10 10:24:45 +01:00
James Smith 53d5074f58 set owner using new attribute 2025-10-10 10:24:45 +01:00
James Smith e93ff33708 update tests to specify private default role explicitly 2025-10-10 09:53:20 +01:00
James Smith 8cdf4919d6 Add option to make models public by default 2025-10-08 15:53:21 +01:00
James Smith 18fee5753b use contain_exactly for array comparison to avoid ordering problems 2025-09-19 16:11:53 +01:00
James Smith 452c12a129 fix some db-dependent autonumbering expectations in tests 2025-09-19 13:15:52 +01:00
James Smith 622c6ae0c9 add scope for finding objects by link 2025-07-16 11:34:03 +01:00
James Smith 8cddc242d7 change indexable fields to strings instead of enums
Because Rails 7.1+ refuses to allow an enum definition without a field, using enums causes earlier data migrations to break.
2025-06-21 23:38:06 +01:00
James Smith 398d95bada delegate indexer flags via creator (and parent collection for Collections) 2025-06-20 17:55:33 +01:00
James Smith 44d3dac53b option to override or inherit indexing from site defaults 2025-06-20 17:32:46 +01:00
James Smith 915115e100 add indexable and ai_indexable query methods for all actors and files 2025-06-20 12:38:10 +01:00
James Smith 70f1cd9c52 Don't overwrite permissions with defaults if already set 2025-06-16 20:21:58 +01:00
James Smith 62af8742da Fix default viewer role bug by not trying to store nil 2025-06-10 14:55:54 +01:00
James Smith a1a3abd11d add tests for default visibility role setting 2025-06-10 14:55:54 +01:00
James Smith 247ae43806 update tests for newer factory tag default 2025-04-15 17:50:08 +01:00
James Smith 66c2543d96 move PathParser functionality into job 2025-04-02 21:16:47 +01:00
James Smith 5a918d5455 extract path parsing into service object 2025-04-02 21:16:47 +01:00
James Smith 0536e874ab update federails 2025-02-10 16:29:48 +00:00
James Smith 1a8178b628 show pending follow states in UI 2025-01-28 12:21:49 +00:00
James Smith fc04e79a37 #actor changed to #federails_actor 2024-12-09 15:38:33 +00:00
James Smith 53ebe8c2c7 Make default activities post correct object type 2024-10-11 10:38:33 +01:00
James Smith 2a0c7cae4b don't set default owner if already set 2024-10-11 10:08:00 +01:00
James Smith 6b750e5b33 add ability to set owner permission at creation time 2024-10-11 10:07:59 +01:00
James Smith 6e31f47c83 make followable tests more precise 2024-10-11 00:45:44 +01:00
James Smith 24e3c0984d Revert "remove automatic activity posting from followable"
This reverts commit fc5276b3a3.
2024-10-10 17:02:13 +01:00
James Smith fc5276b3a3 remove automatic activity posting from followable 2024-10-09 14:09:55 +01:00
James Smith f7535113e3 models, creators, and collections can have comments 2024-10-08 10:43:23 +01:00
James Smith f89f11a053 Automatically rerun integrity checks on model save 2024-09-23 11:04:20 +01:00
James Smith 2763896fec disable lint warning for update_column 2024-09-17 20:48:49 +01:00
James Smith 850e4db72d make sure tag ordering is stable 2024-09-17 19:04:56 +01:00
James Smith 85ed544ddc lint 2024-09-04 10:03:32 +01:00
James Smith 3418b908ce DRY up sluggable tests 2024-09-04 09:53:53 +01:00
James Smith 4000da163d Add test to make sure models and users have caber permissions 2024-08-30 14:45:19 +01:00
James Smith a62f64cf97 add tests for repeated activity creation 2024-08-20 17:30:50 +01:00
James Smith 9bc61c0b71 update follow activity test to cope with new activities 2024-08-02 13:00:55 +01:00
James Smith 30f287c315 switch to polymorphic branch of federails 2024-08-01 11:31:49 +01:00
James Smith 68e5708d03 fix tests and check activity creation for follows 2024-07-31 10:45:37 +01:00
James Smith 6cd4b5e73c Add followable/follower concern and tests
just user->user for now, that will change when federails gets a polymorphic relationship there
2024-07-31 10:45:36 +01:00
James Smith e74bd72b5a add access to listers, and test in shared examples 2024-07-27 12:34:16 +01:00
James Smith 6f92d46a91 move listable tests into a shared example 2024-07-26 23:24:49 +01:00
James Smith 613ef2fa59 lint: move rspec rubocop fails into TODO comments inline 2024-02-28 15:05:19 +00:00
James Smith bd6f45c978 combine multiple stubs into one with receive_messages 2023-08-04 16:49:24 +01:00
James Smith 239c86f398 Removes dashes from path-parsed tags 2023-06-19 09:36:45 +01:00