find() with conditions not working?

I have not yet gotten find() to work with conditions -- here are a couple of code examples that fail.  I could be doing this wrong.
Example 1
p = "/user/mapr/new_wdata2"
connection = maprdb.connect()
print("opening table %s" % p)
if connection.exists(p):
    connection.delete(p)
t = connection.create(p)
newdoc = maprdb.Document({"_id": "123", "foo": "000", "bar": "111"})
t.insert_or_replace(newdoc)
matching = t.find({"foo":"000"})
print(matching)

This code fails with:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/maprdb-0.0.1-py3.5.egg/maprdb/utils.py", line 98, in wrapper
ret = f(_args, *_kwargs)
File "/usr/local/lib/python3.5/site-packages/maprdb-0.0.1-py3.5.egg/maprdb/tables.py", line 51, in find
document_stream = self.java_table.find(columns) if columns else self.java_table.find()
RuntimeError: No matching overloads found. at native/common/jp_method.cpp:121
The same error occurs if I build a maprdb.Condition() by hand and calling t.find() using that as the first argument.
Example 2
Same as in Example #1, changing the 'find' line to:
matching = t.find({"foo":"000"}, columns=None)

Traceback (most recent call last):
File "test.py", line 15, in
matching = t.find({"foo":"000"}, columns=None)
File "/usr/local/lib/python3.5/site-packages/maprdb-0.0.1-py3.5.egg/maprdb/utils.py", line 98, in wrapper
ret = f(_args, *_kwargs)
TypeError: find() got multiple values for argument 'columns'

Hey,
3 years later, I am still seeing this problem :( - Not able to use find with condition. Has there been some work around this? My problem is similar to https://stackoverflow.com/questions/52529038/maprdb-find-by-condition-in-python-throws-exception-class-com-mapr-db-conditio.

Try using the maprdb-python-client package which is officially supported by MapR:
https://pypi.org/project/maprdb-python-client/#description
https://mapr.com/docs/home/MapR-DB/JSON_DB/GettingStartedPythonOJAI.html
You can install the package with pip install maprdb-python-client.
Here's an example of submitting a conditional query:
from mapr.ojai.ojai_query.QueryOp import QueryOp
from mapr.ojai.storage.ConnectionFactory import ConnectionFactory

# Create a connection to data access server
connection_str = 'nodeb:5678?auth=basic;user=mapr;password=mapr;ssl=false;'
connection = ConnectionFactory.get_connection(connection_str=connection_str)

# Get a store and assign it as a DocumentStore object
store = connection.get_store('/crm_data')

# Create an OJAI query
query = {"$where": {"$like": {"phone_number": '%552-2152%'}}}

# options for find request
options = {'ojai.mapr.query.result-as-document': True}

# fetch OJAI Documents by query
query_result = store.find(query, options=options)

# Print OJAI Documents from document stream
for doc in query_result: print(doc.as_dictionary())

# close the OJAI connection
connection.close()

For more info about the conditional query operators, see:
https://mapr.com/docs/61/MapR-DB/JSON_DB/OJAIQueryConditionOperators.html#QueryingJSONDocumentFields__section_rdp_sjd_kdb
Here's another reference for getting started with maprdb:
https://github.com/mapr-demos/mapr-db-60-getting-started


question about proxy

Hi,
I'm trying to proxy all requests /api/* to localhost:3000/api/*. No luck for the moment.
According to webpack-dev-server, I tried to add the following snippet in dev object of file config/index.js. But it didn't take effect.
proxyTable: {
      '/api': {
        target: 'http://localhost:3000',
        secure: false,
        changeOrigin: true // No matter this is true or false
      }
    }

The browser kept failing with 404 for API requests e.g. "http://localhost:8080/api/login".
Questions:

How to correctly proxy all requests from localhost/api/*(front-end) to localhost:3000/api/*(back-end)?
I found that I will always land on index.html with arbitrary link e.g. http://localhost:8080/123/abc/!@$#/. Why?

target: 'http://localhost:3000/api',
That's because we have set the historyFallback option of the webpack)dev-server, which is required to make vue-router work in history mode. You can read more about that in the router docs.

For further such general questions, I would recommend to visit forum.vuejs.org or chat.vuejs.org

Hi @LinusBorg  Thanks for your reply!
The first one actually should be target: 'http://localhost:3000 according to dev-server.
My problem was that, after changing the webpack.dev.config.js, I have to ctrl+c to shut down the dev-server and restart npm run dev. The old node application is NOT shut down along with it and occupies port 8080; and the new node application starts at port 8081 (I didn't notice that!). So if I visit localhost:8080 I got 404; if localhost:8081 I got 200.


Create feature flag library for pilot

fixes: #8960
/cc @rshriram

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: nmittler
If they are not already assigned, you can assign the PR to them by writing /assign @nmittler in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/OWNERS
pkg/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hzxuzhonghu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-mixer-no_auth-mcp.sh
b8888aa23f6b8e9544d47951c23ead3508dae248
link
/test e2e-mixer-no_auth-mcp

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hzxuzhonghu: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
6fddabd2803705128c3ff149867e3d854a99cc1b
link
/test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: rshriram
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/OWNERS [rshriram]
pkg/OWNERS [rshriram]
tests/OWNERS [rshriram]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hzxuzhonghu: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
6fddabd2803705128c3ff149867e3d854a99cc1b
link
/test istio-pilot-multicluster-e2e

prow/istio-unit-tests.sh
6fddabd2803705128c3ff149867e3d854a99cc1b
link
/test istio-unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hzxuzhonghu: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
6fddabd2803705128c3ff149867e3d854a99cc1b
link
/test istio-pilot-multicluster-e2e

prow/istio-unit-tests.sh
6fddabd2803705128c3ff149867e3d854a99cc1b
link
/test istio-unit-tests

prow/istio-pilot-e2e-envoyv2-v1alpha3-mcp.sh
6fddabd2803705128c3ff149867e3d854a99cc1b
link
/test istio-pilot-e2e-envoyv2-v1alpha3-mcp

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test istio-unit-tests

Why is this checked in istio/pkg? This seems awfully Pilot specific.

so that others can use similar mechanisms..


Feature/decorate class

I have completed the required implementation of the School Library Application according to the stipulated requirements:
The following features were implemented:
Decorator Classes

[x] Created class nameable|converted person class to nameable
[x] Implemented nameable and adding nameable inheritance to person class
[x] Implemented capitalize decorator
[x] Implemented trimmer decorator class and decorated person class with test_file data

In addition, I have fulfilled the following project requirements:
General requirements

There are no linter errors.
Used correct Gitflow.
Documented my work in a professional way.
Followed the list of best practices for Ruby.

Please kindly review my implementation and suggest any changes and improvements.
I look forward to your feedback.
Thank you 🙏🏻

Best regards,

I have completed implementing the suggested changes.
Changes made:

[x] Added require relative nameable to person class(Inheritance)
[x] Implemented super to resolve missing super in the constructor method.

Please kindly review my implementation and suggest any changes and improvements.
I look forward to your feedback.
Thank you 🙏🏻

Best regards,


logging: Disregard null device token.

This is normal on (at least) the Android emulator when running without
Google Play services. (Presumably this would also be true on physical
devices without notification services.)

Thanks @ray-kraesig!
The commit message says "logging", but it looks like this actually bails out from the non-logging logic after that, too. Seems like that might be fine, given the token is null -- but I'd want to look through to be sure of that. Would you confirm that's the right thing, and update the commit message? (And/or the code, if a variation turns out to be better.)

It bailed out mostly because the logging logic that it would currently have hit would also bail out. The only effective change there would have been to not log if the device token is null.
However, that is a change from the pre-#3888 code's handling of null, and the ultimate behavior is subtly different... although not really in any end-user-visible way. I've restored it anyway.
(I'm weakly of the opinion that the right thing to do on null is to add a mostly-passive "notification" in Settings, warning the user that push-notifications couldn't be set up for some reason – but that implies a whole heap of questionable UI fiddling that I probably wouldn't believe to be worth the trouble yet even if I were strongly of that opinion.)

Updated based on offline discussion. Notable functional changes include loss of the [Object object] check, which removes any use for additional circumlocution.

This PR – or something close enough to it – was merged as part of #3910. Closing.


DBZ-2083 fix docs for Apicurio Avro converter

After https://github.com/debezium/docker-images/pull/173/ and https://github.com/debezium/docker-images/pull/175/ this should update the docs to use new ENABLE_APICURIO_CONVERTERS env var to enable Apicurio converters.

@gunnarmorling I updated the PR according to your comments

Thanks, @rk3rn3r. Could you going forward please always add a link to the Jira issue to the PR description? Makes it a bit easier to handle everything when reviewing. Thanks again!


BorderZero

BorderZero should be always false because border: 0; is not equal border: none;
http://dabblet.com/gist/8716224

Isn't this like saying background: blue; is not equal to background: no-repeat;?
You're providing values to the shorthand that override completely different properties.

Hey @marcobiedermann, thanks for raising this potential source of confusion.
It seems like the BorderZero linter is misleading. Specifying none is indeed semantically different than 0: the former is specifying border-style while the latter is specifying border-width.
Perhaps there's a reconciliation here in that usually when developers specify none they meant to use 0?
@lencioni It looks like you originally added this linter in in 1fe3d5fa. Did you have any thoughts on this issue?

An option could be added to use none instead of 0. Then teams could maintain consistency but have the choice. The description could be expanded to something like border: 0;` is preferred over `border: none;`, otherwise user property `border-style

@lencioni It looks like you originally added this linter in in 1fe3d5f. Did you have any thoughts on this issue?

No, I don't think it matters much either way. I think the 0 behavior is likely less surprising for developers, but what matters most is consistency.

I've added some clarification to the documentation in d19d990. Thanks for your input!


Is there an option to remove the 'legends' from pie/donut charts ?

As per my requirement, I don't have to show the legend at all in my donut chart. Is there an option for the same ?

Yes, showLegend: false


occasionally cannot stop docker containers on windows machines

After this issue https://github.com/docker/machine/issues/2707, now I see docker stop container hanging forever.
MINGW64 ~
$ docker rm 34d4b228cd55
Error response from daemon: Conflict, You cannot remove a running container. Stop the container before attempting removal or use -f
Error: failed to remove containers: [34d4b228cd55]

MINGW64 ~
$ docker stop 34d4b228cd55

hangs forever, cannot remove it forcefully, only option is restart my laptop....
default docker-machine logs

autologin        boot2docker.log  docker.log       parallels.log    udhcp.log        userdata.log     wtmp
docker@default:~$ tail -f /var/log/*.log
==> /var/log/boot2docker.log <==
       valid_lft forever preferred_lft forever
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:19:6b:bf brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe19:6bbf/64 scope link
       valid_lft forever preferred_lft forever
-------------------
Need TLS certs for default,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>
-------------------

==> /var/log/docker.log <==
time="2016-01-22T08:40:57.092680613Z" level=debug msg="Calling GET /v1.21/containers/json"
time="2016-01-22T08:40:57.092721102Z" level=info msg="GET /v1.21/containers/json"
time="2016-01-22T08:40:57.092736471Z" level=debug msg="Warning: client and server don't have the same version (client: 1.9.0, server: 1.9.1)"

==> /var/log/udhcp.log <==
Fri Jan 22 08:41:00 UTC 2016 ifconfig eth1 <IP_ADDRESS>  netmask <IP_ADDRESS>

==> /var/log/docker.log <==
time="2016-01-22T08:41:14.747238390Z" level=debug msg="Calling DELETE /v1.21/containers/34d4b228cd55"
time="2016-01-22T08:41:14.747277670Z" level=info msg="DELETE /v1.21/containers/34d4b228cd55"
time="2016-01-22T08:41:14.747292664Z" level=debug msg="Warning: client and server don't have the same version (client: 1.9.0, server: 1.9.1)"
time="2016-01-22T08:41:14.747404328Z" level=error msg="Handler for DELETE /v1.21/containers/34d4b228cd55 returned error: Conflict, You cannot remove a running container. Stop the container before attempting removal or use -f"
time="2016-01-22T08:41:14.747419999Z" level=error msg="HTTP Error" err="Conflict, You cannot remove a running container. Stop the container before attempting removal or use -f" statusCode=409
time="2016-01-22T08:41:25.470196710Z" level=debug msg="Calling POST /v1.21/containers/34d4b228cd55/stop"
time="2016-01-22T08:41:25.470234491Z" level=info msg="POST /v1.21/containers/34d4b228cd55/stop?t=10"
time="2016-01-22T08:41:25.470249705Z" level=debug msg="Warning: client and server don't have the same version (client: 1.9.0, server: 1.9.1)"
time="2016-01-22T08:41:25.470398875Z" level=debug msg="Sending 15 to 34d4b228cd55046856411b63fd52c815f794b382f3fe577eba4cb9c150b6b618"
time="2016-01-22T08:41:35.470812965Z" level=info msg="Container 34d4b228cd55046856411b63fd52c815f794b382f3fe577eba4cb9c150b6b618 failed to exit within 10 seconds of SIGTERM - using the force"
time="2016-01-22T08:41:35.470856447Z" level=debug msg="Sending 9 to 34d4b228cd55046856411b63fd52c815f794b382f3fe577eba4cb9c150b6b618"
time="2016-01-22T08:41:45.471442259Z" level=info msg="Container 34d4b228cd55 failed to exit within 10 seconds of kill - trying direct SIGKILL"

==> /var/log/parallels.log <==

==> /var/log/udhcp.log <==
Fri Jan 22 08:00:57 UTC 2016 ifconfig eth0 <IP_ADDRESS>  netmask <IP_ADDRESS>
Fri Jan 22 08:00:57 UTC 2016 deleting routers
Fri Jan 22 08:00:57 UTC 2016 route add default gw <IP_ADDRESS> dev eth0 metric 0
Fri Jan 22 08:00:57 UTC 2016 reset /etc/resolv.conf
Fri Jan 22 08:00:57 UTC 2016 adding dns <IP_ADDRESS>
Fri Jan 22 08:00:58 UTC 2016 ifconfig eth1 <IP_ADDRESS>  netmask <IP_ADDRESS>
Fri Jan 22 08:11:00 UTC 2016 ifconfig eth1 <IP_ADDRESS>  netmask <IP_ADDRESS>
Fri Jan 22 08:21:00 UTC 2016 ifconfig eth1 <IP_ADDRESS>  netmask <IP_ADDRESS>
Fri Jan 22 08:31:00 UTC 2016 ifconfig eth1 <IP_ADDRESS>  netmask <IP_ADDRESS>

==> /var/log/userdata.log <==
tar: A lone zero block at 8

Environment: Windows 7 laptop
$ docker version
Client:
Version: 1.9.0
API version: 1.21
Go version: go1.4.3
Git commit: 76d6bc9
Built: Tue Nov 3 19:20:09 UTC 2015
OS/Arch: windows/amd64

Server:
Version: 1.9.1
API version: 1.21
Go version: go1.4.3
Git commit: a34a1d5
Built: Fri Nov 20 17:56:04 UTC 2015
OS/Arch: linux/amd64

$ docker info
Containers: 32
Images: 279
Server Version: 1.9.1
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 343
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.13-boot2docker
Operating System: Boot2Docker 1.9.1 (TCL 6.4.1); master : cef800b - Fri Nov 20 19:33:59 UTC 2015
CPUs: 1
Total Memory: 1.956 GiB
Name: default
ID: AXXY:B6JJ:6M6W:LXME:VWED:BNEA:4MKU:LDP5:TWKR:CCUH:3SKV:BSBE
Debug mode (server): true
File Descriptors: 28
Goroutines: 46
System Time: 2016-01-16T02:28:33.17774389Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
provider=virtualbox

This also helped:
docker-machine stop ..

Even commits don't work because of the warning which had always been there?
docker commit -a "krishna" -m "cassandra-2.1.12 without ulimit" --pause=true 34d4b228cd55
time="2016-01-22T19:39:04.678840891Z" level=debug msg="Calling POST /v1.21/commit"
time="2016-01-22T19:39:04.678878218Z" level=info msg="POST /v1.21/commit?author=krishna+%3E&comment=cassandra-2.1.12+without+ulimit&container=34d4b228cd55&repo=&tag="
time="2016-01-22T19:39:04.678894590Z" level=debug msg="Warning: client and server don't have the same version (client: 1.9.0, server: 1.9.1)"

This looks similar to https://github.com/docker/docker/issues/18180.

Before giving up on docker for the first time, downgraded to 1.9 and everything works fine:
https://github.com/boot2docker/boot2docker/issues/1099#issuecomment-174440791

@krishna81m do you still have this issue on the current boot2docker / docker toolbox? If this is indeed caused by https://github.com/docker/docker/issues/18180, then this should be resolved in the latest version of boot2docker (which has a patched kernel for that issue)

I'm going to go ahead and close this, because I think this is fixed in (boot2docker) 1.10, but feel free to continue the discussion


Bluetooth Host: Enables Bluetooth shell on G24-DK2601B

Increase stack size to 4096 in case of shell usage
Set HCI_RESERVE to 1 if BT_SILABS_HCI is used

Is there anything more to be done on my side?

Is there anything more to be done on my side?

I don't think so, thanks for the updates! Now we just need to wait for the code freeze to be over to merge this.

code freeze to be over

Can we merge this @aescolar ?

Can we merge this @aescolar ?

This PR is gated by the merge of the the collab-hwmv2 branch which should happen tomorrow. Sorry for the inconvenience.

Needs converting to hwmv2

You're right it seems the path to this board boards/arm/efr32xg24_dk2601b/  does not exist anymore, couldn't find the new location though, any tips?
Kconfig at subsys/bluetooth/host/Kconfig seems fine


Gadget Busy Error

Whenever I attempt to load my scheme file (a usb gadget that’s implementing a ffs.mtp) I get a BUSY code back & a “gadget enabled” error message. But to the best of my knowledge no attempt to load the .scheme file has happened yet.
(Although this isn’t strictly gt related but might be worth bearing in mind: even when I used direct calls to configfs; mkdir function/ffs.mtp for example, I get a device or resource busy error.)
The unit I’m working with is able to load & enable other gadgets ok, just not ffs ones.
Thanks for your time!

If you could give some way to reproduce this, such as a script running
gt commands and the same for configfs, that might be helpful for anyone
who attempts to work on it. That said, it sounds like this is a Linux
kernel bug, either in the gadget stuff or a USB hardware driver.
--
bye,
pabs
https://bonedaddy.net/pabs3/


[Bug] datazoom配置滚动条如何禁用缩放，只能平移滚动,固定滚动条宽度

Version
5.3.2
Link to Minimal Reproduction
none
Steps to Reproduce
dataZoom: [{
type: 'inside',
zoomLock: true,
xAxisIndex: [0],
start: 0,
end: 6,
maxSpan: 6,
mixSpan: 6,
handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z',
handleSize: '110%',
handleStyle: {color: "#d3dee5"},
textStyle: {color: "#0199FF"},
borderColor: "#90979c",
height: 30,
bottom: 10,
},
{
start: 0,
end: 20,
}
],
Current Behavior
在5.3.2版本滑块配置zoomLock和maxSpan后依据能被拉伸缩小，比4.x版本更严重，如何设置固定宽度，禁止缩放和拉伸

Expected Behavior
希望x轴滑块固定宽度，禁止缩放和拉伸
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
No response

not-a-bug
Check syntax - it's minSpan, not mixSpan. Also there is a second (redundant?) dataZoom in the code.
Demo Code works as expected.

not-a-bug Check syntax - it's minSpan, not mixSpan. Also there is a second (redundant?) dataZoom in the code.
Demo Code works as expected.

try fix mixSpan to minSpan，and delete second redundant,still can't fixed scroll bar width.

ok, I see it now.
The zoom scroll window could be stretched or shortened if mouse is clicked and dragged inside (with cross ✚ pointer).
Does not happen when using both side-handles or upper bar (with left-right arrow <-> pointer).
Noticed also that the bug affects the scroll window visualization only, the zoom range remains correct.

ok, I see it now. The zoom scroll window could be stretched or shortened if mouse is clicked and dragged inside (with cross ✚ pointer). Does not happen when using both side-handles or upper bar (with left-right arrow <-> pointer). Noticed also that the bug affects the scroll window visualization only, the zoom range remains correct.

is there any property to avoid this inside dragged,it is so easy to trigger,but I want this fixed-width to slide.

is there any property to avoid this inside drag

could not find any.  shadowOffsetY was promising, but it's hard-coded not to go lower than the middle of zoom window.
So the user can still click the bottom of the zoom window and drag/stretch.
mhandleWidth = 30; // ....
      moveHandleSize: mhandleWidth,
      moveHandleStyle: {
        color: 'red', // transparent
        shadowColor: 'green', shadowOffsetY: mhandleWidth,
        opacity: 0.5
      },
      handleStyle: { color: 'blue', borderWidth: 22, borderColor: 'blue'},
      handleSize: '120%',

As a last resort, ask users to use the (big) handles...

is there any property to avoid this inside drag

could not find any. shadowOffsetY was promising, but it's hard-coded not to go lower than the middle of zoom window. So the user can still click the bottom of the zoom window and drag/stretch.
mhandleWidth = 30; // ....
      moveHandleSize: mhandleWidth,
      moveHandleStyle: {
        color: 'red', // transparent
        shadowColor: 'green', shadowOffsetY: mhandleWidth,
        opacity: 0.5
      },
      handleStyle: { color: 'blue', borderWidth: 22, borderColor: 'blue'},
      handleSize: '120%',

As a last resort, ask users to use the (big) handles...

ok，thanks!

https://echarts.apache.org/zh/option.html#dataZoom-slider.zoomLock

My Demo Code has already zoomLock: true- it does not help or it does not work.

turn off brushSelect

turn off brushSelect

ok,it works,thx.


Model saving/loading is not trivial

Add examples for pytorch and tensorflow on how to save and load the custom TNN architecture

Hi Wilhelm. Just wanted to catch up and ask if there are any updates regarding the exportation of the model. Thanks

Well for pytorch it, indeed, seems trivial
model.save(mdl_file_path)  # save
model = torch.jit.load(mdl_file_path)  # load

This just worked in the torch notebook. I will add it there.
For tensorflow I will need to check

released v0.1.1 with a demo for model save and load for pytorch and tensorflow


Make a new Pugjs adder

The old community adder for Pugjs doesn't work since the svelte-add rewrite. I contacted the author of the community pugjs adder some time ago and only got a workaround description, but since their has been no uppdate. So, could you add an rewritten official Pugjs adder?

We generally don't recommend folks use pug in their templates and even if you do want to I imagine it should be fairly easy to setup svelte-preprocess. I think this one would be better as a community adder and not something we'd officially support, so I'm going to go ahead and close it


Add LM Generalist Finetuning

The training scripts for lm generalist datasets (still need to test it and add necessary docstrings)

This is good to go (tested it for a few epochs, works fine - and much faster).
The above PR also expects this PR from torch-em to be merged simultaneously (to add necessary info about NeurIPS CellSeg dataset)


fix unique= when struct field is a nil pointer

Fix https://github.com/go-playground/validator/issues/749
Fixes Or Enhances
Make sure that you've checked the boxes below before you submit PR:

[x] Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

Coverage increased (+0.007%) to 74.19% when pulling ad2157facf1368e157f4f19e9f0d084c59f8718c on yansal:fix-unique-equals-when-struct-field-is-a-nil-pointer into c7e0172e0fd176bdc521afb5186818a7db6b77ac on go-playground:master.


unable to validate table values in opts

when specifying any of the table fields in the opts, like:
{
  border = {
    ...
  }
}

or
{
  font = {
    ...
  }
}

neovim will error with:
..im/core/lazy/charm-freeze.nvim/lua/charm-freeze/init.lua:51: border: expected , got table
this is caused by:
-- lua/charm-freeze.nvim L48-55
-- Ensure that the user has not provided any options that are not allowed
if M.allowed_opts then
  for k, v in pairs(opts) do
    vim.validate({
      [k] = { v, M.allowed_opts[k] },
    })
  end
end

which for any of the table fields will evaluate to:
vim.validate({
      ['border'] = { { radius = 2, width = 1, color = '...' }, { radius = "number", width = "number", color = "string", } },
    })

this is invalid.

i suggest checking if the value in M.allowed_opts[k] is a table and then validate its fields separately.
i could create a quick pr if that is necessary


Started work on the Performance Page

I couldn't open the app, but using the documentation, I've started work on the page already.

!bounty 15


No polymorphism available for can modules

Since CAN0, CAN1, and CAN2 is of different types it's hard to reuse code when interfacing this hardware.
The .svd should be changed so svd2rust will generate 3 different instances of the same struct, or have the different structs implement a common trait.

Hello. I am working on a project, where we use this Peripheral Access Crate. As you have noted, CAN1 and CAN2 are not generated as separate instances to the CAN struct, but as pointers to the CAN0 struct. I have also noted that the newest version of s32k144.rs does not generate separate LPUART1 and LPUART2 instances either.
I have noticed that release version 0.4.0 on docs.rs contains these separated structs, but since this version is deprecated, it might be better to fix the current version rather than reverting to an old version. I have found an .svd file for the s32k144 that generates CAN1 and CAN2 as separate structs when using svd2rust, as well as LPUART1 and LPUART2.

Hello @kjetilkjeka. I am working on a project where this PAC is used. As you have noted CAN1 and CAN2 are not generated as separate instances. I have also noted that LPUART1 and LPUART2 aren't generated as separate instances either.
Since the latest release of this package, svd2rust has been updated several times, where some of the latest releases generates a more generic and more compact API.
Do you mind if I work this into a new release of the s32k144.rs crate?

@jfhansen, feel free to create a pull-request and I'll take a look at it.

@tmplt, ok, that sounds good. I will do that when I have tested the modules added to the crate.
Would you mind, if ADC channel Status and Control registers (SC1A-SC1P) are also defined as an array, instead of as 16 separate registers?


Can't access the table resource

I need to update the metadata on a lot of tables, so I thought I would write a small F# script to do it. To figure out if a table need to be updated I need to look at the table resource data, but it seems like the resource is not properly popluated. Short example of what I'm doing:
#load ".paket/load/net45/Google.Cloud.BigQuery.V2.fsx"

open Google.Cloud.BigQuery.V2

let client = BigQueryClient.Create("projectId")

let datasetsList = ["datasets"; "that"; "contains"; "tables"]

let datasets =
    datasetsList
    |> List.map (fun datasetName -> client.GetDataset(datasetName))

datasets
|> List.map (fun (ds:BigQueryDataset) -> ds.ListTables() |> Seq.toList)
|> List.concat
|> List.map (fun table -> table.FullyQualifiedId, table.Resource.CreationTime, table.Resource.FriendlyName, table.Resource.CreationTime, table.Resource.Description, table.Resource.ETag, table.Resource.Id, table.Resource.Kind)
|> List.iter (printfn "%A")

I would expect this to print the all the data specified in the last map, but instead only the FullyQualifiedId is printed, all the fields on the Resource property is printed as null.
To run the code above do the following:

Follow instructions here: https://fsprojects.github.io/Paket/getting-started.html
Add nuget: mono .paket/paket.exe add Google.Cloud.BigQuery.V2 -V 1.0.0-beta17
Generate load script: mono .paket/paket.exe generate-load-scripts --framework net45
Make sure the code above is in a file in the same folder as the .paket folder, so the #load directive can find the generated load script.

Workaround
To get the actual resource data you need to use dataset.GetTable. I think this is a design that most likely will result in some issues in the long run.

This is inherent in the list tables API I'm afraid - it simply doesn't return all the data within a table.
That said, it looks like there is more information that we could populate here - in particular, any time partitioning and the creation time. The description and etag simply aren't present in the data.
The Id, Kind, FriendlyName and TableReference should be populated though - are you saying that's not the case?

(Assigned both "bug" and "enhancement request" here - if the properties we expect to populate aren't being populated, that's a bug I can fix. I can also populate more properties based on the response. The properties that aren't in the list tables result would be an API feature request, which I could potentially log with the API team if you want.)

No need to file this to the API team, since I think they are doing the right thing. For me it is the .NET API that is a little bit awkward as I see it (might be a personal opinion). The Table data that is returned from list and get or two different types of resources as I see it, yes they rely on the same underlying data but they aren't the same since they differ in data. I would rather have another "smaller" type in the .NET API that was returned by the .NET API for list, and maybe that type might be used in the result of get as well. Mainly to avoid having objects with all null.
You're right regarding the fields that should have value, they does. It was some line breaks that made it hard to read.
This is in no way a huge problem for me, I discovered it now when I was doing a one time job, but I found the API strange so I filed the issue.

In your case it makes it more awkward - in other cases it makes it simpler. While we could introduce inheritance into the mix (a sort of BigQueryBaseTable followed by BigQueryFullTable and BigQueryListTable or similar), I think it would make the whole API more complicated. (Additionally, while at the moment we don't have any way of saying "fetch me a table only populating a certain set of fields" it's entirely possible we might in the future. The API already supports that with the fields query parameter.)
Once you're aware of the difference, it's very easy to work with it, fetching the table if you need the full details. (You can easily check if you've got the details you want.)
I've currently got the Resource property documented as:

The data within the resource may be incomplete, depending on how it was obtained.

Would it have been helpful to you if that comment had been more specific? Perhaps if the ListTables methods indicated that the resources were incomplete in some cases?

Didn't actually read the comment, I almost always browse the properties and expect them to be there. It can have something with me using F# to do, since I don't expect null.
I definitely see that it is simpler in some situation, both in implementation and to some extent consuming the API. But simpler might result in unexpected bugs as I see it.
I totally agree that inheritance will make things more complicated. Also, if you want to support the feature where you specify fields, as you mention, then this is probably the best route to take.
This is no biggie for me, I just raised it because I thought it was a bug with all those, for me, unexpected null values. Since it seems to be by design I think you can close it.

Will leave this open for now to remind me to add the extra properties that we can copy, but will then close - thanks for the confirmation.


update images to wine 5

Soon wine 5 stable will be released. Update the images for 1.2.1

updated for 1.3.0 in devel branch


Modify base.html template to support optional sticky footer

The neatest way to have the footer stick to the bottom of the browser window that I've found is to use the flexbox pattern from https://css-tricks.com/couple-takes-sticky-footer/

    content

html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
.content {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
}

I tried this in a custom plugin but it ended up having to duplicate the entire base.html template just to get a wrapper around the not-footer content.
I think Datasette's own base.html template should have this wrapper element instead.

OK, now the following optional CSS gives us a sticky footer:
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
.not-footer {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

Pasting that CSS into the styles editor in the developer tools on https://latest.datasette.io/ has the desired effect: footer at the bottom of the window unless the page is too long, in which case the footer is at the bottom of the scroll.

I used the sticky footer mechanism in datasette.app: https://github.com/simonw/datasette.app/issues/3


Wrong resource pulled from raw folders. (theme issue)

Version
Media3 1.2.0
More version details
No response
Devices that reproduce the issue
Samsung S20 FE 5G
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
No
Reproduction steps

Add a video in raw and raw-night. (each having the same resource ID).
Set your app theme to night mode.
Set your device theme to light mode.
Load the video with exo player.

Expected result
The video will be loaded according to the app theme. (in this case, from raw-night)
Actual result
The video is loaded according to the phone theme (from raw)
Media
not applicable
Bug Report

[X] You will email the zip file produced by adb bugreport to<EMAIL_ADDRESS>after filing this issue.

I tried this in the demo app by adding two text files with different content:

raw/test.txt: day time text file
raw-night/test.txt: night time text file

I then added the following code to SampleChooserActivity.onCreate, to compare the behaviour of ExoPlayer's RawResourceDataSource to the Android framework's Resource.openRawResource:
Log.w("issue-908", "raw.test=" + R.raw.test);
try (InputStreamReader isr =
    new InputStreamReader(getResources().openRawResource(R.raw.test))) {
  Log.w("issue-908", "From openRawResource: content=" + CharStreams.readLines(isr));
} catch (IOException e) {
  throw new RuntimeException(e);
}

RawResourceDataSource rawResourceDataSource = null;
try {
  rawResourceDataSource = new RawResourceDataSource(this);
  rawResourceDataSource.open(
      new DataSpec(
          new Uri.Builder()
              .scheme(ContentResolver.SCHEME_ANDROID_RESOURCE)
              .path(Integer.toString(R.raw.test))
              .build()));
  byte[] bytes = DataSourceUtil.readToEnd(rawResourceDataSource);
  Log.w("issue-908", "From RawResourceDataSource: content=" + Util.fromUtf8Bytes(bytes));
} catch (IOException e) {
  throw new RuntimeException(e);
} finally {
  DataSourceUtil.closeQuietly(rawResourceDataSource);
}

With my Pixel 7a device in 'day mode' (i.e. dark theme disabled in settings), I observed:
raw.test=2131886081
From openRawResource: content=[day time text file]
From RawResourceDataSource: content=day time text file

And in 'night mode' with dark theme enabled:
raw.test=2131886081
From openRawResource: content=[night time text file]
From RawResourceDataSource: content=night time text file

i.e. it seems that RawResourceDataSource is respecting the device's dark mode toggle, and I'm not able to reproduce the issue you describe.
Please can you add more detail about your setup, in particular what's different from my repro attempt.

Hi Ian,
The issue is regarding videos in dark and light mode.
Try reproducing it by placing different videos (I was using .mp4) under the same name in raw and raw-night, then loading them with ExoPlayer.

raw/video.mp4
raw-night/video.mp4

val videoUri = RawResourceDataSource.buildRawResourceUri(R.raw.video)
val mediaItem = MediaItem.fromUri(videoUri)
If your app is in dark theme, but your phone in light theme, this always follows the system and not the app.
Restricted
From: Ian Baker @.>
Date: Thursday, 21 December 2023 at 17:57
To: androidx/media @.>
Cc: Angela Dimovska @.>, Author @.>
Subject: Re: [androidx/media] Wrong resource pulled from raw folders. (theme issue) (Issue #908)
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

I tried this in the demo app by adding two text files with different content:

raw/test.txt: day time text file
raw-night/test.txt: night time text file

I then added the following code to SampleChooserActivity.onCreate, to compare the behaviour of ExoPlayer's RawResourceDataSourcehttps://developer.android.com/reference/androidx/media3/datasource/RawResourceDataSource to the Android framework's Resource.openRawResourcehttps://developer.android.com/reference/android/content/res/Resources#openRawResource(int):
Log.w("issue-908", "raw.test=" + R.raw.test);
try (InputStreamReader isr =
new InputStreamReader(getResources().openRawResource(R.raw.test))) {

Log.w("issue-908", "From openRawResource: content=" + CharStreams.readLines(isr));
} catch (IOException e) {
throw new RuntimeException(e);
}
RawResourceDataSource rawResourceDataSource = null;
try {
rawResourceDataSource = new RawResourceDataSource(this);
rawResourceDataSource.open(
  new DataSpec(

      new Uri.Builder()

          .scheme(ContentResolver.SCHEME_ANDROID_RESOURCE)

          .path(Integer.toString(R.raw.test))

          .build()));

byte[] bytes = DataSourceUtil.readToEnd(rawResourceDataSource);
Log.w("issue-908", "From RawResourceDataSource: content=" + Util.fromUtf8Bytes(bytes));
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
DataSourceUtil.closeQuietly(rawResourceDataSource);
}
With my Pixel 7a device in 'day mode' (i.e. dark theme disabled in settings), I observed:
raw.test=2131886081
From openRawResource: content=[day time text file]
From RawResourceDataSource: content=day time text file
And in 'night mode' with dark theme enabled:
raw.test=2131886081
From openRawResource: content=[night time text file]
From RawResourceDataSource: content=night time text file
i.e. it seems that RawResourceDataSource is respecting the device's dark mode toggle, and I'm not able to reproduce the issue you describe.
Please can you add more detail about your setup, in particular what's different from my repro attempt.
—
Reply to this email directly, view it on GitHubhttps://github.com/androidx/media/issues/908#issuecomment-1866644791, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEZP6MD347EVBO7NOSZHO5TYKRS6TAVCNFSM6AAAAABA3JXL6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRWGY2DINZZGE.
You are receiving this because you authored the thread.Message ID: @.***>

Ah I missed that your repro steps require the system to be in day mode and the app in night mode. I adapted the demo app to behave like this as follows (based on https://developer.android.com/develop/ui/views/theming/darktheme):
Change the PlayerTheme to inherit from Theme.AppCompat.DayNight.NoActionBar
<style name="PlayerTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
  <item name="android:windowBackground">@android:color/black</item>
</style>

Change the mode programatically before the reading code described above in https://github.com/androidx/media/issues/908#issuecomment-1866644791:
UiModeManager uiModeManager = getSystemService(UiModeManager.class);
uiModeManager.setApplicationNightMode(UiModeManager.MODE_NIGHT_YES);

I continue to observe the night samples being read by both Android's openRawResource and media3's RawResourceDataSource:
From openRawResource: content=[night time text file]
From RawResourceDataSource: content=night time text file

Please can you describe what is different in your app to my repro example? Currently it seems to me that media3's RawResourceDataSource is acting consistently with the framework's resource handling.
I don't think it matters whether the file being read is a text file or a video file - both are 'raw resources' and just being treated as opaque bytes.

Hi Ian,
Sorry for the delayed response, I was away from work.
This is the current implementation in my app.

This is the way I change the app theme to be different from the phone (light or dark):

AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)

This is the way I have my videos saved in my resources folders:

raw/video.mp4
raw-night/video.mp4

Here is how I load the video:

@Composable
fun BasicExoPlayer(modifier: Modifier = Modifier, @RawRes rawResourceId: Int) {
val context = LocalContext.current

val videoUri = RawResourceDataSource.buildRawResourceUri(rawResourceId)

val mediaItem = MediaItem.fromUri(videoUri)

val exoPlayer = remember {

    ExoPlayer.Builder(context).build().apply {

        setMediaItem(mediaItem)

        repeatMode = Player.REPEAT_MODE_ONE

        this.prepare()

        this.playWhenReady = true

    }

}

CompositionLocalProvider(LocalExoPlayer provides exoPlayer) {

    VideoPlayer(modifier, rawResourceId)

}

}
fun VideoPlayer(modifier: Modifier = Modifier, @RawRes rawResourceId: Int) {
val context = LocalContext.current

val exoPlayer = LocalExoPlayer.current

DisposableEffect(

    AndroidView(

        modifier = modifier,

        factory = {

            PlayerView(context).also {

                it.player = exoPlayer

                it.useController = false

                it.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIXED_WIDTH

            }

        }

    )

) {

    onDispose {

        exoPlayer.release()

    }

}

}
If the app is in light mode and the phone in dark mode, the videos are in dark mode following the system settings. (and vice versa)
Kind regards,
Angela
Restricted
From: Ian Baker @.>
Date: Tuesday, 2 January 2024 at 18:58
To: androidx/media @.>
Cc: Angela Dimovska @.>, Author @.>
Subject: Re: [androidx/media] Wrong resource pulled from raw folders. (theme issue) (Issue #908)
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Ah I missed that your repro steps require the system to be in day mode and the app in night mode. I adapted the demo app to behave like this as follows (based on https://developer.android.com/develop/ui/views/theming/darktheme):
Change the PlayerTheme to inherit from Theme.AppCompat.DayNight.NoActionBar

Change the mode programatically before the reading code described above in #908 (comment)https://github.com/androidx/media/issues/908#issuecomment-1866644791:
UiModeManager uiModeManager = getSystemService(UiModeManager.class);
uiModeManager.setApplicationNightMode(UiModeManager.MODE_NIGHT_YES);
I continue to observe the night samples being read by both Android's openRawResource and media3's RawResourceDataSource:
From openRawResource: content=[night time text file]
From RawResourceDataSource: content=night time text file
Please can you describe what is different in your app to my repro example? Currently it seems to me that media3's RawResourceDataSource is acting consistently with the framework's resource handling.
I don't think it matters whether the file being read is a text file or a video file - both are 'raw resources' and just being treated as opaque bytes.
—
Reply to this email directly, view it on GitHubhttps://github.com/androidx/media/issues/908#issuecomment-1874358042, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEZP6MBPOOLLD4RWMI5BKB3YMRDEJAVCNFSM6AAAAABA3JXL6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUGM2TQMBUGI.
You are receiving this because you authored the thread.Message ID: @.***>

I'm afraid I'm still unable to reproduce the problem.
Using AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES) and with the device in system-wide light mode I observe the 'night time text file' being read from both Context.getResources().openRawResource() and RawResourceDataSource.
Using AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) and with the device in system-wide dark mode I observe the 'day time text file' being read.

Please can you see which file is read by Context.getResources().openRawResource() without RawResourceDataSource in your problematic set-up? If it's also the wrong file, then there's something going wrong beyond media3.


feat(docs): different color for code blocks

Maybe the font differences are too subtle, maybe I'm too old. A (slight) color shift may help distinguish code parts.
WDYT? (Also, not sure it's the proper place to do it?)

consider https://github.com/Vonage/vivid-3/pull/766#issuecomment-1297015417


update needed to add Cpp sample code

added the needed sample code for the doc

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


Simplify header

Should  some of the component features of the header be abstracted out so that users can include only the ones necessary?  For instance, If I don't want the Feedback link, then I simply don't include it.  Some like the following?
<cbp-header>
    <cbp-apps-menu></cbp-apps-menu>
    <cbp-feedback-link></cbp-feedback-link>
    <cbp-user-menu></cbp-user-menu>
</cbp-header>

The header itself would only provide the branding and the toggle button.

@davezen1 wondering how much of the cbp-header is customizable ? I was under the impression that no customization was allowed in terms of what its on it since that directly affected the goal of unified look & feel as users switched between applications. I understand that in the interim we have some freedom as to how each of the items on header are implemented. For example can we provide a default functionality of opening a dialog and "please contact such and such via some@email" or just mailto: some@email.

Weather all the pieces are required or not would be good to know.  I thought I had heard that things like preferences and feedback were 'optional', but maybe I misunderstood.  Regardless, it might be better to still abstract those into there own components that contain the services; similar to how they are now.  Then, you simply pull them in and drop them into the header.  This would provide a nice separation of concerns.  Currently, the header has some hard dependencies on the services for these.  It might prove better to decouple those.

Markup requirement for the end developer:-
<cbp-header>
    <cbp-feedback-link></cbp-feedback-link>
</cbp-header>

Additionally refactor necessary templates from cbp-header.component.html into appropriate components - mainly the feedback module.

We have use case for external facing applications which do not have other parts. We will need to open up all other parts of CBP Headers as per @jscharett to be configurable instead of the current opinionated.
<cbp-header>
    <cbp-apps-menu></cbp-apps-menu>
    <cbp-feedback-link></cbp-feedback-link>
    <cbp-user-menu></cbp-user-menu>
</cbp-header>

+100 on the original comment (jscharett commented on Sep 7, 2017)

PR #47 closes this.


Encounter service event

This PR builds on PR #37 which should be merged first. Keeping this as a draft until the other is finished.


Gas limit is not consistent

EDIT: This was first found with collectibles. but I had the same case doing a supply on the Compound app
https://rinkeby.etherscan.io/tx/0x8a4b6c44daf72817d9059e8be4b66dc2f1323a8218b855f031f7b17c0540a84f
https://pr2132--safereact.review.gnosisdev.com/rinkeby/app/#/safes/0x9913B9180C20C6b0F21B6480c84422F6ebc4B808/transactions
Tx nonce: 887
Issue:
When sending collectibles to newly created safes the gas limit is set by default in 1+ million, then less than 10% of that is actually used for the tx
Env:
https://pr2132--safereact.review.gnosisdev.com/rinkeby/app/#/safes/0x9913B9180C20C6b0F21B6480c84422F6ebc4B808/balances
Safes used:
Old one:
0x9913B9180C20C6b0F21B6480c84422F6ebc4B808
New ones:
0xbE815709c8783EFC3FDe94875058DD769D841ed4
0x8CD6b095d768bD50E6cE31c0e6c4632d601ACa85
(I can make you owner of the safes so you can test if you don't have a safe with collectibles.)
Here is a comparison sending to a new safe and then sending it to an old safe
To new safe:

To old safe:

This are 2 tx done later, one is a CK, the other is a dummy NFT, the collectible type is irrelevant.
Collectible sent to a new safe:
https://rinkeby.etherscan.io/tx/0x2b54e65ca72afe6ecfd3c0db9ba036b6035b7a35a59523ca9afd76c2e49d9c9f
Collectible sent to an old safe:
https://rinkeby.etherscan.io/tx/0x9b7778bac16e8e52828d8e83d88030c7d173ff6551b4f759c2f070c49908437e
All the tx were done at the same time of the day so the amount of traffic is the same
The price of the gas was set on 1 Gwei on purpose (since is rinkeby)

This are 2 tx done later, one is a CK, the other is a dummy NFT, the collectible type is irrelevant

Can you reproduce it with different collectible types?

It looks like there might be an issue but I cannot reproduce it, do you know a transaction or something that triggers this weird behaviour?

@Uxio0 detected that this was caused by a different behavior between OpenEthereum (used in staging) and Geth (used in production)
He is currently working on a fix. From frontend perspective it's safe to release. We will be showing a larger gas fee for SafeApps transactions but they will end up using a much lower amount

@dasanra Issue has been hotfixed in production right now and seems to be working as expected

@francovenica , I have moved the issue to Ready for QA to retest on prod the fix that was made on back-end on prod env.


Support IAsyncEnumerable on .NET Standard 2.0+

Support IAsyncEnumerable on .NET Standard 2.0+, so users no longer need to wait the complete listing operation to finish.
Example usage:
using System;
using FluentFTP;

var ftpClient = new FtpClient("ftp://ftp.aist-nara.ac.jp");
await ftpClient.AutoConnectAsync();
await foreach (var i in ftpClient.GetListingAsync("/", FtpListOption.Recursive))
{
	Console.WriteLine(i.FullName);
}

Thanks for this, I will check and let you know.

I've accepted this PR, however I've seperated the enumerable methods from the regular async methods as the regular async method will still be the simpler and better performance method as there is less framework involvement.
Now we have:

GetListingAsync
GetListingAsyncEnumerable

Published.
https://www.nuget.org/packages/FluentFTP/33.1.0

If you can check the latest nuget release and tell me if everything is working okay as per your original design, I would appreciate it. Thanks again for the PR.

I'll try to fix this immediately.

Published. It works for me. Does it work for you?
https://www.nuget.org/packages/FluentFTP/33.1.1

Thanks. It works now.

Great.


Deny assignment using blueprint for particular Management group

Hello,
We would like to request a new feature/possible workaround for the following scenario:
If we have multi-subscriptions under a single tenant. All 2000+ subscriptions whose IAM is inherited with the Management AD group that is created on Azure Active Directory. How to restrict all and allow only one group from this Management AD group from getting access to a one subscription which has sensitive data. How to deny users from seeing specific resources using deny assignment?
However, from the discussions that we had between Azure Blueprint and RBAC team over support ticket, we confirmed that this is unsupported scenario for the following reasons:
++ From the Blueprint perspective, there is no place to modify / customize "DataActions". And the only way is to add delete/read only locks as recommended here https://docs.microsoft.com/en-us/azure/governance/blueprints/concepts/resource-locking
++ although https://docs.microsoft.com/en-us/azure/role-based-access-control/deny-assignments mentions deny assignment, the assignment can only be deployment in Azure Blueprint or Azure Managed Apps. As blueprint only supports builtin role, we are not able to create custom role and leverage blueprint to do the assignment. Unfortunately.
++ from the RBAC role perspective, it cannot meet your requirement.  In the meantime, Although RBAC role has "NotAction"  or "NotDataActions" , these kind of the "Not" specifies the control plane actions that are subtracted or excluded from the allowed Actions that have a wildcard (*).  It means you need to put the relevant permissions (such as *) in the custom role itself first.  It doesn't subtract or exclude permission across roles.  Azure RBAC is an additive model, so your effective permissions are the sum of your role assignments.  This is why RBAC role cannot meet the customer requirement.
any help please? as rebuild/redo the design architecture is not an option at all...

As blueprint only supports builtin role, we are not able to create custom role and leverage blueprint to do the assignment.

Are you referring to built-in roles for the role assignment artifact? You should be able to do either built-in or custom roles. My understanding is that custom roles are only partially supported at MG scope, but that is not a blueprints limitation. Blueprints will query for any available roles at the relevant scope.
If there are limitations with how blueprints is handling the application of deny assignments, then this will need to be addressed with deployment stacks, which is going to be a superset of blueprint assignment functionality. It's going to expose the full fidelity of settings for a deny assignment, including data actions. Deployment stacks is in private preview now and we are hoping to have a public preview out in the next 6 months.


Treat PY3 just as six.PY3

@hugovk submitted a pull request to urllib3 based on this plugin: https://github.com/urllib3/urllib3/pull/1669. Thanks! But it failed to catch all issues, as PY3 was sometimes imported directly. See https://github.com/urllib3/urllib3/pull/2004 for examples.
This may cause false positives, though.

PY3 could be defined correctly as sys.version_info >= (3,) so this isn't really valid -- it does correctly identify six.PY3 and from six import PY3 already

I see, that makes sense!
For what it's worth, the from six import PY3 detection does not work in the case of urllib3 since we vendor six, but there's not much you can do about it.

correct, we'd need to do dynamic analysis which at best would be slow and at worst would be solving the halting problem


No mobile site

I'd reccomend you try to use your new responsive design skills (with @media queries) to make your site work well on mobile :)
Hopefully it helps that your navigation is all done is CSS now

Going to move the site and repo to a orginazation. see this link

K cool - could you not have just transferred ownership

Moved to https://github.com/TechieHub/techiehub.github.io/issues/1

Y but it would mess up stuff. I'll do it
though if commits transfer

Transferred to org.

Working on it - https://github.com/TechieHub/techiehub.github.io/tree/mobile-dev
Not done yet though

See #5

Pull done. Closed.


FIX: handle negative minimum, maximum, and default values from jsDoc

Closes fabien0102/ts-to-zod#227 (or would if it wasn't already closed for inactivity)
Why
Linked issue isn't mine, but I experienced (almost) the same thing. I have an interface that has a negative minimum value in the jsDoc
  /**
   * @minimum -45 @maximum 45
   */
  angle: number | null

Which results in the error:
Error: Debug Failure. False expression: Negative numbers should be created in combination with createPrefixUnaryExpression

This PR prevents the error and adds a check a couple of the existing tests

Thanks @mrdan


new NPC stat block parser

Would be nice to have some sort of statblock parser to easily import NPCs from adventures/books.
Example stat blocks:
STR 14 CON 12 DEX 10 INT 12 POW 13 CHA 12
HP 13 WP 13 SAN 47 BREAKING POINT 39
DISORDERS: Sleep disorder.
SKILLS: Alertness 50%, Bureaucracy 70%, Criminology
45%, Drive 55%, Firearms 60%, First Aid 30%,
HUMINT 40%, Melee Weapons 55%, Persuade 50%,
Search 60%, Stealth 70%, Unarmed Combat 60%.
ATTACKS: Glock 26 pistol 60%, damage 1D10.
Unarmed 60%, damage 1D4−2.

The CoC7e module has something like that.

This actually already exists, it’s just still very much a work in progress
so I haven’t made it obvious it’s there. It mostly just does some biography
type stuff and skill proficiencies (not attacks, items etc.) right now.
But if you want to give it a try, you just have to call this from a script
type macro:
game.deltagreen.ParseDeltaGreenStatBlock()
And then paste the raw text of your stat block in the dialog window that
comes up.
Feel free to let me know if it does poorly against a certain stat block and
I can take a look at it. I may was using it for Impossible Landscapes,
copying right out of the module, so it’s geared to that a little bit and
the formatting on DG stat blocks does drift a bit, so sometimes things
don’t match the patterns it’s looking for.
Adding in attacks is on my todo list. It just might be tricky to capture it
accurately with the rather freeform way that a DG stat block has them.
On Mon, Apr 15, 2024 at 6:34 AM cristian @.***> wrote:

Would be nice to have some sort of statblock parser to easily import NPCs
from adventures/books.
Example stat blocks:
STR 14 CON 12 DEX 10 INT 12 POW 13 CHA 12
HP 13 WP 13 SAN 47 BREAKING POINT 39
DISORDERS: Sleep disorder.
SKILLS: Alertness 50%, Bureaucracy 70%, Criminology
45%, Drive 55%, Firearms 60%, First Aid 30%,
HUMINT 40%, Melee Weapons 55%, Persuade 50%,
Search 60%, Stealth 70%, Unarmed Combat 60%.
ATTACKS: Glock 26 pistol 60%, damage 1D10.
Unarmed 60%, damage 1D4−2.
The CoC7e module has something like that.
—
Reply to this email directly, view it on GitHub
https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/issues/113,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQCH4ONQNYDT5BYI5LAOJMDY5PJOZAVCNFSM6AAAAABGHMD4Z2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2DGNZQGU4TAOA
.
 I will try to fix this, but if you want to try it as it is, you'll have better luck if you run a stat block like this in:

Which will give:

Oh this is excellent already! Doesn't seem to catch Criminology from my statblock. However, if I remove the line breaks and make the statblock like so, it works:
STR 14 CON 12 DEX 10 INT 12 POW 13 CHA 12
HP 13 WP 13 SAN 47 BREAKING POINT 39
DISORDERS: Sleep disorder.
SKILLS: Alertness 50%, Bureaucracy 70%, Criminology 45%, Drive 55%, Firearms 60%, First Aid 30%,
HUMINT 40%, Melee Weapons 55%, Persuade 50%, Search 60%, Stealth 70%, Unarmed Combat 60%.
ATTACKS: Glock 26 pistol 60%, damage 1D10.
Unarmed 60%, damage 1D4−2.

Ahh yes my RegEx for the skills is assuming just a space in between, not a line feed. I don't think it's a big deal to allow a return in between the skill name and the % value though, so I will add that.

A small update to this, there should be a few fixes/improvements to the parser logic that go out with v1.4.5 (although this version is only for Foundry v12, it is not backwards compatible with v11).

I am on foundry v12, in system 1.4.5 for DG and the parser does not work anymore
It adds the name of the actor, and a secondary line, but keeps all stats at 10 and skills at their default value.

@Vincekettu ahh so it is... Looks like the obsoleting of ActorData.Data in favor of ActorData.system bit me there. The console warnings helped us fix that everywhere else, but since you'd only see those warnings when running the macro, we missed it for the stat parser. It is an easy fix though, the next release it should work again. Sorry about that.

One other thing I'll note, while I was fixing the issue with the data model, I took a stab at adding in the ability to parse out the amount of armor, and the attacks a stat block has. DG stat blocks are not that uniform, so it is pretty hit or miss. But might help speed things up...

thank you thank you !!
Le mar. 16 juil. 2024 à 05:00, TheLastScrub @.***> a
écrit :

One other thing I'll note, while I was fixing the issue with the data
model, I took a stab at adding in the ability to parse out the amount of
armor, and the attacks a stat block has. DG stat blocks are not that
uniform, so it is pretty hit or miss. But might help speed things up...
—
Reply to this email directly, view it on GitHub
https://github.com/TheLastScrub/delta-green-foundry-vtt-system-unofficial/issues/113#issuecomment-2229908647,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASAARERHTBQWG3UD4AEGU6TZMSEFBAVCNFSM6AAAAABGHMD4Z2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZHEYDQNRUG4
.
You are receiving this because you were mentioned.Message ID:
<TheLastScrub/delta-green-foundry-vtt-system-unofficial/issues/113/2229908647
@github.com>


Error: Missing stack name; for test mode, please call pulumi.runtime.setMocks and provide a stack argument (NODEJS  - TYPESCRIPT)

What happened?
Hello, unfortunately I am not able to use this package. I'm having errors.
 const d = await lib.Network.get("default", "f5cd7f9e-5fb9-44b1-9d97-98019db8db9b");
Output:
<ref *1> Error: Missing stack name; for test mode, please call pulumi.runtime.setMocksand provide astack argument     at Object.getStack (/home/pedrofreitas/www/introti/api.introti.com/node_modules/@pulumi/runtime/settings.ts:188:11)     at Object.createUrn (/home/pedrofreitas/www/introti/api.introti.com/node_modules/@pulumi/resource.ts:49:54)     at Object.<anonymous> (/home/pedrofreitas/www/introti/api.introti.com/node_modules/@pulumi/runtime/resource.ts:253:43)     at Generator.next (<anonymous>)     at /home/pedrofreitas/www/introti/api.introti.com/node_modules/@pulumi/pulumi/runtime/resource.js:21:71     at new Promise (<anonymous>)     at __awaiter (/home/pedrofreitas/www/introti/api.introti.com/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)     at /home/pedrofreitas/www/introti/api.introti.com/node_modules/@pulumi/runtime/resource.ts:226:48     at /home/pedrofreitas/www/introti/api.introti.com/node_modules/@pulumi/runtime/resource.ts:862:16     at Generator.next (<anonymous>) {   promise: Promise { <rejected> [Circular *1] }
Steps to reproduce
I installed the package, and imported
  import * as lib from "@pulumi/libvirt";
Expected Behavior
I expected you to bring me my network data
Actual Behavior
He showed me the strangers that I couldn't solve
Output of pulumi about
No response
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Since we haven't heard back, I'll go ahead and close this issue as stale. Based on the error message, I think you were trying to run your program outside the Pulumi CLI context.
Please open a new issue if the problem still persists and provide the details for us to reproduce it. Thank you!


Add InMotion Hosting to hosting

Also remove trailing whitespace.

How big is this host? How many users does it have? I'm a little bit hesitant adding every hosting company because there are so many of them out there..

I don't have any specific numbers. I thought they were fairly well known, but then you've not heard of them, and I'm a sample size of one. Some of the figures on http://www.inmotionhosting.com/meet-us and the fact they appear in the list of companies being compared in this PC mag review http://www.pcmag.com/article2/0,2817,2424725,00.asp , make me think they can't be that small.
Totally understand you don't want to add everything - up to you :-)


Unable to install the latest version on minishift

WHAT
Unable to install it in the latest version of minishift
WHEN:
When the following command is executed check the errors faced.
 oc create -f deploy/okd/manifests/latest/

camilamacedo@Camilas-MacBook-Pro ~/go/src/github.com/operator-lifecycle-manager (master) $ oc create -f deploy/okd/manifests/latest/
namespace/openshift-operator-lifecycle-manager created
namespace/openshift-operators created
clusterrole.rbac.authorization.k8s.io/system:controller:operator-lifecycle-manager created
serviceaccount/olm-operator-serviceaccount created
clusterrolebinding.rbac.authorization.k8s.io/olm-operator-binding-openshift-operator-lifecycle-manager created
customresourcedefinition.apiextensions.k8s.io/clusterserviceversions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/installplans.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/subscriptions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/catalogsources.operators.coreos.com created
deployment.apps/olm-operator created
deployment.apps/catalog-operator created
clusterrole.rbac.authorization.k8s.io/aggregate-olm-edit created
clusterrole.rbac.authorization.k8s.io/aggregate-olm-view created
customresourcedefinition.apiextensions.k8s.io/operatorgroups.operators.coreos.com created
configmap/olm-operators created
unable to recognize "deploy/okd/manifests/latest/0000_50_olm_11-olm-operators.catalogsource.yaml": no matches for kind "CatalogSource" in version "operators.coreos.com/v1alpha1"
unable to recognize "deploy/okd/manifests/latest/0000_50_olm_12-operatorgroup-default.yaml": no matches for kind "OperatorGroup" in version "operators.coreos.com/v1alpha2"
unable to recognize "deploy/okd/manifests/latest/0000_50_olm_12-operatorgroup-default.yaml": no matches for kind "OperatorGroup" in version "operators.coreos.com/v1alpha2"
unable to recognize "deploy/okd/manifests/latest/0000_50_olm_13-packageserver.subscription.yaml": no matches for kind "Subscription" in version "operators.coreos.com/v1alpha1"

 $ oc get crds
NAME                                                                     CREATED AT
catalogsources.operators.coreos.com                                      2019-03-25T17:55:04Z
clusterserviceversions.operators.coreos.com                              2019-03-25T17:55:04Z
installplans.operators.coreos.com                                        2019-03-25T17:55:04Z
openshiftwebconsoleconfigs.webconsole.operator.openshift.io              2019-03-25T15:03:34Z
operatorgroups.operators.coreos.com                                      2019-03-25T17:55:04Z
servicecertsigneroperatorconfigs.servicecertsigner.config.openshift.io   2019-03-25T14:59:47Z
subscriptions.operators.coreos.com                                       2019-03-25T17:55:04Z
camilamacedo@Camilas-MacBook-Pro ~/go/src/github.com/operator-lifecycle-manager (master) $

Hi @camilamacedo86 -
Sometimes the CRDs don't register fast enough for the CR (instances) to create successfully. Until we have a better solution, you can try applying the manifests twice to install.

Hi @ecordell,
Shows that all is working. It is great to know, we could add this tip in the readme also the explanation over what command works for each kind env, for example, minishift, ocp cluster and etc ..
All projects are running with success in the openshift and if I tried to apply shows that all is created already. However, how I check the operator's catalogue as the following image?

Following my local env and console.
camilamacedo@Camilas-MacBook-Pro ~/go/src/github.com/operator-lifecycle-manager (master) $ oc project openshift-operator-lifecycle-manager
Now using project "openshift-operator-lifecycle-manager" on server "https://<IP_ADDRESS>:8443".
camilamacedo@Camilas-MacBook-Pro ~/go/src/github.com/operator-lifecycle-manager (master) $ oc get all
NAME                                   READY     STATUS    RESTARTS   AGE
pod/catalog-operator-9c9d77c56-hg9gg   1/1       Running   0          5m
pod/olm-operator-5dd5476668-tqq5p      1/1       Running   0          5m
pod/olm-operators-nwbns                1/1       Running   0          6m
pod/packageserver-64749fd8bc-dd8lv     1/1       Running   0          5m
pod/packageserver-64749fd8bc-nznk7     1/1       Running   0          5m

NAME                                        TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)     AGE
service/olm-operators                       ClusterIP   <IP_ADDRESS>    <none>        50051/TCP   6m
service/v1alpha1-packages-apps-redhat-com   ClusterIP   <IP_ADDRESS>   <none>        443/TCP     5m

NAME                               DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/catalog-operator   1         1         1            1           12m
deployment.apps/olm-operator       1         1         1            1           12m
deployment.apps/packageserver      2         2         2            2           5m

NAME                                          DESIRED   CURRENT   READY     AGE
replicaset.apps/catalog-operator-7ccdb55f84   0         0         0         12m
replicaset.apps/catalog-operator-9c9d77c56    1         1         1         5m
replicaset.apps/olm-operator-5dd5476668       1         1         1         5m
replicaset.apps/olm-operator-ccdd8c9d8        0         0         0         12m
replicaset.apps/packageserver-64749fd8bc      2         2         2         5m
camilamacedo@Camilas-MacBook-Pro ~/go/src/github.com/operator-lifecycle-manager (master) $

camilamacedo@Camilas-MacBook-Pro ~/go/src/github.com/operator-lifecycle-manager (master) $ oc -n openshift-operator-lifecycle-manager get deploy
NAME               DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
catalog-operator   1         1         1            1           13m
olm-operator       1         1         1            1           13m
packageserver      2         2         2            2           6m
camilamacedo@Camilas-MacBook-Pro ~/go/src/github.com/operator-lifecycle-manager (master) $ oc -n openshift-operator-lifecycle-manager get catalogsource
NAME            NAME            TYPE       PUBLISHER   AGE
olm-operators   OLM Operators   internal   Red Hat     7m
camilamacedo@Camilas-MacBook-Pro ~/go/src/github.com/operator-lifecycle-manager (master) $ oc -n openshift-operator-lifecycle-manager get configmap
NAME            DATA      AGE
olm-operators   3         13m
camilamacedo@Camilas-MacBook-Pro ~/go/src/github.com/operator-lifecycle-manager (master) $

@ecordell it is working I was looking in the wrong URL :-)
Thank you.

Following a summary of the steps performed which make it possible.
Install Minishift with xhyve on MacOSX
$ brew install docker-machine-driver-xhyve
$ brew cask install minishift

Enable operators and setup a profile for it with some specific VM configs.
# create a profile
minishift profile set operator
# add insecure registry to download the images from docker
minishift config set insecure-registry <IP_ADDRESS>/16
# add addon to allow work with operators
minishift addon enable admin-user
# Optional vm setup
minishift config set cpus 4
minishift config set memory 8GB

#install/deploy OLM
$ oc create -f deploy/okd/manifests/latest/
namespace/openshift-operator-lifecycle-manager created
namespace/openshift-operators created
clusterrole.rbac.authorization.k8s.io/system:controller:operator-lifecycle-manager created
serviceaccount/olm-operator-serviceaccount created
clusterrolebinding.rbac.authorization.k8s.io/olm-operator-binding-openshift-operator-lifecycle-manager created
customresourcedefinition.apiextensions.k8s.io/clusterserviceversions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/installplans.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/subscriptions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/catalogsources.operators.coreos.com created
deployment.apps/olm-operator created
deployment.apps/catalog-operator created
clusterrole.rbac.authorization.k8s.io/aggregate-olm-edit created
clusterrole.rbac.authorization.k8s.io/aggregate-olm-view created
customresourcedefinition.apiextensions.k8s.io/operatorgroups.operators.coreos.com created
configmap/olm-operators created
unable to recognize "deploy/okd/manifests/latest/0000_50_olm_11-olm-operators.catalogsource.yaml": no matches for kind "CatalogSource" in version "operators.coreos.com/v1alpha1"
unable to recognize "deploy/okd/manifests/latest/0000_50_olm_12-operatorgroup-default.yaml": no matches for kind "OperatorGroup" in version "operators.coreos.com/v1alpha2"
unable to recognize "deploy/okd/manifests/latest/0000_50_olm_12-operatorgroup-default.yaml": no matches for kind "OperatorGroup" in version "operators.coreos.com/v1alpha2"
unable to recognize "deploy/okd/manifests/latest/0000_50_olm_13-packageserver.subscription.yaml": no matches for kind "Subscription" in version "operators.coreos.com/v1alpha1"

TIP: No worry with the msgs "no matches for kind" It happens because of > "Sometimes the CRDs don't register fast enough for the CR (instances) to create successfully. Until we have a better solution, you can try applying the manifests twice to install."
 Allowing origin [http://localhost:9000] to wss://<IP_ADDRESS>:8443/apis/project.openshift.io/v1/projects?watch=true


Feature request: Shortcut for hiding query results

Would be handy to have a shortcut for toggling the results of the query. In SSMS it was Ctrl-R

I was searching for this all day long only to understand that this doesn't yet exists.

Yeah, used to (in mgm studio 2017.3) be a setting under "Tools", "Options", "Environment", "Keyboard", "Keyboard": "Window.ShowResultsPane (default CTRL+R), but in SQL Operations Studio preview (023.6) , under settings: "Settings", or "Keybord Shortcuts" I find no such option.


CombineGVCFs won't work due to lack of vcf index inputs

I tried using the CombineGVCFs auto-generated wdl but ran into issues with localizing the index files for the input vcfs. Here is the error:
A USER ERROR has occurred: An index is required but was not found for file /cromwell_root/broad-gotc-test-storage/germline_single_sample/wgs/load/truth/develop/NA12878/NA12878.g.vcf.gz.
Support for unindexed block-compressed files has been temporarily disabled. Try running IndexFeatureFile on the input.

This always happens when one forgets to include the vcf indices as inputs into the wdl since they need to be localized along with the actual vcfs. However, this wdl doesn't have the option to pass them in, making it essentially impossible to use right out of the box. The simple fix is to just put index inputs into the task, but maybe it's worth doing at the level of the auto-generating code to ensure other similar tasks are able to run without the user needing to manually override them.

Closing this issue because it has been remigrated as appropriate to here.


[$500] Web - IOU - "Submit" button does not work correctly

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.15-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Go to staging.new.expensify.com
Login with Admin and Employee on two different browsers
From Employee's Workspace chat create Money request
Click on Submit button
On created IOU click Submit from Admin account

Expected Result:
When Employee click Submit there should be message that IOU is summited and Submit button should be disabled
Actual Result:
"Submit" button does not work correctly.
When employee click on it the button is still present and active
When admin click on it - in flash button turn to pay elsewhere and than again turn to Submit
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] Windows: Chrome
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/7b454391-d14b-4728-833a-6190a30bd16b
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01e924eea1632e9267
Upwork Job ID:<PHONE_NUMBER>594128896
Last Price Increase: 2023-12-21

Note: Feel free to use the information below to come up with a proposal.
Debugging observations:

the Submit buttons appear only for expense reports

the issue happens because the SubmitReport call fails on both admin / employee sides with the following response:

{
    "code": 666,
    "jsonCode": 666,
    "type": "Expensify\\Error\\Policy\\PolicyHasOwedAmount",
    "UUID": "E7E15357-F73C-42A0-B9B7-2A891A481044",
    "message": "Please have the policy's billing owner<EMAIL_ADDRESS>visit the settings page and update their billing information.",
    "title": "Policy billing is out of date",
    "data": {
        "reportID":<PHONE_NUMBER>220844,
        "isOwner": false,
        "ownerEmail"<EMAIL_ADDRESS>    },
    "htmlMessage": "Please have the policy's billing owner<EMAIL_ADDRESS>visit the settings page and update their billing information.",
    "onyxData": [],
    "requestID": "839442b50874b9cb-OTP"
}

the Submit button on the admin's side is grayed out because props.chatReport.isOwnPolicyExpenseChat is false

the Submit button on the employee's side disappears and re-appears because while SubmitReport call is happening ReportPreview.js's shouldShowSubmitButton becomes false briefly until the call is finalized

the Submit button on the admin's side becomes the green Pay with Expensigy button because while SubmitReport call is happening ReportPreview.js's shouldShowSubmitButton becomes false briefly while shouldShowSettlementButton becomes true briefly until the call is finalized

I don't want to invest time working on this issue but if I were to do it I would attempt fixing the issue by:

displaying the SubmitReport call fail response error in the UI
adding the isDisabled prop to the button in case there is a back-end error like the one mentioned above
allow the user to clear the error which in turn would enable the Submit button, as the user was told why the action failed
working on the Submit / Pay with Expensify buttons logic that trigger the brief hidding / switch while the SubmitReport call is happening, in order to fix the bad UX

We're waiting on proposals

@cubuspl42 This may be fixed with https://github.com/Expensify/App/pull/33811

@cubuspl42 do you think that PR will fix this issue? If so, I can put this one on hold.

I'll go ahead and put it on hold for now. We can always take the hold off if it's not connected.

I just looked at the bug report again and I think the real issue is that the admin saw a submit button at all to begin with. After testing again, I'm not able to reproduce - the money request immediately says has a "Pay with Expensify" button for the admin.
I'm going to close this out as non-reproduceable, feel free to bring back up for discussion in Slack if it's still an issue.

Issue is still reproducible on the latest build 1.4.63-0
https://github.com/Expensify/App/assets/78819774/4f5571a0-c1d6-454d-a669-8002ebb179eb

@DylanDylann reassigning, please take over as C+. If you don't have bandwidth, unassign yourself. Thanks

Waiting for proposals.

Whoops, forgot to remove the hold in the issue title.
Hopefully now that it doesn't say [HOLD], we'll get some proposals.

When admin click submit button, the BE return this error
jsonCode: 666
message: "This report must be submitted/forwarded/approved to the correct person according to the policy settings."
title: "Workflow Violation"
type: "Expensify\\Libs\\Error\\ExpError"

We need to ask an internal engineer to verify the expected and the current logic from BE side

Agreed.
🎀 👀 🎀 C+ reviewed

@rlinoz Could you help to check this comment?

This problem is happening to me. I can't get around it. I created a collect workspace in old dot. I was on a free trial, so I could do development. Then the free trial ended. Now I have deleted all my old collect workspaces and old dot says that I have an outstanding balance. I have never entered any billing info. How can I owe Expensify any money? I just created a new workspace in new dot, but it still has the same problem. I can't submit any expenses. When I look at the server response from trying to submit it says that my billing info needs to be updated. Perhaps this information can help to solve this issue. Also, I need to get over this hump to be able to do development. Can anyone help me with this problem?

@kmbcook your outstanding balance issue sounds unrelated to this issue - it sounds like a standard subscription payment issue. Could you please report this issue to Concierge, either by chatting with Concierge in NewDot or by emailing<EMAIL_ADDRESS>Our customer support team should be able to help.

Issue not reproducible during KI retests. (First week)

If the issue is not reproduceable, then we should close the issue. Please reopen (or tag me in Slack if you need me to reopen it).


Can't get electron due to bad credentials

I'm trying to build atom for the first time.  I've always just installed using the .deb.    Anyway, I'm getting this when building on Ubuntu 12.04.
Running "download-electron" task
>> Cannot find electron v0.34.5 from GitHub [Error: Bad credentials]
Warning: Task "download-electron" failed. Use --force to continue.

Aborted due to warnings.

Help please?

Do you have an ATOM_ACCESS_TOKEN environment variable set? If so, is it possible it's wrong? See https://github.com/atom/atom/blob/8677ca3a1086d14621e401672ef7fc5723919a4a/build/Gruntfile.coffee#L259 for context.

Thanks.  Maybe this should be in the build instructions at
https://github.com/atom/atom/blob/master/docs/build-instructions/linux.md.
On Fri, Jan 15, 2016 at 6:31 AM, Josh Abernathy<EMAIL_ADDRESS>wrote:

Do you have an ATOM_ACCESS_TOKEN environment variable set? If so, is it
possible it's wrong? See
https://github.com/atom/atom/blob/8677ca3a1086d14621e401672ef7fc5723919a4a/build/Gruntfile.coffee#L259
for context.
—
Reply to this email directly or view it on GitHub
https://github.com/atom/atom/issues/10427#issuecomment-171975290.

Perhaps. A quick search didn't reveal any dupes. Since we provide a default value, you have to have set ATOM_ACCESS_TOKEN previous.
Did that resolve the problem for you?

I think so.  It has gotten past the download-electron-chromedriver task.

A quick search didn't reveal any dupes

I don't understand, not that it matters.  Dupes of what?
On Fri, Jan 15, 2016 at 12:59 PM, Josh Abernathy<EMAIL_ADDRESS>wrote:

Perhaps. A quick search didn't reveal any dupes. Since we provide a
default value, you have to have set ATOM_ACCESS_TOKEN previous.
Did that resolve the problem for you?
—
Reply to this email directly or view it on GitHub
https://github.com/atom/atom/issues/10427#issuecomment-172090817.

Ah, sorry, I mean that I couldn't find any other issues with this problem.
I'll go ahead and close this.

you have to have set ATOM_ACCESS_TOKEN previous.

Aha.  Now I understand.   So it isn't a doc problem.  I will try to find my
previous declaration.
Thanks mucho.
On Fri, Jan 15, 2016 at 1:24 PM, Josh Abernathy<EMAIL_ADDRESS>wrote:

Closed #10427 https://github.com/atom/atom/issues/10427.
—
Reply to this email directly or view it on GitHub
https://github.com/atom/atom/issues/10427#event-516642733.


Additional caches supposed to be optional, but Paket still complains when cannot access it

Additional caches configured in paket.dependencies supposed to be optional, right? They are purely for speed and reliability and not required.
I have configured one cache on the network share and it works fine, but when developers work offline the share is not accessible and developers get error messages like
Could not copy C:\Users<name>\AppData\Local\NuGet\Cache\Autofac.Owin.3.1.0.nupkg to cache \\Temp\PaketDependenciesCache\
First of all, those errors confuse developers and I would prefer not to see them at all or only see them in verbose mode.
Second issue which contributes to confusion is that error messages are not generated for all packages, but only for a first five or six. This makes people think that there is something wrong with those five or six packages specifically.
Could you please make those messages verbose level and explain why only few packages cause errors?
Thank you!
Konstantin

Ok the following happens: we probe the cache and if we see it failing then we mark it internall as ignore.
You see that warning multiple times since we try to download in parallel.


Complete the Peers/Tabs filters for Pages Cursor

Let's not forget to add a .peers() and .tabs() filter to the page cursor (similar to .ancestors()).

tabs() probably should just be something that happens in a pageServe method
in a module somewhere, since it's not actually anything to do with the
current page.
On Thu, May 21, 2015 at 10:15 AM, Joel Smith<EMAIL_ADDRESS>wrote:

Let's not forget to add a .peers() and .tabs() filter to the page cursor
(similar to .ancestors()).
—
Reply to this email directly or view it on GitHub
https://github.com/punkave/apostrophe/issues/255.

--
*THOMAS BOUTELL, *DEV & OPS
P'UNK AVENUE |<PHONE_NUMBER>  |  punkave.com

Need to fetch tabs even when not on a page.


add ConnectionWaadOptions

Hi there,
I have added some more options for waad connection as required by my use case.
I'd love to hear from @alexkappa what he thinks?

Hi @fabriziomoscon, thank you for contributing! Could you please point me to some documentation about this options? I cannot find something related in the management docs.

Hi, I reverse engineered Auth0 result of the API endpoint /api/v2/connections as I didn't find docs.
this https://github.com/yieldr/terraform-provider-auth0/pull/12 has a test to see it working

I was able to verify these fields after creating an Azure Microsoft Azure AD connection, but I am reluctant to merge this as it might be an undocumented feature which Auth0 might decide to break at any moment. Perhaps we should engage with Auth0 to get more info on this?
I also can't find references in Auth0 official SDKs (checked Java and PHP). They use generic types for options all together.

As the change is not so disruptive, lets merge it and if something changes from Auth0 we can deal with it then. Thanks @fabriziomoscon!

@alexkappa please consider releasing a new tag for this merge, as it would simplify dep usage

@fabriziomoscon sure thing, I've cut v.0.0.8 based on the latest master.


WIP: Fuzz tests for arithmetic

This is a good motivating use case for https://github.com/elm-community/elm-test/pull/93 because at present these fuzz tests are easily susceptible to floating point math errors.
(Marking this as WIP until Expect.within ships and we switch this implementation from Expect.equal to that.)

Is work still progressing? Can this be closed?