New metric for cert chain expiry timestamp

New metric for cert chain expiry timestamp. (in case there is an intermediate cert)
PS: Replicating the same logic that there is for root cert expiry timestamp.
[X] Policies and Telemetry
[X] Security

Hi @lucasvmiguel. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

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.

@googlebot I signed it!

@lucasvmiguel: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
0748c7d3fa0e66631f8bc7af08663cce38b82d9a
link
/test lint_istio

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.

@lucasvmiguel: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
d0bb19735cb5b118807b06433e2b770c233276df
link
/test lint_istio

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.

@lucasvmiguel: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-security-k8s-tests_istio
a814859af5bfcf0576acb59b41ca6b37ff83fcd9
link
/test integ-security-k8s-tests_istio

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.

integ-security-k8s-tests_istio has failed with the error:
ERROR: failed to create cluster: failed to generate kubeadm config content: failed to get kubernetes version from node: failed to get file: command "docker exec --privileged istio-testing-control-plane cat /kind/version" failed with error: exit status 1

I don't believe it was because of my changes, could we rerun the tests again please?

/retest

@lucasvmiguel: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
5fd8b1048c7104ed0989493e496f90f285abe8b5
link
/test lint_istio

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.


Use shiftwidth() instead of &sw in indent/vim.vim

With set shiftwidth=0, gg=G in filetype=vim buffer will result in removing all indents.
Because indent/vim.vim doesn't use shiftwidth() instead of accessing &sw directly.

Tyru wrote:

With set shiftwidth=0, gg=G in filetype=vim buffer will result
in removing all indents.
Because indent/vim.vim doesn't use shiftwidth() instead of
accessing &sw directly.

I'll include it, thanks!
--
My sister Cecilia opened a computer store in Hawaii.
She sells C shells by the seashore.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

there are many using of &sw.
https://gist.github.com/mattn/f2d00a2b26044d840a4c
Those should be fixed.

I substituted all 'shiftwidth' references in all indent plugins. (Thanks @mattn)
And there were some thoughts while seeing indent plugins.
Using shiftwidth() function wrapper
I think shiftwidth() function wrapper is not necessary.
Because runtime files should not be distributed with an older Vim.

bzl.vim
go.vim
html.vim
teraterm.vim
yaml.vim

Already using shiftwidth() function

j.vim
python.vim

Not simply substituted

ocaml.vim

Before: &sw + &sw
After: shiftwidth() * 2

pascal.vim

Before: return indnt - &shiftwidth - &shiftwidth
After: return indnt - (shiftwidth() * 2)

sml.vim

Before: &sw + &sw
After: shiftwidth() * 2

Other

Simply substitute like :%s/&sw\|&shiftwidth/shiftwidth()/g

By hand, though...

Misc.

runtime/indent/lifeline.vim has an executable bit?

-rwxr-xr-x on my system

Some indent plugin changes 'shiftwidth',
but if it is already 0, it should not be changed?

Because if 'shiftwidth' is 0,
user may want to sync the value with 'tabstop'.
Here is the list of plugins which change 'shiftwidth' value.

clojure.vim

setlocal softtabstop=2 shiftwidth=2 expandtab

haml.vim

setlocal autoindent sw=2 et

sass.vim

setlocal autoindent sw=2 et

sml.vim

setlocal shiftwidth=2

tcsh.vim

setlocal indentkeys+=e,0=end,0=endsw indentkeys-=0{,0},0),:,0#

zimbu.vim

setlocal sw=2 et

I think shiftwidth() function wrapper is not necessary.
Because runtime files should not be distributed with an older Vim.

Or, @mattn said here in japanese.

Personally, I think we should create a dedicated autoload function and use it in all indent plugins.

I want to hear @brammool and @mattn 's ideas :)

Tyro wrote:

I substituted all 'shiftwidth' references in all indent plugins.
(Thanks @mattn)
And there were some thoughts while seeing indent plugins.
Using shiftwidth() function wrapper
I think shiftwidth() function wrapper is not necessary.
Because runtime files should not be distributed with an older Vim.

bzl.vim
go.vim
html.vim
teraterm.vim
yaml.vim

Already using shiftwidth() function

j.vim
python.vim

Not simply substituted

ocaml.vim

Before: &sw + &sw
After: shiftwidth() * 2

pascal.vim

Before: return indnt - &shiftwidth - &shiftwidth
After: return indnt - (shiftwidth() * 2)

sml.vim

Before: &sw + &sw
After: shiftwidth() * 2

Other

Simply substitute like :%s/&sw\|&shiftwidth/shiftwidth()/g

By hand, though...

Misc.

runtime/indent/lifeline.vim has an executable bit?

-rwxr-xr-x on my system

Some indent plugin changes 'shiftwidth',
but if it is already 0, it should not be changed?

Because if 'shiftwidth' is 0,
user may want to sync the value with 'tabstop'.
Here is the list of plugins which change 'shiftwidth' value.

clojure.vim

setlocal softtabstop=2 shiftwidth=2 expandtab

haml.vim

setlocal autoindent sw=2 et

sass.vim

setlocal autoindent sw=2 et

sml.vim

setlocal shiftwidth=2

tcsh.vim

setlocal indentkeys+=e,0=end,0=endsw indentkeys-=0{,0},0),:,0#

zimbu.vim

setlocal sw=2 et

By now it should be OK to use shiftwidth() directly.  It was added in
patch 7.4.694, more than three years ago.
Please send patches to each maintainer.
--
Those who live by the sword get shot by those who don't.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Please send patches to each maintainer.

Oh, what a hard work...
Maybe, we need an announcement to the maintainers.
And..., you should merge the patch to the zimbu.vim.

@brammool Okay :)
I should generate maintainer's list according to https://gist.github.com/tyru/5fc70f0ce5be91712838

[ ] Use shiftwidth() directly.
[ ] Generate address list according to https://gist.github.com/tyru/5fc70f0ce5be91712838

[ ] More investigations about (not found) files.

[ ] Send patches to maintainers.

Some indent plugin changes 'shiftwidth',
but if it is already 0, it should not be changed?

@brammool
How do you think about this?
I think all indent plugins should not change shiftwidth and softtabstop.
At least when those values are 0(shiftwidth) or negative(softtabstop).

@brammool
If I should contact with each maintainer and ask them, I will do that :)
I suppose you have many tasks other than this issue...
However, thank you for including indent/vim.vim and developing Vim!

Sent.
https://groups.google.com/forum/#!topic/vim_dev/R046Odhv8rY

Tyru wrote:

Some indent plugin changes 'shiftwidth',
but if it is already 0, it should not be changed?

@brammool
How do you think about this?
I think all indent plugins should not change shiftwidth and softtabstop.
At least when those values are 0(shiftwidth) or negative(softtabstop).

Normally the user has his preference for 'shiftwidth' and we should
respect that.  However, for some file formats there is a recommended or
even enforced indent policy.  E.g. for Makefile one should use a Tab in
front of a command.
--
Microsoft is to software what McDonalds is to gourmet cooking
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

However, for some file formats there is a recommended or even enforced indent policy.

I agree.
I want to know the reason why some plugins set shiftwidth or softtabstop.
If it is NOT a enforced indent policy for the filetype, I don't think it should change shiftwidth or softtabstop.
And though this is my humble assumption, all indent plugins listed above don't seem to have a enforced indent policy.
It seems a just recommended setting by who wrote this setting (Maybe maintainer).
Or, If indent policy is strongly recommended by its programming language coding guideline, I think it is valid.
At least, I suppose you know the reason well for zimbu.vim :)

Takuya Fujiwara wrote:

However, for some file formats there is a recommended or even
enforced indent policy.

I agree.
I want to know the reason why some plugins set shiftwidth or
softtabstop.
If it is NOT a enforced indent policy for the filetype, I don't think it should change shiftwidth or softtabstop.
And though this is my humble assumption, all indent plugins listed
above don't seem to have a enforced indent policy.
It seems a just recommended setting by who wrote this setting (Maybe
maintainer).
Or, If indent policy is strongly recommended by its programming
language coding guideline, I think it is valid.
At least, I suppose you know the reason well for zimbu.vim :)

Yes, since Zimbu is a new language we can enforce a certain style.
And it doesn't allow any tabs.  Reduces the choices that a programmer
has to make, less time wasted on discussions about coding style.
And makes the code easier to read.
--
hundred-and-one symptoms of being an internet addict:
45. You buy a Captain Kirk chair with a built-in keyboard and mouse.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

And it doesn't allow any tabs.  Reduces the choices that a programmer
has to make, less time wasted on discussions about coding style.

I see. sounds good :)
It looks to me like zimbu.vim has a solid reason to set shiftwidth.

2016-01-26 22:10 GMT+03:00 Bram Moolenaar<EMAIL_ADDRESS>
Takuya Fujiwara wrote:

However, for some file formats there is a recommended or even
enforced indent policy.

I agree.
I want to know the reason why some plugins set shiftwidth or
softtabstop.
If it is NOT a enforced indent policy for the filetype, I don't think it
should change shiftwidth or softtabstop.
And though this is my humble assumption, all indent plugins listed
above don't seem to have a enforced indent policy.
It seems a just recommended setting by who wrote this setting (Maybe
maintainer).
Or, If indent policy is strongly recommended by its programming
language coding guideline, I think it is valid.
At least, I suppose you know the reason well for zimbu.vim :)

Yes, since Zimbu is a new language we can enforce a certain style.
And it doesn't allow any tabs. Reduces the choices that a programmer
has to make, less time wasted on discussions about coding style.
And makes the code easier to read.

The fact that tabs are banned in the spec justifies only setting
&expandtab. But I do not see Zimbu specification talking about exact
amount of spaces indentation, so &shiftwidth or &softtabstop settings
should not be there (or specification should be updated; I did not read it
though, just searched for “space” and “indent”).

--
hundred-and-one symptoms of being an internet addict:
45. You buy a Captain Kirk chair with a built-in keyboard and mouse.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net \
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\ an exciting new programming language -- http://www.Zimbu.org ///
\\ help me help AIDS victims -- http://ICCF-Holland.org ///
—
Reply to this email directly or view it on GitHub
https://github.com/vim/vim/pull/578#issuecomment-175182451.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to<EMAIL_ADDRESS>For more options, visit https://groups.google.com/d/optout.

can this be closed?

Change was included for vim.vim.  Other files still to be done, but that's not what this issue is for.

Thanks!
I created the list of vim indent plugin maintainers to summarize current status for myself.
I don't if it is useful, share it here.
https://docs.google.com/spreadsheets/d/1-HeWlsLC-tJDfuXQjtkZmY5UwXakAuYg83z9nz7nl2w/edit?usp=sharing

Hi Takuya!
On Di, 02 Feb 2016, Takuya Fujiwara wrote:

I created the list of vim indent plugin maintainers to summarize current status for myself.
I don't if it is useful, share it here.
https://docs.google.com/spreadsheets/d/1-HeWlsLC-tJDfuXQjtkZmY5UwXakAuYg83z9nz7nl2w/edit?usp=sharing

I'll attach an updated indent script here.
@Bram, please include the sh.indent script
Best,
Christian
Argwöhnisch wacht der Mensch über alles, was ihm gehört - nur die Zeit
läßt er sich oft stehlen.
-- Linus Carl Pauling

Christian Brabandt wrote:

On Di, 02 Feb 2016, Takuya Fujiwara wrote:

I created the list of vim indent plugin maintainers to summarize current =
status for myself.
I don't if it is useful, share it here.
https://docs.google.com/spreadsheets/d/1-HeWlsLC-tJDfuXQjtkZmY5UwXakAuYg8=
3z9nz7nl2w/edit?usp=3Dsharing

I'll attach an updated indent script here.
@Bram, please include the sh.indent script

Thanks.  I'll update the revision date.
--
hundred-and-one symptoms of being an internet addict:
111. You and your friends get together regularly on IRC, even though
all of you live in the same city.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Thanks Bram for fixing this issue in 89bcfda6834aba724d12554a34b9ed49f5789fd5.


feat(analytics): authentication analytics

Type of Change

[ ] Bugfix
[x] New feature
[ ] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description

Authentication Analytics - with the following metrics:

AuthenticationAttemptCount
AuthenticationSuccessCount
ChallengeAttemptCount
ChallengeFlowCount
ChallengeSuccessCount
FrictionlessFlowCount
ThreeDsSdkCount

Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

curl --location 'localhost:8080/analytics/v1/metrics/auth_events' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {token}' \ --data '[     {         "timeRange": {             "startTime": "2024-01-13T18:30:00Z",             "endTime": "2024-04-30T18:30:00Z"         },         "metrics": [             "three_ds_sdk_count",             "authentication_attempt_count",             "authentication_success_count",             "challenge_flow_count",             "frictionless_flow_count",             "challenge_attempt_count",             "challenge_success_count"         ]     } ]'
Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed the submitted code
[x] I added unit tests for my changes where possible
[ ] I added a CHANGELOG entry if applicable

@vsrivatsa-juspay Is there going to be a new clickhouse table for this?
can you add a script of the clickhouse table creation if exists?


Is there a way to clear the set color string？

Is there a way to clear the set color string?
I used color in other places, but I just want to clear the color in the specified place.
Yellow = color.New(color.FgYellow).SprintFunc()
s := Yellow(str)
// clear color s ?

I don't want to turn  off the color globally.
var flagNoColor = flag.Bool("no-color", false, "Disable color output")

if *flagNoColor {
	color.NoColor = true // disables colorized output
}

Is there any code to do that?

Yeah create your color instance first before using SprintFunc() and then you can disable it via DisableColor(), see: https://github.com/fatih/color#disableenable-color


Image in Resource does not Update

Access list of file with images: https://bbp.epfl.ch/nexus/web/bbp/somatosensorycortex?shareList=JTdCJTIybmFtZSUyMiUzQSUyMkpQRyUyMiUyQyUyMnZpZXclMjIlM0ElMjJueHYlM0FkZWZhdWx0RWxhc3RpY1NlYXJjaEluZGV4JTIyJTJDJTIyaWQlMjIlM0ElMjJjZjE0MTVhMS1jNDVkLTQyOTgtYTM2Yy04YjY4ODI4MmE4ZWUlMjIlMkMlMjJxdWVyeSUyMiUzQSU3QiUyMnNpemUlMjIlM0ExMDAlMkMlMjJkZXByZWNhdGVkJTIyJTNBZmFsc2UlMkMlMjJxJTIyJTNBJTIyanBnJTIyJTdEJTdE
Click on resource, you see an image of a cell
Navigate to Links and Click on another resource
The image will stay but the rest of the resource will change

Reported by @annakristinkaufmann

This image preview component should be removed from he metadata ticket, and should be done with this task: https://github.com/BlueBrain/nexus/issues/1099.
The image preview plugin should be careful not to have this issue https://github.com/BlueBrain/nexus/issues/1105


Add a link to script version for this

We used a script to run this and it works very well, so we'd like to propose it here for anyone interested or lazy as we are :)

I'm assigning to Brendan.  My inclination is to say we should host the scripts and docs in-tree rather than a link to them.

@thockin We'd like to, if @brendandburns   thought in-tree is OK.

Yes, we'd really rather host it.  That way we can keep it up to date.
If you refactor this PR to add the script, that would be great.
Best
--brendan

I'd like to, will update it here soon.

@brendandburns Thanks for your time, I just update the scripts

@resouer The scripts still need the boilerplate copyright header

@brendandburns I think I've already added copyright header (copied from: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/gce/upgrade.sh). Tell me if there's mistake.

LGTM.  Thanks!

Trying to get shippable to rerun.

Shippable is a known flake.

@k8s-bot test this please

@lavalamp  I rebased it, seems make Shippable comfort. :)

still LGTM


Strip trailing slash from server url, fixes #54

Coverage decreased (-0.3%) to 97.297% when pulling 1406949b88b082ac63f364d6b411c3392a5c2da2 on Fak3:f54_trailslash into cb460e8ca5536cc5b3b5206ad6c4f0f97910bc2f on frictionlessdata:master.


disable Sentinel protection

Hi,
I like to disable the protection-mode for the redis sentinel instances for local development.
I tried to setup the start parameter, but then the vagrant box could not  be provisioned anymore.
I tried to set the config values in redis-cli in the guest machine, but I my only change the config of the non-sentinel instance?
I tried to add the config "protected-mode no" in the "redis-sentinel.conf", but it seems to have no effect at all.
When I try to connect (via Medis or node.js ioredis) it still wants me to disable the protection-mode.
Thanks for your help!

okay.. finaly we got it working:
the redis-sentinel.conf must include:
bind <IP_ADDRESS>
protected-mode no
then node ioredis can connect.
The Desktop Client Medis just connects to Port 6379, not the sentinel Port.


Use new environment files for set output

Description:
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ for more information about the new environment file usage instead of the now deprecated set-output (and save-state) commands.
Closes #233
Type of change:

[x] Bug fix (sort of).
[ ] New feature.
[ ] Documentation update.

Checklist for the reviewer:

This checklist should be used as a help for the reviewer.

[ ] Is the change limited to one issue?
[ ] Does this PR close the issue?
[ ] Is the code easy to read and understand?
[ ] Do all new feature have an accompanying new test?
[ ] Has the documentation been updated as necessary?

Codecov Report
Base: 69.15% // Head: 69.15% // No change to project coverage :thumbsup:

Coverage data is based on head (e6df991) compared to base (2f180e2).
Patch has no changes to coverable lines.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #240   +/-   ##
=======================================
  Coverage   69.15%   69.15%
=======================================
  Files          18       18
  Lines         522      522
=======================================
  Hits          361      361
  Misses        161      161

Flag
Coverage Δ

pytest
69.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Bump bump-core to v0.5.0

This fixes the weird issue where bump bumps some random gem but not the one on the PR title.
Specs look good, but I'd like to test this out on staging first.

I've deployed bump and running it against gocardless-sage-partner now.

It's bumping things so let's do this!


Failed to build grpcio lxml pillow using Python 3.9 on Windows 10

What I'm trying to achieve
Bump the pillow dependency
Steps to reproduce the problem
Having all stated prereqs:

Run python -m pip install -r requirements.txt
Receive error message failed to build grpcio lxml pillow

What I expected to happen
No error messages
Screenshots

System information
Operating system: Windows 10

I'm researching the problem, currently only found fixes for pillow (needs a bump from 8.0.1 to 9.0.0). I think grpcio and lxml, from what I've seen so far, are not yet compatible with Python 3.9 in any release. Perhaps for now we should suggest in the Manual Installation Documentation to use Python 3.8 exclusively rather than 3.8 or greater?

I'm researching the problem, currently only found fixes for pillow (needs a bump from 8.0.1 to 9.0.0). I think grpcio and lxml, from what I've seen so far, are not yet compatible with Python 3.9 in any release. Perhaps for now we should suggest in the Manual Installation Documentation to use Python 3.8 exclusively rather than 3.8 or greater?


Update development section in README [ci-skip]

A temporary improvement, following suggestion from https://github.com/dry-rb/dry-web/pull/34 (example).
cc @AMHOL.

Thanks @ecoologic. I'll pull this in now and then do a little more tidying :)


useContext is currently aliased as of trpc 10.41.0, migrate to useUtils

What changed
This PR updates the useContext call to useUtils.
A small fix, but it closes #113 :)
I did consider perhaps trying to incorporate a check to see whether the trpc package version is greater than 10.41.0, but wasn't sure whether this change merited a modification to the AvailablePackage type.

Ping? @nicoalbanese

Sorry for delay! This is great thanks


Fix position on orientation change

i have noticed that the anchors jumps vigorously when the orientation change occurs,sadly i cannot set the refresh interval to 999999999 as max because i have noticed that sometimes anchors doesnt get displayed at all,
can you suggest some fix for the orientation change behaviour

@Shnafon sorry i didnt get you,could you please eleborate your point

I mean, it's normal for anchors to jump when there is a change of orientation
the phone's sensors are not 100% reliable
In all the applications I saw using AR with position markers there is this problem
After normal if you stay at a fixed place the marker should not jump vigorously but if you are moving it is quite normal

sorry I do not really help you

but, you see pokemon go handles it very efficielntly...
i'm using this library on my production app and trying to fix this issue,if done i'll definetly give a PR
meanwhile,you can suggest some info

i was able to get this working,by modifing the code at DeviceOrientation.
i have redesigned the implementation to use the ROTATION_VECTOR  to instead of accelorometer / magnetometer and also using azimuth value to determine the position in x,y,z plane while placing the anchors..not just pitch value
this is giving me very good results without any hack

Could you supply some code showing how you did that? I too am facing the same problem and losing signal and markers when switching my device's screen orientation.

can you share your code for orientation problem?? I am facing same problem.


Maybe satcom doesn't work correctly in sites that update BTC price in real time and show in browser tab?

Hi,
Maybe satcom doesn't work correctly in sites that update BTC price in real time and show in browser tab?
I tested satcom with many tabs and switching tabs, the satcom always show the posts from https://timechainstats.com/ or https://bitbo.io/
obs. Needs to have others pages opened and switch between tabs. You will see that satcom always show one the the two pages, instead of the url that is active, tab opened.
Understand?

Nice catch. because it listen for website changes, its also listening to those tabs in the background.


Update on delete operations

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
This PR updated the two delete operations "begin_delete_environment" and "begin_delete_dev_box" to match the behavior of LRO operations
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-developer-devcenter


what is the training label looks like when you pretrain Multimodal Video Encoder?

"running" or "a man is running" or "a man runs on the road"  ?

We use image/video text pairs directly, you can refer to WebVid for some examples

thanks


Full Backup Flag to eliminate this SPOF

Output of restic version
restic 0.12.0 compiled with go1.15.5 on linux/amd64
What should restic do differently? Which functionality do you think we should add?
Hi,
right now, if i understand it correctly, restic will first pull a whole copy of the to be backup'ed files.
For the next backup run, thanks to deduplication, it will just copy changed files and reference unchanged files to the already existing full copies that has been taken at the very first backup.
I would like to have a flag to force restic to take a full copy again and actually make this new full backup being the reference for future deduplication maths.
The existing --force / --ignore-ctime / --ignore-inode are not helpful to achieve this.
What are you trying to do? What problem would this solve?
The way restic works now is actually building a SPOF.
If, for what ever reason ( physical or logical damage ) this first whole copy becomes corrupted, all the following taken backups alias snapshots might be worth nothing.
This situation is in real life actually happening more frequently than anything else. Because of a physical drive failure some parts/sectors of a drive ( no matter if its a single drive or an array of drives ) might become unreadable. If you have a SPOF in your data, better hope that this SPOF is not located in this failing area.
Or think about a logical mistake. Some script or human had a bad day and killed parts of data accidently. Having here a SPOF by design is just a bad idea as backups should ideally not be ( too much ) doubted.
In most backup strategies you actually do a full copy then various incrementals and then again a full copy. So during a month you might hold 1-2 full copies or even more and erase this way the logical SPOF.
Of course you could create for every new full copy just a new repository in restic. But this would actually organisatoric complexity by the need to init again a repository with a new password and giving any kind of automatics a hard life like this if for the same server/backup multiple repositories/passwords/what ever has to be managed.
Maybe its possible to make the code consider the latest existing full copy for deduplication only -- without loosing too much speed or adding too much complexity to the code.
Did restic help you today? Did it make you happy in any way?
We are actually coming from backuppc and want to / are currently migrating to restic.
Restic is faster, scriptable for own automation and thanks to the REST server more in the "now" and not the past, enabling quiet some other features to access/work with the backed'up data. The tagging feature is also a smart idea.
Restic clients are available for the major OS through precompiled ready-to-run clients or are even part of the repository of the used (linux) distribution.
The whole picture of restic is so far the best i could find to get the job done. We started the development of a simple webbased UI that we will also publish for free on git as soon as its ready to give back the community something.
Thank you for your time and work!
Greetings
Oliver

This is partially related to #804 and #256. Telling restic to store blobs twice would however have to work a bit different than telling a specific backup run to store blobs a second time. Such a feature must be integrated with the prune command which removes no longer used blobs. Thus we'd probably end up with something that tells restic to keep two copies of each blob that is used more than once. That way the redundancy would be added automatically (one just has to specify the amount of redundancy) and pruning a backup wouldn't remove all duplicates later on.
Currently the best way to avoid such SPOFs is to use to repositories and either store the backups there alternatingly or to use the copy command to sync data between these repositories (the copy command verifies data before copying).
A proper solution to avoid SPOFs would also require taking care of #3404 and probably a few other well hidden issues.


Project structure

This PR creates the default project structure with:

Default README.md information with code of conduct, license and discussions links
Github actions file with:

Default license check which ensure compatibility of licenses and ability for members to re-use work commercially
Running cargo fmt to ensure consistent Rust formatting
Running cargo-clippy to ensure recommendations are applied
Running tests including doc tests

Creating a workspace file with the default resolver set to "2"

Just merge this once, it's just basic structure allowing github actions to run.

You can also just  approve a PR through the review then I can merge. We require at least one review to merge


Simplify the networking logic

Instead of maintaining two connections per peer (one for sending messages and one for receiving them), maintain just one. Every node has a unique comparable id; we decide which node initiates connections to which other node based on the order of those ids.
This new setup should be less fragile; we don't have to juggle the state of two separate TCP sockets, or handle when one disconnects but not the other. The logs should also be easier to follow now, since the behavior is simpler.

worked on the oracles cluster, but there's no sleep between connection attempts, so it spins aggressively when the other nodes aren't running


[MagicDrive3d codes]

Thank you for your great works! When do you plan to release codes for MagicDrive3d? I found MagicDrive series are indeed driving world models that can possibly been put down to the earth.

Hi, thanks for your interest in our work. I have made a new repo https://github.com/flymin/MagicDrive3D and future updates will be made there.


deprecation warning

DeprecationWarning: scipy.interp is deprecated and will be removed in SciPy 2.0.0, use numpy.interp instead

Thanks! I fixed this via @118 as
from distutils.version import LooseVersion as Version
from scipy import __version__ as scipy_version

if scipy_version >= Version('1.4.1'):
    from numpy import interp
else:
    from scipy import interp


refactor(equality): #155 - Extract equality as separate function

To allow change reflect.DeepEqual to semantic equality

:tada: This PR is included in version 3.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update documentation of cluster delete command. Fixes #94

As stated in #94, --name is not used anymore. This PR fixes the documentation accordingly

@5nafu thank you for this contribution, nice cleanup!
@xetys LGTM
refs https://github.com/xetys/hetzner-kube/pull/299


print warn log very fast

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ √] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?
configuration with apollo and skywalking-oap-server.log contains the logs :
'Pick up system reserved threshold 500ms because of config missing'

as the important , it print very fast , i find one answer of skywalking member, he say it can be ignore but the disk will full very fast.

Bug

Which version of SkyWalking, OS and JRE?

Which company or project?

What happened?
If possible, provide a way to reproduce the error. e.g. demo application, component version.

Requirement or improvement

Please describe your requirements or improvement suggestions.

There should be a service-apdex-threshold.yml file in your /config, which would make the warning goes away. Which version are you using?

There should be a service-apdex-threshold.yml file in your /config, which would make the warning goes away. Which version are you using?

i use 8.1.
the problem solved,  the reason is configuration's value of apollo wrong, the right way is :
key = core.default.apdexThreshold
value = default: 500


The "Pickup Data" demo should have a link to a recording of the talk

I'm posting this as a reminder for me to add the link, and so that anyone who wants to see the recording can watch this for a notification. :-)

@krisajenkins is the recording now available?

Really good talk! Jfokus video

Thanks @ruaridhwatt!
And thanks for posting the link. I honestly thought I'd merged this weeks ago. 😊 🤦


CORS for subscription

I am working on an app using AWS AppSync. I have enabled the AuthN and AuthZ.
One part I am stuck is at adding CORS filter for Appsync subscriptions.
I have worked on websockets earlier and there too I had this problem. I solved it manually in websockets by filtering the CORS from header during the handshake.
Do we have a provision to invoke a lambda in Appsync when a client is attempting to connect for subscription ?

@getmyrolemodels AppSync doesn't supports this. There's nothing we can do on the CLI side as this is a service limitation. You can reach out to the service team on the AppSync forum: https://forums.aws.amazon.com/forum.jspa?forumID=280


[por_master] Add yaml_lint feature

Because the upstream PR https://github.com/ros-industrial/industrial_ci/pull/317 is still WIP, and @AustinDeric has mentioned multiple times his desire to have this feature, I'm opening this (although I'm not sure how critical this feature is for many repos).
Review criteria

[ ] CI pass.
[ ] Code review.

Future TODO

[ ] Once  https://github.com/ros-industrial/industrial_ci/pull/317 gets merged, por_master branch needs to sync with it (which likely requires removal of some of the commits in this PR).

@AustinDeric Do you mind enabling Travis CI for your fork? You should be able to do so with a single click at https://travis-ci.org/profile/AustinDeric

I somehow created a mess. Will reopen.


Update projects.md to add Capsule Machine NFT

Capsule Machine NFT uses ERC721A
https://etherscan.io/address/0xc19ced6633f0da7cef642b7a3f6b3ff0bb2465c0#code

Should the list be modified to be in chronological order per transaction time of the contract being created?

We might reorganize it in the future, but for now it's FCFS


Question 'response to defenses of other organism involved in symbiotic interaction'

Is 'response to defenses of other organism involved in symbiotic interaction' really different from any 'response to defenses of other organism'?
I think we should drop the 'involved in symbiotic interaction' from the term, as well as from the definition 'Any process that results in a change in state or activity of a cell or an organism (in terms of movement, secretion, enzyme production, gene expression, etc.) as a result of detecting the defenses of a second organism, ~where the two organisms are in a symbiotic interaction.~'
@mgiglio99 @ValWood @addiehl
What do you think ?
Thanks, Pascale

I am happy to drop the phrase as unnecessary for the term name and definition.
Alex

Would it keep its 'symbiotic process' parent?

Symbiotic process is now defined as a process that is mediated symbiont genes, so both these terms ('response to defenses of other organism involved in symbiotic interaction' or 'response to defenses of other organism') would anyway NOT be under symbiotic process, but under 'interspecies interaction between organisms'. I hope that's OK.
Pascale

Whoa - I didn't notice that aspect of the def for symbiotic process.
I think symbiotic process has to include things that the host does.
We have lots of terms under there from the perspective of the host and those make sense and are needed. So I think that def should change. How about "A process carried out by gene products from an organism living in more or less intimate association with another organism that enables or is part of the interaction between the two organisms." then the rest as it is.
And I'm not following why 'response to defenses of other organism involved in symbiotic interaction' wouldn't be a child of 'symbiotic process'.

@pgauget, maybe this can close?

The remaining issue is the definition for symbiotic process.
With Paul we had changed the definition to try to separate what the host and what the symbiont does, but @mgiglio99 thought that symbiotic processes should include genes from both species - to be revisited.
Pascale

@mgiglio99 thought that symbiotic processes should include genes from both species

@mgiglio is that what you meant?
There are terms under symbiotic process that don't include genes from both species.
for example
GO:0075048    cell wall strengthening in symbiont involved in entry into host
"interaction with host" is under "symbiotic process", but presumably not all "interaction with host" is symbiotic?

Yes, symbiotic interaction needs to includes genes from both hosts and symbionts.
And yes I think all interaction with host is symbiotic. If you have a host, then that is a symbiotic relationship and any interactions between the organisms in that relationship would be a symbiotic process.

Didn't we have another github issue where we were working on the def of symbiotic process?

I found the other issue:
https://github.com/geneontology/go-ontology/issues/17979

Thanks @mgiglio99 . The present ticket is then redundant.

Well, I'm not sure we ever resolved the original question.  We kind of got derailed due to the question of the def for 'symbiotic process'.
So, as it currently stands the original two terms have been merged - correct?
And it appears the merged term is not a child of 'symbiotic process' - correct?
It seems that it should be, or at least somehow related.  If the terms were merged because they meant the same thing, then the merged term should be a child of 'symbiotic process'. But I'm not sure all 'responses to defenses...' are the result of a symbiotic interaction.  I suppose that was the origin of the previous '...in symbiotic interaction' term.


Move act-specific parsing out of nari

Purpose
There is no purpose my life is a lie. I move act-specific code out of nari
New Features
Why ${DEITY} have you forsaken me?

Tests will need to be relocated, for mypy and pylint the path in the workflow will need updating. Is there some way we can finagle the setup.py to allow nari_act to be a top level dir? It looks like due to the act parent folder, import paths are getting weird.

closing because PR #95 is having more traction.


Add methods to create the VMware config spec to add/remove disks via VM Reconfigure.

VMware specific methods to add/remove multiple disks in one config spec  via VM Reconfigure.

@lfu Let's get the remaining rubocop warnings cleaned up here as well.  Let me know if you have questions about any of them.  Thanks.


Add a bower package

It would be very helpful to have a Bower package for installing PDF.js.
The steps for Bower registration are straightforward:

Create a bower.json to define the package, that would look something like this:

{
  "name": "PDF.js",
  "version": "0.8.477",
  "main": "./PDF.js",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<name>": "<version>",
    "<name>": "<folder>",
    "<name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Register the package with

$ bower register <my-package-name> <git-endpoint>

Then eager users could install PDF.js with something like bower install PDF.js.
A couple caveats:

the Git tags should be kept up-to-date with the current version (i.e. tags must be pushed);
it would be most effective if a built version of PDF.js were deployed with each tag.

Cheers

@joseym , you have not included the viewer? This is why I need pdfjs, for the viewer. Thanks!
@yurydelendik, bower is "the way" developers bring packages into their applications. It's more popular than ever. Thanks!

There is a good argument that bower is on the way out.. @tmorrow-hyphensolutions. The ideas was essentially to have a different repo for frontend and backend code. Made sense at the time. However, that's a useful social distinction that needn't be technical. The technical reasons for it was that some people wanted to hack into window or use Require.js, and npm having originated as a node repository always requires CommonJS. This technical for it was made obsolete with the UMD module pattern.
Now there is no reason for Bower technically, and socially the reason for it is a failure and even a technical impediment. If you have bower installing to a different directory and you decide to move to a build system like Broccoli/Gulp/Grunt, you have to configure them to work with the bower directory using some other kind of hack like debowerify. All of this is silly. Modern JS demands a build system and the migration will be common from <script> tags to pull in resources, to pulling in a built bundle.
So death to bower. I'll say it, many others have said it too.1, 2.

Thanks @EvanCarroll – As submitter of this issue, I do not disagree with your post i.e. I am fine if there is no bower package, on the condition that a client-side package is available on the key alternative: npm (and it looks like there is such a npm package – pdfjs-dist, but I have not yet checked it out).

Well, at that pdfjs-dist has a bower file so this should be closed.
However, the important issue here is the adoption of UMD because that makes bower irrelevant, and makes publication to npm universally acceptable. That's mentioned here but nothing is done in that direction.

This issue was closed two years ago :)

@EvanCarroll , I'm looking forward to UMD. In the meantime, Visual Studio does not look like it supports it. They support bower and npm in the 2015 IDE. Perhaps they are behind the times :)

Bower and Npm are package.json and bower.json files respectively. UMD is an idiom which you use to create your module, like Require.js, and CommonJS. You can find it here. Just start off your module with that and you've got UMD.

The issue was closed when bower was not that popular at the time. But look at us now. Everyone is on bower and we can laugh on comments like "Who will ever use XXX from bower?". It would be awesome if you support bower officially. Thanks.

It would be awesome if you support it officially. Thanks.

It's already supported, and has been for quite some time, please refer to https://github.com/mozilla/pdf.js#using-pdfjs-in-a-web-application.
Note how the first search result on https://bower.io/search/?q=pdfjs links to https://github.com/mozilla/pdfjs-dist.


fix: wrapping layout inserts extra indents on consecutive newlines

is this PR still valid to merge?

Good catch. No it is not


Unknown type(s) in VisualUpdateOptions

Hi folks - I've noticed that since sometime late last week in the developer visual, an unknown VisualupdateType of 126 was being supplied in the VisualUpdateOptions, typically when I'd expect an All to be supplied. This has since changed to 254. Neither of these are known to the visual API so they cannot be easily handled and I'm having to cast the values to strings so I can inspect them.
This is playing havoc the code I'm using to ensure I route my logic correctly, which is now starting to look like this:
switch (true) {
    case options.type === VisualUpdateType.All:
    case options.type === VisualUpdateType.Data:
    // TODO: there's something funny going on with the developer visual
    case options.type.toString() === '254':
    case options.type.toString() === '126': {
   ...
}

Is this a bug, or are you intending to update the API at some point to reflect and expose these unknown types?
Related: I've created a PR for a similar issue some time ago (microsoft/powerbi-visuals-api#38) for the ResizeEnd event, which is also incorrectly coded. Is it possible for someone in the team to review and approve? I also need this in my visuals for similar reasons, and I'm currently having to cast.

For completeness, I'll just add I'm using powerbi-visuals-tools 4.0.5 + powerbi-visuals-api 3.8.4 (I have checked through to 4.2, which is the latest published version and 4.4, which is the version in the repo's main branch).

I can confirm that a new VisualupdateType has appeared with the value of 254 and it caused some issues in our application.
We are using<EMAIL_ADDRESS>and<EMAIL_ADDRESS>

I believe you need to use the value as bitwise flags, ie
if (type & powerbi.VisualUpdateType.All) { /* ... */};
if (type & powerbi.VisualUpdateType.Data)  { /* ... */};
if (type & powerbi.VisualUpdateType.Resize)  { /* ... */};
if (type & powerbi.VisualUpdateType.ResizeEnd)  { /* ... */};
if (type & powerbi.VisualUpdateType.Style)  { /* ... */};
if (type & powerbi.VisualUpdateType.ViewMode)  { /* ... */};

I'm now seeing a new unknown/unsupported type in the developer visual this morning - 510. I'm currently using API 5.1 and there's nothing in the VisualUpdateType enum for this in the latest API (5.2). Or even in the PR for 5.3.
Is this intentional? If so, can you please provide the details of what it means? Introducing these new, unknown update types is causing all kinds of havoc with those of us that are trying to use these update types to drive our visual logic.
These should really only be introduced if we're using a visual API version that supports their types. Otherwise, it would be better to just return VisualUpdateType.All if this is unknown to older API versions.
Please also consider dedicating some time to fixing the current outstanding issues with this enum for developers:

Add and document type 254 (still unknown)
Fix incorrect mapping 32 to 36 (ResizeEnd) so this enum can be used as intended in TypeScript. PR here.

Hello colleagues, sorry for this confuse.
First of all, there was inconsistency in extending of VisualUpdateType in PowerBI backend and in API. We will release API 5.3.0 where we will fix this very soon.
Next, I want to clarify how VisualUpdateType works and why it uses such values. So, it uses binary system "under the hood" to manage type flags. This table below will make it more obvious to understand:

VisualUpdateType
decimal
binary

Data
2
000000010

Resize
4
000000100

ViewMode
8
000001000

Style
16
000010000

ResizeEnd
32
000100000

FormattingSubSelectionChange
64
001000000

FormatModeChange
128
010000000

FilterOptionsChange
256
100000000

All
510
111111110

So, using binary system, it is possible to define what flags/types was sent just from one single number. Example: combination of "Resize" and "ResizeEnd" will be a "100100" in binary and 36 in decimal.
That's why it is good idea to use bitwise operators to work with `VisualUpdateType`, for example like in a couple of comments above.

Hi @Demonkratiy, and thanks very much for clarifying.
So, as I now understand it, any time you add a new VisualUpdateType to the visual host, we're going to get an additional bit's worth of information, and therefore the decimal value of our type (most notably for All based on previous issue reports will change accordingly)?
However, I'm unsure if I was ever able to know this without this issue coming to light. Has it ever been documented anywhere that this is how they should be used? I've looked around and this doesn't seem to be a common use case for enums in TS (but it is definitely very useful).
From testing, the above example doesn't evaluate to true for me, so wasn't working. Adding an equality check does though (which is as expected now the logic is understood):
if (powerbi.VisualUpdateType.All === (options.type & powerbi.VisualUpdateType.All)) { /* ... */ };
if (powerbi.VisualUpdateType.Data === (options.type & powerbi.VisualUpdateType.Data))  { /* ... */ };
if (powerbi.VisualUpdateType.Resize === (options.type & powerbi.VisualUpdateType.Resize))  { /* ... */ };
if (powerbi.VisualUpdateType.ResizeEnd === (options.type & powerbi.VisualUpdateType.ResizeEnd))  { /* ... */ };
if (powerbi.VisualUpdateType.Style === (options.type & powerbi.VisualUpdateType.Style))  { /* ... */ };
if (powerbi.VisualUpdateType.ViewMode === (options.type & powerbi.VisualUpdateType.ViewMode))  { /* ... */ };
etc.

If nothing else, to prevent similar frustrations for newcomers (and some of us that think we know more than we actually do!) it would be great if the note about type being bitwise could make it into the API doc as comments, and also the developer doc site. But, given that this now clarifies how we should be inspecting the VisualUpdateType, I'm going to close.
Thanks again,
Daniel


[Android] [deprecation] loop(boolean) in LottieAnimationView has been deprecated

I see this warning when I run the android build.
/LottieAnimationViewPropertyManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

when I run with -Xlint:deprecation
lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewPropertyManager.java:118:
warning: [deprecation] loop(boolean) in LottieAnimationView has been deprecated
      view.loop(loop);
          ^
1 warning

Uh, interesting... it seems the call needs to be updated to view.setRepeatCount(LottieDrawable.INFINITE); (which is what loop does)

Ah, unfortunate... and annoying.
Lottie-android has the definition for setRepeatCount
The iOS counterpart doesn't have it publicly... although the actual implementation uses a core animation that allows you to set it (or expose it) if required.

@rodrigoelp Thanks for looking it through!
Any possible solutions to avoid these error?
If I get an idea I would be happy to raise a PR.

Yes @kirankalyan5, I mentioned it above... one way is to reimplement the way loop={true} works to call internally view.setRepeatCount(...) as opposed to the view.loop() method.
Although, technically this is not an error ;)
I've created a pull request with the change, though my testing was pretty quick, so I am going to suggest to @emilioicai to test it a bit more.


feat: ec2 deployment

Instructions and Cloudformation stack to deploy a NIM to EC2.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Published here instead: https://github.com/schuettc/ec2-nim-deployment

Hey Court, can you get the relevant files (.env, and any associated shell scripts to create CF stack in 1.infrastructure) please? This way, we can separate infra and project deployments. Also, please take a quick look at https://github.com/aws-samples/awsome-inference/blob/main/CONTRIBUTING.md and update relevant READMEs with information. Thanks!


GraphiQL Docs error after upgrade from 0.9.6 to 0.9.9

Hello,
I've a problem in the Docs section with upgrading the io.leangen.graphql:spqr from version 0.9.6 to version 0.9.9.
In the GraphiQL interface at the right side where we have the Docs this error appears:
Error: SortPropertyInput fields must be an object with field names as keys or a function which returns such an object.
    at invariant (http://localhost:8070/graphiql/js/graphiql.js:21601:11)
    at GraphQLInputObjectType._defineFieldMap (http://localhost:8070/graphiql/js/graphiql.js:25080:31)
    at GraphQLInputObjectType.getFields (http://localhost:8070/graphiql/js/graphiql.js:25070:51)
    at http://localhost:8070/graphiql/js/graphiql.js:26410:27
    at typeMapReducer (http://localhost:8070/graphiql/js/graphiql.js:26422:7)
    at http://localhost:8070/graphiql/js/graphiql.js:26420:22
    at Array.forEach (<anonymous>)
    at http://localhost:8070/graphiql/js/graphiql.js:26411:37
    at typeMapReducer (http://localhost:8070/graphiql/js/graphiql.js:26422:7)
    at typeMapReducer (http://localhost:8070/graphiql/js/graphiql.js:26390:12)

When trying to update to version 0.9.7 I've get the same error for 0.9.7 and 0.9.8 also.
In my code I have an interface:
@GraphQLInterface(name = "SortProperty")
public interface SortProperty {
}

And some implementing enums:
public enum BillSortProperty implements SortProperty {
    CREATION_DATE,
    PAYMENT_DATE
}

public enum BookingSortProperty implements SortProperty {
    START_TIME,
    END_TIME
}

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PageableQuery<T extends SortProperty> implements Serializable {
    private static final long serialVersionUID =<PHONE_NUMBER>17233556L;
    @GraphQLNonNull
    private PageRequest page;
    @Valid
    private List<SortOption<T>> sortOptions;

    public PageableQuery(@GraphQLNonNull final PageRequest page) {
        this.page = page;
    }
}

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SortOption<T extends SortProperty> implements Serializable {
    private static final long serialVersionUID =<PHONE_NUMBER>202891945L;
    @NonNull
    private SortDirection sortDirection;
    @NonNull
    private T sortProperty;
}

I've tried to add an id method to SortProperty but ti does not help:
@GraphQLInterface(name = "SortProperty")
public interface SortProperty {
    default String id() {
        return getClass().getSimpleName();
    }
}

Also it is not working if I remove the @GraphQLInterface annotation from the interface.
Could you please highlight the issue what I'm doing wrong?
Regards,
Attila

Sorry, there's just way too much going on here for me to follow, with Lombok, Jackson, BeanValidation, interfaces, generics and enums 😱
The error basically just says something is wrong with SortPropertyInput. How does that type look in 0.9.6?
Can you put a breakpoint and analyze the generated schema? Inspect the SortPropertyInput type especially.
Can you show me the top level query/mutation using SortProperty as input? Or even better, can you maybe create a simple runnable example demonstrating the issue?

I'll try to replicate your issue in the mean time.
GraphiQL gives terrible errors that are not at all helpful... If it's gave a better error I'd know where to look without the need to replicate the problem.
I'm guessing that somehow an invalid type was generated, like an object type with no fields or something like that... See if you can investigate in that direction as well.

Sorry for the lot of annotations. I added those here to reflect what I exactly have in my code.
You've right. I found out that I have a problem in my code where an invalid type was generated.
So the problematic part was:
public class BillingPeriodTotalsQuery extends PageableQuery {
    private UUID accountId;
    @Builder
    public BillingPeriodTotalsQuery(final PageRequest page, final UUID accountId) {
        super(page);
        this.accountId = accountId;
    }
}

In this code I've missed the generic parameter for PageableQuery. I think because I've missed the generic GraphQL didn't knows what type to generate for private List<SortOption<T>> sortOptions;.
How I found it out?
Actually in the logs I've get a warning but I didn't think that because of this the Docs part in GraphiQL are not working:
Potential type name collision detected: 'PageRequestInput' bound to multiple types: @com.fasterxml.jackson.annotation.JsonInclude(valueFilter=class java.lang.Void, value=NON_NULL, content=ALWAYS, contentFilter=class java.lang.Void), @com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown=true, allowGetters=false, allowSetters=false, value=[]) org.mypackage.PageRequest (loaded by sun.misc.Launcher$AppClassLoader@18b4aac2) and org.mypackage.PageRequest (loaded by sun.misc.Launcher$AppClassLoader@18b4aac2). Assign unique names using the appropriate annotations or override the TypeInfoGenerator. For details and solutions see https://github.com/leangen/graphql-spqr/wiki/Errors#non-unique-type-name. If this warning is a false positive, please report it: https://github.com/leangen/graphql-spqr/issues.

It doesn't help my very much because I didn't realize that it has something to do with my SortProperty error.
I started to remove the SortProperty interface and changed the PageableQuery class declaration in this:
public class PageableQuery<T extends Enum> implements Serializable { ...

Then I started the application and it failed to start because this error:
TypeMappingException: The type of member "setSortOptions" belonging to org.mypackage.BillingPeriodTotalsQuery is missing generic type parameters and can not be mapped.

Than I've tried just to comment the code what was described in the error and the application started and the Docs worked well.
After fixing this problem I succeed to upgrade to 0.9.9 and the GraphiQL Docs are working well.
Thank you very much @kaqqao for your support! I really appreciate it :smile:

Cool, glad to hear you have it figured out!


Update Dockerfile to use user-provided MySQL IP

Update Dockerfile to use user-provided MySQL server IP.
Update README.md to provide instructions to run Fineract container with remote MySQL server.

This looks good to me. Thanks for your work on it.

This seems a useful great first step (thanks @Anh3h) for https://issues.apache.org/jira/browse/FINERACT-773 for which IMHO we should eventually find an even better and more permanent solution... in an ideal world, one should not have to rebuild the container to have it connect to a different DB.


fix: allow other devices to configure a single lifeline, send it reset notifications

Certification expects us to send a Device Reset Locally Notification via the lifeline on a factory reset. Although this doesn't seem to make a lot of sense when we're the primary controller, we now implement the bare minimum for supporting this.

@zwave-js-bot automerge


An err with .coverage database

Hi,First of all, thanks for this library!
The question
When I was testing with Coverage.py, something went wrong:
Traceback (most recent call last):
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/sqldata.py", line 1107, in execute
return self.con.execute(sql, parameters)
sqlite3.OperationalError: no such table: arc
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/sqldata.py", line 1112, in execute
return self.con.execute(sql, parameters)
sqlite3.OperationalError: no such table: arc
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "test.py", line 22, in
cov.json_report(outfile=report_str, pretty_print=True)
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/control.py", line 1075, in json_report
return render_report(self.config.json_output, JsonReporter(self), morfs, self._message)
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/report.py", line 35, in render_report
return reporter.report(morfs, outfile=outfile)
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/jsonreport.py", line 45, in report
for file_reporter, analysis in get_analysis_to_report(self.coverage, morfs):
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/report.py", line 72, in get_analysis_to_report
analysis = coverage._analyze(fr)
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/control.py", line 854, in _analyze
return Analysis(data, self.config.precision, it, self._file_mapper)
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/results.py", line 24, in init
executed = self.data.lines(self.filename) or []
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/sqldata.py", line 889, in lines
arcs = self.arcs(filename)
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/sqldata.py", line 940, in arcs
arcs = con.execute(query, data)
File "/home/bromiao/.local/lib/python3.8/site-packages/coverage/sqldata.py", line 1129, in execute
raise DataError(f"Couldn't use data file {self.filename!r}: {msg}") from exc
coverage.exceptions.DataError: Couldn't use data file '/home/bromiao/catkin_ws/src/test_rospy/test/unit/.coverage': no such table: arc
'}
I used coverage.py like this:
cov = coverage.Coverage()
cov.set_option("run:branch", True)
cov.start()
do_something()
cov.stop()
cov.json_report(outfile=report_str, pretty_print=True)

This file named  “usingcoverage.py”
When testing , I used threading and subprocess like this:
Threading:
t=threading.Thread(target=target_func,args=(arg,))
t.start()

Subprocess:
def target_func(self,arg):
        ret = subprocess.run(“python3 usingcoverage.py”, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8",timeout=100)

I think this might be causing the concurrent use of the .coverage database to throw the error
I did my work in Ubuntu 20.04, python 3.8.10
Coverage.py version 6.3.2 with C extension

Can you provide the full code to reproduce the problem? It would help to explain why you are using the API instead of the command-line interface, why you are using a subprocess from Python, and why you are using a thread to run the subprocess.

The full code is sample. Can I use e-mail?

Have you got the e-mail?

Hi, I also have this problem. It is not happening consistently, using the PYTEST_ADDOPTS="--cov --cov-report=html" python setup.py test command line.
Experiencing on wsl Ubuntu 20.04.5 with python 3.9.13, coverage==6.5.0, pytest-cov==2.7.1 and pytest==5.0.0
I get a warning instead of an error (paths abbreviated):
(...)/.virtualenv/lib/python3.9/site-packages/coverage/report.py:87: CoverageWarning: Couldn't parse '(...)/somepackage/somefile.py': Couldn't use data file '(...)/.coverage': no such table: arc (couldnt-parse)
  coverage._warn(msg, slug="couldnt-parse")

I don't know about the pytest, But would you like to see if the ".coverage" data file exist?
And if your ".coverage" data file is rewriting when you excuting your command?

Hi, I figured out the problem with my .coverage file. I was launching my tests from a commandline in VSCode and due to some reason, VSCode was launching pytest discovery at the same time, resulting in the coverage file being overwritten.
I used sqlite database viewer to look into the .coverage file to find this in the meta table:

sys_argv
['/home/<user_name>/.vscode-server/extensions/ms-python.python-2022.18.2/pythonFiles/testing_tools/run_adapter.py', 'discover', 'pytest', '--', '--rootdir', '/home/<user_name>/dev/<project_name>', '-s', '--cache-clear', '-c=setup.cfg']

version
6.5.0

when
2022-11-10 17:58:54

has_arcs
1

While when the coverage was alright, the meta table looks like this:

sys_argv
['setup.py']

version
6.5.0

when
2022-11-10 17:18:15

has_arcs
1

Adding --no-cov to the VSCode setting "python.testing.pytestArgs" fixed it for me.

I don't have a way to reproduce this yet.  If you can provide me with code I can run, I can re-open it.

I'm sorry for that, this is my problem. I started multiple programs at the same time, but they used the same database ".coverage". Writing different coverage data over a short period of time causes this problem. Then I tried to use different database for each program. Finally the problem was solved.


init registerSystem - new features

Systems go along with components, and the API will probably change a lot.


Feature/dashboard duplicate

In the ellipsis dropdowns on the dashboards, I have added DOM functionality for rename, delete, and duplicate. For duplicate specifically, I devised a process of choosing a new id for a duplicated card. This method can be observed in Dashboard.js checkForNextId() function. This same method of getting new ids should be used for creating new goals and topics but this has yet to be implemented.

Shannon is my lead
On Fri, Oct 7, 2022 at 3:34 PM Brian Gormanly @.***>
wrote:

@.**** approved this pull request.
Looks good, you need to assign your lead to review as well!
—
Reply to this email directly, view it on GitHub
https://github.com/briangormanly/agora/pull/181#pullrequestreview-1134996090,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFR4ASFU3OSTB3JWVTXZ5ODWCB3KZANCNFSM6AAAAAAQ73FNJU
.
You are receiving this because you authored the thread.Message ID:
@.***>


any version support for gerrit 2.13.9 ?

any version support for gerrit 2.13.9 ?

No, only gerrit versions after 3.4.0  (those that are not EOL) are supported.


Update README.md

minor Grammarly-inspired fixes.
PR Summary

PR Checklist

Do you want this post to be published on a specific date?: Y/N [Specify date]:
[x] I have read the contributors guide and followed the style and process guidelines
[x] PR has a meaningful title
[x] Includes content related an open issue

see Closing issues using keywords.

[x] This PR is ready to merge and is not Work in Progress

For some reason I was not able to edit the original post - Git insisted on creating a new branch.
So THIS PR is just minor tweeks to the earlier update.


Fixed OreDictionary filter in Miner not writing "requireStack" to NBT.

Fixed OreDictionary filter in Miner not writing "requireStack" to NBT.
This solves issue #2330.

Great PR, thanks


Selector and pagination index (follow up #50)

Use the selector helper seems to remove the current pagination index even if the selector has not been changed.
As required, here is a meteorpad to reproduce.
Note: removing selector option from the tabulartable fixes the issue, but of course i need it.
Best of all, as a pro meteor user, if you can give me the tip to avoid page flashing on browsing the items, it would be awesome.
Thank you for your very valuable help!

The issue in your example seems to be the Router.go. It makes sense that the table will reset when you change routes because the templates are destroyed.
If I'm misunderstanding, then please list the exact steps I need to do on your example to reproduce the issue.

Maybe a miscoding issue, in my use case i dont want to create a new instance of dt when changing route;  I updated the sample.
Sorry im quite new in meteor.
Thanks for help

To reproduce:

select a dt item in page 1
=> route is changed and the selected item elements are displayed OK
go to page 2
=> page 2 is displayed OK
select a dt item in page 2
=> route is changed and the selected item elements are displayed OK
=> page selector go to page 1 KO

afaik, changing routes destroys and rerenders the route template, even if it's the same template and only the params are changing. This happens both times, but since you're on page 1 in the first case, you don't notice it happening.
I'm assuming your goal is to reactively update the URL and the template's data context but not do any of the other normal routing flow. I don't see anything in the iron router docs about that. I can think of ways to fudge it, but it seems like there should be some standard solution in IR. @cmather?

Hey guys, the templates should only be destroyed from one route to the next if the template actually changes. We take great care NOT to re-render the layout or child templates if nothing has changed. But keep in mind if you change the layout from route to route, everything will necessarily re-render since the layout is at the top of the rendering hierarchy. There is one gotcha here related to using helpers on controllers. Are you doing that?
If you're seeing different behavior, it might be a bug in iron:router, or it might just be the way your helpers are used in the app. How are you determining that a re-rendering is happening?

As i can see, the template which contains the table seems well not be rerendered nor destroyed as wanted by ironrouter.
In fact, as mentionned, just the pagination index of the datatable is reseted and not the whole datatatable .
@aldeed for ie, use a filter in the datatable it is kept.

OK, weird. I will have to take another look. It does have something to do with the Router.go call because the issue goes away when you remove that line.

I have the same issue.
As @kk4sh pointed out, only the pagination index is reset. If you have anything in the "Search" input, it stays there.
I tried a shot in the dark by using the "stateSave: true" option from the DataTable (http://datatables.net/reference/option/stateSave), but it didn't work.
Is there a way to manually set the pagination or the selector? It could be a possible workaround for now.

Something else I noticed that might help:
If the helper referenced by the selector is a function, the pagination is reset, but if it is only a simple object the pagination works as expected.
For example:
The template:
{{> tabular table=TabularTables.Clients selector=selector }}
The helpers:
Works (keeps the pagination index):
selector:  {organization_id: "c9S4Fbgzz8WpJQwKq"} :+1:
Doesn't work (doesn't keep the pagination index):
selector:  function(){ return {organization_id: "c9S4Fbgzz8WpJQwKq"}} :-1:

@aldeed any updates on this?

for any one coming later,
I managed to work around this problem by adding this in onRenderd:
const query_selector = {};
Template.templateName.onRendered(function(){
     this.autorun(function query_autorun(){
              // here your logic to change query_selector
     });
});

Template.templateName.helpers({
selector: query_selector
});

then add to the blaze helper
selector=query_selector

for any one coming later,
I managed to work around this problem using @lucasfurlani note:
const query_selector = {};
Template.templateName.onRendered(function(){
     this.autorun(function query_autorun(){
              // here your logic to change query_selector
     });
});

Template.templateName.helpers({
selector: query_selector
});

then add to the blaze helper
selector:query_selector

for any one coming later
using lucasfurlani note  and boustanihani note
I worked around this by reinitializing the datatable and passing the selector as object
        {{#if datatable_ready}}
          {{> tabular table=TabularTables.Order selector=state.dt_query class="table table-striped table-bordered table-hover orders-table"}}
        {{/if}}

const state = {};
Template.orders.onRendered(function(){
     this.autorun(function(){
            // first destroy datatable
            Session.set('dt_query_changing',true);
            // here your logic to change state.dt_query

          // changing the session var to force table reinitialization
           setTimeout(()=> Session.set('dt_query_changing',false),0);
      });
});

Template.orders.helpers({
      datatable_ready(){
         return !Session.get('dt_query_changing');
     },
     state: state
});

for any one coming later
using lucasfurlani note  and boustanihani note
I worked around this by reinitializing the datatable and passing the selector as object
        {{#if datatable_ready}}
          {{> tabular table=TabularTables.Order selector=state.dt_query class="table table-striped table-bordered table-hover orders-table"}}
        {{/if}}

 const state = {};
  const refreshDatatable = function (){
    // first destroy datatable
    Session.set('dt_query_changing', true);
    setTimeout(()=>{
      // changing the session var to force table reinitialization
      Session.set('dt_query_changing', false);
    }, 0);

Template.orders.onRendered(function(){
     this.autorun(function(){
            // here your logic to change state.dt_query
           refreshDatatable();
      });
});

Template.orders.helpers({
      datatable_ready(){
         return !Session.get('dt_query_changing');
     },
     state: state
});

I've found that using the sector function reactive, it is runs (because of Tracker.autorun) too often and prevents going to the next page. By being careful with assigning to those ReactiveVars only when actually changed (see below) this is prevented.
I use this code (both server & client):
import { ReactiveVar } from 'meteor/reactive-var'
import equal from 'fast-deep-equal'

ReactiveVar.prototype.setIfChanged = function(val) {
  if (!equal(val,this.get())) {
    return this.set(val)
  }
}

and then use .setIfChanged(value) to make the selector only be called (autoran) when actual new values arrive.
Hope it helps!


[updated] added BFS in graph

📥 Pull Request
added BFS in graph
Description
Fixes #210
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

sir please assign level 2 tag


Add issues and decide due date for Milestone v0.1.0

I have just created the Milestone v0.1.0 so that we can plan our first release and the features that it will have.
We need to do 2 things:

Define our expectations for this release and decide which issues to add to the milestone (maybe create new ones).
Decide the due date. For the moment I have set it to the 16th of December, because to me it seems a reasonable date, of course it is something we need to discuss together.

Also, as said in issue #31, we should really define our release cycle.
One of the reasons that I created the milestone is that the unicom-ig has become a dependency for WP6, WP8 and probably more. In order to plan our activities we need to know the date of the first release of this specification.

Thanks. I think we should either decide due dates or scope. Not both.
I would plan this differently - let's see which parts are actually critical

and from those parts, decide the minimum scope. Then we plan dates.

With this project I would not make assumptions that the requirements are
clear and we know the scope.
On Fri, Nov 18, 2022 at 4:40 PM Francesco Galisi @.***>
wrote:

I have just created the Milestone v0.1.0 so that we can plan our first
release and the features that it will have.
We need to do 2 things:

Define our expectations for this release and decide which issues to
add to the milestone (maybe create new ones).
Decide the due date. For the moment I have set it to the 16th of
December, because to me it seems a reasonable date, of course it is
something we need to discuss together.

Also, as said in issue #31 https://github.com/hl7-eu/unicom-ig/issues/31,
we should really define our release cycle.
One of the reasons that I created the milestone is that the unicom-ig has
become a dependency for WP6, WP8 and probably more. In order to plan our
activities we need to know the date of the first release of this
specification.
—
Reply to this email directly, view it on GitHub
https://github.com/hl7-eu/unicom-ig/issues/50, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD3HUUBXXZBYHH4EDSTLS3TWI6PQRANCNFSM6AAAAAASETYOXA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

If you don't specify the scope, you can set the due date to today. :)
But more seriously, is this milestone a boys' thing or is there something you expect me to achieve, as well?

If you don't specify the scope, you can set the due date to today. :)
But more seriously, is this milestone a boys' thing or is there something you expect me to achieve, as well?

@rlindstrm of course it's not a boys' thing, it regards everybody in the UNICOM project. A Milestone is basically a collection of Issues with a due date attached, we use it to plan what to add / fix before the next release of the unicom-ig.
I would like you, as anyone contributing to this repository, to participate in the decision about scope and due date of the release.
I propose that we start by adding issues to the milestones and in the first half of the technical meeting next week, we decide which issues to remove from the milestone, which to add, and create new ones if needed. In the second half of the meeting we can decide the due date.


[Event Request] Codeunit 427 ICInboxOutboxMgt - SendPurchDoc

Please insert new Publisher in function SendPurchDoc
ICPartner.TESTFIELD(Blocked,FALSE);
// S/NEW
OnBeforeReleasePurchDocument(VAR PurchHeader : Record "Purchase Header";Post : Boolean);
// E/NEW
IF NOT Post THEN
CODEUNIT.RUN(CODEUNIT::"Release Purchase Document",PurchHeader);

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


[ffigen] Clarify docs for include/exclude rules

I'm trying to temporarily work around https://github.com/dart-lang/native/issues/1416 by excluding the classes that have the type problem, since I don't currently need them. I updated my config to:
exclude-all-by-default: true
objc-interfaces:
  include:
    - 'AVAudioSession'
    - 'AVPlayer'
    - 'FVPVideoPlayer'
  exclude:
    # Due to https://github.com/dart-lang/native/issues/1416
    - 'AVComposition'
    - 'AVFragmentedAsset'
    - 'AVFragmentedMovie'
    - 'AVMovie'
    - 'AVMutableComposition'
    - 'AVMutableMovie'

But the generated output still has those classes in it, so still doesn't compile. The README for ffigen says:

Note: exclude overrides include.

so I would expect this to prevent the classes from being generated. It's not clear to me why it's not.

The include/exclude rules never prevent transitive deps from being pulled in, even if you explicitly exclude them. What the docs mean is that you can include using a broad regex like ".*", then exclude specific names from that regex. We should definitely clarify the docs.
I'm hesitant to filter transitive deps, because in general it's not clear how to handle it. In this specific case it makes intuitive sense to omit any methods that receive or return an ObjC interface that you've explicitly excluded. But for other cases it's not so easy to cut out a transitive dep on an ObjC interface (super types, struct members, block signatures, etc). There's also the question of whether/how this explicit exclusion logic would work for other entities that can be transitive deps (structs, unions, enums, etc). So we'd end up with special cased exclusion logic that only applies when an ObjC interface is a transitive dep only due to being used in a method on another ObjC interface.
So I think this specific case should be handled by method filtering instead.

So I think this specific case should be handled by method filtering instead.

Yes, method filtering would definitely address both the specific use case of needing to exclude these methods for now, and more generally serve as a way of cutting down transitive dependencies in a way that has clean cut points.


Nested to Death.

Any idea how I get my model object a level deeper to the query part?
C:\MyPorn\SQLITE3_ORM\node_modules\bluebird\js\release\debuggability.js:864 Unhandled rejection TypeError: model.query is not a function
at file:///C:/MyPorn/HTML5/SQLITE3_ORM/js/PslSqliteDb.js:85:19
From previous event:
at PslSqliteDb.insertData (file:///C:/MyPorn/HTML5/SQLITE3_ORM/js/PslSqliteDb.js:83:28)
at file:///C:/MyPorn/HTML5/SQLITE3_ORM/js/invokeDummy.js:8:8
Class SqliteDb {
[...]
insertData(argsObj) {
        console.log(this.sortableTimestamp);
        var model = this.MinimalModel;
        this.schemaPromise.then(function (model) {

            model.query().insert(
                {
                    firstname: 'Hans',
                    surname: 'Meier',
                    comment: 'Ein Test',
                    sortabletimestamp: this.sortableTimestamp
                })
                //.debug()
                //.then(function (numUpdated) {console.log(numUpdated);})
                .catch(function (err) {console.log(err.stack);})
                return;
        })
    }
[...]

let myTable   = 'Person';
let myDb      = 'example2.db';
let initDb    = new SqliteDb({tableName:myTable});
initDb.extendModel({tableName:myTable});
initDb.createDatabase({dBName:myDb});
initDb.createTable({tableName:myTable});
initDb.insertData({tableName:myTable});

I have no idea what you are asking, but the problem is in the stack trace you copied. TypeError: model.query is not a function. schemaPromise obviously doesn't resolve to a model constructor.

I'm not sure if I should/have to use the schemaPromise part derivied from one of your examples with the promise chain. Theoretically I could also write...
 insertData(argsObj) {
        console.log(this.sortableTimestamp);
        this.MinimalModel.query().insert(
            {
                firstname: 'Hans',
                surname: 'Meier',
                comment: 'Ein Test',
                sortabletimestamp: this.sortableTimestamp
            })
            //.debug()
            //.then(function (numUpdated) {console.log(numUpdated);})
            .catch(function (err) {console.log(err.stack);})

        return;
    }

Then my only problem would be a scoping problem with this.sortableTimestamp. I can't get it globally, or work in the query function.
Do I have to use promises, or would I be in danger otherwise?


md

Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!

A brief description

Expected results

Actual results (with terminal output if applicable)

Your Windows build number

Steps / All commands required to reproduce the error from a brand new installation

Strace of the failing command

Required packages and commands to install

See our contributing instructions for assistance.

Looks like this was filed by accident.

I'm not sure how this got here. Does the terminal auto-report?


Locked balances are not calculated correctly

stellar address: GBKY3B7YNXCB4DJEOPQU5H43GHPZJYGZI3UTNJGZBM4ZVKKNHI7CFR63

When I calculate the balances using the jsx commandline client for this address, I get:
TFTA:<PHONE_NUMBER>547
locked TFTA: 1752326.9925925
locked TFT: 1657247.7829217

@JonasWijne @tobiaschielens please check

sorry, my bad, thanks for helping me find a bug in the jsx client: https://github.com/threefoldtech/jumpscaleX_libs/commit/3aa5978a77c66c061cd05e30b8b67203c32db356


Double Click Price Scale to Reset Show High/Low

Could you implement the same functionality as other chart software where double-clicking the price scale resets the chart to show the highest high and lowest low in the shown range?
Cheers - posted by<EMAIL_ADDRESS>

Resolved


ValueError: Unknown format code 's' for object of type 'int'

https://app.getsentry.com/pokemongof/pokemongo-bot/issues/147420278/
ValueError: Unknown format code 's' for object of type 'int'
  File "pokecli.py", line 490, in <module>
    main()
  File "pokecli.py", line 103, in main
    formmated='Log logged in, reconnecting in {:s}'.format(wait_time)

ValueError: Unknown format code 's' for object of type 'int'

Maybe its in the config.json:
reconnecting_timeout should be and number, not string, remove the "12" around it...
"reconnecting_timeout": 15,

change {:s} for {:d}

We haven't fixed this yet.

@TheSavior how about now?


Refactor OpBatchAccumulator

Simplifies the implementation of OpBatchAccumulator by decoupling the building of the batch with the conversion to the "bit format". This removes the need for indexing variables which made the previous version difficult to understand.
There was no test for what's supposed to happen when we try to batch 0 operations, so I added one that ensures the previous behavior stays the same. I also split up the test batch_ops() into multiple ones, as it makes it easier to debug when one of the "tests" in batch_ops() fails.
I also added a benchmark for stack operations, and found no regressions.
// The numbers here varied by +/-2us across different runs
$ cargo bench simple_program_execution

// previous (on `next`)
time:   [79.435 µs 79.592 µs 79.771 µs]

// Current (this branch)
time:   [79.443 µs 79.597 µs 79.786 µs]

Note that the failing test operations::sys_ops::assert_with_code also fails in next.

Closing as stale.


Typo in README

ccomputation -> computation
grid like -> grid-like
Super interesting though!

I signed it!

I signed it!


zju_20 (add 3 new styles and change some codes so the default neg_prompt can be really used)                   (updates: squeeze the size of cover images and sync the latest master)

Our group added following three styles.
Style1 (by Liu Shuai): Mechnical girl with a background of a futuristic dystopian city

Style2 (by Zhao Heng): Deer girl with a forrest background

Style3 (by Zhao Tianjian): Cartoon style figure with a background of a coffee shop

By the way, during the process of modulating, I found that the default neg_prompt written in constants.py will never be used by the program!!!

When typing nothing into the Textbox of negative prompts, the neg_prompt is empty instead of the default negative prompts, which should be imported from constants.py .

When typing something into the Textbox of negative prompts, the default negative prompts will not be added to neg_prompt either.

By adding the upper code, I think I have solved the problem temporarily. I believe a better programmer can deal with it more elegantly by adding a function called generate_neg_prompt just like how the program deals with the pos_prompt.

Before changing:

After changing:

Sure! Change it already. You do have good taste👍


Add modtm provider

Description
Adding modtm provider to make new upstream AVM template work. This change could not be automated.
Fixes PR #93

This will fail, because until #93 is merged the provider is not used in the module, so the CI will fail with the error: added a provider that is not used in the module.


bug(MatListItem): Broken list item sanity check

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
I believe there is a typo in the sanityCheckListItemContent method that leads to the incorrect behavior.
Where const numLines = item._titles!.length; should be const numLines = item._lines!.length; instead.
Otherwise, line 334 doesn't make any sense.
https://github.com/angular/components/blob/6057512de333046517c5f64a2ce6cf0a889447e9/src/material/list/list-base.ts#L327-L336
Reproduction
StackBlitz link:
Steps to reproduce:
1.
2.
Expected Behavior
Based on the code intention we shouldn't be able to have MatListItem with MatListItemLine and without MatListItemTitle
Actual Behavior
It's possible to have MatListItemLine only without MatListItemTitle
Environment

Angular: any
CDK/Material: any
Browser(s):
Operating System (e.g. Windows, macOS, Ubuntu):

Duplicate of https://github.com/angular/components/issues/27582.


Regression: Unable to use a GitHub-Repo as build-context for docker-compose

Description
We have a service-oriented architecture and several services as sub-repos. One service (openslides-auth-service) makes system tests and uses for this purpose one other service. To do so, we use docker and docker-compose to start the services.
Until the 14th January 2021 this setup works well even with GitHub-Actions. Since the 15th January 2021 it doesn't work anymore.
Here is the GitHub-Action file:
name: CI

on:
  pull_request:
    branches: [master]

jobs:
  build-and-test-dev-image:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Create docker dev image
        run: make build-dev

      - name: Run tests in docker
        run: make run-tests

Here is a snippet of the makefile:
build-dev:
	docker build -t openslides-auth-dev -f Dockerfile.dev .

run-tests: | build-dev
	@echo "########################################################################"
	@echo "###################### Start full system tests #########################"
	@echo "########################################################################"
	docker-compose -f docker-compose.dev.yml up -d
	docker-compose -f docker-compose.dev.yml exec -T auth wait-for-it auth:9004
	docker-compose -f docker-compose.dev.yml exec -T auth npm run test
	docker-compose -f docker-compose.dev.yml exec -T auth pytest
	docker-compose -f docker-compose.dev.yml down

Here is the docker-compose file:
version: "3"

services:
  auth:
    image: openslides-auth-dev
    restart: always
    depends_on:
      - datastore-reader
      - datastore-writer
      - message_bus
      - cache
    env_file: services.env
    volumes:
      - ./auth/libraries:/app/libraries
      - ./auth/src:/app/src
      - ./auth/test:/app/test
    ports:
      - "9004:9004"

  message_bus:
    image: redis:alpine
    expose:
      - 6379

  cache:
    image: redis:alpine
    expose:
      - 6379

  datastore-reader:
    build:
      context: "https://github.com/OpenSlides/openslides-datastore-service.git"
      dockerfile: Dockerfile
      args:
        MODULE: "reader"
        PORT: "9010"
    image: openslides-datastore-reader
    ports:
      - "9010:9010"
    depends_on:
      - postgresql
  datastore-writer:
    build:
      context: "https://github.com/OpenSlides/openslides-datastore-service.git"
      dockerfile: Dockerfile
      args:
        MODULE: "writer"
        PORT: "9011"
    image: openslides-datastore-writer
    ports:
      - "9011:9011"
    environment:
      - DATASTORE_ENABLE_DEV_ENVIRONMENT=1
      - COMMAND=create_initial_data
      - DATASTORE_INITIAL_DATA_FILE=https://raw.githubusercontent.com/OpenSlides/OpenSlides/openslides4-dev/docs/example-data.json
    depends_on:
      - postgresql
      - redis

  postgresql:
    image: postgres:11
    environment:
      - POSTGRES_USER=openslides
      - POSTGRES_PASSWORD=openslides
      - POSTGRES_DB=openslides
  redis:
    image: redis:alpine

Here is the Docker file:
FROM python:3.9.0-slim-buster

RUN apt-get -y update && apt-get -y upgrade && \
    apt-get install --no-install-recommends -y wait-for-it && \
    apt-get install -y make git curl openssl

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs

ENV LD_LIBRARY_PATH=/usr/local/lib

WORKDIR /app

# Install dependencies. the `node_modules` folder is in /app
COPY auth/package*.json ./
RUN npm install

# Application lays in /app/src
COPY ./auth ./
COPY auth/entrypoint.sh ./

# Install pip-dependencies.
RUN pip install --no-cache-dir -r ./libraries/pip-auth/requirements.txt -r ./libraries/pip-auth/requirements_development.txt

EXPOSE 9004

ENV OPENSLIDES_DEVELOPMENT 1

ENTRYPOINT [ "./entrypoint.sh" ]
CMD ["npm", "run", "dev"]

Virtual environments affected

[ ] Ubuntu 16.04
[ ] Ubuntu 18.04
[X] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016
[ ] Windows Server 2019

Image version and build link
20210718.1
Link: https://github.com/OpenSlides/openslides-auth-service/pull/74/checks
Is it regression?
Yes: The GitHub-Action does not work anymore since the 15th January 2021. Unfortunately, I cannot see the environment used anymore. But I have noticed, that it works on Ubuntu-18.04.
Expected behavior
I expect, that the services will be built through the docker-compose file and the tests run.
Actual behavior
The services are not built through the docker-compose file and the workflow breaks with the following error-message:
########################################################################
###################### Start full system tests #########################
########################################################################
docker-compose -f docker-compose.dev.yml up -d
Creating network "openslides-auth-service_default" with the default driver
Pulling message_bus (redis:alpine)...
alpine: Pulling from library/redis
Digest: sha256:420c98f3fedeb9a1d6d2bcdfe19b15fa8e1382e73559ea69e21aee7dbce23da3
Status: Downloaded newer image for redis:alpine
Pulling postgresql (postgres:11)...
11: Pulling from library/postgres
Digest: sha256:13e23e5f97a42286c5703691e2fbad0806970bd13121fe7c28f32349ee0cf917
Status: Downloaded newer image for postgres:11
Building datastore-reader
unable to prepare context: unable to 'git clone' to temporary context directory: error fetching: /usr/lib/git-core/git-remote-https: /tmp/_MEIUancU6/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /lib/x86_64-linux-gnu/libssh.so.4)
: exit status 128
Service 'datastore-reader' failed to build : Build failed
make: *** [Makefile:30: run-tests] Error 1
Error: Process completed with exit code 2.

Repro steps

Make a docker-compose file
Build at least one service through a git context
Let GitHub-Actions execute this docker-compose file

Hello @GabrielInTheWorld,
We will check the issue.

@GabrielInTheWorld
As a workaround please try to downgrade docker-compose to 1.27.4 - will it work for you?
     - name: download 1.27.4
       run: |
         sudo rm /usr/local/bin/docker-compose
         URL=https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64
         sudo curl -L $URL -o /usr/local/bin/docker-compose
         sudo chmod +x /usr/local/bin/docker-compose

The sample build (a simplified version of your pipeline)
https://github.com/dsame/actions-demo/runs/3190880791?check_suite_focus=true

@GabrielInTheWorld
As a workaround please try to downgrade docker-compose to 1.27.4 - will it work for you?
     - name: download 1.27.4
       run: |
         sudo rm /usr/local/bin/docker-compose
         URL=https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64
         sudo curl -L $URL -o /usr/local/bin/docker-compose
         sudo chmod +x /usr/local/bin/docker-compose

The sample build (a simplified version of your pipeline)
https://github.com/dsame/actions-demo/runs/3190880791?check_suite_focus=true

Thanks for your reply!
Yes, I can confirm, that it will work with the docker-compose version 1.27.4.

Hello @GabrielInTheWorld. I'm going to close this issue. In case of any questions or concerns feel free to contact us.