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

Fix: Introduce ModuleInfoInterface and fix fatal error on Marketplace keyword search #6771

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

Conversation

martin-rueegg
Copy link
Contributor

@martin-rueegg martin-rueegg commented Dec 21, 2023

PR Admin

What kind of change does this PR introduce?

  • Bugfix
  • Refactor

Does this PR introduce a breaking change?

  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements

  • It's submitted to the develop branch, not the master branch if no hotfix
  • When resolving a specific issue, it's referenced in the PR's description (e.g. Fix #xxx[,#xxx], where "xxx" is the Github issue number)
  • All tests tests are passing
  • New/updated tests are included
  • Changelog was modified

Other information:

@martin-rueegg martin-rueegg marked this pull request as ready for review December 21, 2023 14:58
@luke-
Copy link
Contributor

luke- commented Dec 22, 2023

@martin-rueegg Can you please provide some steps to reproduce the fatal error?

From my understanding, the ModuleManager should only work with really installed modules ( humhub\components\Module).

Since the methods filterModulesByKeyword and filterModules in ModuleManager are only used in the Marketplace module, I would prefer to move these methods into this module.

@martin-rueegg
Copy link
Contributor Author

@martin-rueegg Can you please provide some steps to reproduce the fatal error?

I just went to the marketplace in my local instalation and searched for "rest'...

From my understanding, the ModuleManager should only work with really installed modules ( humhub\components\Module).

Since the methods filterModulesByKeyword and filterModules in ModuleManager are only used in the Marketplace module, I would prefer to move these methods into this module.

If that is so, I think moving them would be great.

But is it not also possible to filter the installed modules, too?

Also, there is some change proposed in the way module information is handled in

@luke-
Copy link
Contributor

luke- commented Dec 22, 2023

@martin-rueegg Can you please provide some steps to reproduce the fatal error?

I just went to the marketplace in my local instalation and searched for "rest'...

Ah ok, I could reproduce this on develop. master seems to work fine.

From my understanding, the ModuleManager should only work with really installed modules ( humhub\components\Module).
Since the methods filterModulesByKeyword and filterModules in ModuleManager are only used in the Marketplace module, I would prefer to move these methods into this module.

If that is so, I think moving them would be great.

Ok. Would you like to do this in the PR or should I create an issue for it?

But is it not also possible to filter the installed modules, too?

The Marketplace module could simply retrieve all installed module IDs from the ModuleManager and use this for filtering? Or did I misunderstood?

Also, there is some change proposed in the way module information is handled in

Oha :-) We need to discuss such changes separately. For me, it will take a lot of time to understand and discuss the Global ID concept itself. Further refactorings/code cleanups in addition in the PR are making it more hard to understand for me.

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.

None yet

2 participants