bin/ted/test
(all tests)bin/ted/test spec/unit/whatever_spec.rb
(single test)--tag ~acceptance
(only run the fast tests)bin/ted/rails db:migrate
(run a migration)bin/ted/rails db:migrate RAILS_ENV=test
(run a migration in specific environment)
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
query TeamsWithPipelineInfo { | |
organization(slug: "orgSlug") { | |
id | |
name | |
teams(first: 100) { | |
edges{ | |
node{ | |
name | |
pipelines(first: 100) { | |
edges{ |
Let's you see the latest successfully handled or unsuccessfully handled events per application 👍
https://environment-appname.env.jqdev.net/_debug
appname = fraud, bookings etc
env = prod or nonprod
So I'm always forgetting how to do this! I guess I'm only ever updating Ruby versions every now and then.
$ chruby
will display your installed rubies and show you the version you're currently using in your shell.
ruby-2.1.2
ruby-2.2.1
ruby-2.3.1
- get the aggregate_id for the events that need to be reprocessed (the last successful event).
- You can do this via the Platform CLI or the
rails c
of the app in question (the former is the most advisable). - The new Shari
reprocess
helper method can simply take the aggregate as the arg like so:reprocess(aggregate_id)
|
- Get the event id/s for the event/s that weren't handled
- Connect to console for the app in question
3. then
sudo su deploy
,cd/app_name/current
etc. - Retrieve the event/s
I hereby claim:
- I am melissakaulfuss on github.
- I am m3llo (https://keybase.io/m3llo) on keybase.
- I have a public key ASCPiYoTlhaMbzjcXxpAtqwGeqwYgd_tKzatIXgKW-OdZAo
To claim this, I am signing this object:
- Log into splunk
- Grab the booking aggregate ID
- In splunk search within the date range of the booking and with the search params
/hotels/bookings/agg-id
- You'll see a bunch of
json
renderered logs - You're looking for the bookings/controller rendering HTML (this means the polling stopped and the response was recieved and rendered)
In a separate tab run tail -f log/*.log
and clear the screen.
Run the specs and see the logs yo. It's HELPFUL!!!
Look for the reservation or booking using the EAN itinerary ID (not our confirmation number).
- In splunk search for your event with
event.event_type = booking_change_creation_failed
- Grab the booking ID
- Jump into Booking Manager and track down the booking
- Open up shari, et voila!
NewerOlder