Commit Graph
20 Commits
Author SHA1 Message Date
retoor bb5e809ace fix: switch comment update request from GET to POST and remove debug print 2024-12-03 18:50:30 +00:00
retoor 89b8c6b14e chore: add debug print of auth response json in patch_auth method 2024-12-03 18:46:09 +00:00
retoor b5fec97682 fix: parse response json before checking success field in comment update
The fix ensures the response object is deserialized via `await response.json()` before accessing the `"success"` key, preventing an `AttributeError` when the raw response lacks a `.get()` method. This corrects the empty reply issue when input is missing or malformed.
2024-12-03 18:15:48 +00:00
retoor 7a01fa4dc9 chore: rename build configuration file from build.yml to build.yaml for consistency 2024-12-03 18:00:28 +00:00
retoor d4fde2a8ec fix: guard against null avatarUrl in UserProfileAvatarLoader component 2024-12-03 17:58:28 +00:00
retoor f33b12f262 chore: rename build config files and update CI pipeline references to new paths 2024-12-03 17:56:51 +00:00
retoor ec7a091cec chore: remove deprecated build step for legacy deployment pipeline
- Delete the "Build legacy artifacts" step from .gitea/workflows/build.yaml
- Add a "Pull repo" step before listing files to ensure fresh checkout
- Simplify pipeline by removing unused legacy build logic
2024-12-03 17:52:46 +00:00
retoor d0b03e4cbc chore: add update_comment method and clean up whitespace in api.py 2024-12-03 17:49:12 +00:00
retoor a9654c715d fix: correct YAML indentation for step run directives in build workflow 2024-12-03 03:08:16 +00:00
retoor 2289f5926e chore: add build, install, run, test, and push steps to CI workflow 2024-12-03 03:02:36 +00:00
retoor d2b1228141 feat: add initial package build artifacts for devranta version 1.0.0 2024-12-03 02:55:27 +00:00
retoor 50f52b7281 fix: replace async generator with direct await to handle empty input array in main_async
The previous implementation used an async generator `api.get_rants()` which would raise a `StopAsyncIteration` error when the input array was empty. By switching to `await api.get_rants()` which returns a list, the code now correctly handles the edge case where no rants are available, allowing the for loop to iterate over an empty list without raising an exception.
2024-12-03 02:54:31 +00:00
retoor 933c5afb0b feat: add get_comments_from_user method to Api class and corresponding async test case 2024-12-03 02:52:56 +00:00
retoor e669166696 refactor: replace async generators with direct list returns in Api methods and tests
The commit removes all async generator functions from the Api class, converting `get_rants`, `search`, `mentions`, and `notifs` to return lists directly instead of yielding items. This eliminates the need for the `async_list` and `async_len` test helper utilities, simplifying the test assertions to use standard `len()` calls. The change reduces code complexity by removing generator overhead and dead helper code that was only used to consume the generators.
2024-12-02 23:57:59 +00:00
retoor 75541cb388 docs: add link to prebuilt packages archive in README overview section 2024-12-02 16:55:22 +00:00
retoor 44424f6ba9 chore: remove outdated dist artifacts for retoorded 1.3.37 wheel and tarball 2024-12-02 16:51:03 +00:00
retoor 046ecb16eb chore: add auto-commit and push steps to build workflow after tests 2024-12-02 16:49:20 +00:00
retoor d848352189 docs: add project description and setup instructions to README
- Replace vague "About" heading with direct project description
- Add setup instructions for installing via pip and configuring authentication
- Include usage examples for basic API calls and error handling
2024-12-02 16:46:23 +00:00
retoor 713347f22c docs: add make install step to build workflow and update README with todo list 2024-12-02 16:43:40 +00:00
retoor 7ab84098cc chore: scaffold devranta project with Makefile, CI workflow, and async API client stub 2024-12-02 16:41:02 +00:00