Relationship Bundles

Feature
Add ability to model and bundle relations (tuples).
Problem
It is currently responsibility of the services to model how relations are created and deleted when actions happen on resources. Having the ability to model this in a central place helps with transparency and consistency. The most difficult part about using permify is creating and maintaining relationships in sync with the business model.
Solution
Add a similar DSL to .perm to create and maintain bundle of relationships.
Example
Permissions:
entity user {}

entity organization {

    // organizational roles
    relation admin @user
    relation member @user

}

entity team {

    // represents owner or creator of the team
    relation owner @user

    // represents direct member of the team
    relation member @user

    // reference for organization that team belong
    relation org @organization

    // organization admins or owners can edit, delete the team details
    permission edit = org.admin or owner
    permission delete = org.admin or owner

    // to invite someone you need to be admin and either owner or member of this team
    permission invite = org.admin and (owner or member)

    // only owners can remove users
    permission remove_user =  owner
}

entity project {

    // references for team and organization that project belongs
    relation team @team
    relation org @organization

    permission view = org.admin or team.member
    permission edit = org.admin or team.member
    permission delete = team.member
}

Relations bundle:

relations project_created {

   params {
       projectId
       teamId
       orgId
   }

   add {
           entity {
                type team
                id params.teamId
            }
            relation team
            subject {
                type project
                id params.projectId
            }
    }

   add {
           entity {
                type organization
                id params.orgId
            }
            relation org
            subject {
                type project
                id params.projectId
            }
    }
}

relations project_deleted {

   params {
       projectId
       teamId
       orgId
   }

   delete {
           entity {
                type team
                id params.teamId
            }
            relation team
            subject {
                type project
                id params.projectId
            }
    }

   delete {
           entity {
                type organization
                id params.orgId
            }
            relation org
            subject {
                type project
                id params.projectId
            }
    }
}

This would require a relationship bundle API.
POST /relationships/bundle
BODY
{
   "name": "project_created",
   "params": {
       "projectId": "1234"
       "teamId": "teamA"
       "orgId": "orgA"
    }
}

With this functionality the code responsible for creating a project would either call this API directly or create an event for some other component to call this API.
I think this could help sove the problem of maintaining the relationships.
Best Regards,
Bruno Vale

Hi @brunovale91, this looks really interesting. We're planning to schedule this feature, and we'd love to learn more about your thoughts and details of the use case to get a better idea about it. Would you be open to a quick call?

Hi @EgeAytin, that's nice. Let's schedule a call.

Great @brunovale91 , You can select an available time in my calendar. Looking forward to it!


8 cassandracontainerjava add the missing deprecated at javadoc tag

@ramironascimento can you elaborate more on the PR description, please?

Closing due to inactivity


Fixed unexpected deletion of log files of other processes that led to OSError: [Errno 116] Stale file handle error on NFS volumes

Due the nocleanup option defaults to false and we use AUTO-generated names for backend process log files, this causes NFS4ERR_STALE to appear on NFS-mounted volumes
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 109, in emit
    self.flush()
  File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 68, in flush
    self.stream.flush()
OSError: [Errno 116] Stale file handle

http://supervisord.org/configuration.html#:~:text=Introduced%3A 3.0-,nocleanup,-Prevent supervisord from
https://stackoverflow.com/questions/40262823/stale-file-handle-error-when-process-trying-read-the-file-that-other-process

Motivation and context

How has this been tested?

Checklist

[x] I submit my changes into the develop branch
[ ] I have created a changelog fragment
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (see GitHub docs)
[ ] I have increased versions of npm packages if it is necessary
(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.

Summary by CodeRabbit

Improvements

Standardized log directory settings across various configurations for better readability and maintainability.
Added distinct stdout_logfile and stderr_logfile directives for more effective logging and troubleshooting across multiple programs.
Enabled automatic restart for specific worker programs to enhance reliability.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.31%. Comparing base (bdd5535) to head (89bcf19).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8121      +/-   ##
===========================================
- Coverage    83.62%   83.31%   -0.31%
===========================================
  Files          383      389       +6
  Lines        40502    41274     +772
  Branches      3830     3855      +25
===========================================
+ Hits         33869    34387     +518
- Misses        6633     6887     +254

Components
Coverage Δ

cvat-ui
79.47% <ø> (-0.17%)
:arrow_down:

cvat-server
86.75% <ø> (-0.50%)
:arrow_down:

Please add a changelog entry.


sqlite3 LISTEN NOTIFY and update_hook

There are ways to get sqlite to push events for perhaps easier tailing.
From https://news.ycombinator.com/item?id=41285614 re: similar with postgres, sqlalchemy, celery kombu with just sqlite instead of redis or postgres (which may be useful for datasette-enrichments queue durability) ::

/? sqlite LISTEN NOTIFY: https://www.google.com/search?q=sqlite+listen+notify
sqlite3 update_hook: https://www.sqlite.org/c3ref/update_hook.html ::

The sqlite3_update_hook() interface registers a callback function with the database connection identified by the first argument to be invoked whenever a row is updated, inserted or deleted in a rowid table. Any callback set by a previous call to this function for the same database connection is overridden.
The second argument is a pointer to the function to invoke when a row is updated, inserted or deleted in a rowid table. The first argument to the callback is a copy of the third argument to sqlite3_update_hook(). The second callback argument is one of SQLITE_INSERT, SQLITE_DELETE, or SQLITE_UPDATE, depending on the operation that caused the callback to be invoked. The third and fourth arguments to the callback contain pointers to the database and table name containing the affected row. The final callback parameter is the rowid of the row. In the case of an update, this is the rowid after the update takes place.
The update hook is not invoked when internal system tables are modified (i.e. sqlite_sequence). The update hook is not invoked when [...]

See also the sqlite3_commit_hook(), sqlite3_rollback_hook(), and sqlite3_preupdate_hook() interfaces.

https://news.ycombinator.com/item?id=40842365 :

There are many extensions of SQLite; rqlite, cr-sqlite, postlite, electricsql, sqledge, and also WASM: sqlite-wasm, sqlite-wasm-http

So there must be ways to tail sqlite, for replication and worse synchronization


Automated cherry pick of #478: feat(operator): set default resources limits for each component

Cherry pick of #478 on release/3.7.
#478: feat(operator): set default resources limits for each component

/lgtm
/approve


pt2-clone,ft2-clone: only build on little-endian systems

Motivation for this change
Since #81014 is in now we can restrict the platform to only the supported endianness
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

/marvin opt-in
/status needs_reviewer

/status needs_merger


Update to MkDocs 1.0.4

Need to update to MkDocs 1.0.4, also add Google Analytics and use opencdss.state.co.us.

I updated the documentation to use MkDocs 1.0.4, including Google Analytics in the configuration file.  I updated the content to use links for opencdss.state.co.us.  Close the issue.


Don't show the group selection if the course doesn't have groups

When submitting an exercise, there's this drop-down list for group selection. In some cases, there is only one option: "submit alone", but the user has to still explicitly choose that (at the first time at least, then they can make it default). It depends on the situation whether this behavior is what we want:

in courses that have group-submission option (such as O1), it might be a good reminder for non-group-working students of the possibility of working in groups.
in courses that doesn't support group submissions it is nothing but an annoyance.

So, the decision whether to show a no-choice drop-down list should perhaps be based on whether the course have group submissions or not. This information should probably be included in the course config file (defaulting to "yes").
Discuss with the teachers first.

Potential alternative solution: if the only option is "submit alone", set this option by default and disable the groupbox

Submit alone is the default group. A course can set alwaysShowGroups to true in the config, in which case the group selector will always be shown. Else it is only shown if the user has any groups


Insane Traffic

Hello,
I use your discord_feedbot on a Linux server and monitor 2 different RSS feeds with the status of my host systems and VMs. But after 2-4 h the Bot uses a lot of traffic. And I mean a real lot. Constantly 200 - 250 mbit/s. If I'm not careful that eats away a few hundreds of Gigabyte easily. Any Ideas on how to solve this?

Can you see where the traffic is going and which direction? Like maybe with
wireshark or tcpdump?
I haven't seen this behavior. I suspect a bug in the discord.py API that
feedbot uses.
Anything unusual about your discord server? Tens of thousands of users?
Room the bot can "see" with thousands of messages a second? Feedbot doesn't
look at that stuff, but I think the API sees it anyways.
On Thu, Feb 23, 2017 at 8:24 AM MiningPickaxe<EMAIL_ADDRESS>wrote:

Hello,
I use your discord_feedbot on a Linux server and monitor 2 different RSS
feeds with the status of my host systems and VMs. But after 2-4 h the Bot
uses a lot of traffic. And I mean a real lot. Constantly 200 - 250 mbit/s.
If I'm not careful that eats away a few hundreds of Gigabyte easily. Any
Ideas on how to solve this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/freiheit/discord_feedbot/issues/50, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AABNZRdDunqvdfdAR7M1QE_7N3aTToiMks5rfbKmgaJpZM4MKLUd
.

I'm gonna try to do a tcpdump when I start the bot again.
Unusual things about the discord server? 8 users including the bot and the max messages per minute is maybe 15 or so... Over night we are all sleeping and nobody posts messages. So that should not be the problem.
One rss feed is ~7200 characters long, the other one has ~43000 characters long (should be 43kB if I'm correct) so that could not be the problem either

Oh, also try setting debug=3 in the .ini file. The default (0) only logs a few things. Turning logging up to 3 also enables debug level logging in some of the libraries and really tells you a lot of what's going on.
For debugging this, you might also try increasing rss_refresh_time so that you can see what's going on when the individual feeds are "sleeping".


feat(yaml, helm) allow condition to check only for a key (and not its value) + refactoring

Fix #289
This PR introduces the following changes to the YAML and helm resources:

[yaml] allow condition to check only for a key (and not its value) (#289)
[yaml] fix a validation error when file path started with the prefix file://
[yaml] refactor to use the same naming conventions as others like aws/ami or shell, and
[helm] rename package to follow golang convention (no need for subpackage if there is only one)
[helm] introduce a New() method to have a constructor.
[yaml] ensure that private attributes are used (decoupled from Helm resource)
Add examples

Test
To test this pull request, you can run the following commands:
go build -o ./dist/updatecli

Additional Information
Tradeoff

Potential improvement

@olblak I propose to add this to the 0.18.0 milestone, WDYT?

@olblak I propose to add this to the 0.18.0 milestone, WDYT?

It sounds good to me but as a reminder, we decided to assign issues to milestone and not pull request

@olblak I propose to add this to the 0.18.0 milestone, WDYT?
It sounds good to me but as a reminder, we decided to assign issues to milestone and not pull request

Sorry, I thought I was commenting in the issue. Good thing that you point it out to me :)


!version

Displays current version of the bot, useful to see what I trew into the cloud.

Also show version history

As in the changes made between this version and the last when the command is ran @DarthWolf13 ?

List of all versions

Since we don't want a huge log of messages being printed out with !version as it's only a debug command this will not be added.
Besides all versions can be found back right over here on github
https://github.com/dylanpiera/Mafia-Quickplay-DiscordBot/commits/master

Possible solution for this #21

Decided to go for the idea mentioned in #21


dataLabels are blocking mouse drag for columns

When trying to drag a column and dataLabel is in front, then the drag is blocked.
Demo:
http://jsfiddle.net/Lbpto4oy/1/
Steps:

Drag by the dataLabel on the 100 value column -> nothing happens

Actually nothing happens on either of the columns unless we drag on the rifled handle, even though the cursor indicates otherwise. Perhaps we should do something about the cursor.
Also (although I don't see the actual bug), I assume a workaround could be to add a CSS rule like:
.highcharts-data-label {
    pointer-events: none
}

@TorsteinHonsi
I just found the column (blue color bar) also looks draggable.


Terraform provider resources management

Feature request
It would be nice to add following resources managemnt to terraform provider https://registry.terraform.io/providers/CelerData/celerdatabyoc/latest/docs:

catalogs
databases
roles
users
groups
grants

Terraform provider must support open source starrocks as well.
Describe the solution you'd like
Terraform provider supports mentioned resources.
Describe alternatives you've considered
If it's not implemented, seems some extra automation tool must be created from scratch.
Additional context
See an implementation example for redshift

This is a killer feature, and one that would greatly improve the ease of managing StarRocks / Celerdata clusters. Closing this seems like a mistake.


OneSignal

Exact match for onesignal.com found in:
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
OneSignal - Push Notifications Delivered
powering mobile push, web push, email, and in-app messages
It is advisable to remove it from the block sheet

Hi @slvxstar the onesignal.com is flagged by no fewer than five of our curated sources.
Think about it.  Five.
This isn't going to change.
Closing.

@StevenBlack it's currently on 3 lists, looks like they are removing it.
Some blocking lists like EasyList filter do have a whitelist[1], and there is one for onesignal.com. uBlock team does also maintain an 'unbreak' list[2].
This is because of Push notifications. If your compilation list is used on a router or directly on a mobile device, all push notifications that many mobile apps use (there are a lot, one example) will simply not work. Other push notifications services might be broken, don't know about them.
Please consider using the available whitelists from the upstream providers to curate the final list, so we can continue having push notifications by default.
[1] https://github.com/easylist/easylist/commit/e04c519e07898ffd1311ea0b5a5cd40930893372
[2] https://github.com/uBlockOrigin/uAssets/blob/afb462cb3e04945a30c61b39ec50ba326f83083e/filters/unbreak.txt#L2566

@goetzc that's not how this works.
We let upstream curators decide.  We trust our curators.  If we think there is a problem, we advise them, and we let them decide.


Add EXISTS to concise rule as an Operator

Affects version
.49.2+
Description of issue
Feature request: add "EXISTS" an available operator for the concise rules in the TXT file. Example rule might look something like:
AWS::S3::Bucket BucketEncryption EXISTS ERROR S3 bucket must include encryption configuration

#2656 should solve your issue

Will be in the next release.


0.1.8 could not find

pod install --repo-update
Updating local specs repositories
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "TSVoiceConverter":
In Podfile:
TSVoiceConverter (= 0.1.8)
None of your spec sources contain a spec satisfying the dependency: TSVoiceConverter (= 0.1.8).
You have either:

mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile.

done


Azure Active Directory OIDC Redirect uri?

I'm trying to integrate skooner with Azure Active Directory. what is the redirect uri I need to put during the creation of the app registration?
Thanks a lot

That depends on your ingress. New stable was released and we fixed two pieces of documentation flaws. I added an example of setting ingress up in provision/keycloak
Please follow through with the keycloak troubleshooting section and report any issues with a new ticket or reopen this. Thanks!


Comparison of Deepspeed Stage 1,2 and 3 vs DDP

Describe the bug
When the model fits on a single GPU, how does Deepspeed ZeRO stage 1 compare with DDP? In my experiments, the Deepspeed ZeRO stage 1. I see that my overall loss training progresses similarly in both the cases but after a few iterations, the Deepspeed ZeRO stage 1 and stage 2 performance degrades.
Expected behavior
I would expect both DDP and Deepspeed ZeRO Stage 1 to give similar results when run of single GPU. The total loss is a combination of a few losses and one of which is trans loss. Do you have experiments that compare DDP and Deepspeed ZeRO stage 1 or 2 that I can refer. Are these supposed to give similar performance? The attached screenshots are for single GPU and 2 GPU experiments for total loss and trans loss.
Screenshots

System info (please complete the following information):

OS: [e.g. Ubuntu 20.04]
A100s  -> singe GPU  and 2 - GPU
Python version - 3.10

Docker context
No

@jpatel-bdai, all zero stages are expected to match ddp on single gpu runs. So, it appears that you are hitting bugs in zero.
Are you able to share detailed steps to help us repro? Thanks!

I will try to share the detailed steps to reproduce if possible. I am using the pytorch-lightning's Deepspeed Strategy. However, are all zero stages are expected to match ddp on multi-gpu runs as well?

Ideally, we expect zero stages to match ddp in multi-gpu runs, since zero is designed to be a memory-efficient ddp algorithm. In terms of debugging, a first step would be to inspect the training loss of each forward pass to detect deviations.

Don't want to hijack this issue, but I noticed that my train loss values are wildly different between stage 2 and stage 3, is that expected? I take that minor differences can happen because of different optimizer implementations but the differences in my case is too severe - I checked that everything was seeded the same way and with multiple restarts of stage 2 and stage 3 results were not exact but consistent with the same stage but not across

Hello, I'm debugging the same issue. Since I'm working on VLMs, I found that the inclusion of the vision part (e.g. a timm model) leads to slower loss, but if I train regular LLMs, both converge well.
Here is a VLM training:

Here is an LLM training:

I discarded many options already: e.g. I fixed BatchNorms, used bf16-true, added "amp" decorators, used the same optimizers, disabled schedulers but I still see differences in the "vision" case. There are few other differences I'm trying to work out...

Hi @jpatel-bdai,
We recently fixed multiple accuracy issues (e.g. #5104, #5105, #5150, and #5170). Some users reported that mismatches of loss values were solved by updating from 0.12.* to 0.14.*.
Can you try the latest version if you haven't?

@jpatel-bdai Let me share my verification script.
As long as I set FP32, PyTorch's Adam, and NP=2, it showed exact matches with PyTorch.
Currently this does not work well with FP16/BF16. I would appreciate it If you have any idea for improvement.

Let me close this issue as we haven't had a new report for a while. Please feel free to reopen it if you still see the issue.


Return nothing if there is nothing to search for

Fixes #2158.

Nice, I see no issue with it. What happens if the search string is @""?

A quick question on this line, whilst we're in the file: why use isEqual:nil?
Also, do you think it's worth updating the whole file to spaces...? :fearful:

Haven't actually tried. I'd suppose it would not crash (the fixed crash happens because it does CFStringy stuff on nil), but it might not work correctly (returns immediately, maybe ?).
I think I'll ponder some more on that code. And write some tests ;-).
Spaces ? Or Tabs ? :laughing:

Tabs :D
(as much as I want spaces as well!)
On 18 November 2015 at 17:03, Etienne Samson<EMAIL_ADDRESS>wrote:

Haven't actually tried. I'd suppose it would not crash (the fixed crash
happens because it does CFStringy stuff on nil), but it might not work
correctly (returns immediately, maybe ?).
I think I'll ponder some more on that code. And write some tests ;-).
Spaces ? Or Tabs ? [image: :laughing:]
—
Reply to this email directly or view it on GitHub
https://github.com/quicksilver/Quicksilver/pull/2160#issuecomment-157649508
.

why use isEqual:nil?

Even I can’t answer that. Not sure what I was thinking. Maybe I copied and pasted it from somewhere and missed that test.

Added a commit to change that test @pjrobertson. If it looks good, merge. As for tabs, I don’t want to destroy all the history.

Yup fine. Sorry - 3 months later :(


feat: re-start library with simpler structure

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


Most GhostPack modules are broken

Working:

rubeus
seatbelt

Broken:

safetykatz
sharpchrome
sharpdpapi
sharpdump
sharpup
sharpwmi

When trying to call most of the GhostPack modules, shad0w looks in /root/shad0w/.
Suggest changing the hardcoded path to a relative path.
That way if shad0w is installed a different directory like /opt/, all of the modules should work.

shad0w looks in /root/shad0w/ because it is inside a docker container so unless the container was been built an incorrect way, this path should always be correct

shad0w looks in /root/shad0w/ because it is inside a docker container so unless the container was been built an incorrect way, this path should always be correct


Why should the router handling WebSocket be first pushed so it will work?

	let api_router = Router::new().push(router);
        let api_router = api_router.push(Router::with_path("login").post(login));
        let api_router = api_router.push(Router::with_path("check").post(check_login));

	let websocket_router = Router::with_path("chat").hoop(RoomMessageSender(sender)).handle(connect);

	let total_router = Router::new().hoop(auth_handler);

	let total_router = total_router.push(websocket_router);  // #1
	let total_router = total_router.push(api_router);  // #2

if exchange the position of #1 and #2, then the WebSocket connection cannot be handled by websocket_router.

Have you put router with path "chat" to api_router? For example:
let api_router = Router::new().push(router);

In this router, there may has a child router handle request with "chat" path.

Api router only contains login and check, websocket_router only contains chat, then I created a total router called total_router, then I push api_router and websocket_router to total_router, then Server::new().server(total_router), that is, api_router and websocket_router are the same level.

"<**path>" will match ALL

"<**path>" will match ALL

However, login and check can work.

It just match from first router and then second...
login and check only match request with post, I think.

How about  Router::with_path("chat").handle(connect)? Doesn't it matches all that is /chat?

It match all request with path "chat", IF this request is not matched by other routers before.

If you are Chinese, you can join our weichat group.

If you are Chinese, you can join our weichat group.

Please send the QR code to me.

路由路径优先级的需求不符合现在的路由设计初衷，并不考虑实现。


Bypass install on when run on ios?

Context
What are you trying to do, or how would you want to do it differently? Is it something you currently you cannot do? Is this related to an issue/problem?
Error when running on ios.
Alternatives
Can you achieve the same result doing it in an alternative way? Is the alternative considerable?
Has the feature been requested before?
Please provide a link to the issue.
If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)
———————————————
Unfortunately, script now errors out when running on ios. Is there an easy way to bypass install prompt, requirements when running on ios? Getting sshClient module error. Perhaps if ‘ios’ system then bypass ‘install’ flag etc... That would be great as it was running fantastically on ios before. Or perhaps prompt to install directly from output? That would be cool!
iPhone:~ mobile% cd permasigner
iPhone:~/permasigner mobile% python3 main.py --debug
Traceback (most recent call last):
File "/private/var/mobile/permasigner/main.py", line 21, in
from paramiko.client import AutoAddPolicy, SSHClient
ModuleNotFoundError: No module named 'paramiko'
iPhone:~/permasigner mobile%

You need to rerun python3 -m pip install -r requirements.txt

I did, of course.

Well, the module isn’t installed…

Yes, probably does not exist for ios?
iPhone:~ mobile% cd permasigner
iPhone:~/permasigner mobile% python3 -m pip install -r require
ments.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: autopep8==1.6.0 in /private/var/mobile/.local/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (1.6.0)
Requirement already satisfied: certifi==2022.6.15 in /private/var/mobile/.local/lib/python3.9/site-packages (from -r requirements.txt (line 2)) (2022.6.15)
Requirement already satisfied: charset-normalizer==2.1.0 in /private/var/mobile/.local/lib/python3.9/site-packages (from -r requirements.txt (line 3)) (2.1.0)
Requirement already satisfied: idna==3.3 in /private/var/mobile/.local/lib/python3.9/site-packages (from -r requirements.txt (line 4)) (3.3)
Requirement already satisfied: pycodestyle==2.8.0 in /private/var/mobile/.local/lib/python3.9/site-packages (from -r requirements.txt (line 5)) (2.8.0)
Requirement already satisfied: requests==2.28.1 in /private/var/mobile/.local/lib/python3.9/site-packages (from -r requirements.txt (line 6)) (2.28.1)
Requirement already satisfied: toml==0.10.2 in /private/var/mobile/.local/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (0.10.2)
Requirement already satisfied: urllib3==1.26.9 in /private/var/mobile/.local/lib/python3.9/site-packages (from -r requirements.txt (line 8)) (1.26.9)
Collecting cffi~=1.15.1
Using cached cffi-1.15.1.tar.gz (508 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/tmp/pip-install-5h6155o3/cffi_2c6381c922cd4ba2a7d97075309a7375/setup.py", line 148, in
ask_supports_thread()
File "/private/var/tmp/pip-install-5h6155o3/cffi_2c6381c922cd4ba2a7d97075309a7375/setup.py", line 77, in ask_supports_thread
config.try_compile('__thread int some_threadlocal_variable_42;'))
File "/usr/lib/python3.9/distutils/command/config.py", line 223, in try_compile
self._check_compiler()
File "/usr/lib/python3.9/distutils/command/config.py", line 99, in _check_compiler
customize_compiler(self.compiler)
File "/usr/lib/python3.9/distutils/sysconfig.py", line 200, in customize_compiler
_osx_support.customize_compiler(_config_vars)
File "/usr/lib/python3.9/_osx_support.py", line 489, in customize_compiler
_find_appropriate_compiler(_config_vars)
File "/usr/lib/python3.9/_osx_support.py", line 244, in _find_appropriate_compiler
raise SystemError(
SystemError: Cannot locate working compiler
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
iPhone:~/permasigner mobile%

Yep that seems like the issue, @superrnovae, any ideas how to fix this?

Yes, probably does not exist for ios?

It does exist for ios, but the exception prevents it from being installed.


Docker: Fix docker repo for s390x rhel

[x] commit message has one of the standard prefixes
[ ] faq.md updated if appropriate
[ ] other documentation is changed or added (if applicable)
[ ] playbook changes run through VPC or QPC (if you have access)
[ ] VPC/QPC not applicable for this PR
[ ] for inventory.yml changes, bastillion/nagios/jenkins updated accordingly

ref https://github.com/adoptium/infrastructure/issues/2700
The former repo does not allow for docker to be installed onto our s390x rhel7 systems. Changing it to https://download.docker.com/linux/rhel/7/s390x/stable/ seems to work
https://awx2.adoptopenjdk.net/#/jobs/playbook/202?job_search=page_size:20;order_by:-finished;not__launch_type:sync

Have there been new changes to the Linter?
Error: no-handler Tasks that run when changed should likely be handlers.
Error: name All names should start with an uppercase letter.

I don't see how these are about my changes

Have there been new changes to the Linter?
Error: no-handler Tasks that run when changed should likely be handlers.
Error: name All names should start with an uppercase letter.

I don't see how these are about my changes

looks like the last green linter run was on 6.4.0, yours is on 6.5.0

Have there been new changes to the Linter?
I don't see how these are about my changes

In that case I suggest raising a separate issue to resolve the linter problems showing after the update

Is this ok for RHEL8 too? Do we need a separate entry here now given that this change pretty much makes it identical to the x64 entry?

@sxa right now we only install it on rhel/centos 7 https://github.com/adoptium/infrastructure/blob/b39f70bf29eadfb907883a7fb6b0529715278c4b/ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/Docker/tasks/main.yml#L27

Out 3 rhel8 machines, all test, do not have docker installed. We have a centos8 machine build-equinix-centos8-armv8-1, but I cant ssh into it (Permission denied (publickey)) to check if we have docker on it.
I can work on getting our playbooks to install docker on rhel/centos8 after this pr is merged


add drive while facing angle feature

add the ability to drive while keeping the robot in a specific rotation or rotate the robot in place to a specific angle
this was previously supported with the RotateToAngle command
the behavior is now implemented in the Drivetrain class and the hardware-specific IO classes

Before merging this pull request, test this feature on Nova.

test against the CTRE and generic drivetrain implementations (change the robot constant in Constants.java)
use the lock 180 button (translate joystick button 3)
verify that the robot rotates to the nearest 180 (toward or away from the driver), moves in a field-relative fashion, and the rotation joystick is ignored

Close issue #40 with this pull request


Off-Heap store memory utilization issues

In the recent release (3.3.0) you've changed the in-memory mode of the database of the database to use the MVStore off-heap store. This mode utilizes direct buffers of course, but unmanaged direct-buffer pools behavior in the JVM is not that great.
We are seeing up to 10GB of off-heap memory direct buffer utilization, only to be GC'd (Full GC, which has a harsh impact on performance) down to a third of its size and then growing back again.  Compaction also doesn't seem to behave as expected, and during load peaks we sometimes encounter Caused by: java.lang.IllegalStateException: java.lang.OutOfMemoryError: Direct buffer memory [1.4.200/3].
Now of course we can move to file based database or just change the direct memory limitation via -XX:MaxDirectMemorySize but I wonder how's the In-Memory mode before this change? Maybe we should have both modes enabled?
Direct buffers are known to problematic when it comes to memory management, and IMHO Heap buffers are preferable when memory is limited.

You are right. When incorporating OffHeapStorage, I should have kept two options available for off-heap and on-heap memory. I'll make these changes in next major version - 4.x, unless it is very urgent for you.

It is urgent for us, we are encountering major memory constraints and considering replacing nitrite with sqlite all together.

@sheinbergon If you do
Nitrite db = Nitrite.builder()
        .openOrCreate();

it will create on-heap in-memory database. And to enable off-heap storage, use
Nitrite db = Nitrite.builder()
        .enableOffHeapStorage()
        .openOrCreate();

This fix has been released under 3.4.0


Security Fix for Prototype Pollution - huntr.dev

https://huntr.dev/users/alromh87 has fixed the Prototype Pollution vulnerability 🔨. alromh87 has been awarded $25 for fixing the vulnerability through the huntr bug bounty program 💵. Think you could fix a vulnerability like this?
Get involved at https://huntr.dev/
Q | A
Version Affected | ALL
Bug Fix | YES
Original Pull Request | https://github.com/418sec/material-ui/pull/3
Vulnerability README |<EMAIL_ADDRESS>User Comments:
📊 Metadata *
Bounty URL: https://www.huntr.dev/bounties/1-npm-%40material-ui%2Futils
⚙ Description *
material-ui package is vulnerable to prototype pollution issue
Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects.
JavaScript allows all Object attributes to be altered, including their magical attributes such as proto, constructor and prototype.
An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values.
Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain.
💻 Technical Description *
Extended existing filter to also avoid prototype and constructor
-      if (key === '__proto__') {
+      if (key === '__proto__' || key === 'constructor' || key === 'prototype') {

🐛 Proof of Concept (PoC) *

Install the package(npm install @material-ui/utils), run the below code:

/* poc.js */
var utils = require('@material-ui/utils');
var src = {};
let object = utils.deepmerge({}, JSON.parse('{ "myProperty": "a", "prototype" : { "isAdmin" : true } }'), {
    clone: false,
});
console.log(object.prototype.isAdmin);

Execute command node poc.js

🔥 Proof of Fix (PoF) *
After fix protoype is unmodified

👍 User Acceptance Testing (UAT)
After fix functionality is unafected

@mnajdova - happy to answer any questions you or the maintainers may have! 🍰

There are no leaks, the poc is expected. The test case that should trigger is:
var utils = require('@material-ui/utils');
let object = utils.deepmerge({}, JSON.parse('{ "myProperty": "a", "prototype" : { "isAdmin" : true } }'), {
    clone: false,
});
-console.log(object.prototype.isAdmin);
+console.log({}.isAdmin);

Please report vulnerabilities privately next time: https://github.com/mui-org/material-ui/security/policy#reporting-a-vulnerability.

Please report vulnerabilities privately next time

It's a bot


Centralized paradigm benchmark custom_preprocessor error

High Level Description
I am in the process of running the marl_benchmarks. Training and evaluation works for the decentralized paradigm. I would also like to run it for the centralized paradigm to compare performances.
Desired SMARTS version
0.4.17
Operating System
ubuntu 18.04
Problems
When I run the training with the centralized paradigm, it gives me the following error:
command: python run.py scenarios/double_merge/nocross -f marl_benchmark/agents/ppo/baseline-lane-control.yaml --num_workers 2 --headless --paradigm centralized
error:

Failure # 1 (occurred at 2022-01-11_19-08-17)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/ray/tune/trial_runner.py", line 890, in _process_trial
results = self.trial_executor.fetch_result(trial)
File "/usr/local/lib/python3.7/dist-packages/ray/tune/ray_trial_executor.py", line 788, in fetch_result
result = ray.get(trial_future[0], timeout=DEFAULT_GET_TIMEOUT)
File "/usr/local/lib/python3.7/dist-packages/ray/_private/client_mode_hook.py", line 105, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/ray/worker.py", line 1627, in get
raise value
ray.exceptions.RayActorError: The actor died because of an error raised in its creation task, ray::PPO.init() (pid=147, ip=<IP_ADDRESS>)
File "/usr/local/lib/python3.7/dist-packages/ray/rllib/agents/trainer_template.py", line 137, in init
Trainer.init(self, config, env, logger_creator)
File "/usr/local/lib/python3.7/dist-packages/ray/rllib/agents/trainer.py", line 623, in init
super().init(config, logger_creator)
File "/usr/local/lib/python3.7/dist-packages/ray/tune/trainable.py", line 107, in init
self.setup(copy.deepcopy(self.config))
File "/usr/local/lib/python3.7/dist-packages/ray/rllib/agents/trainer_template.py", line 147, in setup
super().setup(config)
File "/usr/local/lib/python3.7/dist-packages/ray/rllib/agents/trainer.py", line 740, in setup
self._allow_unknown_configs)
File "/usr/local/lib/python3.7/dist-packages/ray/rllib/agents/trainer.py", line 1537, in merge_trainer_configs
cls._override_all_subkeys_if_type_changes)
File "/usr/local/lib/python3.7/dist-packages/ray/util/ml_utils/dict.py", line 51, in deep_update
raise Exception("Unknown config parameter {} ".format(k))
Exception: Unknown config parameter custom_preprocessor

I already tried a bunch of fixes for this, one was updating to ray 1.8.0.

This issue is being closed as the marl_benchmark has been archived and is not expected to receive any further updates. See https://github.com/huawei-noah/SMARTS/pull/2025.


Daily build fails on standalone cluster due to NoSuchMethodError

Problem Description
Daily tests on a standalone cluster are failing (started May 29).
No code changes occurred recently, so likely due to a Docker image or third-party dependency that was updated.  Most likely the Bitnami Spark image, which appears to have recently moved to Spark 3.4.0.  This may become a larger story to support Spark 3.4.0, so may want to pin tests to use Spark 3.3.x for now.

Spark Connector Logs
Complex Types Tests failure:
23/06/02 09:32:35 ERROR Main$: Uncaught exception from tests: 'java.lang.String org.apache.spark.sql.execution.datasources.PartitionedFile.filePath()'
java.lang.NoSuchMethodError: 'java.lang.String org.apache.spark.sql.execution.datasources.PartitionedFile.filePath()'
	at com.vertica.spark.datasource.wrappers.VerticaScanWrapper.$anonfun$planInputPartitions$1(VerticaScanWrapper.scala:40)

See method signature of PartitionedFile.filePath change from 3.3.2 to 3.4.0:
https://javadoc.io/static/org.apache.spark/spark-sql_2.12/3.3.2/org/apache/spark/sql/execution/datasources/PartitionedFile.html
https://javadoc.io/static/org.apache.spark/spark-sql_2.12/3.4.0/org/apache/spark/sql/execution/datasources/PartitionedFile.html

If pinning the version to 3.3.x, see the following files where we use latest (or reference that fact):

docker/docker-compose.yml (see client, spark-master, and spark-worker)
docker/README.md
.github/workflows/nightly.xml (see run-integration-tests-on-standalone-cluster, since it uses the default version from docker-compse.yml)

Updating docker-compose.yml and README.md is enough as the nightly tests rely on the default version in that file.
Find the latest Spark 3.3.x tag for the Bitnami Spark image here.


What is the point of update with single argument?

I don't see a benefit of
update(updater: (value: Map<K, V>) => Map<K, V>): Map<K, V>

If I am right
map.update(f)

and
f(map)

Do the very same thing and the latter makes more sense.

Correct. This is a relic of an earlier version of the API which had deeper integration with a specific cursor implementation but should now be considered deprecated.


Provide support for Fresh Air Ventilation Damper

The Ventilation command opens a damper to bring in fresh outside air (assuming the outside air is "fresh" of course. :)) and turns on the fan high to circulate through the house. This is effectively like a "whole house fan" without having to open windows or doors.

The following changes will be needed:

Add attribute to climate entity to prevent indicate if the zone is currently ventilating.  Lennox provides this information in its zone status message.

Add a switch entity to Home Assistant to control the ventilation damper to be open / closed.

Lennox has the ability to set the duration for the ventilation damper to be open, need to determine best way to model this in HA, and may require adding a custom service method to the switch entity.

Add attributes to the switch to track the remaining ventilation duration.  Lennox also has a diagnostic that provide total ventilation hours, which will be included


setTimeout handler is taking too much time

While using in multiple component, this violation warning is coming causing my app to freeze.

Its causing from picker component's nested setTimeout()

https://github.com/TypeCtrl/ngx-emoji-mart/blob/d3aaeeb20d2af312d5028308ad043fa274ef80f8/src/lib/picker/picker.component.ts#L256

I wouldn't put multiple emoji-marts on any page. It has a massive number of divs and images


format callstack and its unittest

Codecov Report

Merging #70 (7da5a61) into main (30392e9) will not change coverage.
The diff coverage is 85.71%.

@@           Coverage Diff           @@
##             main      #70   +/-   ##
=======================================
  Coverage   33.97%   33.97%
=======================================
  Files          35       35
  Lines         627      627
  Branches       29       29
=======================================
  Hits          213      213
  Misses        408      408
  Partials        6        6

Impacted Files
Coverage Δ

towhee/dag/utils/callstack.py
89.47% <80.00%> (ø)

towhee/tests/dag/utils/test_callstack.py
96.22% <100.00%> (ø)

Continue to review full report at Codecov.

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

/lgtm
/approve


Remove deprecated method call

This PR removes a deprecation warning.

Decimal 1.6 which is the lowest supported version also has compare method available so there shouldn't be any issues.

Unfortunately it broke the build, so I am afraid we can't use it yet. :'(


Unable to Sign In

Tried many different accounts/networks/browsers/incognito windows; all with the same result:

Go to https://azuredevopsdemogenerator.azurewebsites.net/?enableextractor=true.
Click the Sign In button.
Sign in.
Land on https://azuredevopsdemogenerator.azurewebsites.net/Account/Verify.
Click the Sign In button.
Land on https://azuredevopsdemogenerator.azurewebsites.net/Account/Verify again, and so on.

When first signed into Azure DevOps, then to the Demo Generator, I get the same (step 4, 5, 6):

The response headers of the "createproject" request there, are:
HTTP/1.1 302 Found
Content-Length: 132
Content-Type: text/html; charset=utf-8
Date: Wed, 28 Aug 2024 12:32:01 GMT
Server: Microsoft-IIS/10.0
Cache-Control: private
Location: /Account/Verify
X-AspNetMvc-Version: 5.2
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET

Same for me ,
always landing to https://azuredevopsdemogenerator.azurewebsites.net/Account/Verify

At work I did manage to sign in, but it connected as a different account. I signed into devops as user1, then tried the demo generator, which failed, then signed into devops as user2, then tried the demo generator again, which succeeded, but with the user1 account...

@wscherphof there was some glitch on that day and it is mitigated. You can authenticate Demo Generator using your ADO credentials.


fixed typos in concepts.mdx

avaialble -> available

@homanp  please review this pr. Thank you.

@homanp  please review this pr. Thank you.

Thank u!


Unable to connect to the Dashboard

Unable to establish a connection to the Dashboard. Below is the code used to initialize the SDK, "appKey" has been replaced with  before posting in here.
Nothing is being sent to the Dashboard and logs doesn't seem to contain anything related to KIOSUploader. Default ATS configurations are being used.
        KIOSRecognizer.setLogLevel(.debug)
        KIOSRecognizer.initWithASRBundle("keenB2mQT-nnet3chain-en-us")
        // Shared instance of KIOSRecognizer
        KIOSRecognizer.sharedInstance()!.createJSONMetadata = true
        KIOSRecognizer.sharedInstance()!.createAudioRecordings = true
        // KIOSUploader
        if KIOSUploader.createDataUploadThread(for: recognizer, usingAppKey: "<key>") == false {
            print("Recognizer is unable to establish connection to Dashboard")
        }

Currently, JSON metatada is created only when final result is computed, so if stopListening is called there will be no JSON file (and no upload to Dashboard). This may change in the future releases so that JSON file is created regardless of availability of final result.
Generally, it's better to rely on VAD and let recognizer automatically time-out and compute final result.


[Feature Request] Add Tasker actions for setting effects

Is it possible to extend Tasker actions to provide a way to adjust blur/dim/saturation levels programmatically? Or a way to receive broadcasts for such adjustments (not necessarily through Tasker actions) ?

We're tracking this in #547 already


Release Checklist 2.12.0-RC1

OpenShift Pipeline

[x] cStor
[x] Jiva
[ ] cStor-csi
[ ] Jiva-csi
[x] LocalPV

Konvoy Pipeline

[x] cStor
[x] Jiva
[x] cStor-csi
[x] Jiva-csi
[x] LocalPV

Native K8s Pipeline

[ ] LVM-LocalPV
[ ] ZFS LocalPV

Upgrade Pipelines [spc/cstor/jiva]

[ ] 1.11.0 to 2.12.0-RC1
[ ] 1.12.0 to 2.12.0-RC1
[ ] 2.0.0 to 2.12.0-RC1
[ ] 2.1.0 to 2.12.0-RC1
[ ] 2.2.0 to 2.12.0-RC1
[ ] 2.3.0 to 2.12.0-RC1
[x] 2.4.0 to 2.12.0-RC1
[x] 2.5.0 to 2.12.0-RC1
[x] 2.6.0 to 2.12.0-RC1
[x] 2.7.0 to 2.12.0-RC1
[x] 2.8.0 to 2.12.0-RC1
[x] 2.9.0 to 2.12.0-RC1
[x] 2.10.0 to 2.12.0-RC1
[ ] 2.11.0 to 2.12.0-RC1

cspc/cstor csi volume upgrade

[ ] 2.0.0 to 2.12.0-RC1
[ ] 2.1.0 to 2.12.0-RC1
[ ] 2.2.0 to 2.12.0-RC1
[ ] 2.3.0 to 2.12.0-RC1
[ ] 2.4.0 to 2.12.0-RC1
[ ] 2.5.0 to 2.12.0-RC1
[ ] 2.6.0 to 2.12.0-RC1
[ ] 2.7.0 to 2.12.0-RC1
[x] 2.8.0 to 2.12.0-RC1
[x] 2.9.0 to 2.12.0-RC1
[x] 2.10.0 to 2.12.0-RC1
[ ] 2.11.0 to 2.12.0-RC1

Migration spc pool to cspc and cstor volume to cstor csi volume

[ ] 2.0.0 to 2.12.0-RC1
[ ] 2.1.0 to 2.12.0-RC1
[ ] 2.2.0 to 2.12.0-RC1
[ ] 2.3.0 to 2.12.0-RC1
[x] 2.4.0 to 2.12.0-RC1
[x] 2.5.0 to 2.12.0-RC1
[x] 2.6.0 to 2.12.0-RC1
[x] 2.7.0 to 2.12.0-RC1
[x] 2.8.0 to 2.12.0-RC1
[x] 2.9.0 to 2.12.0-RC1
[x] 2.10.0 to 2.12.0-RC1
[ ] 2.11.0 to 2.12.0-RC1

ZFS Upgrade Pipelines

[ ] 1.0.0 to 1.10.0-RC1
[ ] 1.0.1 to 1.10.0-RC1
[ ] 1.1.0 to 1.10.0-RC1
[ ] 1.2.1 to 1.10.0-RC1
[ ] 1.3.0 to 1.10.0-RC1
[ ] 1.4.0 to 1.10.0-RC1
[ ] 1.5.0 to 1.10.0-RC1
[ ] 1.6.0 to 1.10.0-RC1
[ ] 1.7.0 to 1.10.0-RC1
[ ] 1.8.0 to 1.10.0-RC1
[ ] 1.9.0 to 1.10.0-RC1

LVM upgrade pipeline

[ ] 0.4.0 to 0.8.0-RC1
[ ] 0.5.0 to 0.8.0-RC1
[ ] 0.6.0 to 0.8.0-RC1
[ ] 0.7.0 to 0.8.0-RC1

While upgrade the cstor pool from 2.7.0 or lesser version from 2.12.0-RC2 upgrade is not happening.
https://github.com/openebs/upgrade/issues/123


Feature Request: support for Gradle

I tried to build a simple Gradle plugin for Mongock. I generally managed to get it to work - but only by adding a small change to Mongock.
I used a simple approach based on StandaloneRunner of course:
abstract class MongockMigrateTask

    // ...

    @TaskAction
    fun migrate() {
        val mongoClient = MongoClients.create(mongoConnectionString.get())
        val runner = MongockStandalone.builder()
            .setDriver(MongoSync4Driver.withDefaultLock(mongoClient, "dbName"))
            .addChangeLogsScanPackage(migrationsNamespace.get())
            .buildRunner()
        runner.execute()
    }
}

Out of the box this method doesn't work - The context in which the Gradle task runs does not contain the project's classes on the classpath.
Initially I tried a JavaExec based approach, but that's a huge nightmare.
So I checked how Flyway does it - and I noticed that Flyway at the core allows configuring with a custom ClassLoader.
So I checked out the code and tried it - and it works. Here is my change.
It's a trivial change really, but I didn't do a PR because I didn't add any tests (wasn't sure how to test with custom class loader).
The final Gradle task required a bit more trickery but it wasn't hard:
abstract class MongockMigrateTask

    // ...

    @TaskAction
    fun migrate() {

        val extraURLs = HashSet<URL>()
        addClassesAndResourcesDirs(extraURLs)
        addConfigurationArtifacts(arrayOf("compileClasspath", "runtimeClasspath"), extraURLs)
        val classLoader = URLClassLoader(
            extraURLs.toTypedArray(),
            project.buildscript.classLoader
        )

        val mongoClient = MongoClients.create(mongoConnectionString.get())
        val runner = MongockStandalone.builder()
            .setDriver(MongoSync4Driver.withDefaultLock(mongoClient, "dbName"))
            .addChangeLogsScanPackage(migrationsNamespace.get())
            .setClassLoader(classLoader)
            .buildRunner()
        runner.execute()
    }

    private fun addClassesAndResourcesDirs(extraURLs: MutableSet<URL>) {
        // Lifted from Flyway...
    }

    private fun addConfigurationArtifacts(configurations: Array<String>, urls: MutableSet<URL>) {
        // Lifted from Flyway...
    }
}

Anyhow it proves that  it can be done and opens the door for more build systems.

However - I did come across one problem which raises an interesting question -
Since my project is Spring based, I used MongockTemplate - and my Gradle task threw a ClassNotFound exception. This is due to the fact that In standalone mode it can't inject MongockTemplate which is based on Spring's MongoTemplate.
That forced me to change the migration to use MongoDatabase, which is a shame:
@ChangeLog(order = "001")
class V001_InitCollection {

    @ChangeSet(order = "001", id = "init_collection", author = "me")
    fun initCollection(db: MongockTemplate) {
        if (!db.collectionExists("collection")) { // 😇
            db.createCollection("collection")
        }
    }
}

@ChangeLog(order = "001")
class V001_InitCollection {

    @ChangeSet(order = "001", id = "init_collection", author = "me")
    fun initCollection(db: MongoDatabase) {
        if (!db.listCollectionNames().contains("collection")) { // 🤮
            db.createCollection("collection")
        }
    }
}

I think it would be great to make MongockTemplate an interface that works exactly the same in all drivers.

I'm not sure I understand how this works... I have to compile a special CLI specific to my project which is linked to its sources?
If so this isn't what I was aiming for. I was hoping to go with the same workflow we have today with Flyway - i.e given a .jar with Flyway migrations (based on convention) - I can run the migrations using flyway cli, Maven, Gradle, or trigger from code with a simple main() ("standalone") - with no difference between them.
It is also framework agnostic. There is no need to compile some cli into my jar which isn't desirable because I do a lot of things with the CLI and I can't let a library take control over it.
In the end I use two methods overall in my workflow:

During development - run the migrations from Gradle.
In production - trigger from code using our own cli verb.

Hello @amirabiri ,
I first going to clarify how this CLI works.
To start it's in BETA version, we are still adjusting ways of working 😄
Second, you are not adding the CLI to your jar(well, you bring the dependency,as you are doing with the runner), but what it's actually doing a new .jar from your code and just changing the start-class. So you .jar remains untouch, we create a new one, with a new manifest to use another starting class. I don't know if that changes your perspective.
Third, the reasons I do that is actually to load the entire context. With this approach, you have all the injections your want: MongoTemplate, your repositories, etc.
I understand you still are not comfortable with this approach. It can be done also having a separate CLI to which you pass your .jar,  but if you want to have the flexibility of having the Spring conext loaded(or any other framework) in a robust manner, without falling into a headache, in reallity it won't change much, to be honest. Just you don't build the CLI specificcally to your project, you have a unique one instead, but a similar job needs to be done in another stage.
There is also the option to use the classLoader, but then you don't have the Spring Context(or any other)..at least no in a way that is not prone to errors.
In summary, we can provide more ways to do the CLI and I would like to understad really your needs and how best solve them. What about having a zoom/team session about it??

Hello @amirabiri ,
just to let you know we are working on the CLI to allow the user to pass the application jar...and also solving the issue with MongockTemplate and any other dependency you have.
We haven't finalised yet(maybe at the end of the week. Probably earlier), but it will look something like this(no maven plugin required):
./mongock migrate -jar your_jar_path.jar
Does this work for you?

Hi @dieppa,
Wow that's a very quick listening to your users! Thank you :)
I will check it out as soon as I can.
What technique are you going with to support this? It should be possible to use it as well for the Gradle plugin.

Hi @amirabiri ,
thanks for appreciating!! 😃
the user will basically need yo run a .sh passing the project's jar and the operation and optional parameters. I think that fits well which what you need. Correct me if I am wrong.
In the near future we'll add more operations(we already have many in mind), for which you don't need to pass the jar, for example to know the state of the database, run ad hoc changes or connect to the dashboard(we'll be adding a dashboard too).

Hello @amirabiri ,
have you been able to check this out?

Hi @dieppa,
I haven't been able to get it to work, I get an error:
./mongock --appJar /path/to/my/spring/boot/app
Exception in thread "main" java.lang.RuntimeException: Missing jar parameter. Please follow the format "--appJar jar_path"
	at io.mongock.cli.wrapper.MongockCliMain.getParameter(MongockCliMain.java:80)
	at io.mongock.cli.wrapper.MongockCliMain.main(MongockCliMain.java:31)

Regardless, this isn't what I was looking for. I would like to run the migrations from within Gradle like so:
./gradlew mongockMigrate

I guess this can be accomplished by gradle running the mongock cli, but sounds cumbersome and error prone to me. Have you looked at the diff I sent? https://github.com/amirabiri/mongock-core/commit/63148ce4d90066963016a032fe2dfc48bff2b522
All that is needed really is just to allow passing a custom ClassLoader to the runner.

Can you update on the state of this ticket? 😄


Feedback from an investor and institutional/professional trader

See below feedback items raised:

[x] Gap between trades list / order book and deal ticket (may be related to frozen allotment panes issue)
[ ] Fills and any other lists that may not load all history need to show the time period
[ ] Any panel that filters by default should make this clear (e.g. where showing only fills for the current market)
[ ] Any panel that flters results by default should either show this filter in a way it can be toggled/disabled or link to e.g. the portfolio view where the full unfiltered data set is available
[ ] Add a tooltip or similar to liquidation price showing breakdown of how this is calculted and/or the reference data used so a user can see how the number is derivate. Link to docs if can't be made fully clear how it's derived in a tooltip.
[ ] Review testing to ensure we have coverage for all financial amounts, remediare where necessary. Reminder it should be treated as a "production" mainnet incident if any financial value is wrongly displayed in a full (mainnet) release of any UI code.

Response to these:
Gap between trades list etc

I'm not sure I understand or can easily reproduce, think we need more info and to check if its already fixed by the resizing fix we already made

Showing time pereiod

Created #4898

Showing default fiters

Created #4897

Better explaining liquidity estimate

I am not convinced this is possible in a tooltip given its so complex
I am not sure its evven properly described in docs, but I have raised with Candida & Witold

Review test coverage of critical fields

This is something we will look at ... but no ticket raised.

Gap between trades list- must be fixed I think, pretty sure it was related to pane sizing and/or toggling the sidebar. I only saw it on a Zoom call though. We can assume fixed (delta the remaining pane sizing issues that persist at least in Firefox).


Help needed for asynchronous example

I would like to ask for an example using asynchronous instead of synchronous.
I am currently using the format below
User user = new User();
user.setId(0);
Business business = new Business();
business.setId(1);
Location location = new Location();
location.setId(3);
location.save();
business.setLocation(location);
business.save();
Job job = new Job();
job.setId(8);
job.save();
user.setBusiness(business);
user.setJob(job);
user.save();
it is working perfectly but if i have many data then the best solution was to do it in asynchronous.
I looked at the Async Transactions but that doesnt show how to do a something similar thing above.
Hope somebody could show me an example for it. Thanks alot.

if you need help I would ask on stackoverflow, not in github issues. Its on the docs here:
https://agrosner.gitbooks.io/dbflow/content/StoringData.html
Just use a regular Transaction:

DatabaseDefinition database = FlowManager.getDatabase(AppDatabase.class);
Transaction transaction = database.beginTransactionAsync(new ITransaction() {
            @Override

            public void execute(DatabaseWrapper databaseWrapper) {
               User user = new User();
user.setId(0);
Business business = new Business();
business.setId(1);
Location location = new Location();
location.setId(3);
location.save();
business.setLocation(location);
business.save();
Job job = new Job();
job.setId(8);
job.save();
user.setBusiness(business);
user.setJob(job);
user.save();
            }
        }).build();
transaction.execute();


Fix documentation build/deployment Action

[ ] docs/ have been added/updated if necessary
[x] make test has been run locally
[ ] tests have been added/updated (if applicable)
[ ] CHANGELOG.md has been updated.

The documentation build Action triggered after merging in PR #333 didn't go through: https://github.com/mapping-commons/sssom/actions/runs/6862846838, and that is because I had forgotten to include the updated pyproject.toml/poetry.lock files in that PR. Merging in this PR will fix that. I also updated the deploy_documentation.yaml workflow to use the Makefile target to build the docs rather than writing out the full commands.

@hrshdhgd can you check this as well?

It looks like 1/4 tasks are complete. Is that true or an oversight. I didn't review it assuming that the PR is incomplete because of that.

Other than that, looks good.

My apologies, I hadn't checked off some of those boxes because they weren't applicable to this PR, but we're good to 🚀


Pack-View name invalid!

Pack-View name invalid!
current version 1.3.4

Pack-View name is invalid!.
This could be due to the template name not being declared in advance. Please confirm whether the markdown file located in the Template Source Path designated folder has declared the template name using pack-source.
I attempted to reinstall this plugin using the files in the release, and it worked without any issues for me in Obsidian v1.3.4.
If you used this plugin before the main.js file in release was updated, please try reinstalling it to see if the same issue persists.


Error on clipdel with special characters

I called clipdel -d 'e.g.passX\(sghs'  for try to delete a password with special characters (generated with pass) I get the next error:
sed: -e expression #1, char 36: Unmatched ) or \)
sed: -e expression #1, char 36: Unmatched ) or \)
sed: -e expression #1, char 36: Unmatched ) or \)

I tried to escape the password but it not worked
    value=
    clipdel -d $(printf '%q' "$(xsel -b)")

Yeah, this is a bug due to the fact we use sed without special escaping of the inputs. I'll look at fixing it for the next release.

Oh wait, it's not a bug. By contract -d takes a BRE regex :-)
Try not escaping (.

@cdown 'e.g.passX(sghs' is password without escaping, so I think one option is be able to call  without -d or with another option to delete a literal string without regex

There's no need to escape anything. ( in BRE means (.

@cdown \ and ( are part of the password

Ok, so you need to escape it then to make it a valid BRE. It should be \\(.

Closing for now without prejudice, since I think that we came to an agreement that it's intended behaviour. However, I agree with you that a "literal" mode that doesn't take a regex would also be a nice addition. :-)


Don't derive IForeignKey from IKey

Resolves #1034

:shipit:

:shipit: :shipit: :shipit: :stuck_out_tongue_winking_eye:


Make sure that the article-purchase-unit paragraph has a close tag

If the article has a purchaseunit, but the referenceunit equals the purchaseunit, the article-purchase-unit paragraph has previously not been getting closed. Furthermore, if only the referenceunit is set, but purchaseunit is not, the base price can not be calculated. Because of this, there is no point in displaying the reference price in this case.

Dear Contributor,
Thank you for your contribution to Shopware. We value your engagement.
Unfortunately we have to close all existing Pull Requests.
This is due to the new Shopware 5 Major Release and a restructuring of the branch names.
If your contribution is still relevant for Shopware 5, a new pull request is highly appreciated.
We are very sorry for this inconvenience.
Greetings from the Shopware Team.


[bug] "Download Installation Media" downloads out of date ISO

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Talos Linux was released on June 28. I am attempting to download a customized ISO to auto-join my Omni account:
$ omnictl download iso --arch amd64
Downloading talos-amd64-v1.4.5-omni-aegn.iso to /home/myuser/Downloads/talos-amd64-v1.4.5-omni-aegn.iso
Downloaded talos-amd64-v1.4.5-omni-aegn.iso to /home/myuser/Downloads/talos-amd64-v1.4.5-omni-aegn.iso

Notice that 1.4.5 is downloaded.
Expected Behavior
Since 1.4.6 is the latest stable version of Talos, I'd expect 1.4.6 to be downloaded instead of 1.4.5.
Steps To Reproduce
Either of the two paths to downloading customized media will reproduce the issue:
Run:
omnictl download iso --arch amd64

OR click on the "Download Installation Media" button in the Omni web ui.
What browsers are you seeing the problem on?
Chrome
Anything else?
No response

Either way, this doesn't block the creation of the cluster, as Omni will upgrade the node automatically behind the scenes


[Feature Request]: Add direct Ctrl+Shift+K entity selector popup shortcut in WYSIWYG editor

Note by @ssddanbrown
This request thread resulted in focusing on adding the Ctrl+Shift+K shortcut to the WYSIWYG editor, to show the entity select popup for quick cross-linking. This aligns in shortcut and functionality with the existing markdown shortcut.

Original Request for context
Describe the feature you'd like
I would like to be able to link to other pages within my bookstack without knowing the exact URL or PageId. I would start typing:

[
Then some search term to find the exact page withing my BookStack.
Upon selecting the correct page it would close with ]

Like in tagging people with @: Confluence example
Describe the benefits this feature would bring to BookStack users
Links between content makes for a better experience and prevents DRY. If I can easily link to another page I will do it, if it takes to much effort I wont.
Additional context
I just love the way BookStack works. IMHO this is the only mature feature missing (or available without me knowing).

Thanks for the request @dc31xx,
This runs very close to issue  #441. I may close this off as a duplicate once any discourse here runs dry.
I'm not really looking to support certain methods/syntax just to align with another platform.
I am however open to addressing the fundamental benefit/feature of easier access to cross linking.
We have to keep a couple of things in mind:

Usability for our core audience (Including the less technical).
Portability of content.

I don't really want to be introducing certain type characters that cause actions/popups ([) as I don't feel that's a good route for usability, especially since square brackets are not a highly unlikely character for actual content.
As it stands you can get to a link selector, without using the mouse, via the following in the WYSIWYG editor:

Select content > Ctrl + K > Tab > Enter.

Perhaps we just need to private a more directly accessible route. In the markdown editor we have Ctrl+Shift+K to directly access the same popup box that shows. Maybe step 1 is brining that shortcut to the WYSIWYG editor.

Thank you for your response.

I'm not really looking to support certain methods/syntax just to align with another platform.
I get that. Keep in mind that Confluence

We have to keep a couple of things in mind:
Usability for our core audience (Including the less technical).

I have to remark that Confluence is not for technical people. I do get that mimicking other platforms is not a goal. The funny thing is that as a technical person I found it obvious that one could link via a certain syntax. This way I discovered the [-syntax in Confluence just by trying. On the other hand I didn't even notice the little folder icon in the Link (Ctrl+K) window! So actually, the way of linking that I was looking for (via UI) is already implemented, but I just couldn't find it.

I don't really want to be introducing certain type characters that cause actions/popups ([) as I don't feel that's a good route for usability, especially since square brackets are not a highly unlikely character for actual content.

I get this. I have to admit it can be annoying if you do want to enter [ in actual content, but this behaves the same way as suggestions on your iPhone. Escape will remove the popup.

Perhaps we just need to private a more directly accessible route. In the markdown editor we have Ctrl+Shift+K to directly access the same popup box that shows. Maybe step 1 is brining that shortcut to the WYSIWYG editor.

Already quite happy to find out that the feature I was looking for is not actually missing. I do think that however that this might be an improvement.

Yeah, We could do better at making the shortcuts more discoverable. Maybe by adding a possible overlay popup from link, that's where I wanted to get to when I get around to more general interface shortcuts.
I get that content-base auto-formatting is used elsewhere, but I really don't want to go down that road if we can have less intrusive alternatives, especially since introduction content-input-based actions would be introducing a potential annoyance to those that really don't want them (In which case we then have to add controls to allow disabling/reverting of behaviour).
Are you using the WYSIWYG editor and, if so, are you happy for me to re-focus this issue for Ctrl+Shift+K link selection input to move us closer to fundamental described benefits?

Yes and yes 🙂

Yes and yes 🙂

Required change applied in #3298, awaiting scheduling into a release.

This has now been merged and will be part of the next feature release.


[BugFix] Read order

Signed-off-by: xlfjcg<EMAIL_ADDRESS>

@xlfjcg Can you please describe what the problem is and how to fix it in details?

LGTM. BYW, @xlfjcg can you rename the title to make the commit easy to understand?


Add operator_install tests

Closes [#279]

Description of PR
Adds operator_install_test.go which can be tested the same way as other go unit tests.

Fixes #279

Changes (required)

Added operator_install_test.go
Added logger initialization to capability/suite_test.go

Checklist (required)

[x] I have reviewed and followed the contribution guidelines
[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 made corresponding changes to the documentation if needed
[x] I have checked that my changes pass all tests

@bcrochet integrated your suggestions

Everything is squashed to 1 commit now. I think I got all the linting errors you pointed out @bcrochet . I think the rest of operator_install_test that doesn't have coverage consists of functions tested in other unit tests like subscription_test and report_test. As for testing the with*() functions, sounds like we could/should do that in another PR that focuses on their specific test suite. Please let me know if I missed or forgot anything you think needs to be in here!

@trgeiger I think, because of the errors on github actions, it may be easier to just grab those changes and open a new PR with the same thing. We couldn't see why this still fails.


Feature: More custom field

Now cla-assistant is able to receive the user data that are saved only* in user's github account. right?
It would be nice if we can add more custom field. and save it to mongolab.
(I want to add 'telephone number' and 'country' field)

Ooops. it's already done. https://github.com/cla-assistant/cla-assistant/issues/64
Sorry!


reorder teardown callback to after the error event, and setResults.

fix for #61
Change order of operations to

emit error event if it exists
calculate results
call teardown hook
emit cycle event

I'm not sure why you would ever call teardown before dealing with an error that was part of the test run.
Putting teardown after setResults allows a person to purge the samples to avoid memory starvation in longer test runs.

@jdmarshall: if it's still relevant, could you please update your PR?

Fixed


docs-0.22: Add mdox link checking and formatting

Adds mdox to release-0.22 branch. Related to #4357.

This is surprising:

I think we should never check against tip, since we care about local link here no? This link should be localised, but it was not 🤔


Declare compatibility with V2 authorization extension API

Please see https://github.com/klinux/gocd-keycloak-oauth-authorization-plugin/issues/6
Since you seem to be maintaining a fork due to the plugin abandonment upstream, this change should address https://github.com/klinux/gocd-keycloak-oauth-authorization-plugin/issues/6 to ensure the plugin keeps working with GoCD 23.2.0+.
Should also work on versions back to GoCD 19.3.0, but the plugin already declares it requires 20.3.0 so this shouldn't be a concern.

Sorry, just noticed this :) Already changed version and did a new release. Can you please check if it work for you?

I don't actually use this plugin or have a working keycloak setup locally (tried to one going but lost my mind about half an hour in 😅) - just trying to do a service for the community since i am maintaining GoCD upstream 👍
Should be fine though. Feel free to tag me if folks report any problems or you have issues though.


Stage 1: Refactor codebase (re) (re)

Re: https://github.com/YouTube-Enhancer/extension/pull/520#issue-2354660165

@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.


Change in key path notation (Coldcard) introduces confusion

Coldcard introduced a change in key path notation somewhere before Firmware 5.3.1. In changelog 5.3.1. they write:
"Important Bugfix: Already imported multisig wallets would show errors when signing. This was caused by our internal change in key path notation from 84' (prime) to 84h (hardened)." (https://github.com/Coldcard/firmware/blob/master/releases/History-Mk4.md#531---2024-05-09)
In their changelogs I wasn't able to find clarification for the switch in general. I'm technicaly not educated enough so this is more of a wild guess for their reasoning: Technically, in my head, there is no difference between using h or ' (both h and ' mean hardened / "nothing" means unhardened). Since it is difficult for the eyes to distinguish between ' and nothing, change by Coldcard improves readability (of the code and for users using the device). I recognize, in CC Firmware there is a function (cleanup_deriv_path in utils.py) which shows how they do the conversion; e.g. used when importing multisig configuration. Besides, h notation is used by bitcoin (descriptors).
Now, in Sparrow this introduces an issue:
Files imported to Sparrow propagate to the Keystore Tab (in this case, using "h" with newer CC Firmware). Once you have a standard multisig wallet in Sparrow; e.g. 1x Coldcard (m/48h/0h/0h/2h) and 1x other keystores (m/48'/0'/0'/2') the Receive tab shows 'multi/0/0' for Derivation. This is confusing as it would mean the same as using prime notation (') for both keystores but diverging paths; e.g. 1x Keystore (m/48'/0'/0'/2') and 1x Keystore m/48'/0'/666'/2').
Even though I (guess) to understand why Coldcard made the change (and welcome it) it is hard to imagine that competitors will do the same thing. I think Sparrow Wallet should address this from an UI perspective. I imagine there is more to it than just changing all ' to h (compatibility with all the different manufacturers) but to stay consistent from UI perspective, it would be nice if on Receive Tab (...other places?) a unified way of showing information is used.

Technically, in my head, there is no difference between using h or ' (both h and ' mean hardened / "nothing" means unhardened).

This is correct.

Since it is difficult for the eyes to distinguish between ' and nothing, change by Coldcard improves readability (of the code and for users using the device).

I disagree. IMO, m/48'/0'/0'/2' is much easier to read than m/48h/0h/0h/2h. But I don't think there will ever be universal agreement, so Sparrow tries not to be too opinionated here. IIRC the major reason for Bitcoin Core to switch to "h" was avoiding using an apostrophe in arguments on the command line.

Once you have a standard multisig wallet in Sparrow; e.g. 1x Coldcard (m/48h/0h/0h/2h) and 1x other keystores (m/48'/0'/0'/2') the Receive tab shows 'multi/0/0' for Derivation. This is confusing as it would mean the same as using prime notation (') for both keystores but diverging paths; e.g. 1x Keystore (m/48'/0'/0'/2') and 1x Keystore m/48'/0'/666'/2').

Fixed in 95b1aa8e. Sparrow will also now rewrite derivation paths for file and card imports so they look the same.


Added Dark And light Theme

Added Dark And light Theme

there was major bugs so I have reverted few pr , to avoid any error , please create new pr , with new pr I will be able to test the changes live

make sure to delete the repo and fork it again to do the changes


Remove code obsoleted by common bootstrap package

Dependent upon completion of #1801, #1802, #1803, #1804, #1805, #1806, #1807, #1808, #1809, and #1810, and https://github.com/edgexfoundry/edgex-go/issues/2236.

In conversation with @tsconn23, @tingyuz, and @AnthonyMBonafide yesterday, agreed to put #1805 and #1806 hold until after October Fuji freeze. Follow-on Fuji security release will address those issues.  Because this issue is dependent on the completion of those two issues, this issue will also be delayed.

@michaelestrin It looks like the only thing pending on this is removal of config-seed, is that correct? Per Core WG 27-Feb-2020 there are some action items in the core/support services before that can happen.

Yes.  config-seed removal precedes this.

Since we have completed the work to add config-seed functionality into go-mod-bootstrap and updated edgex-go to use a version which has that functionality(v.0.0.26) we can now remove the config-seed packages and functionality from this repo

@AnthonyMBonafide is there any work here that wasn't handled by #2445?

@brandonforster , I forgot to add a comment explaining this further. The config-seed packages have been removed. However there is some lingering functionality that can be removed. It looks like we can remove the Retry struct:
https://github.com/edgexfoundry/edgex-go/blob/f758cd6862d8e6cc426c71a8990c23b386da041b/internal/pkg/startup/bootstrap.go#L19
Also, we can probably remove the loader.go, environment.go and environment_test.go files completely:
https://github.com/edgexfoundry/edgex-go/tree/f758cd6862d8e6cc426c71a8990c23b386da041b/internal/pkg/config
Please verify these can be safely removed and there is no other lingering functionality.


feat: added kyverno_policy_rule_results metric

Signed-off-by: Yashvardhan Kukreja<EMAIL_ADDRESS>Related issue

What type of PR is this

Proposed changes

Checklist

[] I have read the contributing guidelines.
[] I have added tests that prove my fix is effective or that my feature works.
[] I have added or changed the documentation.

If not, I have raised an issue in kyverno/website to track the doc update:

Further comments

What should be the best practice for the naming convention? I see we use the mixed formats of camelcase and underscore, for both package and file names.
Found this in Effective_Go:

By convention, packages are given lower case, single-word names; there should be no need for underscores or mixedCaps.

Ideally we want to use single-word names. But if it's too long, we should at least keep them consistent.


SIL: Add instructions to represent async suspend points.

get_async_continuation[_addr] begins a suspend operation by accessing the continuation value that can resume
the task, which can then be used in a callback or event handler before executing await_async_continuation to
suspend the task.

@swift-ci Please test

Build failed
Swift Test OS X Platform
Git Sha - 9f84623a3f8f209aeec32c977428e10eb05609a2

Build failed
Swift Test Linux Platform
Git Sha - 9f84623a3f8f209aeec32c977428e10eb05609a2

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - a7076bf28ed7bb202c081cfb42c5fdda392f9b1e

@swift-ci Please test

Build failed
Swift Test OS X Platform
Git Sha - a7076bf28ed7bb202c081cfb42c5fdda392f9b1e

Build failed
Swift Test Linux Platform
Git Sha - a7076bf28ed7bb202c081cfb42c5fdda392f9b1e

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - a664a33b52680bca4c80d6749583a86da6bac902

@swift-ci Please test Linux

Build failed
Swift Test Linux Platform
Git Sha - a664a33b52680bca4c80d6749583a86da6bac902

@swift-ci Please test Linux

I think that this has caused a regression on the Windows bots: https://ci-external.swift.org/job/oss-swift-windows-x86_64-vs2019/3052/consoleText

@compnerd You should be able to add REQUIRES: concurrency to the test to disable it if _Concurrency is not currently built on the Windows bots.

@rjmccall I'm working on the verifier checks in the next commit.


Heroku Logs Failing in 2.21.1

jamesw@T420s:~/projects/shareheroku-java$ heroku logs
/usr/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /usr/lib/ruby/1.9.1/net/http.rb:799:in `block in connect'
from /usr/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
from /usr/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
from /usr/lib/ruby/1.9.1/net/http.rb:799:in `connect'
from /usr/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
from /usr/lib/ruby/1.9.1/net/http.rb:744:in `start'
from /usr/local/heroku/lib/heroku/client.rb:409:in `read_logs'
from /usr/local/heroku/lib/heroku/command/logs.rb:31:in `index'
from /usr/local/heroku/lib/heroku/command.rb:135:in `run'
from /usr/local/heroku/lib/heroku/cli.rb:9:in `start'
from /usr/bin/heroku:30:in `<main>'

Yeah, sorry about that.  I worked on a fix today but haven't quite finished yet.  In the mean time there is a work around though, you can use HEROKU_SSL_VERIFY=disable.  This will cause it to skip the problematic verification, which is to say it will have the old behavior.  Sorry again for the trouble, I'm going to try to get a fix out for it tomorrow.

this may come in handy
https://github.com/stevegraham/certified

Thanks for this jjb

It is not working :(

Anjain: try
[sudo] gem install certified
add to gemfile : gem 'certified'
bundle install

I am using gem 'paypal_adaptive',"0.2.7"  and it is working fine at local.
It is not working on heroku and getting following error:
C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `connect': SSL_connect returned=1 e
rrno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL
::SSL::SSLError)

try adding the certs folder to your lib directory from https://github.com/stevegraham/certified

not working :(

I have been beating my head against this all night long. HEROKU_SSL_VERIFY=disable does not work for me. The certified gem does not work for me. Adding the certs directory from the certified gem to lib does not work for me. App works fine locally. App does not work on Heroku. Cannot see inside Heroku, cannot see Heroku logs. Have to deploy app today. Already wasted four hours. Can no longer host app on Heroku :(

I was also advised to do $ HEROKU_SSL_VERIFY=disable heroku logs but, the method I used as prescribed in my replies here - heroku logs directly related to certificate issue. If you ensured that all other tweaks you made in trying to resolved are reverted then method above worked for me and I had the exact same problem. They said to have a fix in a day or so.

Thanks for the fix.

Still have this issue. How i could develop app without logs?

What version are you on?

dickeyxxx, i am so sorry. it was my fault, later after couple hours of digging google i found post where guy say 'do not use heroku from rubygems on fedora'. So i downloaded original binary from site. (I do not like binary without repotracking)
Current version supplied with official fedora repository
Name        : rubygem-heroku
Arch        : noarch
Epoch       : 0
Version     : 3.8.2
Release     : 1.fc21 (<---- !!!! )
Size        : 74 k
Repo        : fedora
Summary     : Client library and CLI to deploy Rails apps on Heroku
URL         : http://heroku.com/
License     : MIT
Description : Client library and command-line tool to manage and deploy Rails apps on
            : Heroku.

But
[kberezin@kberezin ~]$ uname -r
4.0.5-300.fc22.x86_64

Currently i use heroku-toolbelt/3.39.1 (x86_64-linux) ruby/2.2.2 and there no problems.


[TEST] Schedule running negative test cases on HAL with sprint build

What's the test to develop? Please describe
Need to schedule running negative test cases on HAL with sprint build. We can set running each test cases ~30 times on a sprint build. Generally, we run negative test cases during release but this will help early detection of issue

We can work on this mid or late Nov after the planned migration of machines in the lab.


added principal local authority files for the beta register

The field descriptions don't seem to have been content-reviewed (even name and name-cy aren't in the master spreadsheet!) but let's not let that block beta, since all beta field descriptions are under review anyway.
Apart from that, good to go.


[ future request ] uninstal.sh

would be nice to have..

never

jk. we will consider it for our next release. thanks!

sorry @chiboreache closing the issue since the repository is now being archived. You can contact us on discord or by email if you have any questions/concerns.


can not get status of transaction

`tronWeb.trx.getTransaction(tx).then(t => {
console.log(JSON.stringify(t, null, 2));
}).catch(err => console.error(err));
{
"ret": [
{}
],
"signature": [
"4cb0051824e370d1dbd251be0e0467910b8ca7495ac1e472ecfe317fd238c2a6604b44a27ab2c8d957e4453d36fbcddf01203fb84ad38be80629ea326043219701"
],
"txID": "2500376771711f9d142941ab1c6dcb70c2bfba8bc9225ce63e650e54cae53df8",
}
there is not status return

ret is empty ....
could any body help me with this ??

ret is empty ....
could any body help me with this ??

it is not an issue with tronweb, it is some SR doesn't have the proper set up for their witness nodes that produces blocks


mount pdf and preview in html

**mount pdf and preview in html **
how do I mount pdf and preview in html, same as you do in the example below.

Do you have the sample code so I can see?

Well you could look into the code of the example. You could also use the js library PDFObject, which should be probably easier for you to realize your task.
https://pdfobject.com/


IncludeOptimized yields error when filter that follows contains a boolean expression

IncludeOptimized results in an error when the the query that follows an IncludeOptimized call contains an Any  boolean subquery on the include. I suppose it would do the same for a numeric aggregation too. Code works fine when used with standard EF include.
Error:
 Unable to cast object of type 'System.Data.Entity.Core.Objects.ObjectQuery1[System.Boolean]' to type 'System.Data.Entity.Core.Objects.ObjectQuery1[TypeSubType]'
Example Code:
_dataContext.Set<TypeSubType>().IncludeOptimized(x => x.SubType).Any(x => x.Id == typeId && x.SubTypes.Any(st => st.id == subTypeId));
I'm using EF 6.1.1, .Net 4.5.1, and Z.EntityFramework.Plus.EF6  1.4.37 and I traced the error to line # 165 of Z.EntityFramework.Plus.QueryIncludeOptimizedProvider :
var immediateQuery = (ObjectQuery<T>) createQueryMethod.Invoke(provider, new object[] {expression});

Hello @stryker1977 ,
I'm not sure if you pasted your code correctly or not.
Currently, when I look and try your code example, you return a boolean value
bool isTrue = _dataContext.Set<TypeSubType>().IncludeOptimized(x => x.SubType).Any(x => x.Id == typeId && x.SubTypes.Any(st => st.id == subTypeId));

In this case, our library cannot help you. Even the Include or IncludeOptimized method doesn't help you either since you don't have to include anything because you return a boolean value. So, trying to include something here is only a bad practices.
Let me know if I misunderstood the issue.
Best Regards,
Jonathan

Hi Jonathan, so the code I pasted does expect a Boolean result. Essentially it's saying tell me if there are any records of the table that I'm querying that contain one or more related records matching some input. You need an include for this sub filter over navigation property, and it does indeed work with standard EF include. Additionally sub query filter with aggregation is also supported in standard EF, for example compare to a count of related include set as a filter.
The code I pasted above is production code and has been working for sometime. As soon as I switched to EF Plus to test backwards compatibility this is the only thing so far that i've encountered that is broken.
Thanks and please let me know if you need any additional examples of clarification. I really appreciate all the hard work you've all put into this is a great library.
The code I pasted above is production code and has been working for sometime. As soon as I switched to EF Plus to test backwards compatibility this is the only thing so far that i've encountered that is broken.
Thanks and please let me know if you need any additional examples of clarification. I really appreciate all the hard work you've all put into this is a great library.

Hi Jonathan, so the code I pasted does expect a Boolean result. Essentially it's saying tell me if there are any records of the table that I'm querying that contain one or more related records matching some input.
The code I pasted above is production code and has been working for sometime. As soon as I switched to EF Plus to test backwards compatibility this is the only thing so far that i've encountered that is broken.
Logically you make a good point though the include is unnecessary in this case and does in fact work without it. However this does work fine with builtin EF 6.1 include, but errors out when used with include optimized and is a deviation from base EF supported functionality. Given this is unnecessary include, this issue can probably be closed if you concur.
Thanks for the quick response, and all the hard work you've all put into this is a great library.

Hello @stryker1977 ,
Thank you, I just wanted to make sure I was doing the right thing ;)
I will probably check this issue again and try to handle some method like "Any", "All", etc and make them skip the logic about IncludeOptimized as the Include do.
I will let you know very soon.
Best Regards,
Jonathan

Hello @stryker1977 ,
The v1.4.42 has been released.
We now ignore our library when following immediate method is executed:

All
Any
Count
LongCount

Let me know if that successfully fixed your issue.
Best Regards,
Jonathan

Hi Jonathan,
Thanks I'll check it out. Is this also an issue if you use sum, min, max or any other scalar operation, or was it just with the methods you listed above?

Hello @stryker1977 ,
Oops! I just added methods that has a predicate.
Thank you for letting me know, I will add all other method this weekend.
Best Regards,
Jonathan

Hello @stryker1977 ,
Other methods has been added in the v1.4.43

All
Any
Average
Contains
Count
LongCount
Max
Min
SequenceEqual
Sum

Best Regards,
Jonathan

Closing comment: Fix released, feel free to re-open with not completely done


reduce the overhead of OMP_NUM_THREADS in traing

getting OMP_NUM_THREADS in each function seems slightly increase the training cost.
This PR will cache and check it only before the training of one tree.

@jameslamb seems R's test in macos failed again.


Authentication with Windows Server 2016

Hi,
When trying to authenticate with Windows Server 2016, username that is passed has to be Full Name.
If I'm inserting username, it's not working.
Is it a bug, or am I not understanding how it's supposed to be used ?
Thanks

I know this is old, but I'am having the exact same problem.
Did you by any chance find a solution to this?

Hi honestly not remembering.
I would guess I used the full name instead of username?
Good luck!


Is can_out_strm_list_by_id can or not?

The C header file defines nxPropSession_IntfCANOutStrmListById but the online help defines nxPropSession_IntfOutStrmListById.
Which should it be?

For now it should be nxPropSession_IntfCANOutStrmListById to be compatible with the existing headers. I will file a CAR to have an additional include added to the header file to match the documentation.

will file a CAR to have an additional include added to the header file to match the documentation.

So nxPropSession_IntfOutStrmListById (no Can) is the more correct name?
Huh, didn't think to check LV.  It aligns with the documentation.

For now it should be nxPropSession_IntfCANOutStrmListById to be compatible with the existing headers.

I'm not aware of any problem with us deviating from C especially since it'd be us aligning with docs/LV.  You have concerns with just changing it now?

Both the documentation and LV match with the "no CAN" property name in addition to this property working for both CAN and LIN so it is more correct.
For the upper layer of the Python API we can and should deviate from the header and use the nxPropSession_IntfOutStrmListById  (no CAN) version. The lower level layers that interface with the driver should obviously continue to use the nxPropSession_IntfCANOutStrmListById  version since it is defined in the header file.


Failing to build using template with "style is not iterable" error

Hello, I was just trying to use the template for the first time but running into a build error.
OS and Environment:
Ubuntu 22.04.1
Node 16.4.0
npm 8.19.2
pandoc <IP_ADDRESS>
R 4.2.1
Python 3.10.6
Steps to reproduce:

Go to https://github.com/uwdata/living-papers-template/
Download zipfile
Extract content
Move to extracted content in terminal
Run npm i
Run npm run build

Error:
~/active/personal/living-papers-template-main
❯ npm run build

><EMAIL_ADDRESS>prebuild
> npm run assets

><EMAIL_ADDRESS>assets
> mkdirp build && cp -r assets build

><EMAIL_ADDRESS>build
> lpub -o build --tempDir='.temp' index.md

file:///home/eva/active/personal/living-papers-template-main/node_modules/@living-papers/compiler/src/parse/parse-pandoc-ast.js:452
      const [ {t: align} /*, {t: width} */ ] = style;
                                               ^

TypeError: style is not iterable
    at file:///home/eva/active/personal/living-papers-template-main/node_modules/@living-papers/compiler/src/parse/parse-pandoc-ast.js:452:48
    at Array.map (<anonymous>)
    at PandocASTParser.tableColumnStyles (file:///home/eva/active/personal/living-papers-template-main/node_modules/@living-papers/compiler/src/parse/parse-pandoc-ast.js:451:19)
    at PandocASTParser.parseTable (file:///home/eva/active/personal/living-papers-template-main/node_modules/@living-papers/compiler/src/parse/parse-pandoc-ast.js:398:25)
    at PandocASTParser.parseBlocks (file:///home/eva/active/personal/living-papers-template-main/node_modules/@living-papers/compiler/src/parse/parse-pandoc-ast.js:154:24)
    at file:///home/eva/active/personal/living-papers-template-main/node_modules/@living-papers/compiler/src/parse/parse-pandoc-ast.js:376:29
    at Array.map (<anonymous>)
    at PandocASTParser.parseEnv (file:///home/eva/active/personal/living-papers-template-main/node_modules/@living-papers/compiler/src/parse/parse-pandoc-ast.js:365:30)
    at PandocASTParser.parseDiv (file:///home/eva/active/personal/living-papers-template-main/node_modules/@living-papers/compiler/src/parse/parse-pandoc-ast.js:353:14)
    at PandocASTParser.parseBlocks (file:///home/eva/active/personal/living-papers-template-main/node_modules/@living-papers/compiler/src/parse/parse-pandoc-ast.js:166:24)

Thanks for the issue @evamaxfield! I re-followed the steps from scratch on MacOS / node 16.17.1, and did not run into any issues.
Perhaps more important, I'm using pandoc v2.18. The stack trace you've shared suggests the problem may be due to differences in the Pandoc AST that Living Papers is trying to convert. Can you update pandoc and see if the issue persists?

Update! Thanks for pushing CI. I was able to use those versions and those steps to build the template.
Mentioning pandoc >= 2.18 in the README of the template may be good? On Ubuntu, apt's latest pandoc version is <IP_ADDRESS>, had to install via conda for the latest.
Happy to make a PR for that if you want.

I think it would be lovely if living-papers could check version requirements for external dependencies. Otherwise, more people will probably run into hard-to-debug issues like this.


Fix some ability issues + a magearna not showing

My bad on this, sorry to be annoying and not have stuff just working, but updates base stats to 3.0.2 mainly just the mega amph ability change, and fixes a bug where I typoed ability so eveyrthing was getting ability 1.

Thank you! It's all good bugs happen