Rename HTTPClientWrapper to Taskmanager #218
No reviewers
Labels
No labels
bug
conflicts
documentation
DO NOT MERGE
duplicate
enhancement
good first issue
hardware
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
greg/info-orbs!218
Loading…
Reference in a new issue
No description provided.
Delete branch "taskmanager"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Please fix the clang-format issues in your PR. You can either run the megalinter (requires local docker) using
npx mega-linter-runneror run clang-format directly (there's a config file in root dir).This will also remove some of the "noise" changes, like adding newlines to files
Humbly, I suggest not removing comments from firmware/src/widgets/weatherwidget/WeatherWidget.cpp as part of your PR: this makes the change bigger, and is unrelated to your objective.
Sorry about that. It was unintentional and happened when I re-rolled
I typically run format on save but I think this was a result of me re-rolling and messing with the files in another editor.
@ -0,0 +1,117 @@# TaskFactory API DocumentationProbably no need to document internal functions (in markdown) - code comments should be sufficient?
@ -0,0 +1,55 @@#include "TaskFactory.h"Should this be httpGetTask (as compared to POST PUT etc)?
@ -0,0 +29,4 @@}bool TaskManager::addTask(std::unique_ptr<Task> task) {if (isUrlInQueue(task->url)) {Should we emit a message about suppressing duplicate requests? technically they might not be duplicate based on URL if they have different post-processing (but that's super edge-case).
I'm mostly good with this PR, subject to a couple of minor points. Does all the HTTP code use this path - or do some need to be updated to use it? (and the old/alternate path removed)
Not all http code use this yet, only weather and stocks. ParqetWidget needs updated to use it but I think will take a specific http request for handling http.getstream. I also haven't looked at any of the webdataWidget stuff but I assume that could be converted to use this as well. It was just too big to try to change all those modules in one change.
@ -0,0 +1,117 @@# TaskFactory API Documentationim fine with removing the doc file. Just seems like maybe theres a broader need for a general developer guide or a how to contribute guide. I'll remove this file though
@ -0,0 +1,117 @@# TaskFactory API DocumentationThe file is fine! (good even) I was just commenting about httpTask() - an internal function. Sorry if I was unclear