Giter Site home page Giter Site logo

api.gatsbyjs.org's People

Contributors

chadfawcett avatar dependabot[bot] avatar freiksenet avatar gillkyle avatar jlengstorf avatar lndgalante avatar m-allanson avatar muescha avatar myzeprog avatar psalant726 avatar samovertonjr avatar sidharthachatterjee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api.gatsbyjs.org's Issues

Convert get() function to use querystring and accept an object

Right now the get() helper requires passing in a query string, e.g. foo=bar&bat=baz.

It would be better if we could pass in an object, e.g.:

get(uri, { foo: 'bar', bat: 'baz' })

This would be converted to a query string (could use a lib such as querystring), which makes it a little easier to use this helper.

Free swag codes can be used multiple times

As I was discovering the bug resolved in #7, I noticed that I was able to apply the promo code again to get free swag. I didn't fully complete the checkout, so I don't know if there would have been an error, but I would have expected Shopify to have warned about an invalid code.

A bit of research revealed shopify has a once_per_customer option for their PriceRules. I wanted to point this out incase you don't have it set.

[SUB-EPIC] Contributor Levels + Discount Code Use Tracking

NOTE: This issue is an epic, which bundles up lots of related issues into a single goal. If you have the free ZenHub extension, you’ll be able to see overall progress and related issues, as well as a "board view" that shows this epic from a bird's-eye view.

This is a sub-epic of gatsbyjs/store.gatsbyjs.org#168

Who will own this?

Area of Responsibility: Ecosystem

Role Name RACI
AoR owner @amberleyromo Consulted about the epic
Domain owner @amberleyromo Informed about epic
Project manager @jlengstorf Responsible for setting epic tasks
Tech lead @amberleyromo Accountable for setting guidelines for epic
Contributors @amberleyromo @jlengstorf Responsible for completing assigned tasks

Summary

Extend the Gatsby store API to support multiple levels of contributor rewards, as well as keeping track of whether or not a contributor has used a given discount code.

How will this impact Gatsby?

Domains

  • Gatsby store

Goals

  1. Add support for returning multiple discount codes for differing levels of contribution
  2. Add a flag for whether or not the discount code was already used by the contributor

How will we know this epic is a success?

We know this is a success when the API returns sufficient data to complete the parent epic.

Cold start on Lambda seems to trigger CORS errors

We have intermittent CORS failures, and the flow seems to be something like this:

  1. Visit the store
  2. Log in
  3. The "open issues" section errors out with CORS errors
  4. Reload the page
  5. No CORS error; open issues load just fine

I have no proof, but my suspicion is that this is an issue with AWS Lambda "cold starts". I'm not sure if there's a for-real fix, but the smash-it-with-a-hammer fix is to keep the lamda warm.

Looks like Serverless has a plugin for this (see this tutorial), so we just need to put this in place.

tier 2 swag: [implement/api] return appropriate coupon codes to user on login

  • if a user has met the criteria for tier 1, return tier 1 coupon code.
  • if a user has met the criteria for tier 2, and redeemed tier 1 but not tier 2, return a tier 2 coupon code.
  • if a user has met the criteria for tier 2, and redeemed neither tier 1 nor tier 2, return a tier 1 and a tier 2 coupon (two coupons)
  • if a user has met the criteria for both tiers, and claimed both coupon codes

Add an endpoint for anonymous data reporting

cc @DSchau

We need a way to send anonymous usage data from the Gatsby CLI. This will require creating an endpoint in the API that accepts a data object (such as the envinfo and other data about a Gatsby site that helps us debug) and stores it somewhere secure.

Potentially, this will allow us to create public data visualizations (via new queries that will expose various stats about Gatsby usage). We'll have to think more about whether there are any risks to making usage data publicly queryable, but it would be really cool to be able to see how Gatsby is growing, what plugins/starters are popular, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.