New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gooddata/sdk-backend-base

Package Overview
Dependencies
Maintainers
41
Versions
2578
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gooddata/sdk-backend-base

GoodData.UI SDK - Base for backend implementations

  • 8.0.0-alpha.50
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.9K
decreased by-11.97%
Maintainers
41
Weekly downloads
 
Created
Source

Analytical Backend foundations

This package contains foundational, reusable code useful for building new or decorating existing Analytical Backend implementations. This is lower-level, infrastructural code which may be useful when building larger, more complex applications.

The notable contents of this package are documented below.

Backend Decorators

Low level infrastructure to build your own Analytical Backend decorators. The decorators are used to seamlessly enrich existing backend implementation with additional functionality - without the need to touch the backend implementation itself.

See code comments in base classes for further documentation on how to create your own decorators. Or additionally look at existing decorator implementations for inspiration.

Eventing Backend

This decorator allows you to enhance any backend implementation with support for eventing. The eventing is at the moment limited to the execution part of the Analytical Backend SPI.

Backend decorated with eventing can be created as follows:

import {IAnalyticalBackend} from "@gooddata/sdk-backend-spi";
import {IExecutionDefinition, IDataView} from "@gooddata/sdk-model";
import {withEventing} from "@gooddata/sdk-backend-base";

const realBackendImplementation = ...;
const enhancedBackend: IAnalyticalBackend = withEventing(realBackendImplementation, {
    beforeExecute: (def: IExecutionDefinition) => {
        console.log("about to trigger execution with definition:", def);
    },
    successfulResultReadAll: (dataView: IDataView) => {
        console.log("retrieved all data for backend execution");
    }
});

You can then pass the enhancedBackend to the various React components offered by the SDK and be notified.

FAQs

Package last updated on 26 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc