refactor(shortcodes): update contributors grid to use v2 API #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update Hugo Shortcodes to use V2 API
Description
This PR updates the Hugo shortcodes to use the new V2 API endpoints, replacing the deprecated API calls. The changes improve the functionality and maintainability of the website's dynamic content loading.
Changes Made
contributorsGrid.html
):/api/v2/contributors
endpointUsage Examples
Contributors Grid:
Implementation Challenges with V2 API Endpoint
Current Status & Challenges
1. API Endpoint Issues
When attempting to access the v2 API endpoint
https://hedera-issues.koyeb.app/api/v2/issues
, I encountered several issues:Error Response
When accessing the endpoint directly, I receive a 500 Internal Server Error:
Code vs Reality Mismatch
https://github.com/OpenElements/good-first-issue-provider/blob/main/src/main/java/com/openelements/issues/ApiEndpoint.java
2. Implementation Decisions
In light of the challenges encountered, I have made the following decisions:
issueList
codebase snippet unchanged to ensure stability and prevent any unintended side effects.🔍 Current Issues Identified
/api/hacktoberfest-issues
) remains the only working solution🔗 Related Links