fix android back on root tabs

[x] turn off back behavior on tabs
[x] remove existing back behavior checks
[x] stash last route so foregrounding android after backgrounding goes back to the original tab
[x] don't initialize react again, which crashes out otherwise

it feels a little bad that the app gets completely killed when going back on a root tab (it's not in the multitasking menu anymore). most of the other apps i tried this on still kept the app in the multitasking view

Try // MainActivity.java
@Override
public void invokeDefaultOnBackPressed() {
moveTaskToBack(true);
}

@hyperobject try now

@chrisnojima yeah that works much better


ERROR  Error: URLSearchParams.set is not implemented

this error not resolve this why

Hi @Riaz101325, Could you please provide some more information on the issue you are seeing?

import React, {useRef, useEffect, useState} from 'react'
import {View, StyleSheet, Platform, PermissionsAndroid, Alert} from 'react-native'
import {heightPercentageToDP as hp, widthPercentageToDP as wp} from 'react-native-responsive-screen'
import { WherebyEmbed, type WherebyWebView, WherebyEvent } from<EMAIL_ADDRESS>import {useSelector} from 'react-redux'
import * as Colors from '../../../constants/colors'
import * as Typography from '../../../constants/typography'
const VedioScreen = ({route, navigation}) => {
const {userData} = useSelector((state) => state.user)
const lng = useSelector((state) => state.user.selectedLangauge)
const ROOM_URL = route?.params?.roomUrl ? route?.params?.roomUrl : ''
const [hasPermissionForAndroid, setHasPermissionForAndroid] = useState(false)
const wherebyRoomRef = useRef(null)

const requestAndroidPermissions = async () => {
    if (Platform.OS === 'android') {
        try {
            const granted = await PermissionsAndroid.requestMultiple([PermissionsAndroid.PERMISSIONS.CAMERA, PermissionsAndroid.PERMISSIONS.RECORD_AUDIO])
            const cameraGranted = granted[PermissionsAndroid.PERMISSIONS.CAMERA] === PermissionsAndroid.RESULTS.GRANTED
            const audioGranted = granted[PermissionsAndroid.PERMISSIONS.RECORD_AUDIO] === PermissionsAndroid.RESULTS.GRANTED

            if (!cameraGranted || !audioGranted) {
                Alert.alert('Permissions required', 'Camera and audio permissions are required to join the meeting.')
            } else {
                setHasPermissionForAndroid(true)
            }
        } catch (err) {
            console.warn(err)
        }
    } else {
        setHasPermissionForAndroid(true)
    }
}

useEffect(() => {
    requestAndroidPermissions()
}, [])
if (Platform.OS === 'android' && !hasPermissionForAndroid) {
    return <View />
}

return (
    <View style={{flex: 1}}>

            <View style={styles.container}>
                <WherebyEmbed
                    ref={wherebyRoomRef}
                    room={ROOM_URL}
                    displayName={userData?.full_name} //
                    logo={false}
                    style={{flex: 1}}
                    topToolbar={false}
                    onParticipantJoin={(participant) => console.log('Participant joined', participant)}

                />
            </View>

    </View>
)

}
const styles = StyleSheet.create({
container: {
flex: 1,
height: '100%'
},
webView: {
width: '100%',
height: '100%'
},
topHeaderView: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-around',
width: wp('100%'),
height: hp(5),
paddingHorizontal: wp('10%'),
backgroundColor: '#434343'
},
outerTopHeaderView: {
flexDirection: 'row',
alignItems: 'center',
borderRightWidth: 1,
borderRightColor: Colors.White,
borderLeftWidth: 1,
borderLeftColor: Colors.White
},
textCallRemain: {
color: Colors.White,
fontSize: Typography.FONT_SIZE_13,
fontFamily: Typography.FONT_FAMILY_REGULAR
},
textCallTitle: {
color: Colors.White,
fontSize: Typography.FONT_SIZE_13,
fontFamily: Typography.FONT_FAMILY_REGULAR,
maxWidth: wp(50)
}
})
export default VedioScreen
am use this code but show this error again and again in react native
ERROR Error: URLSearchParams.set is not implemented
how to resolve this issue please send me detail

Hey! Can you try to add this dependency? react-native-url-polyfill https://www.npmjs.com/package/react-native-url-polyfill. It should polyfill any uses of URL's. I will have a look at including this in the library itself, but for now this should fix your issues.

Closing this, as my previous comment should solve the issue, and the issue has been inactive for a while


Nightly links not up to date

https://nightly.link/jpochyla/psst/workflows/build/master does not have the most recent builds/executables as https://github.com/jpochyla/psst/actions/runs/2008968370
The "nightly.link"s are from january and should probably be newer? Not sure how it is plumbed together or supposed to be really but it doesn't seem right currently.

+1

Maybe the build CI is broken?

Oops, thanks for the heads-up!

Actually I think it's working correctly now? Maybe a hiccup on nightly.link's side?


Open-source Clockwork Discord

Hello, there is an issue - open-source Clockwork can be downloaded from
here: https://discord.gg/UfKuHVq
Please fix this.
Thank you.
Best regards, Zonnus Suzoelle (Preacher).

Any help @everyone ?

Please, @everyone

Someone will help when they have the time. Until then, please be patient. Thanks.

Of course. Thank you.


Need task queues for go-fula

Problem
go-fula/mobile is based on a P2P network and targets mobile devices. so we end up with a very unstable network:

users may want to upload and download only on WIFI.
box behind nat does not always connect on the first try. #32
for peer routing, we have to at least connect to 5 to 10 nodes and it takes time. #37
user wants the status of the download and upload progress. #prog
With the above knowledge and test that I have done. the chance of the user calling our API and getting an error is very high.

Solution
Add task queues and task status API to go-fula/mobile

@farhoud thank you for this detailed description of the issue.
Right now every request/response on both of our protocols is happening statelessly. When you talk about task status (something like download/upload progress) aren't you mentioning that the connection between the blox and the client should be stateful? We can create a session on every request from the client and then handle these sessions with a task queue or a session manager. Of course we are able to manage a task queue without creating any session objects, but I think solving the problem using a session can help us with other features as well (e.g. ability to pause and resume downloads)

@mehdibalouchi I think we need both:
Task management will handle:

users may want to upload and download only on WIFI.

box behind nat does not always connect on the first try.

for peer routing, we have to at least connect to 5 to 10 nodes and it takes time. https://github.com/functionland/go-fula/issues/37

and Session needed to handle:

user wants the status of the download and upload progress. #prog

If I'm understating correctly, Task Management happens on the client side, and the Session management is handled by the Blox. If this is the case, then both the client and the blox should be aware of the sessions, therefore it has to be included in the protocol specification.
About Task management, since it is handled on the client side (it is basically a queue ensuring that a certain task will happen when the conditions are met), there is no need for Blox to be aware of it, so it should not be present in the protocol.
@farhoud is there anything about a 'Task' that the blox should know about it? if so, then we should consider adding it to the protocol specification.

@mehdibalouchi
Exactly Task is related to Application <--> API interactions and Blox does not need to know about them.


Write functional tests

We need to make a base set of functional tests for actual calculator interactions. Including:

Normal calculator use
Edge cases

@mattbell is going to write up a doc with some basic testing approaches we want to keep in mind.

https://docs.google.com/document/d/1DCNAHy-4ZpZo1cw1GufhYVdNX1X7VC_hCZPOc4jFFgo/edit

Hey, @mattbell I'm going to re-open this. Functional tests are something I'd love for us to write in the code. So we'd use your list to help us come up with automated tests that run every time we change the code. :)

NP!
On Thu, Oct 22, 2020 at 7:59 PM Jeremy Blanchard<EMAIL_ADDRESS>wrote:

Hey, @mattbell https://github.com/mattbell I'm going to re-open this.
Functional tests are something I'd love for us to write in the code. So
we'd use your list to help us come up with automated tests that run every
time we change the code. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microcovid/microcovid/issues/339#issuecomment-714876837,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADZDFZYZ3RZB7DBOGTY2EDSMDWRJANCNFSM4STYZKSQ
.

I'd vote to close this because it's just too big. Issues for specific tests would be good (like https://github.com/microcovid/microcovid/issues/446). Requiring new components to be tested would also be a good mandate.
However, I'm not sure what the "done" criteria are for this right now.

deal.


Add support to declare the resource type via an Attribute

We have a use case to switch between JSON:API serialization and normal JSON serialization. Because of this, we don't want the "Type" property to show up when serializing our objects with normal JSON. This PR adds the ability to specify the resource type via a class attribute so it will only get serialized with a JSON:API response.

Some nits and naming mostly.
One thing I would also like is to have a test where both the type property and the attribute are used, and which one should take precedence? My thinking is that the attribute should probably win.

Right now it will throw an exception: System.InvalidOperationException : Type contains duplicate property names: Jsonyte.Tests.Models.ModelWithAttributeAndType. I actually kind of like this behavior for our use case in case someone accidentally adds a Type property that they mean to be associated with the actual data without realizing it is part of the JSON:API spec. I defer to you though.

Right now it will throw an exception: System.InvalidOperationException : Type contains duplicate property names: Jsonyte.Tests.Models.ModelWithAttributeAndType. I actually kind of like this behavior for our use case in case someone accidentally adds a Type property that they mean to be associated with the actual data without realizing it is part of the JSON:API spec. I defer to you though.

Ah, yes you're right, this is actually better, since we want to avoid using a 'type' property for anything but JSON:API compliance.
Ok, in that case let's add a test that checks that we get an exception if we have both Type and the attribute used.

👍 thanks for the pr!

Thanks for the quick code review and repo! It's the best JSON:API serializer we've found

Great, glad it's worked well for you!


SSL with self-signed certificates

We have the problem, that we have in our company self-signed certificates for our PlantUML-Server. In this case the plugin doesn't work as expected and doesn't respect the windows truststore from python-certifi-win32 package

Hi. I've never tested with self-signed SSL afaik. I'll see if I can ignore them.

Could you please post the error/exception?

$ python -m mkdocs build
INFO     -  Cleaning site directory
INFO     -  Building documentation to directory: C:\Git\git_software\test\sca3_source\mcu\application\remote_api\documentation\site
ERROR    -  Error reading page 'index.md': HTTPSConnectionPool(host='se-msag-vcs01.msag.ch', port=443): Max retries exceeded with url: /plantuml/png/2qhDpIz9TGpmLD1LY7REJqjBJVLDJCx8p4kDvOfsBYqkoSzrpiyjA2r9BOfLqBDJ28Ahjr8eBKxb0W0= (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))
Traceback (most recent call last):
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\urllib3\connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\urllib3\connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\urllib3\connectionpool.py", line 1040, in _validate_conn
    conn.connect()
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\urllib3\connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Program Files\Python38\lib\ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\Program Files\Python38\lib\ssl.py", line 1040, in _create
    self.do_handshake()
  File "C:\Program Files\Python38\lib\ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\requests\adapters.py", line 440, in send
    resp = conn.urlopen(
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\urllib3\connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\urllib3\util\retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='se-msag-vcs01.msag.ch', port=443): Max retries exceeded with url: /plantuml/png/2qhDpIz9TGpmLD1LY7REJqjBJVLDJCx8p4kDvOfsBYqkoSzrpiyjA2r9BOfLqBDJ28Ahjr8eBKxb0W0= (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\mkdocs\__main__.py", line 221, in <module>
    cli()
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\mkdocs\__main__.py", line 187, in build_command
    build.build(config.load_config(**kwargs), dirty=not clean)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\mkdocs\commands\build.py", line 292, in build
    _populate_page(file.page, config, files, dirty)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\mkdocs\commands\build.py", line 174, in _populate_page
    page.render(config, files)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\mkdocs\structure\pages.py", line 174, in render
    self.content = md.convert(self.markdown)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\markdown\core.py", line 261, in convert
    self.lines = prep.run(self.lines)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\plantuml_markdown.py", line 126, in run
    text1, idx1 = self._replace_block(text[idx:])
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\plantuml_markdown.py", line 184, in _replace_block
    diagram = self._render_diagram(code, requested_format)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\plantuml_markdown.py", line 269, in _render_diagram
    diagram = self._render_remote_uml_image(code, requested_format)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\plantuml_markdown.py", line 320, in _render_remote_uml_image
    with requests.get(image_url) as r:
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\requests\api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\requests\sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\requests\sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\pascal.bernhard\AppData\Roaming\Python\Python38\site-packages\requests\adapters.py", line 517, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='se-msag-vcs01.msag.ch', port=443): Max retries exceeded with url: /plantuml/png/2qhDpIz9TGpmLD1LY7REJqjBJVLDJCx8p4kDvOfsBYqkoSzrpiyjA2r9BOfLqBDJ28Ahjr8eBKxb0W0= (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))

Just uploaded 1.7 with a new parameter disable_ssl_certificate_validation
Could you please try with setting this to True and have a look if this works?

I will close this ticket. Feel free to give some feedback.


Wrong import for "import-in-the-middle" with ESM

What happened?
Steps to Reproduce
Import from "@opentelemetry/instrumentation" and bundle using esbuild with format: 'esm'
Expected Result
The build should proceed without warning and not crash during runtime.
Actual Result
When AWS CDK builds with esbuild, the following warning is emitted:
▲ [WARNING] Constructing "ImportInTheMiddle" will crash at run-time because it's an import namespace object, not a constructor [call-import-namespace]

    node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js:259:30:
      259 │             var esmHook = new ImportInTheMiddle([module_2.name], { internals: false }, hookFn);
          ╵                               ~~~~~~~~~~~~~~~~~

  Consider changing "ImportInTheMiddle" to a default import instead:

    node_modules/@opentelemetry/instrumentation/build/esm/platform/node/instrumentation.js:48:7:
      48 │ import * as ImportInTheMiddle from 'import-in-the-middle';
         │        ~~~~~~~~~~~~~~~~~~~~~~
         ╵        ImportInTheMiddle

1 warning

Runtime, the application crashes with
2024-05-17T10:20:37.898Z	undefined	INFO	[Dynatrace] Failed to import runtime script(Node.js: v20.12.0, Agent: 1.287.2.20240223-044013, Script: /tmp/dtIndex.mjs):
TypeError: ImportInTheMiddle is not a constructor
    at _loop_1 (file:///var/task/index.mjs:x:x)
    at InstrumentationBase4.enable (file:///var/task/index.mjs:x:x)
    at new InstrumentationBase4 (file:///var/task/index.mjs:x:x)
    at new _AwsInstrumentation (file:///var/task/index.mjs:x:x)
    at file:///var/task/index.mjs:xx
    at ModuleJob.run (node:internal/modules/esm/module_job:x:x)
    at async ModuleLoader.import (node:internal/modules/esm/loader:x:x)
    at async _tryAwaitImport (file:///tmp/dtIndex.mjs:x:x)
    at async _tryRequire (file:///tmp/dtIndex.mjs:x:x)
    at async _loadUserApp (file:///tmp/dtIndex.mjs:x:x)

Additional Details
OpenTelemetry Setup Code
No response
package.json
"dependencies": {
    "@aws-sdk/client-lambda": "3.556.0",
    "@aws-sdk/client-s3": "3.556.0",
    "@aws-sdk/client-sqs": "3.556.0",
    "@aws-sdk/client-ssm": "3.556.0",
    "@aws-sdk/rds-signer": "3.556.0",
    "@kesko/k-ruoka-types": "184.8.0",
    "@kesko/log-filter-transport": "1.0.1",
    "@opentelemetry/api": "^1.8.0",
    "@opentelemetry/exporter-metrics-otlp-proto": "^0.51.1",
    "@opentelemetry/exporter-trace-otlp-proto": "^0.51.1",
    "@opentelemetry/instrumentation": "^0.51.1",
    "@opentelemetry/instrumentation-aws-sdk": "^0.40.0",
    "@opentelemetry/instrumentation-pg": "^0.40.0",
    "@opentelemetry/instrumentation-pino": "^0.37.0",
    "@opentelemetry/resources": "^1.23.0",
    "@opentelemetry/sdk-trace-base": "^1.24.1",
    "@opentelemetry/sdk-trace-node": "^1.24.0",
    "@opentelemetry/semantic-conventions": "^1.23.0"
  }

Relevant log output
No response

This issue is similar to issue #3954 but not the same.

Reporting this issue as requested in https://github.com/open-telemetry/opentelemetry-js/issues/4553#issuecomment-2098684556


XSD version is invalid in the templates

Describe the bug
XSD version is invalid in the templates. We have only XSD version 0.5.0.
Expected behavior
Change the XSD version from 0.5.1 to 0.5.0.

Fixed in 0.7.0!

It will be fixed in 0.7.1

Fixed with #84


Make find_in_batches work with rails 3

extract! returns a hash with nil for the values of the extracted keys in rails 3, this does bad things when you try to merge back in the values.

@carlallen Can you please add a test and provide an example of the problem this is solving? Thanks

Closing as there's no response.


SRPM creation failed: link to logs is 404

https://github.com/packit-service/ogr/pull/347
points to
https://prod.packit.dev/srpm-build/395/logs

this works okay on stg now, closing then


[CI.Lint.Black] Use "en_US.UTF-8" for Red Hat 6&7 Compatibility

Lots of company use Red Hat Enterprise Linux servers, for RHEL 6 & 7 there isn't "C.UTF-8" locale, and from the bug tracking https://bugzilla.redhat.com/show_bug.cgi?id=1361965, it seems it's hard to fix this bug in RHEL 6 & 7 soon.

@mehrdadh @tqchen Please help to review, thanks.

@Johnson9009 @tqchen This PR appears to have broken CI
Click discovered that you exported a UTF-8 locale but the locale system could not pick up from it because it does not exist. The exported locale is 'en_US.UTF-8' but it is not supported.

Version Information:

Read returned 0

Files: python/tvm/relay/backend/contrib/ethosu/codegen.py
Running black in checking mode
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.6/dist-packages/black/__main__.py", line 3, in <module>
    patched_main()
  File "/usr/local/lib/python3.6/dist-packages/black/__init__.py", line 6607, in patched_main
    main()
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1043, in main
    _verify_python_env()
  File "/usr/local/lib/python3.6/dist-packages/click/_unicodefun.py", line 100, in _verify_python_env
    raise RuntimeError("\n\n".join(extra))
RuntimeError: Click will abort further execution because Python was configured to use ASCII as encoding for the environment. Consult https://click.palletsprojects.com/unicode-support/ for mitigation steps.

This system supports the C.UTF-8 locale which is recommended. You might be able to resolve your issue by exporting the following environment variables:

    export LC_ALL=C.UTF-8
    export LANG=C.UTF-8

Good catch, this is reverted for now, let us find a better way to set it @Johnson9009 and send another pR


how to get direct message

Description
Describe your issue here.
What type of issue is this? (place an x in one of the [ ])

[ ] bug
[ ] enhancement (feature request)
[x] question
[ ] documentation related
[ ] testing related
[ ] discussion

Requirements

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slack-events version:
node version:
OS version(s):
Steps to reproduce:

Expected result:
What you expected to happen
node-slack-events-api is working for public channel, i can sniff all public channel message but can't sniff direct message
Actual result:
What actually happened
no response coming for direct message in slackEvents.on('message', (event)=> {}
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.

@aakashkag i just wanted you to know that i've seen this and i'll try to reproduce it. thanks for the report!

i got solution,thanks


Document supported ECMAScript version

Article URL
Office Scripts Code Editor environment
Issue
The article listed above mentions that Office Scripts are written in JavaScript/TypeScript, but it doesn't mention which version.
Based on some trial and error I'm fairly confident that (as of Excel version 2310), functions up to ES2023 seem to be supported, but the typings appear to be stuck at ES2018. For example:
promise.finally(...) // ES2018, works
array.flat() // ES2019, works at runtime, but editor shows a type error
array.findLast(...) // ES2023, works at runtime, but editor shows a type error

Syntax features seem to only be supported up to TS 3.7, see #305.
This is a little annoying, but easily """fixed""" with a sinful @ts-nocheck comment at the top or through (less cursed) indexed-access (e.g. array['flat']()).
Either way, I'd love to see some official documentation on this :)

Hi @HoldYourWaffle,
The type definitions are limited by the TypeScript version, which is not as up-to-date as the JavaScript version used by Office Scripts. However, the JavaScript version may be different in the desktop, web, and Power Automate implementations of Excel. Given that, I'd advise against used types not contained in the IntelliSense unless you've done sufficient cross-platform testing.
I'm going to close this issue, since it's effectively the same as #305. I'm working on another follow-up for that thread to help provide some clarity and insight into the future product direction. I'd just checking with engineering on the accuracy of things so I don't erroneously commit to something in public.


Fix 384, prioritize use of BMI potential evapotranspiration

The current implementation uses internal PET kernels to calc_et() in the framework when a module request an evapotranspiration variable as input.  This is done regardless of whether or not that variable is available from another BMI module source.  This PR is backwards compatible, and will still provide PET when no BMI module in the stack knows how to produce the PET standard name, but it allows for a BMI module to be used first if it is capable of producing the value.
Closes #384.
Additions

protected check_internal_providers function to look for forcing variables that aren't available from BMI providers.

Removals

Changes

Implement TODO function for finding bmi_var_name as function get_bmi_var_name
If a BMI var name isn't found in output variables or name map, check for internal providers of that data

Testing

Passes all existing unit tests

Checklist

[x] PR has an informative and human-readable title
x] Changes are limited to a single goal (no scope creep)
[x] Code can be automatically merged (no conflicts)
[x] Code follows project standards (link if applicable)
[x] Passes all existing automated tests
[x] Any change in functionality is tested
[x] New functions are documented (with a description, list of inputs, and expected output)
[x] Placeholder code is flagged / future todos are captured in comments
[x] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
[x] Reviewers requested with the Reviewers tool :arrow_right:

Target Environment support

[x] Linux
[x] MacOS

Looking at the one test failure, here are the relevant 3 failures:
[ RUN      ] Bmi_C_Formulation_Test.GetOutputLineForTimestep_0_a
/Users/runner/work/ngen/ngen/test/realizations/catchments/Bmi_C_Formulation_Test.cpp:308: Failure
Expected equality of these values:
  output
    Which is: "0.000000,-0.000000"
  "0.000000,0.000000"
Unit conversion error:
[  FAILED  ] Bmi_C_Formulation_Test.GetOutputLineForTimestep_0_a (80 ms)
Unable to convert mm s^-1 to m
[ RUN      ] Bmi_C_Formulation_Test.GetOutputLineForTimestep_1_a
Returning unconverted value!
/Users/runner/work/ngen/ngen/test/realizations/catchments/Bmi_C_Formulation_Test.cpp:324: Failure
Expected equality of these values:
  output
    Which is: "-0.000000,0.000000"
  "0.000000,0.000000"
[  FAILED  ] Bmi_C_Formulation_Test.GetOutputLineForTimestep_1_a (114 ms)
Unit conversion error:
[ RUN      ] Bmi_C_Formulation_Test.GetOutputLineForTimestep_1_b
Unable to convert mm s^-1 to m
Returning unconverted value!
Unit conversion error:
Unable to convert mm s^-1 to m
Returning unconverted value!
Unit conversion error:
Unable to convert mm s^-1 to m
/Users/runner/work/ngen/ngen/test/realizations/catchments/Bmi_C_Formulation_Test.cpp:339: Failure
Returning unconverted value!
Expected equality of these values:
Unit conversion error:
  output
Unable to convert mm s^-1 to m
    Which is: "-0.000000,0.000002"
Returning unconverted value!
  "0.000000,0.000002"
Unit conversion error:
[  FAILED  ] Bmi_C_Formulation_Test.GetOutputLineForTimestep_1_b (133 ms)

Not entirely sure why at the moment these values are coming through as -0.000000.

4ccd04c1e19affd9b9182c90ad20bf460e101ec4 might be relevant here...

I think the failing test may be fixed by d230f8b5f165e5547086f82c40499cec1c163bf2

@hellkite500, that check still fails.  Is d230f8b actually included in your branch?   I did a quick search of the log and didn't see it.

I did a quick search of the log and didn't see it.~ Ah, never mind. I can't find the commit, but I do see the changes. And they work for me locally. Very curious ...

That commit was merged into master with #389...
Not sure why I cannot get the strings to match now...

Might suggest EXPECT_THAT with MatchesRegex, might give better output on the test failure.

Might suggest EXPECT_THAT with MatchesRegex, might give better output on the test failure.

Except that is a feature of googlemock, and I'm not finding it.  I thought googlemock and googletest had merged...but we may be on an older commit???

So a non-deterministic error seems to exist relating to this PR.  In the post-merge check:
/Users/runner/work/ngen/ngen/test/realizations/catchments/Bmi_C_Formulation_Test.cpp:310: Failure
Value of: output
Expected: matches regular expression "-?0.000000,-?0.000000"
  Actual: "0.000000,-4.000000"
[  FAILED  ] Bmi_C_Formulation_Test.GetOutputLineForTimestep_0_a (65 ms)
[ RUN      ] Bmi_C_Formulation_Test.GetOutputLineForTimestep_1_a
/Users/runner/work/ngen/ngen/test/realizations/catchments/Bmi_C_Formulation_Test.cpp:326: Failure
Value of: output
Expected: matches regular expression "-?0.000000,-?0.000000"
  Actual: "-4.000000,0.000000"

I'll open an issue to track this...

Place your bets now on whether it fails again in the post-merge checks?

Called it, apparently :-\


Do a new release

I noticed I'm still running custom git checkout of web-eid app, rather than the last release (2.4.0) due to https://github.com/web-eid/web-eid-app/commit/e8e49162cb2710d22ec107e7098d833a0c11860d.
Is it possible to tag a new release, so this can trickle down in downstream dependencies and reach more users?

Yes, we will release 2.5.0 soon.

Here we go: https://github.com/web-eid/web-eid-app/releases/tag/v2.5.0


Open VSCode via a shell command instead of URL to make other things more convenient

This could help avoid the VSCode confirmation dialog.
This could help open a Dendron workspace or anything supported by VSCode command line arguments, not just folders.

implemented in 1.1.0


Identify cases when browser fails to establish a connection

If launched browser didn't visit a connection URL during the timeout period, the following error message is shown:

ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.

We should show a more specific error message in some of the cases when this error occurs. Listed below are a few of the cases in which the error can be thrown:

[ ] When browser takes too long to initialize (See: Improve the error message when browser takes a too long time to initialize). This case is very common when concurrency mode is used, especially in CPU-restricted environments.

[ ] When browser failed to start. Our current approach to browser launching has some drawbacks - for one, we're ignoring stderr. For example, when using "ubuntu" docker image, chromium browser writes the following to the standard error stream:

Command '/usr/bin/chromium-browser' requires the chromium snap to be installed.
Please install it with:

snap install chromium

This information can be useful to the user, but we never read it. The stdin redirection also introduces a problem - we can't start mounted Windows browser executables in WSL.

[ ] When there's a network problem and browser was unable to open the connection URL

I had this issue recently on Jenkins:
""ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.""
Testcafe does not show why and I spent a day trying to find out. I gave up and installed Cypress. And to my surprise, they show the error:
"/var/lib/jenkins/.cache/Cypress/3.8.3/Cypress/Cypress: error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory"
so when i installed "apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb", it solved Testcafe issue too.

@Michal04, we don't show a message about required system dependencies because, as already noted, we ignore the stderr of spawned browser instances. Thanks for pointing this out - we'll keep this in mind.


In that case, could you once run ls under gdb?
gdb /bin/ls

> set environment LD_PRELOAD=....
> run

Let me know the output. Thanks!

it works now with the last commit, no segfaults also with the tests in the code.


Kanban board

https://github.com/users/fed1k/projects/5
We are group of 2 people

Hi, @fed1k & @CRClothier 👋,
STATUS: APPROVED 🕺🥳
Congratulations🍾🥳!! Your project is ready for presentation!  There is nothing else to say other than... it's time to merge it :shipit:

NOTE
These are optional but note them for building future Kanban boards.

It is unrealistic for all cards to carry an equal time of 1hr of work to complete.
The cards should be arranged in the order in which they need to be completed. For instance, you cannot handle the N+1 problem before the tables are created.

Good luck! 🎉
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me @brytebee in your question so I can receive the notification.
Use @brytebee on slack for faster responses.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Fixed Azure Storage Assembly binding version

Azure Storage assembly binding should point to 4.3.0, not 3.1.0

Can you target it to 1.9.x ?

done


Safe creation with Dapper wallet

Dapper is returning an unexisting TX when a Safe is created, that's why the UI remains in step 5 for a lot of time until finally fails.
The Safe is created correctly. If you inspect the Dapper extension and open the TX executed for Safe creation, you can find in the event logs the Proxy address created. The problem is that the TX Hash sent from Dapper wallet to Safe Multisig Apps is fake, so when Safe Multisig tries to obtain information from that TX Hash, nothing is retrieved.
This is the TX from Dapper extension: https://etherscan.io/tx/0x1059b192914c5c7938ec91d1b18650c2f282e3ddc6c4d919c4453974feb8a960#eventlog.
This is the TX that Dapper sent to the Safe:
0xb0f265db76e92c11e25b16946622693d9e5aac4363f9ef4b360649b73b7359d1.
We tried to run Dapper extension for Rinkeby without luck. It fails to sing up or log in.

I just create a Ticker in Dapper Github: https://github.com/StackExchange/Dapper/issues/1456

@nicosampler, is not dapper the one returning the wrong txHash. The txHash is generated based on the tx being signed but is not the actual tx being mined.
I've been reviewing this, the tx you linked is being signed by 0x50a5b514563b7c80b21acf6d1759dbfd17e73735 and it's probably the co-signer that invokes the method invoke1CosignerSends.
So we'll probably need to implement a way to treat a safe creation done through dapper as we discussed earlier today.

Maybe using create2 (createProxyWithNonce or something similar is the method name on the ProxyFactory) would allow to monitor for the event, since we could pre-calc the safe address. This way you would actually not depend that the wallet returns you the correct tx hash. The wallet could still not execute the transaction, but for that we have a back button, right?

closing this since dapper is phasing out their ethereum support and they have been removed from onboard.js already.


Create account - UI beta

Definition of done

[ ] User can fill in a username and master password
[ ] Button to "Create account"

Development setup is now live


Generate authentication support from REST API security definitions

@mikekistler commented on Tue May 10 2022
Describe the solution you'd like
The Python generator should support generation of authentication support based on the security definitions in the REST API document.
Additional context
In the March 2022 release, Autorest generalized its support for recognizing security schemes:
https://github.com/Azure/autorest/blob/main/docs/releases/march-2022.md#modelerfour-security-scheme-generalization
This makes it possible for generators for each language to generate proper authentication support in client libraries for Azure using only information from the standard security definitions in the REST API document.
In particular:

If the REST API document contains an "oauth2" security scheme, the generated client library should support for authentication with AAD Token credentials.
If the REST API document contains an "apiKey" security scheme with "in: header", the generated client library should support authentication with an api key.
If both "oauth2" and "apiKey" security schemes are present, the generated library should support authentication with either AAD Token credentials or an api key.

@mikekistler we've already merged support for this! We've also updated to the latest m4's breaking change of security names too. Closing, thanks!

@iscai-msft Is that support released yet?  I tried this just yesterday and it was not working (in Python).

This is my configuration:
Showing All Installed Extensions

 Type       Extension Name                           Version      Location
 core       @autorest/core                           3.8.4        /Users/mikekistler/.autorest/<EMAIL_ADDRESS> extension  @autorest/modelerfour                    4.19.3       /Users/mikekistler/.autorest/<EMAIL_ADDRESS> extension  @autorest/python                         5.16.0       /Users/mikekistler/.autorest/<EMAIL_ADDRESS>
Should this work?  If not, how can I change it to get a working configuration?

Does adding --version=3.6.2 work?


[ENH] Allow KNN classifier and regressor to accept unequal length series in classification

Describe the feature or idea you want to propose
All the elastic distance functions (except Euclidean?) should work with unequal length series. HENVE It should be trivial to adapt these estimators to also except unequal length.
Describe your proposed solution
simply change calls to X.shape[0] to len(X).
There may be an issue with unfair comparisons, because afaik the distances are not normalised for length, so distance will be influenced by length. However, we can think about that later.
Describe alternatives you've considered, if relevant
No response
Additional context
No response

we will need a generic interface test for unequal length capable, I'll make one


change forms.less mode from 755 to 644

I noticed the permissions for forms.less were set to executable. Here's a fix for that.

Permissions seem fine on my end—all of them match.

Git tells me they don't:
$ git clone https://github.com/twitter/bootstrap.git && ls -l bootstrap/lib/forms.less
Cloning into bootstrap...
remote: Counting objects: 5838, done.
remote: Compressing objects: 100% (2166/2166), done.
remote: Total 5838 (delta 3900), reused 5436 (delta 3552)
Receiving objects: 100% (5838/5838), 1.78 MiB | 396 KiB/s, done.
Resolving deltas: 100% (3900/3900), done.
-rwxr-xr-x  1 djinn  wheel  9463 Dec 11 14:30 bootstrap/lib/forms.less

@markdotto maybe you are checking the 2.0-wip branch (it's 644 there), it is indeed 755 in master https://github.com/twitter/bootstrap/blob/master/lib/forms.less


Don't set up more than 1 abort signal listener

🤦 Rxjs' fromEvent creates a new listener on every subscription, but this is a bit hidden because the abort signal isn't subscribed to directly:
https://github.com/open-cli-tools/concurrently/blob/a7a5894e2daf9dd64059200cc1c53c756412b3cd/src/completion-listener.ts#L96-L109
Sounds like just sharing the underlying source observable is enough.
Fixes #502

coverage: 98.263%. remained the same
when pulling 74cc2f2df6be9b231f601982faae5a4adc95575a on abortsignal-leak
into a7a5894e2daf9dd64059200cc1c53c756412b3cd on main.


Fixed keep-alive support in manage.py runserver.

Ticket #25619 changed the default protocol to HTTP/1.1 but did not
properly implement keep-alive. As a "fix" keep-alive was disabled in
ticket #28440 to prevent clients from hanging (they expect the server to
send more data if the connection is not closed and there is no content
length set).
The combination of those two fixes resulted in yet another problem:
HTTP/1.1 by default allows a client to assume that keep-alive is
supported unless the server disables it via 'Connection: close' -- see
RFC2616 <IP_ADDRESS> for details on persistent connection negotiation. Now if
the client receives a response from Django without 'Connection: close'
and immediately sends a new request (on the same tcp connection) before
our server closes the tcp connection, it will error out at some point
because the connection does get closed a few milli seconds later.
This patch fixes the mentioned issues by always sending 'Connection:
close' if we cannot determine a content length. The code is inefficient
in the sense that it does not allow for persistent connections when
chunked responses are used, but that should not really cause any
problems (Django does not generate those) and it only affects the
development server anyways.

buildbot, test on selenium.

buildbot, test on selenium.

Sorry, the trigger phrase wasn't working due to a trailing space in the Jenkins config.

Ah, I was also editing the config; so we might have overriden it once or twice :D

buildbot, test on selenium.

buildbot, test on selenium.

Pull Request Health Check
Checking if this PR follows the expected quality standards. Powered by temcheck.

Executed 4 quality checks, revealing 1 failures, 0 warnings and 3 successful checks.

Failures (1) - These need to be fixed!

commit_message
Found 1 commit message(s) that do not follow the expected format (errors: "subject_pattern")
errors:

commit_order: 1
sha: eddc80f3f825019734920a7fab30b16cfb059235
subject_pattern: 'Subject does not follow pattern: "^[A-Z].+(?<!\.)$". Explanation:
Commit message subject must start with a capital letter and not finish with
a dot'
url: https://github.com/django/django/commit/eddc80f3f825019734920a7fab30b16cfb059235

Warnings (0) - Fixing these may not be applicable, please review them case by case
Successful (3) - Good job on these!

branch_name
pr_title
pr_body_checklist


produce release binaries

we have been using go-cli as branch base, the latest improvements wont be at main branch


Replace Import-Module and . with using module

We heavily rely on classes, which don't integrate well with Import-Module, which forces us to dot source a lot.  using module should solve our import woes.

Be carefull, as that would expose all your classes to the end user, and they could end up polluting his session.
It is possible to export classes by using a 'hybrid approach'. When you boil it down to the bare minimum, it is nothing more than wrapping the instantiation of a class in a function starting with the 'new-' keyword. Example, if you have a class called CustomRequirement you can do this.

Function New-CustomRequirement {
   Param(

    )
    return [CustomRequirement]::New() #possible to work with overloaded constructors and parameter sets.
}


[github-actions] test_ndproxy.py fails intermittently

logs_72922.zip
thread-1-2-backbone-results.zip

logs_8082.zip
thread-1-2-backbone-results.zip

Current findings:*
PBBR (also Leader) re-register its DUA and sends unsolicited NA and Backbone Answer, which resets its Time Since Last Transaction to zero.
Apr 29 22:49:00 05d19bedf796 otbr-agent[104]: [INFO]-DUA-----: Sent DUA.req for DUA fd00:7d03:7d03:7d03:15e7:e396:34d6:4d81: OK
Apr 29 22:49:00 05d19bedf796 otbr-agent[104]: [INFO]-NDPROXY-: NdProxyManager: SendNeighborAdvertisement: OK
Apr 29 22:49:00 05d19bedf796 otbr-agent[104]: [INFO]-BBR-----: Send PRO_BB.ntf for fd00:7d03:7d03:7d03:15e7:e396:34d6:4d81 (rloc16=fffe): OK
Apr 29 22:49:00 05d19bedf796 otbr-agent[104]: [INFO]-BBR-----: NdProxyTable::Register 15e7e39634d64d81 MLIID f08948bc3848c95b RLOC16 f400 LTT 0 => OK
Apr 29 22:49:00 05d19bedf796 otbr-agent[104]: [INFO]-BBR-----: Received DUA.req on PBBR: OK
Apr 29 22:49:00 05d19bedf796 otbr-agent[104]: [INFO]-BBR-----: Sent DUA.rsp for DUA fd00:7d03:7d03:7d03:15e7:e396:34d6:4d81, status 0 OK

It's unclear why PBBR re-registers. Checked the code but couldn't find any cause that may cause PBBR to reregister its DUA.
Corresponding PCAP: test_ndproxy_9_merged.pcap.zip
@librasungirl

test_ndproxy_9.log

Have not seen this issue recently. Closing.


Support for collections in where statement

class Country < ActiveHash::Base
  self.data = [
    {
      id: 1,
      name: 'Belarus',
      country_code: 'BY'
    },
    {
      id: 3,
      name: 'United States',
      country_code: 'US'
    }
  ]
end

Currently it is possible to pass single country code when searching for a country. For example,
Country.where country_code: 'BY'
=> #<Country:0x007f94ba2d22a0 @attributes={:id=>1, :name=>"Belarus", :two_letter_code=>"GB"}>

It would be great to pass pass an array of country codes when searching for countries, like
Country.where country_code: ['BY', 'US']

Agreed--this would be very useful!

Try something like this:
def self.find_by_country_codes(country_codes)
	unless country_codes.kind_of?(Array)
	  country_codes = [country_codes]
	end
	self.all.map{|n| n if country_codes.include?(n.country_code)}.compact
end

Since active_support is available, you may want to try Array.wrap, also, select may make sense here.
def self.find_by_country_codes(country_codes)
    country_codes = Array.wrap(country_codes)
    self.all.select { |n| country_codes.include?(n.country_code) }
end

Even better :+1:

@sandergroen thanks for doing all the hard work and letting me swoop in and look smart :)

@Hirurg103 Does #111 meet your needs?

@kbrock yea, thanks so much


feat: support task methods for exception and result

Adds the following methods to the Task class to bring it closer in line with CPython

get_coro - a method that returns the micropython specific Task.coro property
result - returns the result if no exception was raised or raised the exception that this task had
exception - returns the exception if an exception was raised
cancelled - returns true if this task had been cancelled
set_exception - exists on the class but always raises an exception per CPython's implementation
set_result - exists on the class but always raises an exception per CPython implementation

Task.cancel was updated to support a msg parameter which is passed to the CancelledError
In progress is add_done_callback and remove_done_callback - these currently raise a NotImplementedError but are how CPython manages the done callbacks (unlike CircuitPython supporting via modifying Task.state)
This requires changes to circuitpython's _asyncio to properly work.
fixes #53

@imnotjames I thought I saw some questions from you about where to add exceptions, how close we should adhere to  CPython, etc., but I cannot find them. Did you ask them here and then delete them? I cannot find them in discord either.
_asyncio is supposed to be optional, so this library should be able to work without it. Hence the guarded imports for _asyncio.

@dhalbert No worries!  It was in discord, there was a bit of a wall of text and then a question, so totally understandable to miss it.

But onto a bit of a question -- if I'm implementing some python methods in C and need it to throw an error - in this case CancelledError - do I need that error available at runtime or compile time?  In other words, do I need to pull that out of the asyncio external module and implement an error in _asyncio?
I think during compile time so I'd have to define it as part of the modasyncio.c but I'm not the most familiar with circuitpython internals.

If they are needed during compile time then it means I'd move CancelledError & InvalidStateError into task.py + implement them as well in the optional _asyncio

Got it. Any exception referenced by C has to be defined in C (or else defined at runtime in some tortuous way, which we wouldn't normally do). So definitely just define it like the other _asyncio C exceptions.


[C++][ACERO]: VAR_ARG does not work for hash aggregate kernels

Describe the bug, including details regarding any error messages, version, and platform.
"uint32: group_id_array" is appended to input_types for hash aggregate kernel/function signature.
This causes two issues :

function/kernel resolution does not work for functions with var_arg input because Function::DispatchExact fails.
group_id_array position in ExecBatch becomes kernel dependent (which is less an issue)

Possible solution is to change hash aggregate kernel signature as to have "uint32: group_id_array" at position 0:
HashAggregateKernel MakeKernel(InputType argument_type, KernelInit init,
                               const bool ordered = false) {
  return MakeKernel(
      KernelSignature::Make({std::move(argument_type), InputType(Type::UINT32)},
                            OutputType(ResolveGroupOutputType)),
      std::move(init), ordered);
}

becomes
HashAggregateKernel MakeKernel(InputType argument_type, KernelInit init,
                               const bool ordered = false) {
  return MakeKernel(
      KernelSignature::Make({InputType(Type::UINT32), std::move(argument_type)},
                            OutputType(ResolveGroupOutputType)),
      std::move(init), ordered);
}

An Alternative solution is to change hash aggregate consume signature and avoid transforming original kernel signature:
using HashAggregateConsume = Status (*)(KernelContext*, const ExecSpan&);

becomes
using HashAggregateConsume = Status (*)(KernelContext*, const ExecValue&, const ExecSpan&);

Component(s)
C++

Hi @westonpace,
I raised this issue because a project I work one requires it. I also submitted a draft PR with a possible fix.
I would appreciate your feedback and guidance to submit a successful patch.


pylint issue abstract-class-instantiated in example

Environment
How do you use Sentry?
I used example in my project and use pylint check for it and I receive error. I think that it will be great to have without pylint issue.
Which SDK and version?
Python 3.8 and sentry-sdk==1.1.0
Steps to Reproduce

I used example https://github.com/getsentry/sentry-python/blob/master/examples/basic.py
Install latest pytlint pylint==2.8.2
Get pylint error

Expected Result
Without pylint error
Actual Result
basic.py:8:0: E0110: Abstract class 'init' with abstract methods instantiated (abstract-class-instantiated)

It is duplicated with https://github.com/getsentry/sentry-python/issues/1081


GCP cluster -> Node Pool Image type now defaults to Containerd causing a ImagePullBackOff on the pipeline's pod

What happened?:
Created a new cluster on GCP  ( https://docs.pachyderm.com/latest/deploy-manage/deploy/google_cloud_platform/#google-cloud-platform ) using 1.19.9-gke.1900.
I had to manually edit my Node pool to set docker as the default registry - The initial value at  the cluster creation was Containerd -> kubectl get nodes -o wide which resulted in an ImagePullBackOff on my pipeline's pod.
What you expected to happen?:
Since Docker.io is Containerd's default registry, I would expect my image to be pulled properly

Pipeline spec used: https://github.com/pachyderm/pachyderm/blob/master/examples/spouts/go-rabbitmq-spout/pipelines/spout.pipeline.json

We chatted about this in DMs and during Game Day today, and this bug warrants careful investigation.  I'd expect Google's switch to containerd to break code that requires a docker socket, but I wouldn't expect it to cause ImagePullBackoff.
Maybe https://github.com/pachyderm/pachyderm/blob/master/examples/spouts/go-rabbitmq-spout/pipelines/spout.pipeline.json#L13 (a docker hub container label) needs to be docker.io/pachyderm/... when running under containerd.  It would surprise me though, a lot of people are broken if that default changes.  So it's possible that containerd is a red herring and something else is actually wrong (and it fixed itself after cycling the node pool), and we should investigate that.

Re-tested on 1.19.10-gke.1600 -> worked fine.

happening on v1.20.8-gke.900 now too

Update- it only happens when pachyderm is deployed via 'pachctl deploy google' it doesn't happen with helm deployed versions

ok i've found the cause- when you deploy with pachctl deploy, any pipeline created gets /var/run/docker.sock from docker (rw) in the mounts which cause pachd to try to use the (nonexistant) docker socket


Exclude specific vcs directory

Please provide a way to support excluding a specific directory from VCS display.  oh-my-zsh does this by setting oh-my-zsh.hide-status=1 in a repo's git config.  It would be nice to support this, though I think it would be even better if this could be done in a standardized way.

This functionality is provided  by ZSHs VCS_INFOmodule, which is what P9k uses. The VCS_INFO module actually provides a pretty straight-forward way of doing this with thedisable-patterns` flag:
http://zsh.sourceforge.net/Doc/Release/User-Contributions.html
We can probably make a new P9K flag, which you can define as a list of directories, that gets fed to disable-patterns at VCS_INFO's init.
Thanks for the suggestion!

I am on a issue-cleaning spree. This issue hasn't had motion in quite some time, and so I am closing it out due to inactivity. If anyone would like to re-open it because they feel it is un-resolved and is something they care about, please feel free to re-raise the discussion!


MIDITrackView does too much work in body

It creates an AppleSequencer and reads files. Need to create a MIDITrackViewModel to store that.

It creates an AppleSequencer and reads files. Need to create a MIDITrackViewModel to store that.

Yeah I made some improvements to the code which is available on my repo emurray2/SimpleMIDI . I can create a model which is injected into the view and only created once. That way there won't be multiple sequencers.

@wtholliday What do you think about the new model? If you see any improvements to be made, please let me know. I'm a beginner still when it comes to MVVM, and I appreciate any feedback you have to offer. I'll start working on #47 this weekend when I get home for spring break.

Hey @emurray2 , it looks like we could do some more work on it. I'll have to look in greater detail at some point, but it looks like it's still effectively doing the same work, just now here:
https://github.com/AudioKit/AudioKitUI/blob/8247c8f772f1917f63579347ec29c54900597aff/Sources/AudioKitUI/Controls/MIDITrackView.swift#L104
instead of in the body. I think updateUIView is going to be called every time body is run. Did you profile it? I should have included some repro steps, because IIRC the Cookbook app was slow.
I also don't think it needs separate per-platform implementations. Should be entirely doable with SwiftUI, especially if we can use Canvas.

Hi Taylor, thank you for taking the time to help me with this. As I mentioned, I really appreciate your feedback, especially since I don't know much about drawing graphics and SwiftUI yet. I see what you mean now by everything being moved to the UIViewRepresentable makeUIView() and updateUIView(). I did some profiling, and the newer version possibly works better than the previous, as the track position is now stored inside MIDITrackViewModel. I believe changing this state before in the UIViewRepresentable before was causing updateView() to be called every frame if I'm remembering right, which made the animations very choppy and slow. Now it will only call the view's update function when the track's file changes, the view is first created, or the width/height change. However, I still agree--this seems like a lot of work drawing out the view/whole file whenever its state changes. And the per-platform implementations are definitely convoluted with duplicate code. I'll explore some more this weekend and see if I can get things working with Canvas (in tandem with the MIDITrackViewModel which currently stores the track position).


Shutdown / Restart loop after update to 12.7

Hi, thanks for sharing your EFI! I am using your latest version on a Thinkpad X280, I had done a clean install with Monterey 12.6.9 and everything was working perfectly. Last night I updated to 12.7 through System Preferences, everything went through well.  When I try to shut it down, it restarts.
I am pretty new to OpenCore, so I was wondering whether you had any intuition of what the problem might be? A quick google search led me here: https://dortania.github.io/OpenCore-Post-Install/usb/misc/shutdown.html#fixing-shutdown-restart. Do you think I need to do this? It seems odd since the EFI worked well under 12.6.9 without this patch.
Thanks a lot for your help!

It turns out there was a problem with my USB port mapping. I used waldier-xam's USBMap.kext (https://github.com/waldir-xam/x280-Hackintosh/tree/main/EFI-reFind-OC), now everything works!


fix field doesn't have a default value with strict mode on

This can be solved by disabling STRICT mode
SET @@global.sql_mode= '';


Distinguish between identifier and function macros?

#define ONE 1
#define TWO (1+1)
#define PLUS(x) x+1

This is tricky and unlikely to be feasible without some kind of libclang backend. Sorry.


[Improvement](Sequence function) Capitalize const variables

Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.97 seconds
load time: 438 seconds
storage size:<PHONE_NUMBER>0 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221114191340_clickbench_pr_46027.html


Fix - normalize cwd path on dist path check (#4088)

Summary of changes

Normalize CWD path for the comparing of distribute location.
Fixes #4088
Pull Request Checklist

[x] Changes have tests
[ ] News fragment added in newsfragments/.
(See documentation for details)

@spxd thank you very much for the contribution.
The CI is currently complaining that the lines setuptools/command/easy_install.py  1253-1254,1259-1260,1288 were changed but that the changes are not covered in tests (I understand that they probably were not covered before, but since this PR modifies them it would be important to add tests against regression).
Would it be possible to add a test for the update_pth function as well to cover those lines?


Return partial mode page data depending on allocation length

Return as many mode page bytes as requested by allocation length instead of displaying a warning

This was tested with the unit tests in the feature_google_test branch.


docs: add release notes for #14799

Commit Message: Add release notes for #14799
Additional Description:
Add missing release notes for PR #14799
Risk Level: low
Testing: n/a
Docs Changes: added release notes
Release Notes: n/a
Platform Specific Features: n/a

/assign @antoniovicente

Sorry, I just realized the explanation is totally wrong. It's not multiple scaled timers in the same iteration, it's one scaled timer that disables another one. Will fix in a moment.


Update Firebase dependencies

Summary:
We're getting this crash in the nav branch of OBA Android (which targets API 28) for Android versions less than Oreo:
    java.lang.NoSuchMethodError: No static method zzah()Lcom/google/firebase/iid/zzat; in class Lcom/google/firebase/iid/zzat; or its super classes (declaration of 'com.google.firebase.iid.zzat' appears in /data/app/com.joulespersecond.seattlebusbot-1/split_lib_dependencies_apk.apk:classes2.dex)
        at com.google.firebase.messaging.FirebaseMessagingService.zzb(Unknown Source)
        at com.google.firebase.iid.zzb.onStartCommand(Unknown Source)
        at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3326)
        at android.app.ActivityThread.-wrap21(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1582)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6119)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

https://github.com/OneSignal/OneSignal-Gradle-Plugin/issues/69#issuecomment-428500582 says:

firebase-iid:17.0.3 was being used which is not compatible with any version of firebase-messaging below 17.3.1.

This matches https://developers.google.com/android/guides/releases#december_13_2018, which says that firebase-iid:17.0.3 should not be used, and 17.0.4 should be used instead.
If I run gradlew onebusaway-android:dependencies on the command line, I see:
+--- com.acrowntest.test:sdk:0.7.3
|    +--- com.squareup.picasso:picasso:2.5.2
|    +--- com.fasterxml.jackson.core:jackson-annotations:2.6.2 -> 2.9.4
|    +--- com.google.android.gms:play-services-auth:16.0.1
|    |    +--- com.google.android.gms:play-services-auth-api-phone:16.0.0
|    |    |    +--- com.google.android.gms:play-services-base:16.0.1 (*)
|    |    |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
|    |    |    \--- com.google.android.gms:play-services-tasks:16.0.1 (*)
|    |    +--- com.google.android.gms:play-services-auth-base:16.0.0
|    |    |    +--- com.google.android.gms:play-services-base:16.0.1 (*)
|    |    |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
|    |    |    \--- com.google.android.gms:play-services-tasks:16.0.1 (*)
|    |    +--- com.google.android.gms:play-services-base:16.0.1 (*)
|    |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 16.1.0 (*)
|    |    \--- com.google.android.gms:play-services-tasks:16.0.1 (*)
|    +--- com.google.firebase:firebase-core:16.0.1 -> 16.0.6 (*)
|    +--- com.google.firebase:firebase-messaging:17.1.0
|    |    +--- com.google.android.gms:play-services-basement:15.0.1 -> 16.1.0 (*)
|    |    +--- com.google.android.gms:play-services-tasks:15.0.1 -> 16.0.1 (*)
|    |    +--- com.google.firebase:firebase-common:16.0.0 -> 16.0.4 (*)
|    |    +--- com.google.firebase:firebase-iid:[16.2.0] -> 17.0.3 (*)    // firebase-iid:17.0.3 is being introduced here!
|    |    \--- com.google.firebase:firebase-measurement-connector:16.0.0 -> 17.0.1 (*)

As you can see near the bottom (see my comment) firebase-iid:17.0.3 is being introduced via com.google.firebase:firebase-messaging:17.1.0.
Could you bump the following Firebase dependencies to hopefully get rid of this issue?
New dependency versions (latest):

firebase-core to 16.0.6
firebase-messaging  to 17.3.4

Steps to reproduce:
Run nav branch of OBA Android (which targets SDK 28) for Android versions less than Oreo
Expected behavior:
Don't crash
Observed behavior:
Crash with above stack trace
Device, Android, and Embedded Social SDK version:
    // Embedded Social SDK
    implementation('com.acrowntest.test:sdk:0.7.3:release@aar') {
        transitive = true
    }

@acrown-msft Looks like this was addressed in https://github.com/Microsoft/EmbeddedSocial-Android-SDK/pull/111?

That is correct

By the way, we tested again with the nav branch and it works fine now!


[Bug]: 403 Forbidden Udemy Personal plans

What happened?
for Udemy Personal plans
in feat/cookies
error
py  main.py -c https://www.udemy.com/course/adobe-photoshop-cc-essentials-training-course/learn  --browser chrome
[12:51:55] [udemy-downloader] [init:284] WARNING: No bearer token was provided, attempting to use browser cookies.
[12:51:56] [udemy-downloader] [main:1440] INFO: > Fetching course information, this may take a minute...
[12:51:57] [udemy-downloader] [_get:796] ERROR: Failed request https://www.udemy.com/course/adobe-photoshop-cc-essentials-training-course/learn
[12:51:57] [udemy-downloader] [_get:797] ERROR: 403 Forbidden, retrying (attempt 0 )...
Expected Result
download course
Branch
Other (Enter below)
What operating systems are you seeing the problem on?
Windows
Relevant log output
No response
Other information
No response

you're probably not logged into udemy in chrome

i'm login into udemy chrome in chrome

idk what to tell you. it works fine in my testing with both subscription courses and non-subscription courses.

i testing with both subscription courses and non-subscription courses. and not work
its says this error
I checked on several different systems and IPs
its non-subscription And the latest update version of the master udemy
Maybe it's from the sending header?!
py  main.py -c https://www.udemy.com/course/the-complete-internet-security-privacy-course-volume-1/learn
[07:55:40] [udemy-downloader] [pre_run:275] WARNING: No cookies.txt file was found, you won't be able to download subscription courses! You can ignore ignore this if you don't plan to download a course included in a subscription plan.
[07:55:40] [udemy-downloader] [init:291] INFO: Login Success
[07:55:40] [udemy-downloader] [main:1549] INFO: > Fetching course information, this may take a minute...
[07:55:42] [udemy-downloader] [_get:814] ERROR: Failed request https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=the-complete-internet-security-privacy-course-volume-1
[07:55:42] [udemy-downloader] [_get:815] ERROR: 403 Forbidden, retrying (attempt 0 )...
[07:55:43] [udemy-downloader] [_subscribed_courses:555] CRITICAL: Udemy Says: 'NoneType' object has no attribute 'content' on https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=the-complete-internet-security-privacy-course-volume-1

i testing with both subscription courses and non-subscription courses. not work
I checked on several different systems and IPs
Maybe it's from the sending header
i think
"https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=xxx"
It doesn't work anymore too

i testing with both subscription courses and non-subscription courses. not work
I checked on several different systems and IPs
Maybe it's from the sending header
i think
"https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=500&search=xxx"
It doesn't work anymore too

Works fine, update

I don't know, I could before
I tried so hard
But now it gives the same error
403 Forbidden

it was because of ip

it was because of ip

it was because of ip

What did you do to fix this?Click to apply

it was because of ip

What did you do to fix this?


Bug in version control tool.

VSCode Version: 1.21.1
OS Version: Windows 10 version 1709

Steps to Reproduce:

In a project with a git repo make a change to one or more files and save.
The change will be reflected in the version control sidebar
Click the arrow to discard all changes the confirmation modal will show up, click accept.
The change/s will be discarded but the version control side bar will keep displaying that there are changes to be commited and the diff too will not show any difference in the files.

Does this issue occur when all extensions are disabled?: Yes

This is very likely a problem with your git line endings configuration. This is what happens when you undo all changes:
git reset -q HEAD -- .

If you run that command manually, does git status still return changes?

It was a git problem indeed.


Bot gets stuck sometimes until you press ENTER

Hi, my bot waits for trade offers and then accepts or declines them.
Usually, the bot handles them automatically when the trade offers come in.
But sometimes it's like the bot is stuck until you press enter. Then the bot realizes "oh there are 4 trade offers still open" and then handles them.
Have you seen this problem before? Is there any fix/workaround where this does not happen?
Let me know your thoughts

Did you make any changes in value for trade delays class or something?

@L4rsS please, check this out. https://stackoverflow.com/questions/4453692/windows-console-application-getting-stuck-needs-key-press. Try to disable Quick Edit mode for your console.


Persister crashes if log level setting is incorrect

Persister crashes if log level setting is incorrect.
WARN and ERROR log levels are not considered.

LOG_LEVEL = DEBUG:

$ kubectl -n dojot logs -f --tail 1000 persister-67d8888566-lwr68
[2020-06-22 17:39:34 +0000] [7] [INFO] Starting gunicorn 19.6.0
[2020-06-22 17:39:34 +0000] [7] [INFO] Listening at: http://<IP_ADDRESS>:8057 (7)
[2020-06-22 17:39:34 +0000] [7] [INFO] Using worker: gevent
[2020-06-22 17:39:34 +0000] [13] [INFO] Booting worker with pid: 13
[22/06/20 - 17:39:35] |persister| DEBUG: Initializing persister...
[22/06/20 - 17:39:35] |persister| INFO: db initialized
[22/06/20 - 17:39:35] |persister| DEBUG: Creating indexes for tenants: ['admin', 'teste']
[22/06/20 - 17:39:35] |persister| DEBUG: ... persister was successfully initialized.
[22/06/20 - 17:39:35] |persister| DEBUG: Initializing dojot messenger...
[22/06/20 - 17:39:36] |persister| DEBUG: ... dojot messenger was successfully initialized.

LOG_LEVEL = debug

~$ kubectl -n dojot logs -f --tail 1000 persister-5f78c7b566-r86pr
[2020-06-22 17:42:31 +0000] [7] [INFO] Starting gunicorn 19.6.0
[2020-06-22 17:42:31 +0000] [7] [INFO] Listening at: http://<IP_ADDRESS>:8057 (7)
[2020-06-22 17:42:31 +0000] [7] [INFO] Using worker: gevent
[2020-06-22 17:42:31 +0000] [13] [INFO] Booting worker with pid: 13
Traceback (most recent call last):
  File "history/subscriber/persister.py", line 11, in <module>
    LOGGER = Logger.Log(conf.log_level).color_log()
  File "/usr/src/app/history/Logger.py", line 24, in __init__
    self.log.setLevel(log_level)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1284, in setLevel
    self.level = _checkLevel(level)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 195, in _checkLevel
    raise ValueError("Unknown level: %r" % level)
ValueError: Unknown level: 'debug'

LOG_LEVEL = INFO

$ kubectl -n dojot logs -f --tail 1000 persister-68b6c6c5d9-qxn22
[2020-06-22 18:09:08 +0000] [7] [INFO] Starting gunicorn 19.6.0
[2020-06-22 18:09:08 +0000] [7] [INFO] Listening at: http://<IP_ADDRESS>:8057 (7)
[2020-06-22 18:09:08 +0000] [7] [INFO] Using worker: gevent
[2020-06-22 18:09:09 +0000] [13] [INFO] Booting worker with pid: 13
[22/06/20 - 18:09:09] |persister| INFO: db initialized

LOG_LEVEL = info

$ kubectl -n dojot logs -f --tail 1000 persister-797988d8b9-bz9nz
[2020-06-22 18:11:20 +0000] [7] [INFO] Starting gunicorn 19.6.0
[2020-06-22 18:11:20 +0000] [7] [INFO] Listening at: http://<IP_ADDRESS>:8057 (7)
[2020-06-22 18:11:20 +0000] [7] [INFO] Using worker: gevent
[2020-06-22 18:11:20 +0000] [13] [INFO] Booting worker with pid: 13
Traceback (most recent call last):
  File "history/subscriber/persister.py", line 11, in <module>
    LOGGER = Logger.Log(conf.log_level).color_log()
  File "/usr/src/app/history/Logger.py", line 24, in __init__
    self.log.setLevel(log_level)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1284, in setLevel
    self.level = _checkLevel(level)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 195, in _checkLevel
    raise ValueError("Unknown level: %r" % level)
ValueError: Unknown level: 'info'

LOG_LEVEL = WARN (this level is ignored)

$ kubectl -n dojot logs -f --tail 1000 persister-558dbdbddf-pkt8n
[2020-06-22 18:13:15 +0000] [7] [INFO] Starting gunicorn 19.6.0
[2020-06-22 18:13:15 +0000] [7] [INFO] Listening at: http://<IP_ADDRESS>:8057 (7)
[2020-06-22 18:13:15 +0000] [7] [INFO] Using worker: gevent
[2020-06-22 18:13:15 +0000] [13] [INFO] Booting worker with pid: 13

LOG_LEVEL = warn

$ kubectl -n dojot logs -f --tail 1000 persister-6d7db66ddf-lkhq7
[2020-06-22 18:15:38 +0000] [8] [INFO] Starting gunicorn 19.6.0
[2020-06-22 18:15:38 +0000] [8] [INFO] Listening at: http://<IP_ADDRESS>:8057 (8)
[2020-06-22 18:15:38 +0000] [8] [INFO] Using worker: gevent
[2020-06-22 18:15:38 +0000] [14] [INFO] Booting worker with pid: 14
Traceback (most recent call last):
  File "history/subscriber/persister.py", line 11, in <module>
    LOGGER = Logger.Log(conf.log_level).color_log()
  File "/usr/src/app/history/Logger.py", line 24, in __init__
    self.log.setLevel(log_level)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1284, in setLevel
    self.level = _checkLevel(level)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 195, in _checkLevel
    raise ValueError("Unknown level: %r" % level)
ValueError: Unknown level: 'warn'

LOG_LEVEL = ERROR (this level is ignored)

$ kubectl -n dojot logs -f --tail 1000 persister-79d59c7579-jt9rp
[2020-06-22 18:17:56 +0000] [7] [INFO] Starting gunicorn 19.6.0
[2020-06-22 18:17:56 +0000] [7] [INFO] Listening at: http://<IP_ADDRESS>:8057 (7)
[2020-06-22 18:17:56 +0000] [7] [INFO] Using worker: gevent
[2020-06-22 18:17:56 +0000] [13] [INFO] Booting worker with pid: 13

LOG_LEVEL= error

~$ kubectl -n dojot logs -f --tail 1000 persister-567dd46795-qcqcg
[2020-06-22 18:21:46 +0000] [7] [INFO] Starting gunicorn 19.6.0
[2020-06-22 18:21:46 +0000] [7] [INFO] Listening at: http://<IP_ADDRESS>:8057 (7)
[2020-06-22 18:21:46 +0000] [7] [INFO] Using worker: gevent
[2020-06-22 18:21:46 +0000] [13] [INFO] Booting worker with pid: 13
Traceback (most recent call last):
  File "history/subscriber/persister.py", line 11, in <module>
    LOGGER = Logger.Log(conf.log_level).color_log()
  File "/usr/src/app/history/Logger.py", line 24, in __init__
    self.log.setLevel(log_level)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1284, in setLevel
    self.level = _checkLevel(level)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 195, in _checkLevel
    raise ValueError("Unknown level: %r" % level)
ValueError: Unknown level: 'error'

Affected version: v0.5.0-alpha.1

PRs with corrections:
https://github.com/dojot/history/pull/86
https://github.com/dojot/history/pull/87


HL-379: time range validation errors should be warnings.

Description :sparkles:
Add new "warnings" element to the API that can be used for other kinds of warnings, too.
Rename past_benefit_info.
Add tests for overlapping previously granted benefit.
Issues :bug: HL-379
Testing :alembic:
Screenshots :camera_flash:
Additional notes :spiral_notepad:

Codecov Report

Merging #633 (5f70c7d) into develop (964f801) will increase coverage by 32.94%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           develop     #633       +/-   ##
============================================
+ Coverage    61.85%   94.79%   +32.94%
============================================
  Files          587      167      -420
  Lines        14700     6802     -7898
  Branches      1471        0     -1471
============================================
- Hits          9092     6448     -2644
+ Misses        5322      354     -4968
+ Partials       286        0      -286

Impacted Files
Coverage Δ

backend/benefit/applications/api/v1/serializers.py
93.57% <100.00%> (-0.03%)
:arrow_down:

...ackend/benefit/applications/benefit_aggregation.py
100.00% <100.00%> (+1.78%)
:arrow_up:

...fit/applications/tests/test_benefit_aggregation.py
98.27% <100.00%> (+0.09%)
:arrow_up:

backend/shared/shared/azure_adfs/views.py
41.17% <0.00%> (-41.18%)
:arrow_down:

backend/shared/shared/oidc/auth.py
81.48% <0.00%> (-1.86%)
:arrow_down:

frontend/shared/src/hooks/useGoToFrontPage.tsx

...mponents/application/companyInfo/CompanyInfo.sc.ts

...teli/youth/src/hooks/backend/useSchoolListQuery.ts

...esaseteli/employer/src/utils/localstorage.utils.ts

...ared/browser-tests/components/header.components.ts

... and 415 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 964f801...5f70c7d. Read the comment docs.


[FLINK-6023] Fix Scala snippet into Process Function Doc

The pull request references the related JIRA issue "[FLINK-6023] Fix Scala snippet into Process Function (Low-level Operations) Doc".
The scope is to fix the java and scala examples.

thank you @KurtYoung for your review

Thanks @maocorte for the quick fix, looks good to merge now.


Performance issue when migrating to 0.8.1 version

Hi there,
We are trying to migrate from version 0.7.1 to 0.8.1 and we have a quite important increase of the duration of the requests to baremaps on the same environments (less than 1 second in 0.7.1 and more than 10 seconds in 0.8.1).
When I look at the generated PG requests, I wonder if the where clause is at the right place.
For example in:
SELECT
  ST_ASMVT (MVTGEOM.*, 'ban_numero')
FROM
  (
    SELECT
      ST_ASMVTGEOM (
        T.GEOM,
        ST_TILEENVELOPE (18, 132979, 90364)
      ) AS GEOM,
      T.TAGS - 'id' AS TAGS,
      T.ID AS ID
    FROM
      (
        SELECT
          ROW_NUMBER() OVER (
            ORDER BY
              ADDOK_ID DESC
          ):: INTEGER AS ID,
          JSONB_BUILD_OBJECT(
            'id', ADDOK_ID :: TEXT, 'numero', NUMERO :: TEXT
          ) AS TAGS,
          GEOM
        FROM
          IGN.BAN_NUMERO
      ) AS T
    WHERE
      T.GEOM IS NOT NULL
      AND T.GEOM && ST_TILEENVELOPE (
        18,
        132979,
        90364,
        MARGIN => (64.0 / 4096)
      )
  ) AS MVTGEOM

if I change the where clause position like this:
SELECT
  ST_ASMVT (MVTGEOM.*, 'ban_numero')
FROM
  (
    SELECT
      ST_ASMVTGEOM (
        T.GEOM,
        ST_TILEENVELOPE (18, 132979, 90364)
      ) AS GEOM,
      T.TAGS - 'id' AS TAGS,
      T.ID AS ID
    FROM
      (
        SELECT
          ROW_NUMBER() OVER (
            ORDER BY
              ADDOK_ID DESC
          ):: INTEGER AS ID,
          JSONB_BUILD_OBJECT(
            'id', ADDOK_ID :: TEXT, 'numero', NUMERO :: TEXT
          ) AS TAGS,
          GEOM
        FROM
          IGN.BAN_NUMERO AS TOTO
        WHERE
          TOTO.GEOM IS NOT NULL
          AND TOTO.GEOM && ST_TILEENVELOPE (
            18,
            132979,
            90364,
            MARGIN => (64.0 / 4096)
          )
      ) AS T
  ) AS MVTGEOM

I get the previous durations.

Thanks for the feedback.
I vaguely recall this change, and it may be a regression. What surprises me is that I don't notice this performance issue when generating tiles for the basemap, which is a complex use case.
Could you provide the version of postgres and postgis you are using (query optimization improved and I use the latest versions; postgres 17 and postgis 3.5)?
Also, if you have a little time, could you also provide the query plans for your two queries? To generate them, you must prefix the query with EXPLAIN ANALYZE SELECT ....

Hi!
We are currently using postgresql 15 with a 3.1 postgis (to be confirmed).
I will send you the explain plan of the queries when I come back from
vacation (6th of January).
The slowness is particulary visible with address points.
Le dim. 29 déc. 2024, 08:52, Bertil Chapuis @.***> a
écrit :

Thanks for the feedback.
I vaguely recall this change, and it may be a regression. What surprises
me is that I don't notice this performance issue when generating tiles for
the basemap, which is a complex use case.
Could you provide the version of postgres and postgis you are using (query
optimization improved and I use the latest versions; postgres 17 and
postgis 3.5)?
Also, if you have a little time, could you also provide the query plans
for your two queries? To generate them, you must prefix the query with EXPLAIN
ANALYZE SELECT ....
—
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-baremaps/issues/909#issuecomment-2564643265,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXE4XKNWCXVL3MFJZHI2732H6S3JAVCNFSM6AAAAABUDCMUT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGY2DGMRWGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

Great, I will try to generate a small basemap with these versions and see if I notice the same performance issues.
The query plan may indicate if your database indexes are correctly used or not. It may also indicate if postgres 15's query optimizer is able to push the where clause down.
I will also be back january 6th, and should be able to dedicate a little time to this issue.


Add mirro-rs

Thanks - added in https://github.com/ratatui-org/awesome-ratatui/commit/876db3fd6bb8a0a1d5bc9f6ee97624f8b1e2e80a


Unabled [sic] to create Azure Web Site Management client

Receiving this error when the WebJob is running. I'm running the latest code (from master) commit 611773f so I'm wondering if something has broken since the last release (I see a lot of dependencies had changed)
It's happening after "Deleting answer" (which is after the existence of the files has been verified by the Let's Encrypt service).

AzureLetsEncryptRenewer.exe Error: 0 : Unabled to create Azure Web Site Management client System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary2.get_Item(TKey key)    at ACMESharp.PKI.CertificateProvider.GetProvider(String name, IReadOnlyDictionary2 initParams)
at LetsEncrypt.Azure.Core.Services.AcmeService.GetCertificate(AcmeClient client)
at LetsEncrypt.Azure.Core.Services.AcmeService.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()    at LetsEncrypt.Azure.Core.CertificateManager.<RequestAndInstallInternalAsync>d__10.MoveNext() ERROR: Encountered exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.    at System.Collections.Generic.Dictionary2.get_Item(TKey key)
at ACMESharp.PKI.CertificateProvider.GetProvider(String name, IReadOnlyDictionary2 initParams)    at LetsEncrypt.Azure.Core.Services.AcmeService.GetCertificate(AcmeClient client)    at LetsEncrypt.Azure.Core.Services.AcmeService.<RequestCertificate>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at LetsEncrypt.Azure.Core.CertificateManager.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at LetsEncrypt.Azure.Core.CertificateManager.RequestAndInstallInternal(IAcmeConfig config)
at LetsEncrypt.Azure.Core.CertificateManager.AddCertificate()
at OhadSoft.AzureLetsEncrypt.Renewal.Management.RenewalManager.Renew(RenewalParameters renewParams) in d:\a\1\s\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal\Management\RenewalManager.cs:line 53
at OhadSoft.AzureLetsEncrypt.Renewal.WebJob.AppSettings.AppSettingsRenewer.Renew() in d:\a\1\s\OhadSoft.AzureLetsEncrypt.Renewal\OhadSoft.AzureLetsEncrypt.Renewal.WebJob\AppSettings\AppSettingsRenewer.cs:line 31

Since you built it yourself, I'm guessing this is the issue (as it happened to me too):
https://github.com/ebekker/ACMESharp/issues/216#issuecomment-317200486

@ohadschn Yep, that looks to have fixed it. Adding the dependency on BouncyCastle and removing OpenSSL got me to the next step. It now fails when saving the .pfx but that's a different error!

Actually what I meant was doing this: https://github.com/ebekker/ACMESharp/issues/216#issuecomment-281977202. When I update the letsencrypt.azure.core dependency it will be using BouncyCastle like you mentioned and these issues should go away.

I updated the dependencies on my own fork to deploy (as I'm just experimenting currently so not expecting a stable release) and got past most of the certificate generation issues. I now get a failure (but no Exception) when trying to save the .pfx file so I'll probably hold out for the next official releases of the dependencies before trying again. I've written a Powershell add-in for ACMESharp that will allow us to use DNS auth with DNSMadeEasy so I'm not in a massive rush for this, just thought I'd try and help out where I could

Sounds good. Would you mind sharing the error you're getting so I have a heads up for when I update the dependencies?

Sure

[10/08/2017 20:37:34 > 4c3b89: INFO]  Saving Certificate to D:\home\siteextensions\letsencrypt\config\httpsacme-v01.api.letsencrypt.org\beta.ledgerscope.com-all.pfx
[10/08/2017 20:37:34 > 4c3b89: INFO] AzureLetsEncryptRenewer.exe Information: 0 : Saving Certificate to D:\home\siteextensions\letsencrypt\config\httpsacme-v01.api.letsencrypt.org\beta.ledgerscope.com-all.pfx
[10/08/2017 20:37:34 > 4c3b89: SYS INFO] Status changed to Failed
[10/08/2017 20:37:34 > 4c3b89: SYS ERR ] Job failed due to exit code -1073740940

The only thing I've been able to find out is that for some reason the pfx isn't getting saved, and that error looks to be some form of filesystem issue

Have you tried creating a file with the same name in manually the Kudu console? You can find it at https://FOO.scm.azurewebsites.net/DebugConsole where FOO is the name of your site.

I wasn't quite correct earlier. A .pfx file has been created (according to the filesystem) but it is 0 bytes in size. Not sure how that helps the debugging!

(and I can delete / re-create a pfx file in that folder through the console)

So clearly the last trace you're seeing is coming from this line. I'm not sure exactly what binary you're running but that part of the source hasn't changed for a while which is weird for two reasons

If you say the file was created, presumably that means the file stream was opened successfully so I would expect any error during the cert export to be caught by the catch block there and therefore trace the exact error.
The error code your webjob is getting implies a heap corruption. Interestingly, This SO thread mentions the same exit code and it too deals with certificates in WebJobs.

The latter thread suggested his executable ran fine on his local machine. Could you try that out?


@conda-forge-admin, please add user @rlouf

Additional comment:
No response

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added user @rlouf in conda-forge/blackjax-feedstock#2.


Create helper method: write_to_cache

Data that is cached on the file system could include non-ASCII text. The get_from_ cache method already accounts for the possibility that the system's Encoding.default_external setting may not be UTF-8 and therefore hardcodes that the files on disk should encode their data in UTF-8. There was not method for writing out those files in a UTF-8 format, so every caching spot needs to include that requirement.
With this PR, there is now a write_to_cache method that ensures that the data is written out in UTF-8, which get_from_cache can then read. There was only a single spot in this gem where the cache was used, and that code is updated to use the new write_to_cache method.
While I was in there, I also added some test coverage around get_from_cache and fixed a typo in a comment.

Looks great. Thanks for adding the tests!


enhancement: support /me switch

Here another nice function from IRC. Using the /me switch one can express things like

/me really would like this feature

as

@dietmarw* really would like this feature

Not important but nice to have.

This is actually part of the initial work effort when I started building slash command support. Should be baked :+1:

Sorry but it does not work as expected. It does now do the same as /nick but what it should do is display the current nick simply in boldface and with star at the end.

More or less styling- I just opted with the asterisk to be the prefix versus following the username. The functionality is there, we can always look into restyling it before we release :+1:

How strange. I'm on edfab8a0c337b7ba1fb890188f64470675bb9aa6 and just did once again:
npm install
npm start

Anything else I should do to test the current version?

try
gulp bundle
npm start

We'll finalize how to build the source correctly after we fix our testing framework

Ha you beat me to it. Was just saying that I ran a total clean up and a gulp bundle in addition :-)
Thanks. Now it works as expected.

Would it be possible to use the nick colour for the line instead of green for all who use /me ...?


Question: Getting number of Tweets per year

Hello everyone,
I'm new here so I'd like to ask for your patience :D
I'm trying to do a research to get the evolution of Twitter penetration in the world's population. Could anyone guide me to get the number of tweets and the number of active accounts (at least one tweet per year) per year, from 2006 to 2018?
Thanks in advance!

i think you neeed to check giyf.com


[GLUTEN-6388][CH] Support function format

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
(Fixes: #6388)
How was this patch tested?
uts in spark

https://github.com/ClickHouse/ClickHouse/pull/66257 is included in our branch