Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the node structure #401

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kimhanbeom
Copy link
Contributor

@kimhanbeom kimhanbeom commented Jan 23, 2025

  • Modify the node structure so as to configure "TI Container" remotely like "Datalake".
    • Rename Giganto to ConnectionlessAgent.
    • Add a ti_container field of type ConnectionlessAgent within node.
    • Modify migration function migrate_0_29_node.
    • Add migration function migrate_0_35_node.

Close: #399

Migration Test

  • Insert a node with version "0.27.1".
    스크린샷 2025-01-23 오후 3 50 20
  • Migrating the database to version "0.35.0-alpha.1". (using minireview)
    스크린샷 2025-01-23 오후 3 50 01
  • Migration result.
    스크린샷 2025-01-23 오후 3 51 37

@kimhanbeom kimhanbeom changed the title Modify the node structure. Modify the node structure Jan 23, 2025
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 95.20000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 68.39%. Comparing base (3bf9df4) to head (829cfa5).

Files with missing lines Patch % Lines
src/migration.rs 95.13% 9 Missing ⚠️
src/tables/node.rs 85.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #401      +/-   ##
==========================================
+ Coverage   68.19%   68.39%   +0.19%     
==========================================
  Files          95       95              
  Lines       20320    20548     +228     
==========================================
+ Hits        13857    14053     +196     
- Misses       6463     6495      +32     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Modify the node structure so as to configure "TI Container" remotely
  like "Datalake".
  - Rename `Giganto` to `ConnectionlessAgent`.
  - Add a `ti_container` field of type `ConnectionlessAgent` within
    `node`.
  - Modify migration function `migrate_0_29_node`.
  - Add migration function `migrate_0_35_node`.

Close: petabi#399
@@ -14,7 +14,7 @@ use crate::{
};

#[derive(Default, Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct Giganto {
pub struct ConnectionlessAgent {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While Agent has a key for each instance, ConnectionlessAgent does not. Additionally, Agents are represented as a Vec<Agent>, whereas ConnectionlessAgents are instantiated individually, like giganto and ti_container. Furthermore, ConnectionlessAgent includes its status through the AgentStatus field. These differences highlight inconsistencies, and on top of that, the name ConnectionlessAgent doesn't seem ideal to convey the true meaning. I believe we need a better approach to address these inconsistencies and clarify the concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modify the node structure so as to configure TI Container remotely like Giganto
2 participants