Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@artsy/cohesion
Advanced tools
yarn install
yarn test
yarn docs
The /Schema
directory represents the Artsy's analytics schema, and describes expectations for data consumed by Redshift and Segment.
This schema is maintained by Artsy's data team, engineers should not expect to change these files.
Valid analytics events are described in /Schema/Event.ts
.
Typings for all allowed values, such as ContextModule
, are exported for use by engineers in consuming projects.
Schema/ActionType.ts
, add the name of the new event. This name defines the corresponding downstream table's name in Redshift, and should use the lowerCamelCase
naming convention.// Schema/ActionType.ts
export enum ActionType {
...
myNewEvent = "myNewEvent",
...
}
Event.ts
, create an interface describing the shape of the new event, as it is recieved in Segment/Redshift.The action
key is required and should match the ActionType
created in step 1.
// Schema/Event.ts
export interface MyNewEvent {
action: ActionType.myNewEvent
context_module: ContextModule
optional_property?: string
required_property: number
}
If your event uses values not yet in the schema, such as a new ContextModule
, add new values to existing enums in the Schema directory.
Add descriptive comments with examples to explain the use of your new event. Our documentation is generated automatically from in-code comments, find more information on syntax in the typedoc
docs.
PR your changes. Once merged, the schema will be updated and your new event and values will be available to consumers of this package.
Data analysts should request an engineer to construct a new event helper for the /Events
directory (see below).
The /Events
directory contains javascript helpers that return schema-compliant analytics events, and provide some useful default values. Each helper corresponds to one event from /Schema/Events.ts
.
Engineers should use these helpers whenever sending analtics data to Segment, for example, when creating and analytics event with react-tracking
.
v0.1.2 (Mon Apr 20 2020)
FAQs
Analytics schema
The npm package @artsy/cohesion receives a total of 2,091 weekly downloads. As such, @artsy/cohesion popularity was classified as popular.
We found that @artsy/cohesion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.