Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Oct 12, 2024
1 parent f454bf9 commit fb28fc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions definitions/output/all/reprocess_requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ const types = ['= "script"', '= "image"', 'NOT IN ("script", "image")']
for (
let month = constants.currentMonth; month >= '2024-09-01'; month = constants.fnPastMonth(month)) {
constants.clients.forEach((client) => {
constants.booleans.forEach((is_root_page) => {
constants.booleans.forEach((isRootPage) => {
types.forEach((type) => {
iterations.push({
month,
client,
is_root_page,
isRootPage,
type
})
})
Expand All @@ -57,15 +57,15 @@ for (
}

iterations.forEach((iteration, i) => {
operate(`all_requests_stable ${iteration.month} ${iteration.client} ${iteration.is_root_page} ${i}`).tags(
operate(`all_requests_stable ${iteration.month} ${iteration.client} ${iteration.isRootPage} ${i}`).tags(
['all_requests_stable']
).dependencies([
i === 0 ? 'all_requests_stable_pre' : `all_requests_stable ${iterations[i - 1].month} ${iterations[i - 1].client} ${iterations[i - 1].is_root_page} ${i - 1}`
i === 0 ? 'all_requests_stable_pre' : `all_requests_stable ${iterations[i - 1].month} ${iterations[i - 1].client} ${iterations[i - 1].isRootPage} ${i - 1}`
]).queries(ctx => `
DELETE FROM \`all_dev.requests_stable\`
WHERE date = '${iteration.month}'
AND client = '${iteration.client}'
AND is_root_page = ${iteration.is_root_page}
AND is_root_page = ${iteration.isRootPage}
AND type ${iteration.type};
CREATE TEMP FUNCTION PRUNE_HEADERS(
Expand Down Expand Up @@ -126,7 +126,7 @@ FROM (
FROM \`all.requests\` ${constants.devTABLESAMPLE}
WHERE date = '${iteration.month}'
AND client = '${iteration.client}'
AND is_root_page = ${iteration.is_root_page}
AND is_root_page = ${iteration.isRootPage}
AND type ${iteration.type}
) AS requests
LEFT JOIN (
Expand Down
2 changes: 1 addition & 1 deletion definitions/output/blink_features/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function getFeatureNames(featureMap, featureType) {
var $ = JSON.parse(payload);
if (!$._blinkFeatureFirstUsed) return [];
var idPattern = new RegExp('^Feature_(\d+)$');
var idPattern = new RegExp('^Feature_(\\\\d+)$');
return getFeatureNames($._blinkFeatureFirstUsed.Features, 'default')
.concat(getFeatureNames($._blinkFeatureFirstUsed.CSSFeatures, 'css'))
.concat(getFeatureNames($._blinkFeatureFirstUsed.AnimatedCSSFeatures, 'animated-css'));
Expand Down

0 comments on commit fb28fc6

Please sign in to comment.