* @brief Subset of fields project.dataset.update accepts as range writes. */
| 484 | * @brief Subset of fields project.dataset.update accepts as range writes. |
| 485 | */ |
| 486 | static QJsonObject extractRangeParams(const QJsonObject& ranges) |
| 487 | { |
| 488 | static const QStringList kKeys = {QStringLiteral("pltMin"), |
| 489 | QStringLiteral("pltMax"), |
| 490 | QStringLiteral("wgtMin"), |
| 491 | QStringLiteral("wgtMax"), |
| 492 | QStringLiteral("fftMin"), |
| 493 | QStringLiteral("fftMax"), |
| 494 | QStringLiteral("ledHigh")}; |
| 495 | QJsonObject out; |
| 496 | for (const auto& k : kKeys) |
| 497 | if (ranges.contains(k)) |
| 498 | out.insert(k, ranges.value(k)); |
| 499 | |
| 500 | return out; |
| 501 | } |
| 502 | |
| 503 | /** |
| 504 | * @brief Resolve the target dataset for addTile; sets gid/did/uid in result on success. |
no test coverage detected