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: Refactor available module #2120

Merged
merged 44 commits into from
Dec 19, 2024

Conversation

medmes
Copy link
Member

@medmes medmes commented Dec 13, 2024

Description

Changes proposed in this pull request:

  • Rename availableModule
  • refactor accordingly
  • added unit tests

Related issue(s)

#1638

@kyma-bot kyma-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 13, 2024
@medmes medmes linked an issue Dec 13, 2024 that may be closed by this pull request
3 tasks
@kyma-bot kyma-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 13, 2024
@medmes medmes closed this Dec 13, 2024
@medmes medmes reopened this Dec 13, 2024
@medmes medmes closed this Dec 13, 2024
@medmes medmes reopened this Dec 13, 2024
@medmes medmes changed the title refactor available module chore: Refactor available module Dec 13, 2024
# Conflicts:
#	pkg/templatelookup/regular.go
…ct#2111)

* feat: Prevent unallowed internal/beta module installation

* fix linting

* tests to allow ireturn

* refactor mrm fetching

* fix tests

* revert receiver to normal func

* remove unnecessary context

* add missing testcases
# Conflicts:
#	pkg/templatelookup/regular.go
…ct#2111)

* feat: Prevent unallowed internal/beta module installation

* fix linting

* tests to allow ireturn

* refactor mrm fetching

* fix tests

* revert receiver to normal func

* remove unnecessary context

* add missing testcases
# Conflicts:
#	pkg/templatelookup/regular.go
@medmes medmes force-pushed the refactor_available_module branch from 6d69b27 to dd5893d Compare December 13, 2024 11:06
@medmes
Copy link
Member Author

medmes commented Dec 13, 2024

/retest

@medmes medmes marked this pull request as ready for review December 16, 2024 08:04
@medmes medmes requested a review from a team as a code owner December 16, 2024 08:04
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 16, 2024
@medmes
Copy link
Member Author

medmes commented Dec 16, 2024

/retest

go.mod Outdated Show resolved Hide resolved
@c-pius c-pius force-pushed the refactor_available_module branch from 4da9ed7 to 868a81b Compare December 17, 2024 07:57
@medmes
Copy link
Member Author

medmes commented Dec 18, 2024

/cla

@kyma-bot
Copy link
Contributor

Successfully reached out to cla-assistant.io to initialize recheck of PR #2120

Copy link
Contributor

@c-pius c-pius left a comment

Choose a reason for hiding this comment

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

For me it would be fine now. Just one minor fix in a comment, and I would propose to create a follow-up to extend the test cases.

pkg/templatelookup/moduleinfo.go Outdated Show resolved Hide resolved
pkg/templatelookup/moduleinfo_test.go Show resolved Hide resolved
medmes and others added 2 commits December 19, 2024 09:03
Co-authored-by: Christoph Schwägerl <acc.pius@mailbox.org>
@kyma-bot kyma-bot added the lgtm Looks good to me! label Dec 19, 2024
@ruanxin ruanxin merged commit a0921e6 into kyma-project:main Dec 19, 2024
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename AvailableModule
4 participants