Skip to content

Instantly share code, notes, and snippets.

View beaucollins's full-sized avatar
🃏
Special Author

Beau Collins beaucollins

🃏
Special Author
  • Seattle, Wash.
View GitHub Profile
Error ----------------------------------------------------------------------- ../happy-tools/apps/core/src/apps.js:14:31
Cannot resolve module `core/src/app-host`.
14| import { switchAppHost } from 'core/src/app-host';
^^^^^^^^^^^^^^^^^^^
Error ------------------------------------------------ ../happy-tools/apps/core/src/components/apps-menu/index.jsx:15:18
# Happy Tools Chat - Customer
A library to get your customers chatting.
## Installation
Use `npm` to install the dependency:
```
npm install @happytools/chat-client
diff --git a/test/simperium/channel_test.js b/test/simperium/channel_test.js
index 0db6fae..d409aba 100644
--- a/test/simperium/channel_test.js
+++ b/test/simperium/channel_test.js
@@ -437,6 +437,30 @@ describe( 'Channel', function() {
done()
} );
} );
+
+ it( 'should handle a 409', ( done ) =>{
/**
* @flow
* @format
*/
/**
* External dependencies
*/
import { values } from 'lodash';
/**
<?php
// snip
function get_validator( $event_type ) {
$class_name_default = 'Happytools\\Scheduler\\' . strtok( $event_type, ':' ) . '_Event_Validator';
$class_name_or_validator = apply_filters( 'happytools_event_validator', null, $event_type );
if ( $class_name_or_validator === null ) {
$class_name_or_validator = $class_name_default;
}
diff --git a/src/sections/planner/utils.js b/src/sections/planner/utils.js
index 3af0bd49..b1efe810 100644
--- a/src/sections/planner/utils.js
+++ b/src/sections/planner/utils.js
@@ -432,24 +432,22 @@ export const clearTaskBlocks = (
continue;
}
- if (includedTimespans.length === 1) {
- updateOrMerge(
diff --git a/src/state/middleware/event-persistence/action-to-events/task-blocks-modify.js b/src/state/middleware/event-persistence/action-to-events/task-blocks-modify.js
index da3e5420..d589d4fa 100644
--- a/src/state/middleware/event-persistence/action-to-events/task-blocks-modify.js
+++ b/src/state/middleware/event-persistence/action-to-events/task-blocks-modify.js
@@ -45,8 +45,13 @@ const incrementEventVersions = (action: ActionTypes, events: Array<Event>): Acti
const lastEvents = keyBy(events, 'aggregate_uuid');
action.modifications = mapValues(action.modifications, modification =>
map(modification, block => {
- const lastVersion = lastEvents[block.uid].expected_version;
- return incrementBlockVersion(block, lastVersion);
/**
* @flow
* @format
*/
/**
* External dependencies
*/
import { reduce, isEmpty } from 'lodash';
/**
diff --git a/src/lib/api/types.js b/src/lib/api/types.js
index 657c93d0..ae0a4bbe 100644
--- a/src/lib/api/types.js
+++ b/src/lib/api/types.js
@@ -16,9 +16,30 @@ export type RequestStage =
| typeof REQUEST_STAGE_SUCCESS
| typeof REQUEST_STAGE_FAILURE;
-export type ApiRequestStage<T> = { type: RequestStage, value: T };
+export type ApiRequestStage<P, R=P> =
diff --git a/src/lib/api/types.js b/src/lib/api/types.js
index 657c93d0..2bc0f134 100644
--- a/src/lib/api/types.js
+++ b/src/lib/api/types.js
@@ -16,9 +16,30 @@ export type RequestStage =
| typeof REQUEST_STAGE_SUCCESS
| typeof REQUEST_STAGE_FAILURE;
-export type ApiRequestStage<T> = { type: RequestStage, value: T };
+export type ApiRequestStage<P, R> =