Replace schedule operations with information block operations in ledger client#100
Merged
Replace schedule operations with information block operations in ledger client#100
Conversation
- Added functionality to update and delete information blocks through new API endpoints. - Introduced models for creating and updating information blocks, including payload structures. - Enhanced LedgerClient with methods to fetch individual information blocks and list them with optional filters. - Updated GraphQL queries and parsing functions to support new information block features. - Added tests for the new information block functionalities, ensuring correct behavior and handling of edge cases.
…n block operations - Updated imports in ledger_client.py to replace schedule-related operations with information block operations. - Removed CreateScheduleRequest, DeleteScheduleRequest, UpdateScheduleRequest, and related models. - Introduced CreateInformationBlockRequest, DeleteInformationBlockRequest, UpdateInformationBlockRequest, and their payloads. - Modified methods in LedgerClient to handle information blocks instead of schedules. - Updated unit tests to reflect changes in the operations and ensure correct functionality for information blocks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactors the ledger client to replace the schedule-based domain model with a new Information Block abstraction. This is a significant domain shift that renames and restructures CRUD operations, request/response models, and GraphQL queries throughout the client library. Additionally, a new Evaluate Rules operation is introduced.
Key Accomplishments
Domain Model Replacement
op_create_schedule,op_delete_schedule,op_update_schedule) to their information block equivalents (op_create_information_block,op_delete_information_block,op_update_information_block)CreateScheduleRequest,UpdateScheduleRequest,DeleteScheduleRequest,ScheduleMetadataRequest,EntryTemplateRequest, andEntryTemplateRequestEntryTypeCreateInformationBlockRequest,CreateInformationBlockRequestPayload,UpdateInformationBlockRequest,UpdateInformationBlockRequestPayload,DeleteInformationBlockRequest,DeleteInformationBlockRequestPayloadNew Evaluate Rules Operation
op_evaluate_rules— a new operation (301 lines) for evaluating rules against the ledgerEvaluateRulesRequestmodelClient & Query Layer Updates
ledger_client.pyto expose information block operations and the new evaluate rules operationmodels/__init__.pyBreaking Changes
create_schedule→create_information_blockupdate_schedule→update_information_blockdelete_schedule→delete_information_block*ScheduleRequest/*ScheduleMetadataRequest/EntryTemplateRequest*models are removed and replaced with*InformationBlock*equivalentsEntryTemplateRequestandScheduleMetadataRequestin favor of a flatter payload model)Testing Notes
test_ledger_client.pyhas been substantially updated (124 lines changed) to cover the new information block operations and evaluate rules functionalityInfrastructure Considerations
🤖 Generated with Claude Code
Branch Info:
feature/information-blockmainCo-Authored-By: Claude noreply@anthropic.com