Commit Graph

56 Commits

Author SHA1 Message Date
Dylan Knutson
9e8f2651db Refactor FA cookie management and enhance testing
- Updated the FA cookie management in the Scraper::FaHttpClientConfig class to validate cookie formats and handle cookies more robustly.
- Removed the fa.yml configuration file and integrated cookie retrieval directly within the class.
- Added comprehensive tests for cookie handling in the new fa_http_client_config_spec.rb file.
- Updated the Gemfile to include parallel_tests in the test and development group.
- Modified the .rspec file to enable color output for better readability in test results.
- Simplified test commands in the justfile for improved usability.
- Adjusted the rails_helper.rb to ensure the test environment is correctly set up.
2024-12-30 02:00:30 +00:00
Dylan Knutson
3cfa166b4a Enhance Gemfile, update styles, and improve log entry handling
- Added `db-query-matchers` gem for improved query testing capabilities.
- Updated `sanitize` gem version to `~> 6.1` for better security and features.
- Refactored styles in `application.tailwind.css` for better responsiveness.
- Improved `LogEntriesController` to utilize `response_size` for more accurate data handling.
- Added a new `favorites` action in `Domain::Fa::PostsController` for better user experience.
- Enhanced `fa_post_description_sanitized` method in `Domain::Fa::PostsHelper` for improved HTML sanitization.
- Updated views for `Domain::Fa::Posts` to streamline layout and improve user interaction.
- Improved pagination controls for better navigation across post listings.
2024-12-29 20:30:10 +00:00
Dylan Knutson
ca914dbe25 Update .gitignore, Gemfile, and various job classes for improved functionality
- Added '*.notes.md' and '*.export' to .gitignore to prevent unnecessary files from being tracked.
- Refactored job classes in the Domain::Fa module to enhance logging and job enqueuing processes, including:
  - Improved logging messages in Domain::Fa::Job::Base for better clarity.
  - Added support for a new 'enqueue_favs_scan' option in user job processing.
  - Enhanced the FavsJob to utilize active fav post joins and added a 'removed' flag for better management of favorites.
- Updated user and post models to include scopes for active favorites and improved error handling in user creation.
- Enhanced the page parser to support new formats for favorites pages and added tests for these changes.
2024-12-29 01:26:39 +00:00
Dylan Knutson
7e02771431 Add pundit-matchers gem and enhance indexed post handling
- Added `pundit-matchers` gem to improve policy testing capabilities.
- Updated `BlobsController` to support a new "tiny" size option for avatars.
- Enhanced `IndexablePostsHelper` with a `show_path` method for different postable types.
- Refactored `IndexedPost` model to include methods for retrieving artist information and external links.
- Modified `Domain::E621::Post` model to initialize `tags_array` as a hash.
- Updated views for indexed posts to support new display formats (gallery and table).
- Improved test coverage with new user factory and updated specs for controller and job behaviors.
2024-12-27 21:56:26 +00:00
Dylan Knutson
18b9bf531c initial commit for devise and user auth 2024-12-27 19:03:08 +00:00
Dylan Knutson
5c1807711b Add testing utilities and improve test coverage with FactoryBot integration
- Added `shoulda-matchers` for enhanced RSpec testing capabilities.
- Introduced `factory_bot_rails` for easier test data creation.
- Created factories for `HttpLogEntry`, `BlobEntry`, and `Domain::Fa::Post` models.
- Updated `rails_helper.rb` to include FactoryBot methods and configure Shoulda matchers.
- Enhanced `HttpLogEntry` model with a new `response_size` method.
- Refactored `justfile` to include parallel test execution.
- Improved `Gemfile` and `Gemfile.lock` with new testing gems.
2024-12-27 16:59:27 +00:00
Dylan Knutson
2381df7d10 indexed posts enums 2024-12-25 21:53:47 +00:00
Dylan Knutson
355da6932b indexed posts, more specs 2024-12-25 17:30:03 +00:00
Dylan Knutson
9391a2cfe1 better styling for fa posts, users, index pages 2024-12-23 16:47:14 +00:00
Dylan Knutson
9265b55876 refactor UserSearchBar, js formatting 2024-12-22 19:10:33 +00:00
Dylan Knutson
432c13be42 upgrade to rails 7.2, ui improvements 2024-12-21 19:47:56 +00:00
Dylan Knutson
dba9fc1d4e fix tailwind suggestions, staging live reload 2024-12-19 19:16:42 +00:00
Dylan Knutson
29f671b41f tailwind updates, inkbunny listing stuff 2024-12-19 06:04:37 +00:00
Dylan Knutson
0715fa86e7 update good_job 2024-12-17 19:00:33 +00:00
Dylan Knutson
9de3c1b5e8 remove proxy code 2024-12-17 17:57:17 +00:00
Dylan Knutson
aad2f29e96 before redoing devcontainer files 2024-12-17 06:34:47 -08:00
Dylan Knutson
752b8c3b2c dockerfile 2023-10-08 19:40:54 -07:00
Dylan Knutson
bab5ff1e34 use influxdb 1.8 2023-08-21 16:05:08 -07:00
Dylan Knutson
fcb19bcd02 use vips for resizing 2023-08-21 11:16:08 -07:00
Dylan Knutson
a4247ff8b0 more useful fa user pages, post pages 2023-08-20 19:42:24 -07:00
Dylan Knutson
7824deac2d update good_job 2023-08-18 18:18:48 -07:00
Dylan Knutson
bdfd057cc8 remove id pk from follows, use composite index 2023-05-23 10:36:21 -07:00
Dylan Knutson
63994d5a62 fa user and post controller cleanup 2023-05-21 18:55:16 -07:00
Dylan Knutson
026d78bc29 add pghero to rails app, dymk fork 2023-05-19 17:33:53 -07:00
Dylan Knutson
2f7fbf29fe tighter ip constraint 2023-04-08 18:22:54 -07:00
Dylan Knutson
4e62fd4291 add rake task for dumping fa user info 2023-04-07 09:27:09 -07:00
Dylan Knutson
53a87dd829 reorganize initializers 2023-04-04 13:35:51 -07:00
Dylan Knutson
96aff2e233 commit before react_on_rails install 2023-04-04 21:37:54 +09:00
Dylan Knutson
e3c778316d basic user search impl 2023-04-03 22:13:02 +09:00
Dylan Knutson
75962d6960 initial react setup 2023-04-02 21:34:17 +09:00
Dylan Knutson
745df8965e placeholder root page 2023-04-02 14:23:46 +09:00
Dylan Knutson
091926f9be add tailwind css and home page scaffold 2023-04-01 23:27:40 +09:00
Dylan Knutson
b33028eb6e scaffold out recommendation user script 2023-04-01 21:12:42 +09:00
Dylan Knutson
7108f33a01 improve post enqueuer speed 2023-04-01 11:22:00 +09:00
Dylan Knutson
f808c736cd remove separate dev envs, add faiss 2023-03-31 11:24:02 +09:00
Dylan Knutson
9f2c82edce separate dev env for curtus / regius 2023-03-30 22:34:44 +09:00
Dylan Knutson
b7b2e368b8 pluck instead of full object select 2023-03-30 21:33:02 +09:00
Dylan Knutson
41bcabcf4a add procfile, remove old log watcher stuff 2023-03-27 20:26:43 +09:00
Dylan Knutson
deb7415650 add good_job, add spec for browse page job 2023-03-26 00:55:17 +09:00
Dylan Knutson
df570589d4 get tests running against local legacy db fixtures 2023-03-25 21:30:03 +09:00
9bd3feeac6 refactor user script, add deleted_at to e621 posts 2023-03-07 13:11:16 -08:00
406080cef6 moduleify color logger, use rspec 2023-03-06 09:58:32 -08:00
a9ef897c42 add performed_by to HLE 2023-02-28 23:16:16 -08:00
8d980ba842 browser for fa posts and users, initial impl 2023-02-24 20:40:07 -08:00
b04be50e2d http log browser initial implementation, make models immutable, create jobs for fa scraping 2023-02-23 15:55:19 -08:00
548daa9127 basic fa browse job scaffolding 2023-02-19 22:58:40 -08:00
c28ab1435f add basic http client 2023-02-19 18:19:57 -08:00
23a1b4f0ef import legacy fa page parser 2023-02-17 23:08:51 -08:00
9e0f0798aa fa importer job refactors and bug fixes 2023-02-12 17:29:25 -08:00
f24e361e34 fa post importer with basic legacy log matchup 2023-02-09 06:20:40 +00:00