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

PluginsResource: Treat moment.js as independent plugin #1295

Merged

Conversation

dfsmania
Copy link
Collaborator

@dfsmania dfsmania commented Jul 13, 2024

Question Answer
Pull request type ENHANCEMENT
License MIT

What's in this PR?

On the PluginsResource class treat Moment.js as an independent plugin, and use it as a dependency for other plugins like the Date Range Picker and Tempus Dominus.

This will also solve an issue that appears when you installs, for example, Date Range Picker. Note, the Moment.js will also be installed as a resource of the previous plugin. Under this situation, the plugin status entry for the Tempus Dominus plugin will be shown as Mismatch because Moment.js is also a resource required by it, and the implemented logic incorrectly assumes that the plugin was partially installed.

With the new implementation, Moment.js will also be installed as a dependency when installing Date Range Picker or Tempus Dominus, but Moment.js will not be considered as a resource of these plugins. This way, the installation status of each of these plugins will be more representative.

Checklist

  • I tested these changes.

@dfsmania dfsmania requested a review from resslinger July 13, 2024 20:12
@dfsmania dfsmania merged commit 7ddb84d into jeroennoten:master Jul 20, 2024
34 checks passed
@dfsmania dfsmania deleted the treat_momentjs_as_independent_plugin branch July 20, 2024 19:39
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.

1 participant