ForestAdmin/forest-express

View on GitHub
src/integrations/mixpanel/services/mixpanel-events-getter.js

Summary

Maintainability
A
2 hrs
Test Coverage
F
15%

Function MixpanelEventsGetter has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function MixpanelEventsGetter(Implementation, params, options, integrationInfo) {
  const MixpanelExport = options.integrations.mixpanel.mixpanel;
  const panel = new MixpanelExport({
    api_key: options.integrations.mixpanel.apiKey,
    api_secret: options.integrations.mixpanel.apiSecret,
Severity: Minor
Found in src/integrations/mixpanel/services/mixpanel-events-getter.js - About 1 hr to fix

    Function perform has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      this.perform = () => {
        const collectionFieldName = integrationInfo.field;
        const collectionModel = integrationInfo.collection;
    
        return Implementation.Mixpanel.getUser(collectionModel, params.recordId)
    Severity: Minor
    Found in src/integrations/mixpanel/services/mixpanel-events-getter.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status