Skip to content

Instantly share code, notes, and snippets.

View jbaxleyiii's full-sized avatar
💼
Moved to management

James Baxley jbaxleyiii

💼
Moved to management
View GitHub Profile
@jbaxleyiii
jbaxleyiii / thoughts.md
Created September 21, 2016 17:23
giving sync

Current problems

  1. If Rock is offline a transaction won't ever get sent to Rock
  2. If Rock has an error, the transaction won't get created fully in Rock
  3. If two servers pick up the new db entry at once, you can have duplicates
  4. Rock's NMI sync seems to be problematic (not pulling down transactions, etc)
  5. Error reporting doesn't exist

This problem manifests in a lot of ways, the most common issue is missing data from a person's giving history. This is typically due to schedules missing and not syncing.

@jbaxleyiii
jbaxleyiii / thoughts.md
Last active September 21, 2016 17:32
giving sync

Current problems

  1. If Rock is offline a transaction won't ever get sent to Rock
  2. If Rock has an error, the transaction won't get created fully in Rock
  3. If two servers pick up the new db entry at once, you can have duplicates
  4. Rock's NMI sync seems to be problematic (not pulling down transactions, etc)
  5. Error reporting doesn't exist
  6. Manually editing / creating schedules or transactions in Rock is difficult / impossible
@jbaxleyiii
jbaxleyiii / GraphQLava.md
Created October 6, 2016 19:59
GraphQL in Rock

Lava

<!-- Body -->
{% capture body %}{% raw %}
{
    "query": "
        query GetContentFromRock($channel: String!, $sizes: [String], $ratios: [String]){
            content(limit: 1, channel: $channel) {
                title
                content {
@jbaxleyiii
jbaxleyiii / test.js
Created November 15, 2016 19:43
react-apollo testing
import { Component } from "react";
import { print } from "graphql-tag/printer";
import { graphql } from "react-apollo";
import { MockedProvider } from "react-apollo/test-utils";
import { addTypenameToDocument } from "apollo-client/queries/queryTransform";
import { mount } from "enzyme";
import { withSavedPayments, SAVED_ACCTS_QUERY } from "../";
import styled from "styled-components";
import { soft, flush, h4 } from "junction";
const Title = styled.h1`
${soft.left}
${flush.bottom}
${h4}
color: "rebeccapurple"
`;
  • 2 packages bacon
  • instant oatmeal
  • 28 oz tomatoes (crushed?)
  • yeast
  • french bread
  • brown sugar
  • powdered sugar
  • bananas
  • 2 medium yellow onion
  • 5 stalks celery
Failures:
          should load the admin page [28 ms]
          should select ministry areas to check in to [23 ms]
          should go to the search screen [30000 ms]
          should search for Abebe, N [30000 ms]
          should return results of serach [30000 ms]
          should have a message about no one found [30000 ms]
          should select ministry areas to check in to [30000 ms]
          should go to the search screen [30001 ms]
@jbaxleyiii
jbaxleyiii / .travis.yml
Created January 18, 2017 14:41
Old Travis Config
sudo: required # force to run in container
env: # required for node_bcrypt
- CXX=g++-4.8
os:
- linux
# - osx
# osx_image: xcode7.3
language: node_js
node_js:
- '6'

Agile for NewSpring

A process for shipping reliable and excellent software at NewSpring.

Goals

  • consistently excellent feature releases
  • no regressions for each release
// canSee.js
gql`
query GetSecurityRoles {
roles: securityRoles {
key
}
}
`;