-
Notifications
You must be signed in to change notification settings - Fork 9
Bug 1030958 - Add process to add remo events #51
Conversation
@@ -0,0 +1,4 @@ | |||
ALTER TABLE `Events` | |||
ADD COLUMN `externalSource` VARCHAR(255) DEFAULT NULL; | |||
ADD COLUMN `url` VARCHAR(255) DEFAULT NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we just use registerLink
or is that a bad idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better not to, considering it would require more logic on the front end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think we may deprecate it too...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hoping someone would say "deprecate registerLink"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to do that, we should take it out in the UI
I get an error running import-remo-events.js:
edit: fyi - I had run the migration script. I deleted and recreated my events table, and the import went smoothly. |
.bulkCreate(events, {transaction: t}) | ||
.success(function() { | ||
t.commit().success(function() { | ||
console.log(events); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably don't need to log all the events. maybe just a "completed" message.
also, end the script with a success code process.exit(0);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call
Bug 1030958 - Add process to add remo events
No description provided.