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

Search cmd #10956

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

Search cmd #10956

wants to merge 6 commits into from

Conversation

Jougan-0
Copy link
Contributor

@Jougan-0 Jougan-0 commented May 14, 2024

Notes for Reviewers

This PR fixes #9844

  • Implement search command with filters model name, kind, subtype, type
  • Develop test cases to ensure command functionality

Signed commits

  • Yes, I signed my commits.

@Jougan-0 Jougan-0 added pr/do-not-merge PRs not ready to be merged and removed component/mesheryctl CLI for Meshery component/server labels May 14, 2024
@Jougan-0 Jougan-0 marked this pull request as draft May 14, 2024 19:26
@Jougan-0 Jougan-0 requested a review from MUzairS15 May 14, 2024 19:26
Copy link

github-actions bot commented May 14, 2024

)

type MeshmodelRelationshipsAPIResponse struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

@Jougan-0 These structs should be already defined in meshkit ? // @MUzairS15

Copy link
Contributor Author

@Jougan-0 Jougan-0 May 15, 2024

Choose a reason for hiding this comment

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

@aabidsofi19 the type is in meshery/server/models/meshery_meshmodels_api_response.go
but it has the last type as entity.entity and the unmarshall was causing the issue for me .
If it is there is meshkit I am unaware of it.


availableSubcommands = []*cobra.Command{ViewRelationshipsCmd, GenerateRelationshipDocsCmd}
outFormatFlag string
maxRowsPerPage = 25
Copy link
Contributor

Choose a reason for hiding this comment

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

the pagination logic and constants should be common to all commands

Copy link
Contributor Author

@Jougan-0 Jougan-0 May 15, 2024

Choose a reason for hiding this comment

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

@aabidsofi19 I saw it was written in one of the command specifically here so I went ahead and declared for the whole relationship command.
It is 25 so i guess in a sense it is default but it should be manged from a single variable imo.

@Jougan-0 Jougan-0 requested a review from aabidsofi19 May 15, 2024 15:25
@leecalcote
Copy link
Member

A low priority.

When will the model import logs land? It's been many months now.

@Jougan-0
Copy link
Contributor Author

Jougan-0 commented May 16, 2024

A low priority.

When will the model import logs land? It's been many months now.

I'll get to it I saw ripul had an open pr already had a look to it saw your comments too will start working on it . Is there anything before hand that I must be aware of @leecalcote

You are talking about this pr?

Copy link

codecov bot commented May 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 9.01%. Comparing base (036c67a) to head (c3d474e).
Report is 40 commits behind head on master.

Files Patch % Lines
server/handlers/relationship_handlers.go 0.00% 9 Missing ⚠️
mesheryctl/pkg/utils/error.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10956      +/-   ##
==========================================
- Coverage    9.01%    9.01%   -0.01%     
==========================================
  Files         146      146              
  Lines       19258    19263       +5     
==========================================
  Hits         1736     1736              
- Misses      17220    17225       +5     
  Partials      302      302              
Flag Coverage Δ
unittests 9.01% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@MUzairS15
Copy link
Contributor

Ready?

@Jougan-0
Copy link
Contributor Author

Ready?

No need to add the check for case insensitive flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/mesheryctl CLI for Meshery component/server pr/do-not-merge PRs not ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[mesheryctl] New command exp relationship
4 participants