- Added spec for the feature/bug.
- Updated I18n files for relevant texts in UI
- Updated developer and product docs if applicable
- Check if new tables/columns added need to be handled in the following services:
Users::DeleteAccountService
,Courses::CloneService
,Courses::DeleteService
,Courses::DemoContentService
,Schools::DeleteService
- Check if changes in package components are published in
npm
- Added development seeds for new tables, if relevant.
This file contains hidden or 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 OmsOperations | |
class SendOrdersToCostcoService | |
include CostcoHelper | |
COSTCO_RETAILER_ID = 'Costco.com'.freeze | |
# TODO: Find a way to get the last uploaded order ID. | |
# Should we store the CSV files in S3 first, for debug logs. | |
def process | |
begin |
This file contains hidden or 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
http://stackoverflow.com/questions/22667401/postgres-json-data-type-rails-query | |
http://stackoverflow.com/questions/40702813/query-on-postgres-json-array-field-in-rails | |
#payload: [{"kind"=>"person"}] | |
Segment.where("payload @> ?", [{kind: "person"}].to_json) | |
#data: {"interest"=>["music", "movies", "programming"]} | |
Segment.where("data @> ?", {"interest": ["music", "movies", "programming"]}.to_json) | |
Segment.where("data #>> '{interest, 1}' = 'movies' ") | |
Segment.where("jsonb_array_length(data->'interest') > 1") |
This file contains hidden or 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
/* ******************************************************************************************* | |
* THE UPDATED VERSION IS AVAILABLE AT | |
* https://github.com/LeCoupa/awesome-cheatsheets | |
* ******************************************************************************************* */ | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |