-
Notifications
You must be signed in to change notification settings - Fork 29
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
Only display tasks with price labels (or without, depending on env) #77
Conversation
This part is done (it works for me locally at least). The amount of issues that can be fetched with a single request is 30 (default) or 100 (max). There are currently 92 issues in the devpool (including those without price label) so I implemented pagination to avoid future problems with the website. |
Co-authored-by: アレクサンダー.eth <4975670+0x4007@users.noreply.github.com>
I added an |
Ok |
Seems like the tests were also failing in the main branch and have been fixed here: f14181a. I have added this commit to the branch. |
@rndquu do you mind seeing this rfc project reviews through? |
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.
build/esbuild-build.ts
Outdated
@@ -29,6 +29,7 @@ export const esBuildContext: esbuild.BuildOptions = { | |||
SUPABASE_STORAGE_KEY: generateSupabaseStorageKey(), | |||
commitHash: execSync(`git rev-parse --short HEAD`).toString().trim(), | |||
NODE_ENV: process.env.NODE_ENV || "development", | |||
IS_RFC: JSON.parse(process.env.RFC!) |
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.
It makes sense to provide a default value here in case process.env.RFC
is empty, like process.env.RFC || false
. This way we make it backwards compatible with already deployed version of work.ubq.fi
.
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.
@@ -71,7 +77,7 @@ export async function fetchIssuePreviews(): Promise<TaskNoFull[]> { | |||
} | |||
} | |||
|
|||
const tasks = freshIssues.map((preview: GitHubIssue) => ({ | |||
const tasks = freshIssues.filter((issue: GitHubIssue) => (issue.labels as GitHubLabel[]).some((label) => label.name.includes("Pricing")) == !IS_RFC).map((preview: GitHubIssue) => ({ |
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.
How IS_RFC
gets a value here? I mean that we define it here but don't assign it a value anywhere. Is it working?
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.
env variables are passed in at build time
source: comments at the top of src/home/rendering/render-github-login-button.ts
The same error exists in the deployed version on https://work.ubq.fi. The error exists because some issue links include |
I have created the PR: #86 |
Still waiting for review, @rndquu. |
Is the idea to fork this repo and run rfc.ubq.fi off of it? They will need to be hosted on two separate organizations for a fork to be possible. I realize we can't QA test this with our deployer because you're setting RFC to false in the build script. Deploys: #77 (comment) |
QA Test ResultsContextI merged the "backend" changes (to sync every issue basically) and now work.ubq.fi currently displays everything, even if they don't have prices. Requested Changes
"Backend" Delta Summary58 open ➡️ 143 open...
137 open net result. ScreenshotIt looks like it works as expected with RFC env var! How did you test/develop this? Perhaps you could have shown us screenshots and proof on your end? Apologies for the slow review period but that certainly would have sped things along! RemarksArchived Repositories
|
Resolves ubiquity/.github#115
Filter issues with price label when loading issue previews in
src/home/fetch-github/fetch-issues-preview.ts
.