This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
userSchema = { | |
firstName, | |
lastName, | |
workspaceId: <-- eagerly loaded to worspace | |
} | |
applyAccessFilters() | |
regular -> 'find.books' -> you should only 'workspace.name' | |
fields = '// workspace.name' //'workspace' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable class-methods-use-this */ | |
import Joi from 'joi'; | |
/** | |
* ENUM TYPES | |
*/ | |
const OperationType = { | |
EQUALS: 'EQUALS', | |
NOT_EQUALS: 'NOT_EQUALS', | |
NOT_INCLUDED: 'NOT_INCLUDED', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @module sign | |
*/ | |
'use strict' | |
const path = require('path') | |
const Promise = require('bluebird') | |
const compareVersion = require('compare-version') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2017-06-26T18:35:40.314Z","extensionVersion":"v2.8.1"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const UiSelectDisableBackspaceClearDirective = () => { | |
return { | |
restrict: 'A', | |
require: 'uiSelect', | |
link: ($scope, $element, attrs, uiSelectCtrl) => { | |
const shouldDisableBackspaceClear = $scope.$eval(attrs['uiSelectDisableBackspaceClear']); | |
if(!shouldDisableBackspaceClear) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Managing BEN Brands | |
In order to use the BEN platform, I need to be a user of the system. | |
Scenario: Creating a new brand when handling an external user registration request | |
Given I am an internal user | |
And I am registering an external user registration request | |
And I visit the client creation/edit modal or view | |
And I select "Add Client" button, link or icon | |
And I visit the client creation/edit modal or view | |
When I click the "Create Brand" button |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Managing BEN Clients | |
In order to use the BEN platform, I need to be a user of the system. | |
Scenario: Creating a new client when handling an external user registration request | |
Given I am an internal user | |
And I am registering an external user registration request | |
And I visit the manage access page for that user | |
When I select "Add (new) Client" button, link or icon | |
Then I should be presented with the client creation/edit modal or view | |