Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Conversation

fanf
Copy link
Member

@fanf fanf commented Sep 26, 2017

val isEnabled = true
val enabledStatus = DatasourcesStatus.Enabled
val licenseInformation = None
final class CheckRudderPluginDatasourcesEnableImpl() extends PluginStatus {
Copy link
Member

Choose a reason for hiding this comment

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

Why not using: AlwaysEnabledPluginStatus instead ?

Copy link
Member

Choose a reason for hiding this comment

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

and removing this file (and removing lines from pom.xml if default is now useless

Copy link
Member Author

Choose a reason for hiding this comment

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

because we need the correct name to be able to instanciate that service in the plugin module. I don't have any simple way to make that work without a full-blown IoC or Java Service arch. I don't want to use them.

Copy link
Member

Choose a reason for hiding this comment

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

All right !!


maybeInfo.fold( error => DataSourceLogger.error(error) , ok => DataSourceLogger.warn("License signature is valid.") )
//log at that point is we read the license information for the plugin
maybeInfo.fold( error => DataSourceLogger.error(error) , ok => DataSourceLogger.info("Plugin datasource has a license and the license signature is valid.") )
Copy link
Member

Choose a reason for hiding this comment

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

Datasource plugin no ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to write "Plugin '${plugin name}' actually :)

@fanf fanf force-pushed the ust_11429/update_datasource_to_rudder_4_2_license_framework branch from 06fbc07 to d09c18c Compare September 27, 2017 12:09
@fanf
Copy link
Member Author

fanf commented Sep 27, 2017

PR rebased

@Normation-Quality-Assistant

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit d09c18c into Normation:branches/rudder/4.2 Sep 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants