Skip to content

Commit 213bbbc

Browse files
authored
chore: Address more todo. (#115)
1 parent cbbdd2d commit 213bbbc

File tree

7 files changed

+11
-18
lines changed

7 files changed

+11
-18
lines changed

libs/client-sdk/src/data_sources/data_source_status_manager.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,14 @@ class DataSourceStatusManager : public IDataSourceStatusProvider {
6060
*/
6161
void SetError(DataSourceStatus::ErrorInfo::ErrorKind kind,
6262
std::string message);
63-
// TODO: Handle interrupted and other error states when they are
64-
// propagated from the event source.
6563

6664
/**
6765
* Set an error based on the given status code.
6866
* @param code The status code of the error.
6967
*/
7068
void SetError(DataSourceStatus::ErrorInfo::StatusCodeType code,
7169
std::string message);
72-
// TODO: Handle error codes once the EventSource supports it.
70+
// TODO: Handle error codes once the EventSource supports it. sc-204392
7371

7472
DataSourceStatus Status() override;
7573

libs/client-sdk/src/data_sources/polling_data_source.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ static network::HttpRequest MakeRequest(
3030
auto string_context =
3131
boost::json::serialize(boost::json::value_from(context));
3232

33-
// TODO: Handle slashes.
34-
3533
network::HttpRequest::BodyType body;
3634
network::HttpMethod method = network::HttpMethod::kGet;
3735

@@ -49,7 +47,6 @@ static network::HttpRequest MakeRequest(
4947
}
5048

5149
if (data_source_config.with_reasons) {
52-
// TODO: Handle better.
5350
if (url) {
5451
url->append("?withReasons=true");
5552
}

libs/client-sdk/src/data_sources/streaming_data_source.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void StreamingDataSource::Start() {
7979
return;
8080
}
8181

82-
// TODO: Initial reconnect delay.
82+
// TODO: Initial reconnect delay. sc-204393
8383
boost::urls::url url = uri_components.value();
8484

8585
if (data_source_config_.with_reasons) {
@@ -109,7 +109,7 @@ void StreamingDataSource::Start() {
109109
client_builder.header(header.first, header.second);
110110
}
111111

112-
// TODO: Handle proxy support.
112+
// TODO: Handle proxy support. sc-204386
113113

114114
auto weak_self = weak_from_this();
115115

@@ -118,7 +118,7 @@ void StreamingDataSource::Start() {
118118
self->data_source_handler_.HandleMessage(event.type(),
119119
event.data());
120120
// TODO: Use the result of handle message to restart the
121-
// event source if we got bad data.
121+
// event source if we got bad data. sc-204387
122122
}
123123
});
124124

libs/client-sdk/src/flag_manager/flag_updater.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ void FlagUpdater::Init(Context const& context,
2727

2828
// No need to calculate any changes if nobody is listening to them.
2929
if (!old_flags.empty() && HasListeners()) {
30-
// TODO: Should we send events for ALL of the flags when they
31-
// are first added?
3230
for (auto& new_pair : data) {
3331
auto existing = old_flags.find(new_pair.first);
3432
if (existing != old_flags.end()) {

libs/common/include/launchdarkly/attribute_reference.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ namespace launchdarkly {
1111

1212
/**
1313
* Represents an attribute name or path expression identifying a value within a
14-
* [TODO: Context]. This can be used to retrieve a value with [TODO: Get Value],
15-
* or to identify an attribute or nested value that should be considered private
16-
* with [TODO: private attribute] (the SDK configuration can also have a list of
17-
* private attribute references).
14+
* launchdarkly::Context. This can be used to retrieve a value with
15+
* launchdarkly::Context::Get, or to identify an attribute or nested value that
16+
* should be considered private
17+
* with launchdarkly::AttributesBuilder<BuilderReturn, BuildType>::SetPrivate or
18+
* launchdarkly::AttributesBuilder<BuilderReturn, BuildType>::AddPrivateAttribute
19+
* (the SDK configuration can also have a list of private attribute references).
1820
*
1921
* This is represented as a separate type, rather than just a string, so that
2022
* validation and parsing can be done ahead of time if an attribute reference

libs/common/src/config/app_info_builder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ std::optional<std::string> AppInfoBuilder::Build() const {
7070

7171
for (auto const& tag : unvalidated) {
7272
if (!tag.second) {
73-
// TODO: Figure out how to report.
73+
// TODO: Figure out how to report. sc-204388
7474
} else {
7575
validated.push_back(tag.second.value());
7676
}

libs/internal/src/events/asio_event_processor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ std::optional<EventBatch> AsioEventProcessor<SDK>::CreateBatch() {
197197
return std::nullopt;
198198
}
199199

200-
// TODO(cwaldren): Template the event processor over SDK type? Add it into
201-
// HttpProperties?
202200
config::shared::builders::HttpPropertiesBuilder<config::shared::ClientSDK>
203201
props(http_props_);
204202

0 commit comments

Comments
 (0)