A warning should be given when there is a function in the template string

A warning should be given when there is a function in the template string
var func = () => "foo";
var str = ${func}; // warn

This is duplicated.  https://github.com/microsoft/TypeScript/issues/42983

This is duplicated. #42983

@yuenc  why does issue #4298 marked as duplicate? and also linked to this issue. and the original issue is #16895 , but it was closed (4 years ago). and no implementation. I thought having "[object Object]" in string was a serious issue.


Deadlock signing up

Failed to execute INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s) with [27187, 'Bile Blight', 3, False] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')

Reported on decksite by nanaiper```
--------------------------------------------------------------------------------
Request Method: POST
Path: /signup/?
Cookies: {'__cfduid': 'd50f337eea3b413c53f524814868fba151516340693', '_ga': 'GA1.2.1301695421.1516340709', '_gid': 'GA1.2.269370341.1516490989', 'session': '.eJx9kV9PwjAUxb_LfV5Mt1HYeFMRlCCi0WEwZrlu3ah07Wg75U_47nYkyIOJj-fec8_t_XUPac10hZJJC32rG-YB5hWX0C9QGKdybjKl85Tn0IewExAahJSQIIxpRIMIPPinI9Oy4SI_JQuVoWDO_YnQqrJkebvfKHnM94Mo9qCypUobw7TEqjVLlMidy40obOwySI1F23am35KqeJzNR5PnxXBQL0f03lwOpvPqCePd2W_VirmL9oBZxow5aUhQv_ZoMltvx0Vty900n5jFx-Caimp957t5tqm5ZiZFB8enIaVR1-_0LkhAfD_unfstry7pRIR4oFnhSsvfJRNffT0moV6V401xO5sNh00yUPxGPLxws3FLHN_aXfPmQLpf4MXW1Y7YDLx7cIxJ7ba1wBVD7UAcPPhDzaIumXumbIQ4_AAJ85eU.Dq6PEg.pOQ2wAhoB37_zQYQUHpm40lKlPY', '_gat_gtag_UA_109131120_1': '1'}
Endpoint: add_signup
View Args: {}
Person:<PHONE_NUMBER>23958528
Referrer: https://pennydreadfulmagic.com/signup/
Request Data: {'mtgo_username': 'nanaiper', 'name': 'Mizzet-Void', 'decklist': "3 Bile Blight\r\n2 Careful Consideration\r\n4 Choked Estuary\r\n3 Compulsive Research\r\n4 Crumbling Necropolis\r\n1 Elixir of Immortality\r\n4 Forbid\r\n2 Foreboding Ruins\r\n4 Island\r\n1 Izzet Guildgate\r\n2 Moment of Craving\r\n2 Mountain\r\n2 Niv-Mizzet, Dracogenius\r\n2 Perilous Voyage\r\n3 Power Sink\r\n1 Precognition Field\r\n2 Radiant Flames\r\n4 Swamp\r\n3 Thawing Glaciers\r\n1 Treasure Cruise\r\n2 Urza's Factory\r\n2 Void\r\n2 Wrecking Ball\r\n4 Wretched Banquet\r\n\r\nSideboard:\r\n2 Consume the Meek\r\n2 Detritivore\r\n2 Meltdown\r\n3 Memoricide\r\n2 Overwhelming Denial\r\n2 Scrabbling Claws\r\n2 Tribute to Hunger"}
Host: pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: JP
X-Forwarded-For: <IP_ADDRESS>, <IP_ADDRESS>
Cf-Ray: 46d728a13a28209c-KIX
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: ja,en-US;q=0.7,en;q=0.3
Referer: https://pennydreadfulmagic.com/signup/
Content-Type: application/x-www-form-urlencoded
Dnt: 1
Upgrade-Insecure-Requests: 1
Cookie: __cfduid=d50f337eea3b413c53f524814868fba151516340693; _ga=GA1.2.1301695421.1516340709; _gid=GA1.2.269370341.1516490989; session=.eJx9kV9PwjAUxb_LfV5Mt1HYeFMRlCCi0WEwZrlu3ah07Wg75U_47nYkyIOJj-fec8_t_XUPac10hZJJC32rG-YB5hWX0C9QGKdybjKl85Tn0IewExAahJSQIIxpRIMIPPinI9Oy4SI_JQuVoWDO_YnQqrJkebvfKHnM94Mo9qCypUobw7TEqjVLlMidy40obOwySI1F23am35KqeJzNR5PnxXBQL0f03lwOpvPqCePd2W_VirmL9oBZxow5aUhQv_ZoMltvx0Vty900n5jFx-Caimp957t5tqm5ZiZFB8enIaVR1-_0LkhAfD_unfstry7pRIR4oFnhSsvfJRNffT0moV6V401xO5sNh00yUPxGPLxws3FLHN_aXfPmQLpf4MXW1Y7YDLx7cIxJ7ba1wBVD7UAcPPhDzaIumXumbIQ4_AAJ85eU.Dq6PEg.pOQ2wAhoB37_zQYQUHpm40lKlPY; _gat_gtag_UA_109131120_1=1
Cf-Connecting-Ip: <IP_ADDRESS>
X-Forwarded-Host: pennydreadfulmagic.com
X-Forwarded-Server: pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 753

--------------------------------------------------------------------------------
DatabaseException
Failed to execute `INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s)` with `[27187, 'Bile Blight', 3, False]` because of `(1213, 'Deadlock found when trying to get lock; try restarting transaction')`
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "./decksite/cache.py", line 79, in decorated_function
response = make_response(f(*args, **kwargs))
File "./decksite/main.py", line 290, in add_signup
d = lg.signup(form)
File "./decksite/league.py", line 180, in signup
return deck.add_deck(form)
File "./decksite/data/deck.py", line 348, in add_deck
add_cards(deck_id, params['cards'])
File "./decksite/data/deck.py", line 379, in add_cards
insert_deck_card(deck_id, name, n, False)
File "./decksite/data/deck.py", line 392, in insert_deck_card
db().execute(sql, [deck_id, name, n, in_sideboard])
File "./shared/database.py", line 45, in execute
[n, _] = self.execute_anything(sql, args, False)
File "./shared/database.py", line 60, in execute_anything
raise DatabaseException('Failed to execute {sql} with {args} because of {e}'.format(sql=sql, args=args, e=e))

These were both in quick succession.
Failed to execute INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s) with [27180, 'Bile Blight', 3, False] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')

Reported on decksite by nanaiper```
--------------------------------------------------------------------------------
Request Method: POST
Path: /signup/?
Cookies: {'__cfduid': 'd50f337eea3b413c53f524814868fba151516340693', '_ga': 'GA1.2.1301695421.1516340709', '_gid': 'GA1.2.269370341.1516490989', 'session': '.eJx9kV9PwjAUxb_LfV5Mt1HYeFMRlCCi0WEwZrlu3ah07Wg75U_47nYkyIOJj-fec8_t_XUPac10hZJJC32rG-YB5hWX0C9QGKdybjKl85Tn0IewExAahJSQIIxpRIMIPPinI9Oy4SI_JQuVoWDO_YnQqrJkebvfKHnM94Mo9qCypUobw7TEqjVLlMidy40obOwySI1F23am35KqeJzNR5PnxXBQL0f03lwOpvPqCePd2W_VirmL9oBZxow5aUhQv_ZoMltvx0Vty900n5jFx-Caimp957t5tqm5ZiZFB8enIaVR1-_0LkhAfD_unfstry7pRIR4oFnhSsvfJRNffT0moV6V401xO5sNh00yUPxGPLxws3FLHN_aXfPmQLpf4MXW1Y7YDLx7cIxJ7ba1wBVD7UAcPPhDzaIumXumbIQ4_AAJ85eU.Dq6PEg.pOQ2wAhoB37_zQYQUHpm40lKlPY', '_gat_gtag_UA_109131120_1': '1'}
Endpoint: add_signup
View Args: {}
Person:<PHONE_NUMBER>23958528
Referrer: https://pennydreadfulmagic.com/signup/
Request Data: {'mtgo_username': 'nanaiper', 'name': 'Mizzet-Void', 'decklist': "3 Bile Blight\r\n2 Careful Consideration\r\n4 Choked Estuary\r\n3 Compulsive Research\r\n4 Crumbling Necropolis\r\n1 Elixir of Immortality\r\n4 Forbid\r\n2 Foreboding Ruins\r\n4 Island\r\n1 Izzet Guildgate\r\n2 Moment of Craving\r\n2 Mountain\r\n2 Niv-Mizzet, Dracogenius\r\n2 Perilous Voyage\r\n3 Power Sink\r\n1 Precognition Field\r\n2 Radiant Flames\r\n4 Swamp\r\n3 Thawing Glaciers\r\n1 Treasure Cruise\r\n2 Urza's Factory\r\n2 Void\r\n2 Wrecking Ball\r\n4 Wretched Banquet\r\n\r\nSideboard:\r\n2 Consume the Meek\r\n2 Detritivore\r\n2 Meltdown\r\n3 Memoricide\r\n2 Overwhelming Denial\r\n2 Scrabbling Claws\r\n2 Tribute to Hunger"}
Host: pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: JP
X-Forwarded-For: <IP_ADDRESS>, <IP_ADDRESS>
Cf-Ray: 46d728859994209c-KIX
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: ja,en-US;q=0.7,en;q=0.3
Referer: https://pennydreadfulmagic.com/signup/
Content-Type: application/x-www-form-urlencoded
Dnt: 1
Upgrade-Insecure-Requests: 1
Cookie: __cfduid=d50f337eea3b413c53f524814868fba151516340693; _ga=GA1.2.1301695421.1516340709; _gid=GA1.2.269370341.1516490989; session=.eJx9kV9PwjAUxb_LfV5Mt1HYeFMRlCCi0WEwZrlu3ah07Wg75U_47nYkyIOJj-fec8_t_XUPac10hZJJC32rG-YB5hWX0C9QGKdybjKl85Tn0IewExAahJSQIIxpRIMIPPinI9Oy4SI_JQuVoWDO_YnQqrJkebvfKHnM94Mo9qCypUobw7TEqjVLlMidy40obOwySI1F23am35KqeJzNR5PnxXBQL0f03lwOpvPqCePd2W_VirmL9oBZxow5aUhQv_ZoMltvx0Vty900n5jFx-Caimp957t5tqm5ZiZFB8enIaVR1-_0LkhAfD_unfstry7pRIR4oFnhSsvfJRNffT0moV6V401xO5sNh00yUPxGPLxws3FLHN_aXfPmQLpf4MXW1Y7YDLx7cIxJ7ba1wBVD7UAcPPhDzaIumXumbIQ4_AAJ85eU.Dq6PEg.pOQ2wAhoB37_zQYQUHpm40lKlPY; _gat_gtag_UA_109131120_1=1
Cf-Connecting-Ip: <IP_ADDRESS>
X-Forwarded-Host: pennydreadfulmagic.com
X-Forwarded-Server: pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 753

--------------------------------------------------------------------------------
DatabaseException
Failed to execute `INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s)` with `[27180, 'Bile Blight', 3, False]` because of `(1213, 'Deadlock found when trying to get lock; try restarting transaction')`
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "./decksite/cache.py", line 79, in decorated_function
response = make_response(f(*args, **kwargs))
File "./decksite/main.py", line 290, in add_signup
d = lg.signup(form)
File "./decksite/league.py", line 180, in signup
return deck.add_deck(form)
File "./decksite/data/deck.py", line 348, in add_deck
add_cards(deck_id, params['cards'])
File "./decksite/data/deck.py", line 379, in add_cards
insert_deck_card(deck_id, name, n, False)
File "./decksite/data/deck.py", line 392, in insert_deck_card
db().execute(sql, [deck_id, name, n, in_sideboard])
File "./shared/database.py", line 45, in execute
[n, _] = self.execute_anything(sql, args, False)
File "./shared/database.py", line 60, in execute_anything
raise DatabaseException('Failed to execute {sql} with {args} because of {e}'.format(sql=sql, args=args, e=e))

Failed to execute INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s) with [28518, 'Expedition Envoy', 4, False] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')

Reported on decksite by gaiametris```
--------------------------------------------------------------------------------
Request Method: POST
Path: /signup/?
Cookies: {'__cfduid': 'd7b984f0352b2b15967b6b4794ed675d01523947022', '_ga': 'GA1.2.657619585.1523947026', 'hide_intro': 'True', '_gid': 'GA1.2.433847372.1541074511', 'deck_id': '28469', '_gat_gtag_UA_109131120_1': '1', 'session': '.eJx9UdFOwjAU_Zc-L2Zdu63yxiCoDySILCjGLGXrRnFrR9shaPh370h0Dya-9dxzc849p18oa4VpuBLKoZEznfAQLxqp0KjktQVUiEY2uhiwtLk2RSZhhAijUUApjhgNAx9TnyEP_cOorOpkPYjVuqpE0Z9gtbpK4pj5HmpcpbPOCqN4I0Ct4hIezkgLKpp3bhdk1nHXc5tUHUidlunLFrtkquZLPT6yp7JdEP9xPuw7_S4g1hfieS6s_cFof18syfHwsdARMZPkjqWTsUxCYgu8fej9xKmVRtiMQ0M4pDgmEY3ZDYZgMYsHvi8t8inzIYARJYx2vyaTczij_HNNSrGP82C2vt2q1ck8R9MVLzdgAqW2kOYV2oOvkOUZZteuLHrz0FUmc-d-BSWCG2HQxUN_enPcVALOVF1dX74B0ROYow.DsF3WA.mIKQGE-0SaMI0cO2LlqOVpjwM3I'}
Endpoint: add_signup
View Args: {}
Person:<PHONE_NUMBER>45201408
Referrer: https://pennydreadfulmagic.com/signup/
Request Data: {'mtgo_username': 'gaiametris', 'name': 'Boros Allies v4', 'decklist': '\r\n\r\n 0\r\n 0\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n'}
Host: pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 2601:900:c100:400:7cd7:ddd9:ce11:21f4, <IP_ADDRESS>
Cf-Ray: 474d54a4b876b72f-JAX
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Cache-Control: max-age=0
Origin: https://pennydreadfulmagic.com
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8
Referer: https://pennydreadfulmagic.com/signup/
Accept-Language: en-US,en;q=0.9
Cookie: __cfduid=d7b984f0352b2b15967b6b4794ed675d01523947022; _ga=GA1.2.657619585.1523947026; hide_intro=True; _gid=GA1.2.433847372.1541074511; deck_id=28469; _gat_gtag_UA_109131120_1=1; session=.eJx9UdFOwjAU_Zc-L2Zdu63yxiCoDySILCjGLGXrRnFrR9shaPh370h0Dya-9dxzc849p18oa4VpuBLKoZEznfAQLxqp0KjktQVUiEY2uhiwtLk2RSZhhAijUUApjhgNAx9TnyEP_cOorOpkPYjVuqpE0Z9gtbpK4pj5HmpcpbPOCqN4I0Ct4hIezkgLKpp3bhdk1nHXc5tUHUidlunLFrtkquZLPT6yp7JdEP9xPuw7_S4g1hfieS6s_cFof18syfHwsdARMZPkjqWTsUxCYgu8fej9xKmVRtiMQ0M4pDgmEY3ZDYZgMYsHvi8t8inzIYARJYx2vyaTczij_HNNSrGP82C2vt2q1ck8R9MVLzdgAqW2kOYV2oOvkOUZZteuLHrz0FUmc-d-BSWCG2HQxUN_enPcVALOVF1dX74B0ROYow.DsF3WA.mIKQGE-0SaMI0cO2LlqOVpjwM3I
Cf-Connecting-Ip: 2601:900:c100:400:7cd7:ddd9:ce11:21f4
X-Forwarded-Host: pennydreadfulmagic.com
X-Forwarded-Server: pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 3535

--------------------------------------------------------------------------------
DatabaseException
Failed to execute `INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s)` with `[28518, 'Expedition Envoy', 4, False]` because of `(1213, 'Deadlock found when trying to get lock; try restarting transaction')`
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "./decksite/cache.py", line 79, in decorated_function
response = make_response(f(*args, **kwargs))
File "./decksite/main.py", line 297, in add_signup
d = lg.signup(form)
File "./decksite/league.py", line 181, in signup
return deck.add_deck(form)
File "./decksite/data/deck.py", line 351, in add_deck
add_cards(deck_id, params['cards'])
File "./decksite/data/deck.py", line 383, in add_cards
insert_deck_card(deck_id, name, n, False)
File "./decksite/data/deck.py", line 400, in insert_deck_card
db().execute(sql, [deck_id, name, n, in_sideboard])
File "./shared/database.py", line 45, in execute
[n, _] = self.execute_anything(sql, args, False)
File "./shared/database.py", line 60, in execute_anything
raise DatabaseException('Failed to execute {sql} with {args} because of {e}'.format(sql=sql, args=args, e=e))

Exception_hash: 7abaa601defb74737f8c5b01586f6c1289327f05

With one episode in 25 days looks like the new connection closing stuff is doing work here. Closing.

Failed to execute INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s) with [36222, 'Goblin Electromancer', 4, False] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')

Reported on decksite by j_meka

            --------------------------------------------------------------------------------
            Request Method: POST
            Path: /signup/?
            Cookies: {'_ga': 'GA1.2.541409585.1509639551', 'hide_intro': 'True', '__cfduid': 'de588a43e0b97185ffc9a61cd790e91631541397138', '_gid': 'GA1.2.524131529.1549093322', '_gat_gtag_UA_109131120_1': '1', 'session': '.eJx9UctugzAQ_BefUQU2zx7TVKryVNSmrVJVlgsLoYAhtokgUf49G6QkUg89zqx3Zmd8JLwBVQkJ0pBHo1qwiEiqXF5BAlVe1ckN5jquVcJzZAh1ooAxLwyYbTMnoswlFvlnInnW5uVNq6yzDJKLv67loOjYvkUqk9W81aCkqAC1fnkFhcD9WrRmS7k2wlz4UdyWq1WYvKfw3NJx9LEZzYNuQ4tmvlge7u9NXQDGORIRx6D1FZOim3Td2gumT_Fk-7ZZvniqLN3e_2zGbrzAfeiaXIHmAptxPBZhIErtBxYy1wv9-_xSlm-7oW1bREGK1PZmMnF269nPrNmvZDrqguleUqcwu754zfRBownW2WCaL-wNvyBPe-SGljT5tsggw03fDIFBKFDkZJG_lRmhMsArZVuWpzP2i5cS.Dzqrlw.kU2MJOKcchcS07oEIqLYezE4dd0'}
            Endpoint: add_signup
            View Args: {}
            Person:<PHONE_NUMBER>00319234
            Referrer: https://pennydreadfulmagic.com/signup/
            Request Data: {'mtgo_username': 'j_meka', 'name': 'Locket Storm', 'decklist': "4 Goblin Electromancer\r\n4 Seething Song\r\n4 Peer Through Depths\r\n4 Frantic Search\r\n4 Anticipate\r\n4 Locket of Yesterdays\r\n4 Nagging Thoughts\r\n4 Treasure Cruise\r\n2 Call to Mind\r\n2 Tendrils of Agony\r\n4 Pirate's Pillage\r\n2 Shrine of Piercing Vision\r\n4 Vivid Crag\r\n2 Mountain\r\n8 Island\r\n4 Sunken Hollow\r\n\r\n2 Blink of an Eye\r\n4 Curious Homunculus\r\n1 Temporal Fissure\r\n4 Lay Bare the Heart\r\n2 Snapback\r\n2 Pyroclasm\r\n"}
Host: pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: 2601:880:c000:1a7d:ec41:a128:3013:48fe, <IP_ADDRESS>
Cf-Ray: 4a42daeebf8dc885-MIA
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Cache-Control: max-age=0
Origin: https://pennydreadfulmagic.com
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Referer: https://pennydreadfulmagic.com/signup/
Accept-Language: en-US,en;q=0.9
Cookie: _ga=GA1.2.541409585.1509639551; hide_intro=True; __cfduid=de588a43e0b97185ffc9a61cd790e91631541397138; _gid=GA1.2.524131529.1549093322; _gat_gtag_UA_109131120_1=1; session=.eJx9UctugzAQ_BefUQU2zx7TVKryVNSmrVJVlgsLoYAhtokgUf49G6QkUg89zqx3Zmd8JLwBVQkJ0pBHo1qwiEiqXF5BAlVe1ckN5jquVcJzZAh1ooAxLwyYbTMnoswlFvlnInnW5uVNq6yzDJKLv67loOjYvkUqk9W81aCkqAC1fnkFhcD9WrRmS7k2wlz4UdyWq1WYvKfw3NJx9LEZzYNuQ4tmvlge7u9NXQDGORIRx6D1FZOim3Td2gumT_Fk-7ZZvniqLN3e_2zGbrzAfeiaXIHmAptxPBZhIErtBxYy1wv9-_xSlm-7oW1bREGK1PZmMnF269nPrNmvZDrqguleUqcwu754zfRBownW2WCaL-wNvyBPe-SGljT5tsggw03fDIFBKFDkZJG_lRmhMsArZVuWpzP2i5cS.Dzqrlw.kU2MJOKcchcS07oEIqLYezE4dd0
Cf-Connecting-Ip: 2601:880:c000:1a7d:ec41:a128:3013:48fe
Cdn-Loop: cloudflare
X-Forwarded-Host: pennydreadfulmagic.com
X-Forwarded-Server: pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 550
DatabaseException
Failed to execute INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s) with [36222, 'Goblin Electromancer', 4, False] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')
Stack Trace:

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
    response = self.handle_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "./decksite/cache.py", line 79, in decorated_function
    response = make_response(f(*args, **kwargs))
  File "./decksite/main.py", line 340, in add_signup
    d = lg.signup(form)
  File "./decksite/league.py", line 180, in signup
    return deck.add_deck(form)
  File "./decksite/data/deck.py", line 357, in add_deck
    add_cards(deck_id, params['cards'])
  File "./decksite/data/deck.py", line 389, in add_cards
    insert_deck_card(deck_id, name, n, False)
  File "./decksite/data/deck.py", line 406, in insert_deck_card
    db().execute(sql, [deck_id, name, n, in_sideboard])
  File "./shared/database.py", line 45, in execute
    [n, _] = self.execute_anything(sql, args, False)
  File "./shared/database.py", line 60, in execute_anything
    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))
Exception_hash: 372d89344309463f6a06db740ae685279442422c

Really do have to diagnose and fix this at some point …
Failed to execute INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s) with [37922, 'Stromkirk Condemned', 4, False] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')

Reported on decksite by 1peter1

            --------------------------------------------------------------------------------
            Request Method: POST
            Path: /signup/?
            Cookies: {'__cfduid': 'ddf1793d8b4ed3d76636de80517c9ec1d1542606885', '_ga': 'GA1.2.1013801208.1542606890', 'session': '.eJx9UWFPwjAQ_S_3eTEr3Rzlo7hgNBuCikFjlma9jcatHW1nBMJ_tyNBPpjYb-_eu3t3rwcoOjQtV6gcTJzpMQAuWqlgUvHGeiSwla0WFyxtqY0opC9BTFlMxlEcM5bENCSEQgD_MKqoe9mIs1OjS96gV0sHA6prFMM-VqvTfEoiGkDral30Fo3i7SAmHTo0xHdo3rvNqLCOu4GI87zfrvJdfbelEvNVplU2n5GvOlObNLzonf5Ef-ABeFmitWcMtyWZuoqLxZznW1be5yldV-nTaDrf68fG9-N3Jw3agvusSBwxSsKEsSs68i-50EN612E0DsMADFa-tPn1SN7Wy4fdWrwS4dLxinXMxos8n5mX53229B4-3c4f8-5j9H8iq52vnUKz8BHAaUzhdoMEbpAbNHAM4E9mjpsa_Zaqb5rjD5Xxmyg.D0FwBw.Q_F8ri5H-U6981ePxFcM8IV9Ro0', '_gid': 'GA1.2.2080251305.1549618721'}
            Endpoint: add_signup
            View Args: {}
            Person:<PHONE_NUMBER>97530113
            Referrer: https://pennydreadfulmagic.com/signup/
            Request Data: {'mtgo_username': '1peter1', 'name': 'Noir - Vamp', 'decklist': '<?xml version="1.0" encoding="utf-8"?>\r\n<Deck xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r\n  <NetDeckID>0</NetDeckID>\r\n  <PreconstructedDeckID>0</PreconstructedDeckID>\r\n  <Cards CatID="61172" Quantity="4" Sideboard="false" Name="Stromkirk Condemned" />\r\n  <Cards CatID="34600" Quantity="3" Sideboard="false" Name="Malakir Bloodwitch" />\r\n  <Cards CatID="65256" Quantity="3" Sideboard="false" Name="Sanctum Seeker" />\r\n  <Cards CatID="42466" Quantity="3" Sideboard="false" Name="Bloodline Keeper" />\r\n  <Cards CatID="61396" Quantity="3" Sideboard="false" Name="Voldaren Pariah" />\r\n  <Cards CatID="45354" Quantity="4" Sideboard="false" Name="Vampire Nighthawk" />\r\n  <Cards CatID="59960" Quantity="4" Sideboard="false" Name="Heir of Falkenrath" />\r\n  <Cards CatID="60020" Quantity="4" Sideboard="false" Name="Indulgent Aristocrat" />\r\n  <Cards CatID="60324" Quantity="4" Sideboard="false" Name="Asylum Visitor" />\r\n  <Cards CatID="50408" Quantity="2" Sideboard="false" Name="Whip of Erebos" />\r\n  <Cards CatID="58831" Quantity="8" Sideboard="false" Name="Swamp" />\r\n  <Cards CatID="58837" Quantity="10" Sideboard="false" Name="Swamp" />\r\n  <Cards CatID="58835" Quantity="4" Sideboard="false" Name="Swamp" />\r\n  <Cards CatID="66581" Quantity="1" Sideboard="false" Name="Champion of Dusk" />\r\n  <Cards CatID="66593" Quantity="3" Sideboard="false" Name="Dusk Legion Zealot" />\r\n  <Cards CatID="66581" Quantity="2" Sideboard="true" Name="Champion of Dusk" />\r\n  <Cards CatID="63794" Quantity="3" Sideboard="true" Name="Lay Bare the Heart" />\r\n  <Cards CatID="58385" Quantity="2" Sideboard="true" Name="Transgress the Mind" />\r\n  <Cards CatID="46603" Quantity="2" Sideboard="true" Name="Ultimate Price" />\r\n  <Cards CatID="65276" Quantity="2" Sideboard="true" Name="Walk the Plank" />\r\n  <Cards CatID="52737" Quantity="3" Sideboard="true" Name="Nature\'s Ruin" />\r\n  <Cards CatID="61396" Quantity="1" Sideboard="true" Name="Voldaren Pariah" />\r\n</Deck>'}
Host: pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: NL
X-Forwarded-For: <IP_ADDRESS>, <IP_ADDRESS>
Cf-Ray: 4a6d34f48b859ca7-AMS
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: nl,en-US;q=0.7,en;q=0.3
Referer: https://pennydreadfulmagic.com/signup/
Content-Type: application/x-www-form-urlencoded
Dnt: 1
Cookie: __cfduid=ddf1793d8b4ed3d76636de80517c9ec1d1542606885; _ga=GA1.2.1013801208.1542606890; session=.eJx9UWFPwjAQ_S_3eTEr3Rzlo7hgNBuCikFjlma9jcatHW1nBMJ_tyNBPpjYb-_eu3t3rwcoOjQtV6gcTJzpMQAuWqlgUvHGeiSwla0WFyxtqY0opC9BTFlMxlEcM5bENCSEQgD_MKqoe9mIs1OjS96gV0sHA6prFMM-VqvTfEoiGkDral30Fo3i7SAmHTo0xHdo3rvNqLCOu4GI87zfrvJdfbelEvNVplU2n5GvOlObNLzonf5Ef-ABeFmitWcMtyWZuoqLxZznW1be5yldV-nTaDrf68fG9-N3Jw3agvusSBwxSsKEsSs68i-50EN612E0DsMADFa-tPn1SN7Wy4fdWrwS4dLxinXMxos8n5mX53229B4-3c4f8-5j9H8iq52vnUKz8BHAaUzhdoMEbpAbNHAM4E9mjpsa_Zaqb5rjD5Xxmyg.D0FwBw.Q_F8ri5H-U6981ePxFcM8IV9Ro0; _gid=GA1.2.2080251305.1549618721
Upgrade-Insecure-Requests: 1
Cf-Connecting-Ip: <IP_ADDRESS>
Cdn-Loop: cloudflare
X-Forwarded-Host: pennydreadfulmagic.com
X-Forwarded-Server: pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 2901
DatabaseException
Failed to execute INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s) with [37922, 'Stromkirk Condemned', 4, False] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')
Stack Trace:

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
    response = self.handle_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "./decksite/cache.py", line 79, in decorated_function
    response = make_response(f(*args, **kwargs))
  File "./decksite/main.py", line 341, in add_signup
    d = lg.signup(form)
  File "./decksite/league.py", line 180, in signup
    return deck.add_deck(form)
  File "./decksite/data/deck.py", line 357, in add_deck
    add_cards(deck_id, params['cards'])
  File "./decksite/data/deck.py", line 389, in add_cards
    insert_deck_card(deck_id, name, n, False)
  File "./decksite/data/deck.py", line 406, in insert_deck_card
    db().execute(sql, [deck_id, name, n, in_sideboard])
  File "./shared/database.py", line 45, in execute
    [n, _] = self.execute_anything(sql, args, False)
  File "./shared/database.py", line 60, in execute_anything
    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))
Exception_hash: 611d2dd077689f01fe34de1ac4fcd33c3de52f9e

Failed to execute INSERT INTO deck ( created_date, updated_date, person_id, source_id, url, identifier, name, competition_id, archetype_id, resource_uri, featured_card, score, thumbnail_url, small_thumbnail_url, finish, reviewed ) VALUES ( IFNULL(%s, UNIX_TIMESTAMP()), UNIX_TIMESTAMP(), %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, FALSE ) with [1550014925.945496, 143, 3, 'https://pennydreadfulmagic.com/competitions/848/', '["bakert99", 848, "1550014926"]', 'UB Mid', 848, None, None, None, None, None, None, None] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')

Reported on decksite by bakert99

            --------------------------------------------------------------------------------
            Request Method: POST
            Path: /signup/?
            Cookies: {'__cfduid': 'dbbaeaf004b46114da480ca1ea67b1fe41519487476', 'hide_intro': 'True', '_ga': 'GA1.2.336853490.1519750417', 'session': '.eJx1kNtuwjAQRP9ln6PKTpxAeGvpDQqiVxCtqsiNN8bCuch2Wiji3-sgUaRKfZyd2R377CBr0JS8wsrBwJkWA-CiVNVRCGXz2ohMCRgATeOEsZT2SJ8yRsIkhgD-d3Sdc43exeqgpETR1dm6OtyjLAqgdLLOWoum4mWX_eBrNC5N_UbNW7cKM-u465wmvp7fr75H00cqeKhuinEyuzyPWjXXxbw85V299oWDHfA8R2uPGoSdbtjLWGrFGjV5kKPnoS0mS_IaueXC-H3cNMqgzbhHQeMwpmGapNEZSdJe1Kcnv6OTENYnJACDhR-tfkvC5OnudjIbkofPq5EsvsajHInuLejMyM3Ql3icjf_Nm-fmmati62eyVVpYeA_gcCZz2y4CF8gNGtgH8Bea40aif2XVar3_Abpoj4o.D0TrRw.1Lf6KTtwY5PpMkL_wu5vhG6nadk', '_gid': 'GA1.2.1940173015.1548094837', 'deck_id': '38546', '_gat_gtag_UA_109131120_1': '1'}
            Endpoint: add_signup
            View Args: {}
            Person:<PHONE_NUMBER>81440265
            Referrer: https://pennydreadfulmagic.com/signup/
            Request Data: {'mtgo_username': 'bakert99', 'name': 'UB Mid', 'decklist': "4 Thought Erasure\r\n2 Dimir Guildmage\r\n4 Sunken Hollow\r\n4 Choked Estuary\r\n10 Swamp\r\n6 Island\r\n4 Rune Snag\r\n4 Hypnotic Specter\r\n4 Nightveil Specter\r\n2 Bloodgift Demon\r\n4 Desecration Demon\r\n1 Agony Warp\r\n1 Ultimate Price\r\n2 Ulcerate\r\n2 Guul Draz Assassin\r\n1 Murder\r\n1 Smother\r\n1 Consuming Vapors\r\n1 Terror\r\n1 Cremate\r\n1 Bloodsoaked Champion\r\n\r\n3 Negate\r\n4 Lay Bare the Heart\r\n3 Nature's Ruin\r\n2 Wydwen, the Biting Gale\r\n2 Withered Wretch\r\n1 Steal Artifact\r\n"}
Host: pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: US
X-Forwarded-For: <IP_ADDRESS>, <IP_ADDRESS>
Cf-Ray: 4a82e8e14c056d8a-SJC
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
Cache-Control: max-age=0
Origin: https://pennydreadfulmagic.com
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Referer: https://pennydreadfulmagic.com/signup/
Accept-Language: en-US,en;q=0.9,es;q=0.8
Cookie: __cfduid=dbbaeaf004b46114da480ca1ea67b1fe41519487476; hide_intro=True; _ga=GA1.2.336853490.1519750417; session=.eJx1UMtuwjAQ_Jc9R5WdOIFwa-krFETpA0SrKnLjjbEwSWQ7LRTx73WQWqRKPc7OzM7u7IGLjapg4EyLAQhli9qIXAkYAE3jhLGU9kifMkbCJIYA_md0XXCNnsXqiKREkTdobF0d91EWBbBxss5bi6bim077ztdoXJp6R81btwpz67jrmCa-nt-vvrLJAxU8VDflKJlenketmutyvjnpXb32gYM98KJAa38wCDvZsueR1Io1ajyT2dPQluMleYnccmG8H7eNMmhz7vxtcRjTME3S6IwkaS_q0xPftZMQ1ickAIOlH61-Q8Lk8e52PB2S2cdVJsvPUVYg0b0FnRq5HfoQX2fjv3n1vWHlVLnzM9kqLSy8BXBck7tdJ4EL5AYNHAL4W5rjRqK_smq1PnwDU6SI9w.Dfj1kQ.6zIYF2Bw9YqqBtAVtkhDIFSf-AA; _gid=GA1.2.1940173015.1548094837; deck_id=38546; _gat_gtag_UA_109131120_1=1; session=.eJx1kNtuwjAQRP9ln6PKTpxAeGvpDQqiVxCtqsiNN8bCuch2Wiji3-sgUaRKfZyd2R377CBr0JS8wsrBwJkWA-CiVNVRCGXz2ohMCRgATeOEsZT2SJ8yRsIkhgD-d3Sdc43exeqgpETR1dm6OtyjLAqgdLLOWoum4mWX_eBrNC5N_UbNW7cKM-u465wmvp7fr75H00cqeKhuinEyuzyPWjXXxbw85V299oWDHfA8R2uPGoSdbtjLWGrFGjV5kKPnoS0mS_IaueXC-H3cNMqgzbhHQeMwpmGapNEZSdJe1Kcnv6OTENYnJACDhR-tfkvC5OnudjIbkofPq5EsvsajHInuLejMyM3Ql3icjf_Nm-fmmati62eyVVpYeA_gcCZz2y4CF8gNGtgH8Bea40aif2XVar3_Abpoj4o.D0TrRw.1Lf6KTtwY5PpMkL_wu5vhG6nadk
Cf-Connecting-Ip: <IP_ADDRESS>
Cdn-Loop: cloudflare
X-Forwarded-Host: pennydreadfulmagic.com
X-Forwarded-Server: pennydreadfulmagic.com
Connection: Keep-Alive
Content-Length: 614
DatabaseException
Failed to execute INSERT INTO deck ( created_date, updated_date, person_id, source_id, url, identifier, name, competition_id, archetype_id, resource_uri, featured_card, score, thumbnail_url, small_thumbnail_url, finish, reviewed ) VALUES ( IFNULL(%s, UNIX_TIMESTAMP()), UNIX_TIMESTAMP(), %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, FALSE ) with [1550014925.945496, 143, 3, 'https://pennydreadfulmagic.com/competitions/848/', '["bakert99", 848, "1550014926"]', 'UB Mid', 848, None, None, None, None, None, None, None] because of (1213, 'Deadlock found when trying to get lock; try restarting transaction')
Stack Trace:

  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
    response = self.handle_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "./decksite/cache.py", line 79, in decorated_function
    response = make_response(f(*args, **kwargs))
  File "./decksite/main.py", line 351, in add_signup
    d = lg.signup(form)
  File "./decksite/league.py", line 180, in signup
    return deck.add_deck(form)
  File "./decksite/data/deck.py", line 356, in add_deck
    deck_id = db().insert(sql, values)
  File "./shared/database.py", line 89, in insert
    self.execute(sql, args)
  File "./shared/database.py", line 45, in execute
    [n, _] = self.execute_anything(sql, args, False)
  File "./shared/database.py", line 60, in execute_anything
    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))
Exception_hash: 1c84d9886ebe0b811fde3c14436118b5c0bfba14

Hasn't happened (except in scraper, not in signup) since Aug 30. Maybe it fixed itself?

Still only happened in scraper and startup since Aug 30 which is nice. I guess it needs fixing in scraper and startup tho :)

DatabaseException Failed to execute `UPDATE deck SET decklist_hash = %s WHERE id = %s` with `['de703767d92f7fe8b707d080edd8f205293d9d3b', 63747]` because of `(1213, 'Deadlock found when trying to get lock; try restarting transaction')` Stack Trace:
  File "run.py", line 126, in <module>
    run()
  File "run.py", line 70, in task
    run_all_tasks(module)
  File "run.py", line 113, in run_all_tasks
    s.scrape() # type: ignore
  File "/home/discord/decksite/decksite/scrapers/mtggoldfish.py", line 43, in scrape
    deck.add_deck(d)
  File "/home/discord/decksite/decksite/data/deck.py", line 337, in add_deck
    add_cards(deck_id, params['cards'])
  File "/home/discord/decksite/decksite/data/deck.py", line 416, in add_cards
    db().execute('UPDATE deck SET decklist_hash = %s WHERE id = %s', [deckhash, deck_id])
  File "/home/discord/decksite/shared/database.py", line 45, in execute
    [n, _] = self.execute_anything(sql, args, False)
  File "/home/discord/decksite/shared/database.py", line 60, in execute_anything
    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))
Exception_hash: ee82db8095819114b6b95412d4e2b3b3e860c5ae

I'm not really sure where to go with this. The main issue is cleared up, there's no frequent occurrence of anything. I'm gonna close it and reopen if we get more than a very small number of reoccurrences.


Added conditional open arguments based on the Python version

Purpose
Writing out a Jinja2 template would break when 'wb' is used in Python 3.5.2
Caveats
I assume this has to do with some string changes from Python 2.X to Python 3.x.  I don't have a deep understanding of the issue, but this fixed it for me.
Testing
I've ran this modified new_project.py script with Python 2.7.10 and Python 3.5.2 and it generates the projects in both cases.

@jaredlewis happy upgrading :)


fix data fetch

{
  "success": false,
  "status_code": 6,
  "status_message": "Invalid id: The pre-requisite id is invalid or not found."
}

not sure what happened, but changing from v4 to v3 might have fixed it
https://developer.themoviedb.org/


Use Black to make camdkit PEP8-compliant

IDEs like PyCharm that inspect for PEP8 compliance can detect edge cases worth addressing, but the genuinely concerning issues can be buried in copious output if the code is far away from being PEP8-compliant.
Maintaining code for PEP8 compliance is tedious but can be automated. A tool for such automation is Black:
https://github.com/psf/black
For those of you who work in Python, would you be willing to give yourselves over on matters of style to Black?

The codebase is already linted using pylint. What would be the advantage of switching?

None. I had not realized it was already going through pylint. Please close this issue (or if you prefer, tell me to do so).


[Zoomable] Add boolean-parameter to turn off rotation

Hi,
thank you for awesome library! I found nothing else as sophisticated as your Zoomables, great job!
As I am in the process of implementing an image-gallery, I would like to disable content-rotation.
So it would be nice to have a booelan-flag to enable/disable rotation for the Zoomable-composable-function.
The boolean-parameter lockRotationOnZoomPan would then only take effect if rotation is enabled.
Would you be open to implement such a feature or alternatively for a Merge Request for me to add this?

This would be handled by ZoomableState. The current way to do this would be to initialize the State by calling
rememberZoomableState { zoomChange, offsetChange, rotationChange ->
    scale *= zoomChange
    offset += offsetChange
}

I think an overload of rememberTransformableState which takes three boolean Values to disable all three actions would be a good idea.
I might also implement a toggle for the EasyZoomableImage. Would you prefer different toggles for lockRotationZoomPan and general Rotation on/off or an Enum class with OFF, ALWAYS and LOCK_ROTATION_ON_ZOOM_PAN

Thank you for your engagement!
I think an Enum would be more expressive and thus less confusing.
Since I use the GlideImage-composable from the landscapist-lib as content for the Zoomable, I have no opinion about EasyZoomableImage.

This should be possible in v1.1.0 by initializing the ZoomableState with
rememberZoomableState(rotationBehavior = ZoomableState.Rotation.DISABLED)

Thank you for the speedy reaction, I will try it right now and give you feedback.


Allow options for 3070 and 3090

Thank you for providing this service to users.  I would like to use this for the 3090 so I can actually get one to install in my PC and one for a friend.

It uses SKU numbers so it will be usable for both the 3090 and 3070 once the SKU numbers are released on digitalriver. Which will not be available until shortly before release.

How do we set the new sku numbers? Was set sku number depricated?

SKU number flag was deprecated, there will be a new parameter added for 3070's and 3090's as the SKUs become available.

There's a pr waiting to fix this I believe

There's a pr waiting to fix this I believe

That's only part of it we still need Nvidia api skus for all regions

Any chance this gets implemented?

no because nvidia has not added 3070 skus to their api yet


Request: allow multiple Langchain prompt template keys

As I understand it, Langchain supports multiple prompt template keys.

When GPT-Index is used for memory, this is reduced to one:
https://github.com/jerryjliu/gpt_index/blob/f6a985241f388a9b7513ef5405025e6e2324e01e/gpt_index/langchain_helpers/memory_wrapper.py#L22
It would be useful if multiple prompt template keys and GPT-Index could be used together.

Is this issue resolved ? If not is it possible for me to take this up. Let me know the status of the issue and I can take a look at it :)

@nerdai Wondering about the status for this issue. If it is not fixed yet. I am happy to take a look and contribute a fix.

spoke with the team @Vydruth, and we don't believe its fixed yet. If you like to take this on please just mark it as "In Progress" and submit the PR whenever you're ready -- much thanks!

Thanks for checking @nerdai, understood. I am looking into this now. However, looks like I don't have the permissions to assign the issue to myself. Could you assign it to me please?
Also, could anyone help me with some background:

How to reproduce this issue running llama_index locally? (I've checkout the code and reviewed the  contributing.md file I am able to successfully run the poetry install --with dev,docs and make test locally)

Also, could you provide some context on the why the original code was copied from langchain directly  and what is the expected behaviour of the code once the change is made

Thanks in advance, excited to get start here.

Hey @Vydruth  thanks for offering to help! I just assigned the ticket to you!

@nerdai and @Disiok: Could one of you help me with how to reproduce the issue and test this change locally? I've made some changes based on the description provided and my understanding of the existing code.
I placed the PR in Draft for now until I am able to reproduce and test my code thoroughly. Moreover the file llama_index/langchain_helpers/memory_wrapper.py does not have any unit tests to begin with. So running make test does not help. I can try to add unit tests for this file but that does not help with testing the correctness of the code. Want to make sure I test it correctly before publishing any changes.

@nerdai and @Disiok: Could one of you help me with how to reproduce the issue and test this change locally? I've made some changes based on the description provided and my understanding of the existing code.
I placed the PR in Draft for now until I am able to reproduce and test my code thoroughly. Moreover the file llama_index/langchain_helpers/memory_wrapper.py does not have any unit tests to begin with. So running make test does not help. I can try to add unit tests for this file but that does not help with testing the correctness of my code. Want to make sure I test it correctly before publishing any changes.

Hey @Vydruth, please do add unit relevant tests to our test suite for this if you can think of any. In terms of reproducing this issue, one way you can do this locally is to spin up a jupyter notebook running your current llama-index virtualenv (see here for how you can use a venv in a jupyter notebook). Another option is to write a script and just execute it in your command line terminal. Does this help?

Thanks @nerdai, I am adding unit tests  to the memory_wrapper.py file. Will get back if I have any other questions or concerns. Found a few other changes to make in the process. I will update code accordingly.
Thank you for the link to setup llama-index locally on virtualenv. I was able to set it up will test it out.


feat: Provide optional formatting of data values displayed with lookup and read

This PR continues the discussion from the google-cloud-go repo.

I believe that I've addressed all of the actionable feedback from the original PR. PTAL at your earliest convenience!


Allow the implicit time field to be renamed

Fixes #6296.

@benbjohnson

@jsternberg Can you set TimeFieldName to "time" instead of "" if it's not aliases. Then we won't have to worry about checking default values during processing.

The reason why I didn't do that is so there was less code to change and so I didn't have to add that logic to the parser. The diff would be a lot larger if that field is set to "time" by default.
I think I'm going to rename TimeFieldName to TimeAlias so that it's more consistent with the Alias attribute in Field. This might also make it more clear that the alias may be empty.

Can you give some examples of what needs to change? It seems like adding time alias checking everywhere in the future would be error prone.

It depends on where we set the TimeAlias. If we set it as part of parseSelectStatement, then I have to modify all of the select statement tests inside of parser_test.go. If we set it in RewriteTimeFields, then I don't have to change it anywhere since that's not really used during tests, but I also don't think it's the appropriate place to put it.
I also think that checking for the empty string in one place isn't too hard and it only has to be done in one place.

If it's just test code that's not that bad. We may only have one place to do the if statement right now but queries are going to get more complicated as we deal with referencing times in subqueries and that's just going to grow.

I don't think that really applies for this. This code does not rename the time field. It is merely a placeholder to hold onto the alias if there is a time present in the query when the query is rewritten. Another location that has to be changed is the code that sets this to begin with. Currently it's just this:
func (s *SelectStatement) RewriteTimeFields() {
    for i := 0; i < len(s.Fields); i++ {
        switch expr := s.Fields[i].Expr.(type) {
        case *VarRef:
            if expr.Val == "time" {
                s.TimeAlias = s.Fields[i].Alias
                s.Fields = append(s.Fields[:i], s.Fields[i+1:]...)
            }
        }
    }
}

This has to be changed to:
func (s *SelectStatement) RewriteTimeFields() {
    for i := 0; i < len(s.Fields); i++ {
        switch expr := s.Fields[i].Expr.(type) {
        case *VarRef:
            if expr.Val == "time" {
                if alias := s.Fields[i].Alias; alias != "" {
                    s.TimeAlias = alias
                }
                s.Fields = append(s.Fields[:i], s.Fields[i+1:]...)
            }
        }
    }
}

We don't allow aliases to be used in conditions at the moment. Is that something we're supposed to be doing? I don't really see this as affecting subqueries because these values are only used for setting the column names.
> select * from cpu
name: cpu
---------
time                    value
1460579388339842107     2
1460597252611368284     5

> select value as v from cpu where v > 2
>

If it makes it better, I can add a function to the SelectStatement that does the if statement. That might be a better solution as then it matches the same code we use for other fields. Something like:
func (s *SelectStatement) TimeFieldName() string {
    if s.TimeAlias != "" {
        return s.TimeAlias
    }
    return "time"
}

OK, leave off the "time" for now. We can revisit if it becomes an issue.

Otherwise lgtm

LGTM 👍


Bug in IncomingRequestAddressStrategy

We have a hapi jpa server running 4.2 which is deployed on tomcat with a webapp name of fhir-server.
The fhir endpoint is set to /fhir
The paging mechanism returned links that look like:
https://hostname/fhir-server/fhir?_getpages=423358e7-0bdc-49c7-8c79-4a69e618d404&_getpagesoffset=40&_count=20&_pretty=true&_bundletype=searchset
But when you followed these links all subsequent links changed there root to https://hostname/fhir
Looking at the code for IncomingRequestAddressStrategy, there is an edge case which is causing the issue.
In our case its around this code:
                       contextIndex = requestUrl.indexOf(servletPath + "/", startOfPath);
			if (contextIndex == -1) {
				contextIndex = requestUrl.indexOf(servletPath, startOfPath);
			}

In this case our requestUrl is 'https://hostname/fhir-server/fhir' and the servlet path is '/fhir'
The first search returns -1 as there is no '/fhir/' in the requestURL and in the second (searching for '/fhir'), we are matching the start of the webapp name instead of the servlet name.
One possible solution would be to use lastIndexOf instead of indexOf (without the startindex), but its possible this would cause issues in other cases.
Inspecting the code, its feasible a similar issue would exist if the webapp name includes the requestPath, if the servletPath is empty or '/'

We have encountered the same problem in 5.2.
As a workaround, we had to set hapi.fhir.server_address in the configuration.
Another way to fix the problem would be to generate paging links with a trailing '/' in RestfulServerUtils.createPagingLink().

Has the same issue


Set up GitHub Pages

Your documentation website is ready, all you need to do is activate GitHub Pages and select the branch gh-pages as a source
https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-from-a-branch

Nevermind, @lucpaoli showed me to how access the documentation website.
Closing this issue as it seems to be working.


Remove deprecated Runtimes and add new ones

Removed as not offered/deprecated

nodejs:6
swift:5.1
dotnet:3.1
ballerina:0.990
rust:1.34

Add new runtimes:

nodejs:16
ruby:2.6
go:1.15
go:1.17

Fix failing testcases for sagger Api doc

Description

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[ ] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[ ] I signed an Apache CLA.
[ ] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

Codecov Report

Merging #118 (ad062f3) into master (87de0a0) will decrease coverage by 7.87%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
- Coverage   77.56%   69.69%   -7.88%
==========================================
  Files         194      194
  Lines        9525     9525
  Branches      584      584
==========================================
- Hits         7388     6638     -750
- Misses       2137     2887     +750

Impacted Files
Coverage Δ

...la/org/apache/openwhisk/http/BasicRasService.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...che/openwhisk/core/invoker/LogStoreCollector.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...a/org/apache/openwhisk/http/BasicHttpService.scala
0.00% <0.00%> (-91.55%)
:arrow_down:

...pache/openwhisk/core/invoker/InvokerReactive.scala
0.71% <0.00%> (-82.74%)
:arrow_down:

.../apache/openwhisk/core/controller/Controller.scala
0.00% <0.00%> (-81.74%)
:arrow_down:

...la/org/apache/openwhisk/core/invoker/Invoker.scala
0.00% <0.00%> (-70.50%)
:arrow_down:

...che/openwhisk/core/loadBalancer/LoadBalancer.scala
16.66% <0.00%> (-66.67%)
:arrow_down:

...whisk/connector/kafka/KafkaConsumerConnector.scala
0.00% <0.00%> (-57.75%)
:arrow_down:

...nwhisk/core/database/RemoteCacheInvalidation.scala
3.29% <0.00%> (-53.85%)
:arrow_down:

...he/openwhisk/core/invoker/MessagingActiveAck.scala
0.00% <0.00%> (-53.85%)
:arrow_down:

... and 46 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 87de0a0...ad062f3. Read the comment docs.

PG#2094


scRNA-seq skeleton for future batch-correction/sub-clustering tutorial plug-ins

This tutorial is a continuation of the Alevin one, and hopefully - all tool upgrade being sorted - will allow for future connections to trajectories in scanpy/batch-correction/sub-clustering etc. But I figured trying to work on 4 at once would be a horrendous idea so one at a time...
Also a couple of edits on the Alevin tutorial

Also Github is lying. Wendi does not want to merge anything yet. Wendi wants to work on this profusely for more days before considering such a thing.

OK. It is ready for other eyes now! @bebatut @hexylena @pinin4fjords

It seems there are some linting comments in topics/transcriptomics/tutorials/scrna-seq-basic-pipeline/tutorial.md (you can check the 'files' tab to see some of them.)

@mtekman @hexylena Thank you guys so much for your edits! Ok, I think it's all sorted now?

there's some error with the frontmatter but i'm not sure what it is. I'll look into it.

Yes good shout! OK sorted on that now

Ohhh @hexylena that datatypes bit is COOL! Thanks so much for your edits! I'll make sure to apply them to the next one in advance!

Thanks so much @nomadscientist for a great tutorial (love how many question boxes are in there) and thanks @mtekman for reviewing it!


Design better API for hooking into loading process

Right now, the BaseEvent model enables implementing two methods which hook into the model loading process. These are used for two purposes currently:

To split an event with multiple locations into multiple rows on AirTable.
To load the RSVPs to that split event from a CSV.

These methods don't really "belong" to the model, which is responsible for providing a consistent interface for transforming data between systems. We need to figure out a better way to enable this use case.

Maybe something like this could be useful here? https://blinker.readthedocs.io/en/stable/


YamlCreate.ps1 should prompt for silent switch entry

Description of the new feature/enhancement
When using the YamlCreate.ps1 it should prompt the user to enter silent install switches for them to be passed to the final yaml file.
Proposed technical implementation details (optional)

I've submitted a pull request (#1159) to add this feature


nbdserver tlogStorage : call Flush more often and or faster

related to https://github.com/zero-os/0-Disk/issues/247#issuecomment-306767170
I wonder if the fix for that issue still working for bigger image.
I don't see any call to Flush in tlogStorage code, so the Flush might be called by gonbdserver package.

Yes Flush is called by the gonbdserver package in /gonbdserver/nbd/connection.go#L431-L437 and /gonbdserver/nbd/connection.go#L475-L479.
Not sure what you're planning with this issue. But i don't think calling Flush is the solution.
ForceFlushAtSeq (which is I guess why you are looking at the Flush method) should be meant as a last resort. If that's becomes your go-to method, I think there is something we might have to rethink in the design. As it shouldn't be part of the casual flow.

I added 'and or faster' to the title.

ForceFlushAtSeq (which is I guess why you are looking at the Flush method) should be meant as a last resort.

No, ForceFlushAtSeq only needed when we wait for tlog's flush.
In this issue, tlog's flush is faster than nbdserver's.
What i'm looking at the Flush is this line err = tls.storage.Flush() .
Why don't we do storage.Flush after each tlog's flush?

Not sure what you're planning with this issue. But i don't think calling Flush is the solution.

After reading the gonbdserver you pointed at, i think you're right.
How about make it faster? (still no idea thought)

What i'm looking at the Flush is this line err = tls.storage.Flush(). Why don't we do storage.Flush after each tlog's flush?

Because that's not what you think it is. Also it would deviate from non-tlog vdisks, as flush is only called by the user.
For nondeduped storage, that flush function does nothing. And For deduped storage that flush function only flushes what is left in the LBA cache, which is only the last 128 shards. Which for a big image as you are converting, is probably only the last tiny portion of it.
The more important thing is writing to the storage (Set/Delete), and that does happen in each tlog's flush.

How about make it faster? (still no idea thought)

Fairly sure that storage.Flush is honestly not the issue here. If it were, we would have seen that popping up before, as we have converted big images such as Windows 10 already using the dedupedStorage code.
Like I said, that storage.Flush function really does almost nothing.

Oh, i meant make the flushCachedContent (or other things that relate to it) faster.
We already have one issue for it at #251

I think the solution might be at #250, moved that issue to current milestone


[CompactIndex] Handle yanked versions

@indirect @fotanus look good?

This moves concat inside the loop, increasing calls from 1 to N... since N is huge, maybe this is a significant performance difference? But I haven't benchmarked yet.

Ah it's also wrong... Needs to be append instead of concat

Fixed

@fotanus please review?

puuuuuurfect :smile_cat:

:shipit:


Adding documentation builds

Change Summary
Overview
This adds sphinx documentation that can be built for easier exploration of API functionality. Based off of the workflow for this project, with an example of what this will look like when deployed: https://swxtrec.github.io/pymsis/
Future work:

Add a GitHub deploy token so our release mechanism via GitHub Pages can work
Set up GitHub pages branch as an orphan that we can deploy this into

New Dependencies
sphinx, pydata-sphinx-theme
New Files
Many under the docs/ folder to start the basic structure
Updated Files

init.py

Added a version number, we should edit this later to be automatically done, but at least put something in for now

pyproject.toml

Added a few new dependencies and a [doc] group.

Testing
Current testing is done by just building the docs on PR and uploading the artifact that can be downloaded and inspected. It would be good to post the deployed artifact somewhere for easier viewing, which we can automate via CircleCI. But that can come in follow-up PRs if people want.

Nice! I really like the automated documentation approach. A few things:
I think we agreed PRs should be created to merge to dev branch
We might start making .md files in the docs directory to provide folks info on how to use the repo. For example add this to describe the build process for sphinx:

poetry install --extras "doc"
cd docs/source
poetry run sphinx-build . _build
open _build/index.html

Do we want to create documentation on Github Pages and/or Confluence? Also, Matt Watwood has done this for Libera in Confluence so before we reinvent the wheel we might take a look at what was done.

Here's an example of the markdown file for Libera, which is probably far more than we need, but may be a helpful template.
documentation-sphinx.md

Is this for external documentation? or internal? So, is this intended to replace confluence or the github wiki, or does it operate as more of a readthedocs type thing?

Is this for external documentation? or internal? So, is this intended to replace confluence or the github wiki, or does it operate as more of a readthedocs type thing?

I view this as documenting the code and a little less focused on all of the confluence stuff. I think since this is a public repo, the docs should be public as well. We can certainly push to readthedocs as well if we'd prefer that route instead of GitHub Pages, I'm indifferent.

I think we agreed PRs should be created to merge to dev branch

Good catch! dev is unfortunately behind right now, but I can rebase and point to that once the merge-back PR is in.

I view this as documenting the code and a little less focused on all of the confluence stuff. I think since this is a public repo, the docs should be public as well.

Sounds good to me! I'd like if we could define what kind of documentation we'd like to see (more templates, anyone?) but I think this looks good! Maybe we can require documentation as part of a PR, same as tests?


Home page notification to pin the site to their browser home

When the user visits localhost:14400 and until they dismiss it or have pinned the site to their browser home, present a banner along the top to have the user to add the site to their home page with a button that does it for them in the browser they are viewing the app in.

@rphovley Are you thinking like a PWA or a bookmark in the browser?

@Tanner-Scadden, sorry, I didn't look into this enough. I wanted to emulate the behavior of something like daily.dev when you visit their marketing site. Didn't realize that it was a chrome extension. We are going to make a chrome extension, or rather fork the wakatime one and give it a facelift for our stuff. I'd imagine this ticket would be added to the browser extensions we are making

@rphovley Np! Got to learn some stuff when I played with this for an hour or so :)
Are you thinking something like this?

Yeah! Let's try that to start. If it's too much for people to do a modal, we can do a banner online with the other content instead


pyload-ng: drop js2py due to CVE-2024-28397

pyload therefore now requires python3.12+ where js2py was replaced with dukpy
https://github.com/pyload/pyload/security/advisories/GHSA-r9pp-r4xf-597r

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[x] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Needs nixfmt and broken = pythonOlder "3.12"; and could perhaps use a backport to 24.05 (though that will break the package in the default package set there). Alternatively, we should probably just upgrade js2pyto a non‐vulnerable version instead.

Yeah I guess just patching js2py makes more sense, apparently this is all you need: https://github.com/Marven11/CVE-2024-28397-js2py-Sandbox-Escape/blob/main/patch.txt
Kinda unfortunate that js2py is basically abandonware...

Oh, I misread the advisory as suggesting there was a patched version of js2py. Perhaps we should instead just mark js2py with knownVulnerabilities on both unstable and 24.05.

#348943


Replace MS telemetry endpoints

For

Fetching updates
Crash Reporter
Telemetry
Workbench Experiments

See also: https://github.com/VSCodium/vscodium

@jtagcat that's exactly the plan at the moment, it's on the cr-build branch and ideally I'd take the vscodium patchets and apply them directly, then still use their build tooling to push automatic version builds by replacing Microsoft's git URLs with this repo's.
I currently have no idea on what the API specs are for any of the endpoints though, but since I am planning on an opt-in telemetry for research I think it would be worthwhile to explore what data is actually sent to those endpoints.

If you don't mind, I'd be interested in (a) blog post(s) or documentation / specification.
Probably good HN material as well for those internet points :^)


add running js tests, currently all pass

Adds the current JS tests to CI

@HammadB there was a small discussion here, #292 (comment), about that. The downside is that it adds a lot of time to the tests.

Ah got it. Yeah that makes sense.


[FLINK-28133][runtime] Rework DefaultScheduler to directly deploy executions

What is the purpose of the change
Currently, the DefaultScheduler(base of AdaptiveBatchScheduler) can only perform ExecutionVertex level deployment. However, in this case, the scheduler is actually deploying the current execution attempt of the ExecutionVertex.
Therefore, we need to rework the DefaultScheduler to directly deploy executions.
Brief change log

Introduced ExecutionDeployer which is responsible for deploying executions
Implemented DefaultExecutionDeployer
Change DefaultScheduler to use ExecutionDeployer to deploy tasks

Verifying this change

Added unit tests DefaultExecutionDeployerTest
The existing DefaultSchedulerTest and all other IT cases can help to verify the changes

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Thanks for the reviewing! @reswqa @zhoulii @wanglijie95
Merging.


ArrowsTintColor, ArrowsTransparency & ArrowsBackgroundColor properties not handled for UWP

ArrowsTintColor, ArrowsTransparency & ArrowsBackgroundColor properties not handled for UWP app. Even when we set values, there is no change in the UI. Refer the attached image

Implemented in next version.


Draft registrations should be in reverse chronological order [#OSF-6243]

Purpose
Sorted draft registrations in reverse chronological order by last updated date.

Changes
Added code to sort draft registrations by last updated date in API and removed code that was sorting draft registrations by created date on frontend

Side effects
None

Ticket

https://openscience.atlassian.net/browse/OSF-6243

Ah, okay, this is an api/v1 view. Yes, this method should be fine for v1. 🎉 🐧 🎉


Unable to install Nokogiri on Mac OS 10.13 with lzma from homebrew

Have you tried following [the installation tutorial][tutorial]?
Yes
What is the output of gem install?
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /Library/Ruby/Gems/2.3.0/gems in PATH, mode 040777
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
	ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1/ext/nokogiri
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20171120-34111-18b20qt.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
Using mini_portile version 2.3.0
checking for iconv.h... yes
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.5.

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.5.tar.gz into tmp/x86_64-apple-darwin17/ports/libxml2/2.9.5... OK
Running 'configure' for libxml2 2.9.5... OK
Running 'compile' for libxml2 2.9.5... ERROR, review '/Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1/ext/nokogiri/tmp/x86_64-apple-darwin17/ports/libxml2/2.9.5/compile.log' to see what happened. Last lines are:
========================================================================
  CCLD     libxml2.la
  CC       testdso.lo
  CCLD     testdso.la
  CC       xmllint.o
  CCLD     xmllint
ld: warning: ignoring file /usr/local/Cellar/xz/5.2.3/lib/liblzma.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/xz/5.2.3/lib/liblzma.dylib
Undefined symbols for architecture i386:
  "_lzma_auto_decoder", referenced from:
      _xz_head in libxml2.a(xzlib.o)
  "_lzma_code", referenced from:
      _xz_decomp in libxml2.a(xzlib.o)
  "_lzma_end", referenced from:
      ___libxml2_xzclose in libxml2.a(xzlib.o)
  "_lzma_properties_decode", referenced from:
      _is_format_lzma in libxml2.a(xzlib.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [xmllint] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
========================================================================
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/$(RUBY_BASE_NAME)
	--help
	--clean
	--use-system-libraries
	--enable-static
	--disable-static
	--with-zlib-dir
	--without-zlib-dir
	--with-zlib-include
	--without-zlib-include=${zlib-dir}/include
	--with-zlib-lib
	--without-zlib-lib=${zlib-dir}/lib
	--enable-cross-build
	--disable-cross-build
/Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:402:in `block in execute': Failed to complete compile task (RuntimeError)
	from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in `chdir'
	from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:373:in `execute'
	from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:115:in `compile'
	from /Library/Ruby/Gems/2.3.0/gems/mini_portile2-2.3.0/lib/mini_portile2/mini_portile.rb:154:in `cook'
	from extconf.rb:365:in `block (2 levels) in process_recipe'
	from extconf.rb:257:in `block in chdir_for_build'
	from extconf.rb:256:in `chdir'
	from extconf.rb:256:in `chdir_for_build'
	from extconf.rb:364:in `block in process_recipe'
	from extconf.rb:262:in `tap'
	from extconf.rb:262:in `process_recipe'
	from extconf.rb:548:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/nokogiri-1.8.1 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/nokogiri-1.8.1/gem_make.out

What are the contents of the mkmf.log file?
"xcrun clang -o conftest -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17 -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include  conftest.c  -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L.             -L /BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib -L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib   -arch x86_64 -arch i386   -lruby.2.3.0  -lpthread -ldl -lobjc  "
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/mkmf.rb:395: warning: Insecure world writable dir /Library/Ruby/Gems/2.3.0/gems in PATH, mode 040777
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib'
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"xcrun clang -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17 -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include   -arch x86_64 -arch i386  -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */

"xcrun clang -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17 -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include  -Wno-error=unused-command-line-argument-hard-error-in-future  -arch x86_64 -arch i386  -c conftest.c"
warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
1 warning generated.
warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */

have_header: checking for iconv.h... -------------------- yes

"xcrun clang -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17 -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include   -arch x86_64 -arch i386  -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <iconv.h>
/* end */

--------------------

have_library: checking for gzdopen() in -lz... -------------------- yes

"xcrun clang -o conftest -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17 -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include  conftest.c  -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L.             -L /BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib -L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib   -arch x86_64 -arch i386   -lruby.2.3.0 -lz  -lpthread -ldl -lobjc  "
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib'
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <zlib.h>
 4:
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12:
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))gzdopen; return !p; }
/* end */

--------------------

have_iconv?: checking for iconv... -------------------- yes

"xcrun clang -o conftest -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17 -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include  conftest.c  -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L.             -L /BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib -L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib   -arch x86_64 -arch i386   -lruby.2.3.0  -lpthread -ldl -lobjc  "
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib'
Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
      _main in conftest-41807e.o
  "_iconv_open", referenced from:
      _main in conftest-41807e.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <stdlib.h>
 4: #include <iconv.h>
 5:
 6: int main(void)
 7: {
 8:     iconv_t cd = iconv_open("", "");
 9:     iconv(cd, NULL, NULL, NULL, NULL);
10:     return EXIT_SUCCESS;
11: }
/* end */

"xcrun clang -o conftest -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17 -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS -iwithsysroot /usr/local/libressl/include  conftest.c  -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L.             -L /BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib -L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib   -arch x86_64 -arch i386   -lruby.2.3.0 -liconv -lpthread -ldl -lobjc  "
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/libressl/lib'
ld: warning: directory not found for option '-L/BuildRoot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.Internal.sdk/usr/local/lib'
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <stdlib.h>
 4: #include <iconv.h>
 5:
 6: int main(void)
 7: {
 8:     iconv_t cd = iconv_open("", "");
 9:     iconv(cd, NULL, NULL, NULL, NULL);
10:     return EXIT_SUCCESS;
11: }
/* end */

--------------------

What operating system are you using?
ruby = /Users/mark/.rbenv/shims/ruby
ruby version = ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
os = Mac OS, 10.13.1 (17B48)
This appears to be an issue with the xz formula. I'll try removing it but wanted to make sure this was documented here first in case others have a similar issue. If it works I'll submit a PR to the installation guide.

It ended up with me having to remove imagemagick since it depends on xz.
After brew uninstall imagemagick and brew uninstall xz, I was able to gem install without a problem. I'll submit a PR for the guide.

Instead of deinstalling you can do
brew unlink xz

and then
brew link xz


Add published Storybook link to top of PR

The link to view the deployed Storybook for viewing is hard to find on a new PR, so let's create a link at the top to make it easier for people to find/view it.

@fbwoolf see this issue https://github.com/chromaui/chromatic-cli/issues/699
We might need to merge the build-extension.yml and chromatic.yml jobs so we can set the header once with all info.


Add issue templates for easier issue reporting

These templates should ensure people provide the required information when reporting issues.

Thanks a lot Hugo. This is exactly the kind of (much needed) things I can procrastinate forever. ;)


update readme

Codecov Report

Merging #8 (29dfee1) into main (3ce03fc) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main        #8   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines           17        17
=========================================
  Hits            17        17

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ce03fc...29dfee1. Read the comment docs.


Is there an alternative?

Does anyone know alternative to this project?
It stopped working with Gradle 7 and after some searching, I cannot find anything. All libraries I found appear to be years old.

See #230 - we've made the project dormant. There is a possible working fork mentioned.


Upgrade haproxy from v2.1 to v2.4

Rancher be kind and make please make an official release of this fix.


[DOCS] Contact us section

Description
Alignment of contact us section in benefit page
Screenshots

Is this project still active @geetanjaliverma

assign me pls i can do it

hey! , I would be happy to help.
Please assign me this issue under hacktoberfest.

@SauravMukherjee44 assign me

is anyone working on this ?

Hey @SauravMukherjee44 can you please assign this issue to me?

Hi! The contact section alignment + color combinations could be made more better. I would like to work upon this and make it better. Can you please assign this issue to me ?

I can help you in this please assign this issue to me.

Please Assign me this.

Bug
"Contact Us " needs to be properly aligned.
Source of Bug
The CSS file probably has the bug.
Additional Details
I would be happy to help. Please assign this issue to me.

sir please assign me this issue under hacktoberfest


Can'e include theme in posts

I create a post using rake post title="test",  this is my test code:
`---
layout: page
title: "test"
description: "this is description"
category: prml
tags: [book, prml]
{% include JB/setup %}
test one
test two
test three
$$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$
`
This file is in _posts/, but when I open it in browser, it doesn't have theme as other webpages in root directory, it only has text. then I try to create a new post and copy the content of my ./about.md to it . However, the about.md in my root directory has theme, but that in _posts/ doesn't.
How to make all my posts have same theme as webpage in my root directory.

:+1:

I was having the same problems and after reading this, I managed to resolve it.
Basically _includes/JB/setup, replace line 20 with {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ layout.theme.name }}{% endcapture %} (so just change page.theme.name to layout.theme.name)

Yes, I meet that problem too!But it finally works after correcting the codes Q-Mart mentioned!


Login Button's state is unexpectedly inconsistent

Login button is disabled when view is loaded. When user enters either invalid email or password, login button should get disabled since either two of the textfields is reset. But the login button is able to receive event and respond.

Solution: https://github.com/yoha/wlkthru/commit/3706b65ee667466603e5c0af8a50efb934d7b522

The register button anomaly is forgotten to fix in this issue but was fixed in https://github.com/yoha/wlkthru/commit/af6887c1f463f63a4e1244d6ada67ab3410bca2c


Update feature/respect-additional-files to latest master

I've decided to upgrade the feature/respect-additional-files branch to the latest master as per this comment in the hope of driving development on this feature!
Related to #1592

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: tobias-tengler sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

welp, I was literally just going to do this myself today :) thank you


Update notebooks and pretrained models for the new voices and languages.

This is no longer WIP and ready to merge.


Multiline copy and repeated pasting

I'd like to be able to replicate what you can do in Sublime Text 4 with multiline copying and pasting.
When copying multiple lines and trying to paste them on exactly a multiple of lines (eg: copy 4 to 8 lines) I'd like the copied lines to be pasted repeatedly on all destination lines.
EG:
Copy these 4 lines
1
2
3
4

Paste them aside these 8 lines:
a
b
c
d
e
f
g
h

Obtain the following:
a1
b2
c3
d4
e1
f2
g3
h4

Unfortunately, VSCode does this:
a1
2
3
4
b1
2
3
4
c1
2
3
4
d1
2
3
4
e1
2
3
4
f1
2
3
4
g1
2
3
4
h1
2
3
4

Hi can you please explain how exactly you are doing the copying and pasting and if you are using multi-cursors. A screen recording with screen-cast mode enabled would be helpful so I can understand what you are doing.

I'm copying a single selection of multiple lines, not multi-cursor.
Anyway it was not Sublime Text but a 3rd party extension.
It would be nice anyway if VSCode could do some smart pasting when you select multiple lines with multi-cursor and you have a multi-line code in the clipboard (whether it was copied in a single selection or with multi-cursor).
I'll try to record the sccreen and find the extension name.
Than kyou


Discipline: Clear x throws error

Related to https://somerville.studentinsights.org/schools/shs/discipline.
Clicking on the "x" on the select box throws an error:

cc @edavidsonsawyer I spotted this locally but forgot about it earlier.

Fixed in https://github.com/studentinsights/studentinsights/pull/1707.


Use AddUserSecrets to secure development environments

Use User Secrets to store apikey in the unit test project for better security dev environment setup.
Reference: Safe storage of app secrets in development in ASP.NET Core

@doggy8088 Thanks for the PR.
What GUID / uniqueidentifier did you check in with the code? Is that a personal reference to your user secrets?

It's just a random generated user secret id. Not my preference.

The value of the UserSecretId is really don't matter. Anyone could change it if they don't like it. I think there is no security issue for this.

Dear @doggy8088
This PR / commit has also been marked by the GitHub checks of confidential information. The use of AddUserSecrets() would be part of the application / builder host and any resulting values would be accessible by the Configuration dictionary, or?
I'm going to have another look regarding UserSecrets although I'm leaning towards client constraint and not an issue of this library / package.

Hello @doggy8088
User Secrets are mainly for Development environment, as described here: https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-8.0 - same reference you gave.
I'm going to decline your PR because of the fixed Guid you used. However, I added a generic call into the test project and default constructor of the fixture. See here for the reasoning: https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-8.0&tabs=linux#user-secrets-in-non-web-applications
The Guid of the user secrets used will be added by the command dotnet user-secrets init and the method AddUserSecrets<> takes it from the .csproj file.
Hope this helps.
Thanks for the improvement!

Same changes have been applied to the test project Mscc.GenerativeAI.

Thanks @jochenkirstaetter
Your implementation works perfectly on my machine. 👍

Awesome!


how to build policy for agoric-sdk?

@kumavis , I'm trying to build a lavamoat policy in agoric-sdk to track our use of imported powerful globals ( https://github.com/Agoric/agoric-sdk/issues/2160#issuecomment-850827897 )
Surely with all the packages used by ag-solo, this little policy file isn't right? Details on how I built it are below.
{
  "resources": {
    "esm": {
      "builtin": {
        "fs.readFileSync": true,
        "module": true,
        "path.sep": true,
        "vm.Script": true
      },
      "globals": {
        "__dirname": true,
        "process.type": true,
        "process.versions": true
      }
    },
    "node-gyp-build": {
      "builtin": {
        "fs.existsSync": true,
        "fs.readdirSync": true,
        "os.arch": true,
        "os.platform": true,
        "path.dirname": true,
        "path.join": true,
        "path.resolve": true
      },
      "globals": {
        "__non_webpack_require__": true,
        "__webpack_require__": true,
        "process": true
      }
    },
    "node-lmdb": {
      "globals": {
        "__dirname": true
      },
      "native": true,
      "packages": {
        "node-gyp-build": true
      }
    }
  }
}

How I built it (cleaned up a bit; original post was not quite right):
danbook:projects $ node --version
v14.17.0
danbook:projects$ git clone https://github.com/Agoric/agoric-sdk ag-lava # rev 7a3935b5e90d
danbook:projects$ cd ag-lava
danbook:ag-lava $ yarn add -W --dev lavamoat
...
info All dependencies
├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>✨  Done in 5.87s.

danbook:ag-lava$ cd packages/solo
danbook:solo$ yarn lavamoat src/entrypoint.cjs --autopolicy
yarn run v1.22.5
$ /Users/connolly/projects/ag-lava/node_modules/.bin/lavamoat src/entrypoint.cjs --autopolicy
LavaMoat generating policy from entry "/Users/connolly/projects/ag-lava/packages/solo/src/entrypoint.cjs"...
lavamoat - unable to resolve "internal/bootstrap/loaders" from "/Users/connolly/projects/ag-lava/node_modules/esm/esm.js"
LavaMoat wrote policy to "/Users/connolly/projects/ag-lava/packages/solo/lavamoat/node/policy.json"
✨  Done in 0.64s.

cc @kriskowal @erights @michaelfig @warner

There might be complications since LavaMoat is built for CommonJS and ESM
is TODO last I heard.
On Sat, May 29, 2021 at 6:50 AM Dan Connolly @.***>
wrote:

@kumavis https://github.com/kumavis , I'm trying to build a lavamoat
policy in agoric-sdk to track our use of imported powerful globals ( Agoric/agoric-sdk#2160
(comment)
https://github.com/Agoric/agoric-sdk/issues/2160#issuecomment-850827897
)
Surely with all the packages used by ag-solo, this little policy file
isn't right? Details on how I built it are below.
{
"resources": {
"esm": {

  "builtin": {

    "fs.readFileSync": true,

    "module": true,

    "path.sep": true,

    "vm.Script": true

  },

  "globals": {

    "__dirname": true,

    "process.type": true,

    "process.versions": true

  }

},

"node-gyp-build": {

  "builtin": {

    "fs.existsSync": true,

    "fs.readdirSync": true,

    "os.arch": true,

    "os.platform": true,

    "path.dirname": true,

    "path.join": true,

    "path.resolve": true

  },

  "globals": {

    "__non_webpack_require__": true,

    "__webpack_require__": true,

    "process": true

  }

},

"node-lmdb": {

  "globals": {

    "__dirname": true

  },

  "native": true,

  "packages": {

    "node-gyp-build": true

  }

}

}
}
How I built it:
danbook:projects $ node --version
v14.17.0
danbook:projects$ git clone https://github.com/Agoric/agoric-sdk. # rev 7a3935b5e90d
danbook:projects$ cd agoric-sdk
danbook:projects$ cd packages/solo
danbook:solo $ yarn add --dev lavamoat
...
info All dependencies
├─ @@.***
├─ @@.***
└─ @.***
✨  Done in 5.87s.
danbook:solo$ yarn lavamoat src/entrypoint.cjs --autopolicy
yarn run v1.22.5
$ /Users/connolly/projects/ag-lava/node_modules/.bin/lavamoat src/entrypoint.cjs --autopolicy
LavaMoat generating policy from entry "/Users/connolly/projects/ag-lava/packages/solo/src/entrypoint.cjs"...
lavamoat - unable to resolve "internal/bootstrap/loaders" from "/Users/connolly/projects/ag-lava/node_modules/esm/esm.js"
LavaMoat wrote policy to "/Users/connolly/projects/ag-lava/packages/solo/lavamoat/node/policy.json"
✨  Done in 0.64s.
cc @kriskowal https://github.com/kriskowal @erights
https://github.com/erights @michaelfig https://github.com/michaelfig
@warner https://github.com/warner
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/LavaMoat/LavaMoat/issues/228, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAOXBQSG4CNF5P4KOWVWLLTQDWLHANCNFSM45YKCPLQ
.

given recent progress on CommonJS in endo, is this more feasible?
cc @naugtur @kumavis