-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add coverage profiles resource STT-144 * add profile field to coverage schema * validation * WIP - coverage profiles UI * Handle old profile, coverage profile id * Fix types * Fix unit test * fix failing behave tests * Small changes * Rework field validation, remove unused embeddedProfile * Cleanup * fix failing tests due to mongo indexes * fix failing tests due to mongo indexes * fix client tests * release 2.9.0rc1 * fix spelling * use less width for buttons * add behave to server requirements * fix e2e client compile * update e2e client core --------- Co-authored-by: Petr Jasek <jasekpetr@gmail.com> Co-authored-by: Tomas Kikutis <t.kikutis@gmail.com>
- Loading branch information
1 parent
029bf46
commit 653bdbf
Showing
47 changed files
with
915 additions
and
415 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {ICoverageContentProfile} from '../interfaces'; | ||
import {COVERAGES} from '../constants'; | ||
|
||
export function updateCoverageProfiles(profiles: Array<ICoverageContentProfile>) { | ||
return { | ||
type: COVERAGES.UPDATE_PROFILES, | ||
payload: profiles, | ||
}; | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
import {flatMap} from 'lodash'; | ||
|
||
export const PLANNING_ITEM_SYSTEM_REQUIRED_FIELDS = [ | ||
['planning_date'], | ||
['slugline', 'headline', 'name'], | ||
['coverages'], | ||
]; | ||
|
||
export const isSystemRequiredField = (() => { | ||
const SYSTEM_REQUIRED_FIELDS_SET = new Set(flatMap(PLANNING_ITEM_SYSTEM_REQUIRED_FIELDS)); | ||
|
||
return (fieldId: string) => SYSTEM_REQUIRED_FIELDS_SET.has(fieldId); | ||
})(); | ||
export const COVERAGE_SYSTEM_REQUIRED_FIELDS = ['g2_content_type', 'scheduled', 'add_coverage_to_workflow']; | ||
export const PLANNING_ITEM_SYSTEM_REQUIRED_FIELDS = ['planning_date', 'coverages']; | ||
export const EVENT_ITEM_SYSTEM_REQUIRED_FIELDS = ['dates']; |
Oops, something went wrong.