-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Feature: Use events from s3 #85
✨ Feature: Use events from s3 #85
Conversation
@@ -3,7 +3,7 @@ import axios from 'axios'; | |||
class POAP { | |||
|
|||
static async fetchEvents() { | |||
const response = await axios.get('https://api.poap.xyz/events'); | |||
const response = await axios.get('https://api-event.poap.xyz'); |
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.
Create a Jira ticket with technical debt to move this URL to an environment variable and add the ticket in this comment.
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.
Makes sense. This will be required shortly:
https://poap-devs.atlassian.net/browse/PLT-218
@@ -6,7 +6,7 @@ const jsonFetch = (url) => fetch(url).then((res) => res.json()); | |||
* @notice GET list of all POAP events from the POAP API | |||
*/ | |||
export async function getEvents({ commit }) { | |||
const events = await jsonFetch('https://api.poap.xyz/events'); | |||
const events = await jsonFetch('https://api-event.poap.xyz'); |
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.
same, add to technical debt
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.
Description
Moving our /events request to our S3 bucket that gets updated with the content of /events
Closes issues
Types of Changes
Select at least one of these type of changes.
QA Checklist
I have updated the README (if needed)
I have performed a self-review of my own code
I have added comments (if code has too much complexity)
I have manually tested this code (through Postman or Chrome)
This branch has been rebased from
development
before creating the pull-requestFrontend
Code Reviewer Checklist