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

feat: change gnoweb to add URL query arguments to render path #2876

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeronimoalbi
Copy link
Member

No description provided.

@github-actions github-actions bot added the 📦 ⛰️ gno.land Issues or PRs gno.land package related label Oct 1, 2024
@jeronimoalbi jeronimoalbi added 🌍 gnoweb Issues & PRs related to gnoweb and render and removed 📦 ⛰️ gno.land Issues or PRs gno.land package related labels Oct 1, 2024
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 60.91%. Comparing base (01d9e8d) to head (9d833f3).

Files with missing lines Patch % Lines
gno.land/pkg/gnoweb/gnoweb.go 0.00% 9 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2876      +/-   ##
==========================================
- Coverage   60.91%   60.91%   -0.01%     
==========================================
  Files         564      564              
  Lines       75273    75283      +10     
==========================================
+ Hits        45855    45856       +1     
- Misses      26047    26055       +8     
- Partials     3371     3372       +1     
Flag Coverage Δ
contribs/gnodev 61.46% <ø> (ø)
contribs/gnofaucet 15.31% <ø> (ø)
gno.land 67.03% <0.00%> (-0.15%) ⬇️
gnovm 65.77% <ø> (ø)
misc/genstd 80.54% <ø> (ø)
misc/logos 19.88% <ø> (ø)
tm2 62.11% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

filtered := url.Values{}
for k, v := range values {
// Filter out private gnoweb arguments
if strings.HasPrefix(k, "__") {
Copy link
Member Author

@jeronimoalbi jeronimoalbi Oct 1, 2024

Choose a reason for hiding this comment

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

Checking __ to allow _ prefix to users but otherwise checking _ should be done.

The "help" parameter is allowed to be pass to the render.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌍 gnoweb Issues & PRs related to gnoweb and render
Projects
Status: No status
Status: Triage
Development

Successfully merging this pull request may close these issues.

1 participant