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

chore: refactoring mandatory plugin v2 #6056

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

Ash-exp
Copy link
Contributor

@Ash-exp Ash-exp commented Nov 6, 2024

Description

Fixes #

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


@@ -0,0 +1,57 @@
package sliceUtil
Copy link
Member

Choose a reason for hiding this comment

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

we need to add test cases for these functions

Copy link
Member

Choose a reason for hiding this comment

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

these functions seems useful as we do these operations at multiple places. we will start using these . so proper test cases are required

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

return impl.GetAllPluginMinDataByType("")
}

func (impl *GlobalPluginRepositoryImpl) GetAllPluginMinDataByType(pluginType string) ([]*PluginParentMetadata, error) {
Copy link
Member

@gireesh-naidu gireesh-naidu Nov 8, 2024

Choose a reason for hiding this comment

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

pluginType shouldn't be just string , this method should accept the proper type. make same changes in ENT

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The method GetAllPluginMinData() is being called in multiple places internally. And I introduced GetAllPluginMinDataByType(pluginType string) recently for a list API. In theGetAllPluginMinData() we want all types of plugins. In order to reduce the impact area and testing scope, This implementation is being placed

gireesh-naidu
gireesh-naidu previously approved these changes Nov 8, 2024
Copy link

sonarcloud bot commented Nov 12, 2024

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.

2 participants