Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Update Farset Labs calendar lambda for fixes and readme updates #465

Merged
merged 1 commit into from
Oct 14, 2018

Conversation

alistairjcbrown
Copy link
Collaborator

What's Changed

  • Update readme for Farset Labs calendar lambda to reference JSON and Google API instead of iCalendar
  • Standardise on always returning array of file paths
  • Previous removal of uploadData from the utils had neglected that it was used by the transformer - this adds it to the transformer file. It's the same as the one in the producer, but most likely the file paths for transformers will be updated independently, once a standard is decided upon.

@@ -47,6 +47,15 @@ const transformEvent = function (defaults, {

const isValidEvent = (event) => validate(event, eventSchema).errors.length === 0;

const uploadData = function(bucketName, calendarData) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical blocks of code found in 2 locations. Consider refactoring.

Copy link
Owner

@apoclyps apoclyps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@alistairjcbrown alistairjcbrown force-pushed the farset-labs-calendar-lambda-corrections branch from c77889b to bfe6139 Compare October 14, 2018 17:19
@@ -47,6 +47,15 @@ const transformEvent = function (defaults, {

const isValidEvent = (event) => validate(event, eventSchema).errors.length === 0;

const uploadData = function(bucketName, calendarData) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 3 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Oct 14, 2018

Code Climate has analyzed commit bfe6139 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 1

View more on Code Climate.

@alistairjcbrown alistairjcbrown merged commit 8c795d6 into master Oct 14, 2018
@alistairjcbrown alistairjcbrown deleted the farset-labs-calendar-lambda-corrections branch October 14, 2018 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants