You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugin registry github and Smart contract management (#14)
* Update plugin handling and enhance file input functionality
- Added validation for existing plugins during updates to ensure they exist before proceeding, improving error handling and user feedback.
- Preserved deployment status when updating plugins to maintain consistency in their configurations.
- Introduced a new `FileValue` struct for handling file-based x-source values, including validation and volume mount configurations.
- Enhanced the `DeploymentModal` to support file input, allowing users to upload or paste file contents directly, improving usability.
- Updated Swagger documentation to reflect changes in API endpoints and request structures.
These changes enhance the overall functionality and user experience when managing plugins and file inputs within the application.
* Add metrics management commands and enhance API functionality
- Introduced new commands for enabling and disabling Prometheus metrics, allowing users to manage metrics deployment directly from the CLI.
- Implemented HTTP handlers for the new metrics commands, ensuring proper request handling and response formatting.
- Enhanced the metrics service layer to support the new commands, including validation and error handling for metrics operations.
- Updated Swagger documentation to reflect the new API endpoints and their functionalities, improving usability for developers.
These changes enhance the overall functionality of the application by providing users with better tools for managing metrics and Prometheus integration.
* Update Swagger documentation and enhance response models for metrics API
- Updated Swagger documentation to reflect new response structures for metrics-related endpoints, ensuring accurate descriptions and references.
- Introduced new response models: `MessageResponse`, `LabelValuesResponse`, and `MetricsDataResponse` to standardize API responses across metrics endpoints.
- Enhanced error handling and response formatting in the metrics handler methods to utilize the new structured response models, improving consistency and clarity.
These changes improve the overall usability and maintainability of the metrics API, providing clearer and more structured responses for users.
* Enhance application structure and add smart contract deployment functionality
- Updated `.gitignore` to include logs and environment-specific files, improving project cleanliness.
- Modified `go.mod` and `go.sum` to add new dependencies for smart contract deployment and plugin management, ensuring compatibility with the latest features.
- Implemented a new `chainlaunchdeploy` package for handling smart contract deployments on EVM and Fabric networks, including validation and error handling.
- Introduced HTTP handlers for smart contract deployment requests, enhancing the API with new endpoints for Besu and Fabric deployments.
- Updated Swagger documentation to reflect the new deployment endpoints and their request/response structures, improving API usability.
These changes enhance the overall functionality of the application by providing robust support for smart contract deployments and improving project organization.
* Update
* Refactor Fabric chaincode routes and enhance peer handling
- Updated HTTP routes for Fabric chaincode operations to include peer ID in the URL, improving clarity and specificity in API requests.
- Introduced new stub functions for peer lookup and conversion to gateway, laying the groundwork for future implementation.
- Enhanced error handling in chaincode installation, approval, and commit methods to ensure robust validation and logging for peer-related operations.
These changes improve the overall structure and error management of the Fabric chaincode handling, ensuring better API usability and maintainability.
* Update plugin registry configuration and enhance GitHub source handling
- Changed the plugin registry source name from "github-public-plugins" to "plugin-hlf-api" for better clarity.
- Updated the URL for the GitHub source to point to the correct repository.
- Refined the file filtering logic in the GitHub source to only consider "plugin.yaml" or "plugin.yml" files, improving accuracy in plugin metadata retrieval.
- Enhanced the PluginMetadata structure to include additional fields such as Tags, Author, License, Hash, Rating, Downloads, Created, Updated, and Labels for better plugin information representation.
These changes improve the plugin management functionality and ensure more accurate handling of plugin metadata.
* Update API documentation and enhance plugin management functionality
- Updated Swagger and YAML documentation to reflect changes in Fabric chaincode operations, including new endpoints for deploying and approving chaincode with peer ID in the URL.
- Enhanced the PluginMetadata structure to include a new field for raw YAML, improving the representation of plugin data.
- Introduced new API methods for managing available plugins, including installation and refreshing of plugin lists, enhancing user experience in the plugins page.
These changes improve the overall usability and maintainability of the API and plugin management features, ensuring better clarity and functionality for users.
* Enhance API documentation and introduce new tags for improved clarity
- Updated Swagger documentation to include new tags for Audit and Metrics management operations, enhancing the organization and discoverability of API endpoints.
- Modified existing handler methods to reflect the new tag names, ensuring consistency across the codebase.
- Improved the structure of the Fabric chaincode deployment handler to include a node service, facilitating better peer management during operations.
These changes enhance the overall usability and maintainability of the API, providing clearer documentation and improved functionality for users.
* Update it
* Enhance Fabric chaincode deployment functionality and API documentation
- Introduced new endpoints for listing deployed Fabric chaincodes and deploying chaincodes using Docker images, improving the API's capabilities for managing smart contracts.
- Updated the HTTP handler to include a new ChaincodeService for better separation of concerns and improved business logic handling.
- Enhanced Swagger documentation to reflect the new endpoints and their request/response structures, ensuring clarity and usability for developers.
- Implemented database operations for managing Fabric chaincodes, including insertion and updates, to support the new functionalities.
These changes significantly improve the overall functionality and maintainability of the application, providing users with better tools for managing Fabric chaincodes.
* Update Fabric chaincode API documentation and enhance deployment features
- Improved Swagger documentation for Fabric chaincode endpoints, including detailed descriptions and response models for listing and retrieving chaincodes, ensuring clarity for developers.
- Enhanced the API to support new functionalities for managing Fabric chaincodes, including detailed runtime information and Docker deployment options.
- Updated HTTP handlers to reflect changes in the service layer, ensuring better separation of concerns and improved error handling.
- Implemented new database operations for managing chaincode definitions and peer statuses, enhancing the overall functionality of the application.
These updates significantly improve the usability and maintainability of the Fabric chaincode management features, providing users with better tools for deployment and monitoring.
* Enhance ChaincodeService with logging and new functionalities
- Updated ChaincodeService to include a logger for improved debugging and error tracking.
- Modified the NewChaincodeService constructor to accept a logger parameter, ensuring better logging practices.
- Implemented new methods for generating connection packages and handling code tar.gz files, enhancing the deployment process for chaincodes.
- Improved error handling and logging throughout the service methods, ensuring robust operation and easier troubleshooting.
These changes significantly enhance the functionality and maintainability of the ChaincodeService, providing better tools for managing chaincode deployments.
* Refactor Fabric chaincode management and enhance API functionality
- Updated the ChaincodeService to include a nodesService for improved peer management during chaincode operations.
- Modified HTTP handlers to reflect changes in the service layer, ensuring better separation of concerns and improved error handling.
- Enhanced Swagger documentation for Fabric chaincode endpoints, including updated descriptions and response models for better clarity.
- Implemented new database operations for managing chaincode definitions and events, enhancing the overall functionality of the application.
These updates significantly improve the usability and maintainability of the Fabric chaincode management features, providing users with better tools for deployment and monitoring.
* Refactor FabricChaincodesPage to improve query handling and state management
- Removed unused queryClient and replaced it with refetch functions for better control over data fetching.
- Updated the useQuery hooks to include refetch capabilities for networks and chaincodes, enhancing the responsiveness of the component.
- Improved the success handling of chaincode creation to directly refetch chaincodes instead of invalidating queries, streamlining the data update process.
These changes enhance the performance and maintainability of the FabricChaincodesPage, providing a more efficient user experience.
* update
* Refactor DefinitionTimeline component for improved readability and performance
- Simplified the useQuery hook for fetching timeline data by removing unnecessary line breaks.
- Streamlined conditional rendering for result icons and button components to enhance code clarity.
- Utilized useMemo for filtering available peers, optimizing performance during re-renders.
- Consolidated error message rendering for better consistency across the component.
These changes enhance the maintainability and performance of the DefinitionTimeline component, providing a more efficient user experience.
* Update
* Enhance Docker image pull handling in metrics and Besu node management
- Updated the Prometheus and Besu Docker handlers to read and log the image pull response, improving visibility during the image pull process.
- Implemented error handling for the image pull response reading, ensuring robust operation and easier troubleshooting.
These changes enhance the reliability and maintainability of the Docker image management features in the application.
* Refactor log handling in Node HTTP and React components
- Updated the TailLogs handler to format log messages correctly for SSE by adding "data: " prefix.
- Replaced the fetch-based log retrieval in NodeDetailPage and NodesLogsPage with EventSource for real-time log streaming, improving performance and user experience.
- Implemented error handling for EventSource connections and ensured proper cleanup on component unmount.
These changes enhance the log streaming functionality, providing a more efficient and responsive user experience in the application.
0 commit comments