Skip to content
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

Merged

Conversation

nicolasdeleon
Copy link
Contributor

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.

  • New feature (non-breaking change which adds functionality)

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-request

    Frontend

    • I have added form validations (if needed)
    • I have added proper UI elements for async interactions (if needed)
    • I have tested different supported resolutions through Sizzy
    • I have manually tested different scenarios (thinking as a user)

Code Reviewer Checklist

  • Errors are properly handled
  • There is no commented code
  • There is no unnecessary logging or debugging code
  • Naming of methods, variables, and classes is declarative
  • I have manually tested this code (through Postman or Chrome)
  • I have left questions/comments to improve the new codebase (if needed)

@nicolasdeleon nicolasdeleon self-assigned this May 2, 2022
@nicolasdeleon nicolasdeleon changed the title Feature/plt 204 fix vote to use the s 3 file Feature: Use events from s3 May 2, 2022
@nicolasdeleon nicolasdeleon changed the title Feature: Use events from s3 ✨ Feature: Use events from s3 May 2, 2022
@@ -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');
Copy link

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.

Copy link
Contributor Author

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');
Copy link

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolasdeleon nicolasdeleon changed the base branch from master to release/v1.0.1 May 2, 2022 21:57
@nicolasdeleon nicolasdeleon merged commit 48294c6 into release/v1.0.1 May 2, 2022
@nicolasdeleon nicolasdeleon deleted the feature/PLT-204-fix-vote-to-use-the-s-3-file branch May 2, 2022 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants