fix: Correct import paths in schema initialization script#13
Open
DharmpratapSingh wants to merge 8 commits into
Open
fix: Correct import paths in schema initialization script#13DharmpratapSingh wants to merge 8 commits into
DharmpratapSingh wants to merge 8 commits into
Conversation
- Fixed src directory path to backend/src - Updated .env path to backend/.env - Added helpful error message for missing .env file
- Lists all existing schemas on Walacor tenant - Checks for required IntegrityX schemas (ETIds 100001-100004) - Checks for schema creation meta-schema (ETId 50) - Provides recommendations based on findings
- Shows actual field definitions from Walacor - Compares with expected schema structure - Lists all fields, types, required status, and indexes - Helps identify schema mismatches
- Changed from get_schema() to get_list_with_latest_version() - Find schemas in the list by ETId - Should now properly display field definitions
- Fix seal_document_hash to send all required loan_documents fields - Fix seal_loan_packet to match loan_documents schema structure - Fix log_audit_event to match audit_logs schema (add user, fix timestamp format) - Fix add_provenance_link to use DATETIME_EPOCH format for timestamp - Fix create_attestation to use DATETIME_EPOCH format and make signature optional - All timestamps now use int epoch format instead of ISO strings - All fields now match the exact Walacor schema definitions
- Tests direct insertion into loan_documents and audit_logs schemas - Shows exact data being sent - Displays detailed error messages from Walacor - Helps diagnose insertion failures
- Added detailed exception attribute inspection - Added response body and headers capture - Added query test to check if schema reads work - Added diagnosis section explaining 500 errors - Provides recommended actions for debugging
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.
Pull Request
Description
Type of Change
Checklist
Testing
Related Issues