-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16688 from schlawg/ui-readd-lint-ci
resume ci linting and move code style configs to ui
- Loading branch information
Showing
14 changed files
with
105 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
db.report2.find({ reason: { $exists: 1 } }).sort({ $natural: -1 }).forEach(r => { | ||
const sets = {}; | ||
r.atoms.forEach((_, i) => { | ||
sets[`atoms.${i}.reason`] = r.reason; | ||
db.report2 | ||
.find({ reason: { $exists: 1 } }) | ||
.sort({ $natural: -1 }) | ||
.forEach(r => { | ||
const sets = {}; | ||
r.atoms.forEach((_, i) => { | ||
sets[`atoms.${i}.reason`] = r.reason; | ||
}); | ||
db.report2.updateOne( | ||
{ _id: r._id }, | ||
{ | ||
$unset: { reason: 1 }, | ||
$set: sets, | ||
}, | ||
); | ||
}); | ||
db.report2.updateOne({ _id: r._id }, { | ||
$unset: { reason: 1 }, | ||
$set: sets | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
const replacements = | ||
[ | ||
[7, ''], // atomic | ||
[6, ''], // antichess | ||
[2, ''], // chess960 | ||
[10, ''], // crazyhouse | ||
[8, ''], // horde | ||
[4, ''], // kingOfTheHill | ||
[9, ''], // racingKings | ||
[5, ''], // threeCheck | ||
]; | ||
const replacements = [ | ||
[7, ''], // atomic | ||
[6, ''], // antichess | ||
[2, ''], // chess960 | ||
[10, ''], // crazyhouse | ||
[8, ''], // horde | ||
[4, ''], // kingOfTheHill | ||
[9, ''], // racingKings | ||
[5, ''], // threeCheck | ||
]; | ||
|
||
replacements.forEach(([variantId, icon]) => { | ||
print(variantId, icon); | ||
const res = db.tournament2.updateMany( | ||
{ 'spotlight.iconFont': { $exists: true }, variant: variantId }, | ||
{ $set: { 'spotlight.iconFont': icon } } | ||
{ $set: { 'spotlight.iconFont': icon } }, | ||
); | ||
print('done: ' + res.modifiedCount); | ||
}); | ||
|
||
const res = db.tournament2.updateMany( | ||
{ 'schedule.freq': 'shield', 'spotlight.iconFont': '' }, | ||
{ $set: { 'spotlight.iconFont': '' } } | ||
{ $set: { 'spotlight.iconFont': '' } }, | ||
); | ||
print('done: ' + res.modifiedCount); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters