scala_version info/change documentation

Hello is there any way to output on which scala_version somebody is?
I mean currently I have no idea on which scala version I might compile the project.
also I have no idea how to flip the scala version. currently this behavior could be documented.

Not really. If you load the scala_repositories method then you use whatever
is defined there (2.11.8?).
If you define your own then it's defined there.
If you want to use 2.12.x then there is currently a branch to enable this.
We have a couple of open issues about this.
It's not documented since it's not really clear.
Can you expand what you mean about the java version?
On Tue, 21 Nov 2017 at 13:34 Schmitt Christian<EMAIL_ADDRESS>wrote:

Hello is there any way to output on which scala_version somebody is?
I mean currently I have no diea on which java version I might compile the
project.
also I have no idea how to flip the scala version. currently this behavior
could be documented.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/rules_scala/issues/349, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUIF41lsYkrclNNlDDWc5wHpeF0aoMhks5s4rU_gaJpZM4QlsfN
.

I had a typo (meant scala version), well I didn't knew that it currently only supports scala 2.11.
well too bad, but still thanks for the information. I hope there is a way to switch version at some point.

Again, it's not correct that it only supports scala 2.11.
@gkk-stripe from Stripe has started using it with 2.12 in the branch I mentioned and Wix will start using this branch in a few weeks as the only branch it uses.
I agree it's a shame the switch isn't cleaner but that's where we are.
If you want to contribute to making it more generic we'd love the help


[BUG] functions and function_call have been deprecated in Azure OpenAI. Now calling through functions or function_call will report an error.

https://learn.microsoft.com/en-au/azure/ai-services/openai/how-to/function-calling?tabs=python#using-function-in-the-chat-completions-api-deprecated

@jdubois could you please take a look? I am still waiting for an API key 😞
Thank you!

Azure/azure-sdk-for-java#38115


Enhance the README.md File for Improved Clarity and Usability

Enhance the README.md File for Improved Clarity and Usability
The current README.md file can be enhanced to provide more clarity and a better user experience. The following improvements are suggested:
Related Issues

Add a Detailed Project Description: Provide a clear description of what the PenCraft-Full-Stack-Blogging-Application project is and its purpose.
Prerequisites Section: Include a section that lists the required tools (Node.js, npm, etc.) before installing the project.
Table of Contents: Add a table of contents to make the README.md more navigable.
Usage Instructions: Provide detailed steps on how to use the app after installation.
Contribution Guidelines: Include clear instructions for contributors, especially for Hacktoberfest.
Add Screenshots/GIFs: Add images or GIFs showing the application interface to give users a visual overview.
Badges: Add more badges for license, repo size, stars, Hacktoberfest participation, etc.
Acknowledgments: Expand the acknowledgments section to include the libraries and frameworks used.

Please label this issue with the following tags:

hacktoberfest
hacktoberfest2024
hacktoberfest-accepted
documentation

Go ahead with this,I am assigning to you , Feel free to reach me if needed.

@rahulgithub-web  any progress?

@AkshitLakhera I have updated the README.md file. Please review it and let me know if any further changes are needed. Also, please keep this issue open for now, as I'm still working on enhancing it.


[5.5] Added createIfNotExists feature for creating tables

Currently when creating tables through migrations, we use:
Schema::create('foo', function (Blueprint $table) {
    $table->increments('id');
    $table->timestamps();
});

This however doesn't check if the table being created already exists. If the table already exists, an exception is thrown.
This PR adds a new function createIfNotExists, which just skips table creation if the specific table already exists:
Schema::createIfNotExists('foo', function (Blueprint $table) {
    $table->increments('id');
    $table->timestamps();
});

I definitely don't want a migration silently skipped if it isn't needed. I have no problem with the additional method, but the stub should remain as-is and this feature should be an optional flag or something.

Wouldn't this scenario happen only if you're not using migrations in all table creation? Isn't that an anti-pattern?

I absolutely agree with joshmanders.
You might "fix" the issue you have but that would not have happened with proper migrations.
Otherwise we would end up with changeIfNotChanged etc.

Agree theoretically with @joshmanders, but actually it's the same with dropIfExists.
Theory vs real life...

Going to hold off on this for now. You can check if the table exists in your migration before creating it already.


feat: Show latest

Closes #15

Looks like it's bugged. I see 5000 unread notes

Looks like it's bugged. I see 5000 unread notes

Send pubkey, screenshot, some realys are weird


Failed to activate the single-click-open package

Started with Atom 1.12.0-beta0
Opening any document generates this error.
Atom Version: 1.12.0-beta0
Electron Version: 1.3.6
System: Mac OS X 10.11.6
Thrown From: single-click-open package, v0.2.1
Stack Trace
Failed to activate the single-click-open package
At Arguments to CompositeDisposable.add must have a .dispose() method

TypeError: Arguments to CompositeDisposable.add must have a .dispose() method
    at assertDisposable (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/event-kit/lib/composite-disposable.js:70:13)
    at CompositeDisposable.module.exports.CompositeDisposable.add (/Applications/Atom Beta.app/Contents/Resources/app.asar/node_modules/event-kit/lib/composite-disposable.js:43:11)
    at Object.activate (/Users/bmiller/.atom/packages/single-click-open/lib/single-click-open.js:28:17)
    at Package.module.exports.Package.activateNow (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package.js:184:19)
    at /Applications/Atom Beta.app/Contents/Resources/app.asar/src/package.js:157:32
    at Package.module.exports.Package.measure (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package.js:92:15)
    at /Applications/Atom Beta.app/Contents/Resources/app.asar/src/package.js:150:26
    at Package.module.exports.Package.activate (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package.js:147:34)
    at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package-manager.js:548:21)
    at /Applications/Atom Beta.app/Contents/Resources/app.asar/src/package-manager.js:529:29
    at Config.module.exports.Config.transactAsync (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/config.js:337:18)
    at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package-manager.js:524:19)
    at PackageManager.module.exports.PackageManager.activate (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/package-manager.js:506:46)
    at /Applications/Atom Beta.app/Contents/Resources/app.asar/src/atom-environment.js:783:28

Not sure it is related, but I am getting this error and also a frozen Atom interface.

Sorry, it is apparently not related as running apm uninstall single-click-open got rid of the error but not the frozen interface (maybe it is the Telemetry message).

I'm seeing this on 1.11.1 as well

I have an open PR for this, but it looks like @olmokramer hasn't had the chance to look at it yet.
You can, for now, copy the changes from #4 into your package locally.  Given how critically important this package is, I hope that the fix gets merged soon.

We really need this get merged.

@panuhorsmalahti Seems pretty abandoned to me 😞  Is someone open to maintaining a fork?

Failing for me on Atom 1.11.2.

@bjmiller could you publish your fork for the time being?

Yep, the fix posted above works perfectly for me. Thanks so much, love this package.

I'd like to avoid forking the package.  Having two serves to confuse people who are looking for the answer to this issue.  I'd far rather see @olmokramer simply merge the fix.

If the fix doesn't get merged after another week (7 days), I'd say it's time to fork.  He appears to be active on his other repos on github, but has not responded to anyone on this one, which is a shame.  So if we cant get it merged after that time, then we need to either fork or make a whole new package.  I'd be happy to do it myself if you'd prefer, just let me know.  I can't survive in Atom without single click to open, and the error messages every time I update are getting annoying now ;)

Thanks for this fix... It's been bothering me for weeks now Would love to see this get merged in

Such a simple fix. Thanks!

Thank you for finding a way to get this done, and avert a very inconvenient fork.


Introduce: Hydra.Prelude

:round_pushpin: Write ADR about our choice of custom Hydra Prelude.

:round_pushpin: Write hydra-prelude.
Done as a separate package, since we have multiple packagess in the project. If we ever consolidate hydra-plutus and local-cluster into hydra-node, we may also merge the prelude into it.

:round_pushpin: Replace use of Cardano.Prelude with Hydra.Prelude in hydra-node package

:round_pushpin: Replace uses of 'Cardano.Prelude' with 'Hydra.Prelude' in hydra-plutus

:round_pushpin: Replace uses of 'Cardano.Prelude' with 'Hydra.Prelude' in local-cluster

That's a PR :)

Merging and pushing some further adjustments to the ADR based on the review comments. We can then further improve the prelude as we see fit I guess. The id vs identity one may be a first little one.


Application Level Prometheus Metrics and custom Grafana Dashboard

Add prometheus metrics for information application level information like:

[x] Number of registered teams
[x] Number of logins (successful, failed)
[ ] Number of deleted instances
[x] Number of challenges solved (Requires #27)
[x] Http Response Codes (per path)[for Balancer and Proxied Requests]
[ ] Http Request Latency from JuiceShop (per path)[for Balancer and Proxied Requests]
[ ] Number of Requests requests proxied to the instances

The metrics endpoint should not be located at the usual /metrics but /balancer/metrics so that potential new JuiceShop Challenges(https://github.com/bkimminich/juice-shop/issues/1275) are not hindered by this 😉.
A option should be added to the Helm Chart to enable / disable the endpoint.
The Helm Chart should provide a option to deploy a prometheus-operator ServiceMonitor for the /balancer/metrics endpoint.
The /balancer/metrics should also be secured using http basic auth. The credentials for it should be located in a kubernetes secrets to make it accessible to both the balancer and the ServiceMonitor.
To provide a baseline dashboard for the new metrics a grafana dashboard should be created and placed inside a specially labelled ConfigMap which can be picked up by the Grafana Sidecar: https://github.com/helm/charts/tree/master/stable/grafana#import-dashboards

Will be release with 3.0.0 later today 😀


Add tables testing method assertCannotRenderTableColumn

This feature will allow user to test if a table is not showing a determined column by default.
Added function at TestColumns, .stubs and documented at 06-testing.md

This feature is useful in situations where you have a table with columns with
TextColumn::make('comments')
->toggleable(isToggledHiddenByDefault: true)

and you want to test that column is not showing by default in the table view.

Thanks!


Visual changes

The multiplication sign label change to better visualize on the graph (aligned in a middle)

I won't take this because 1) it is minor, and 2) it might confuse people who watched the video. upside has to be worth that downside. ty though!


link in install sub-parameters makes reference to a non-existing id

I will merge this pull request as changes were performed to improve documentation. Thank you @mcmorab


Referencing SOC content

The article about sharing scripts wasn't discoverable enough from the technical docs. This PR aims to address that.

Docs Build status updates of commit 0d30f83:
:clock10: Pending: waiting for processors (6 builds ahead of you)
:warning: Docs Build is busy, currently there are 6 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 0d30f83:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/images/script-sharing.png
:white_check_mark:Succeeded

docs/overview/excel.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Hyperdeck control for Shuttle 2

I want to know if this will control a Blackmagic Hyperdeck Shuttle 2, since there is no Ethernet  port on it.  I just need simple video playback to my Atem Mini Pro, and I see several for sale.

Sory, the product needs to implement the hyperdeck protocol which is only exposed over ethernet so the Hyperdeck Shuttle series will not work

Thank you very much for such a quick answer.  You saved me some money.
Sent from my iPhone

On Feb 25, 2021, at 1:15 AM, Balte de Wit<EMAIL_ADDRESS>wrote:

Sory, the product needs to implement the hyperdeck protocol which is only exposed over ethernet so the Hyperdeck Shuttle series will not work
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Can't copy & paste within Spyder

I'm using Spyder with the latest 64bit WinPython.
I highlight a line of code, copy it, but it won't paste anywhere inside Spyder.
However, if I switch to Notepad, I can paste it there.
Even more strangely, if I now switch back to Spyder, I can hit Ctrl-V and the code will now successfully paste in Spyder!
Also, anything I hightlight and copy outside of Spyder can be pasted in Spyder. Odd.

@stonebig, any input on this one?

Hi @rgrigonis. Please specify:

the exact version of Winpython you are using, (latest is not enough)
the exact version of your OS.
a screenshot of the action, to be sure I understand well what you mean.

Okay,
The version of WinPython I'm using is...:
WinPython-64bit-<IP_ADDRESS>Qt5.exe   Modified 2015-08-09
The version of Windows I am using is....:
Windows 7 Professional
Service Pack1
Running on a Dell Optiplex 9010 with an Intel Core i7-3770 CPU @ 3.40 GHz
8.00 GB RAM
64-bit operating system
Here is some code loaded into Spyder:
[image: Inline image 1]
Let's highlight and copy a line of code (line 16)...
[image: Inline image 2]
Let's place the cursor on line 18 and Paste, but nothing happens...
[image: Inline image 3]
Let's highlight and copy line 16 again, but this time instead of trying to
Paste within Spyder,
let's go to another window with Notepad running and Paste over there and
see what happens...
[image: Inline image 4]
and there it is!
Now, having successfully pasted the code copyied from Spyder into Notepad,
let's switch
back to Notepad and try to paste that same code in the clipboard into line
18 like we wanted
to do to begin with....
[image: Inline image 5]
And there it is!
Spyder will let me copy code but not paste it within Spyder, unless I
paste it somewhere else (e.g. Notepad) first...!
Strange but true.
Richard Grigonis
Newsmax Media, Inc.
www.newsmax.com
P.O. Box 20989
West Palm Beach, FL 33416
(561) 686-1165 ext. 7740
(561) 886-1064 Fax
On Mon, Sep 21, 2015 at 3:33 PM, stonebig<EMAIL_ADDRESS>wrote:

Hi @rgrigonis https://github.com/rgrigonis. Please specify:

the exact version of Winpython you are using, (latest is not enough)
the exact version of your OS.
a screenshot of the action, to be sure I understand well what you
mean.

—
Reply to this email directly or view it on GitHub
https://github.com/spyder-ide/spyder/issues/2705#issuecomment-142086411.

That was made with spyder3.0 dev of July 31th.
Trying with current winpython + more recent spyder 3.0 dev  I don't reproduce yet.
==> can you paste your exact code on github (instead of a screenshot) ?

-- coding: utf-8 --
"""
Spyder Editor
This is a temporary script file.
"""
from urllib.request import urlopen
from urllib.error import HTTPError
from bs4 import BeautifulSoup
websource = [["Test", "http://www.pythonscraping.com/pages/page1.html"]]
websource.append(["The Hill", "http://www.thehill.com"])
for x in websource:
current_name=x[0]
current_HTML=x[1]
print(current_name)
print(current_HTML)
try:
    HTML = urlopen(current_HTML)
except HTTPError as e:
    print(e)
    #return null, break, or do someother "Plan B"
else:
    #program continues. Note: if you return or break in the
    #exception catch, you do not need to use the "else" statement
    bsObj = BeautifulSoup(HTML.read(), "lxml")
    title = bsObj.h1
    if title == None:
        print ("Title could not be found")
        print ("There is a problem with"+ current_name)
    #print the title of the webpage
    else:
        print(title)

Richard Grigonis
Newsmax Media, Inc.
www.newsmax.com
P.O. Box 20989
West Palm Beach, FL 33416
(561) 686-1165 ext. 7740
(561) 886-1064 Fax
On Tue, Sep 22, 2015 at 1:29 AM, stonebig<EMAIL_ADDRESS>wrote:

That was made with spyder3.0 dev of July 31th.
Trying with current winpython + more recent spyder 3.0 dev I don't
reproduce yet.
==> can you paste your exact code on github (instead of a screenshot) ?
—
Reply to this email directly or view it on GitHub
https://github.com/spyder-ide/spyder/issues/2705#issuecomment-142184919.

well... apparently it works on my PC with same configuration.... didn't you activate an syntax analyzer or something ?

Interestingly it took me a few tries to paste it in gmail. Much easier to
paste it into Notepad, for what's that worth. Perhaps I should just
retrofit the latest Spyder in WinPython, if that's possible.
Richard Grigonis
Newsmax Media, Inc.
www.newsmax.com
P.O. Box 20989
West Palm Beach, FL 33416
(561) 686-1165 ext. 7740
(561) 886-1064 Fax
On Tue, Sep 22, 2015 at 12:52 PM, stonebig<EMAIL_ADDRESS>wrote:

well... apparently it works on my PC with same configuration.... didn't
you activate an syntax analyzer or something ?
—
Reply to this email directly or view it on GitHub
https://github.com/spyder-ide/spyder/issues/2705#issuecomment-142346915.

ah, if you pasted it via gmail, that could explain

Spyder dev. wheel  of September 19th
//
// File Checksum Integrity Verifier version 2.05.
//
MD5                SHA-1
b9a1465be5d5d72bee2757e972070517 d72d5eaa2de77bb754a8ac67ae634d28e4b08058  spyder-3.0.0.dev0-py2.py3-none-any.whl
https://groups.google.com/group/winpython/attach/fc8a79c99f4a3/spyder-3.0.0.dev0-py2.py3-none-any.whl?part=0.1&authuser=0

then remove spyder and install the new wheel. I'm not sure it will resolve your 'strange' issue

The new Spyder didn't resolve it, but I'm becoming adept at pasting into
Notepad first .
Richard Grigonis
Newsmax Media, Inc.
www.newsmax.com
P.O. Box 20989
West Palm Beach, FL 33416
(561) 686-1165 ext. 7740
(561) 886-1064 Fax
On Tue, Sep 22, 2015 at 1:25 PM, stonebig<EMAIL_ADDRESS>wrote:

then remove spyder and install the new wheel. I'm not sure it will resolve
your 'strange' issue
—
Reply to this email directly or view it on GitHub
https://github.com/spyder-ide/spyder/issues/2705#issuecomment-142355479.

sorry I've no more clue. The Qt5 branch and associated Spyder 3.0dev may have some rough corner cases, but I don't see what could make your pc so special. maybe we have to wait someone else complain of the same thing to get more inputs

I've got three monitors here on my corporate LAN PC, maybe clipboard memory
is being stolen / interfered with somehow.
Richard Grigonis
Newsmax Media, Inc.
www.newsmax.com
P.O. Box 20989
West Palm Beach, FL 33416
(561) 686-1165 ext. 7740
(561) 886-1064 Fax
On Tue, Sep 22, 2015 at 1:51 PM, stonebig<EMAIL_ADDRESS>wrote:

sorry I've no more clue. The Qt5 branch and associated Spyder 3.0dev may
have some rough corner cases, but I don't see what could make your pc so
special. maybe we have to wait someone else complain of the same thing to
get more inputs
—
Reply to this email directly or view it on GitHub
https://github.com/spyder-ide/spyder/issues/2705#issuecomment-142363813.

that's an easy test: unplug 2 of them and retry.

Same problem here.  I think all was fine before I started working with a big file in pandas (about 5mb).
I restarted spyder, and the problem persisted until I tried using edit->copy and edit->paste from the menu and it started working again.

About Spyder
Spyder 3.0.2
The Scientific PYthon Development EnviRonment
Copyright © The Spyder Project Contributors
Licensed under the terms of the MIT License
Created by Pierre Raybaut.
Developed and maintained by the
Spyder Project Contributors.
Many thanks to all the Spyder beta testers and regular users.
For bug reports and feature requests, please go
to our Github website. For discussions around the
project, please go to our Google Group
This project is part of a larger effort to promote and
facilitate the use of Python for scientific and engineering
software development. The popular Python distributions
Anaconda,
WinPython and
Python(x,y)
also contribute to this plan.
Python 2.7.12 64bits, Qt 5.6.0, PyQt5 5.6 on Windows
Most of the icons for the Spyder 2 theme come from the Crystal
Project (© 2006-2007 Everaldo Coelho). Other icons for that
theme come from  Yusuke
Kamiyamane (all rights reserved) and from

The Oxygen icon theme.

OK

@andfoy ?

It is same problem for me with mac os

Closing because we're unable to reproduce this, sorry.

I am having the same problem on linux mint

Same problem for 64 bit version.
 But it does not happen all the time. Just sometimes it shows up and stay, then it is able again after a while

Same issue on Ubuntu 22.04. Occurs specifically for jupyter notebooks. I copy text from a notebook cell but cannot paste into any notebook cell. I'm having to paste into a regular editor, then copy from there and paste into the desired notebook cell.


[ISSUE #5]Add permission control when loginRequired is true.

What is the purpose of the change
#5
When the login user calls all interfaces, the permission of each interface is verified by AOP, by checking whether the role to which the user belongs has the access permission of the interface. All interface urls that a common user role has access permissions are saved in a file. The file is hot updated to facilitate adding or deleting permissions.
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

@zhangjidi2016 there are many places waiting to be clarified. BTW, do we have a better way to support here. do not link permission to URL directly?

@zhangjidi2016 there are many places waiting to be clarified. BTW, do we have a better way to support here. do not link permission to URL directly?

I haven't thought of any other good authentication methods yet. However, regardless of the authentication method, we need to maintain the role-permission mapping, because rocketMQ-Dashboard deployment does not depend on any external storage system, only to save the mapping to a disk file.
Do you have any good suggestions for improving authentication？@vongosling @StyleTang @zongtanghu

One trick is you could store it in one topic if it is necessary, but it is not friendly for updates, it invoke me to think about our compact topic design...

I come up with an idea for improving authentication.
For now, the relationship is
user -> role
role -> uri

Maybe we can introduce permission
user -> role
role -> permission

(URI/button/tab) requires permission

user have role, role contains several permissions.  A login user can have a permission set.
for example we have a topic_write permission.
For backend: invoke create topic method requires  topic_write permission  ==> (we can add @Permission(value = "topic_write") to the create topic method)
For front end: show create topic button requires topic_write permission ==> (we can get permissions after login,only show create topic button if the user has topic_write permission)
Do you have any suggestions?

I come up with an idea for improving authentication.
For now, the relationship is
user -> role
role -> uri

Maybe we can introduce permission
user -> role
role -> permission

(URI/button/tab) requires permission

user have role, role contains several permissions.  A login user can have a permission set.
for example we have a topic_write permission.
For backend: invoke create topic method requires  topic_write permission  ==> (we can add @Permission(value = "topic_write") to the create topic method)
For front end: show create topic button requires topic_write permission ==> (we can get permissions after login,only show create topic button if the user has topic_write permission)
Do you have any suggestions?

Local file storage is indeed a problem. Because of it, we need to stand-alone deployment, or the config can not sync.
It is better to have a remote shared storage, Maybe we should abstract the storage interface, local file storage is an implementation(for now), mysql is another implementation, MQ message implementation etc.

I come up with an idea for improving authentication.
For now, the relationship is
user -> role
role -> uri

Maybe we can introduce permission
user -> role
role -> permission

(URI/button/tab) requires permission

user have role, role contains several permissions. A login user can have a permission set.
for example we have a topic_write permission.
For backend: invoke create topic method requires topic_write permission ==> (we can add @Permission(value = "topic_write") to the create topic method)
For front end: show create topic button requires topic_write permission ==> (we can get permissions after login,only show create topic button if the user has topic_write permission)
Do you have any suggestions?

Agree, specifically speaking, we could learn lessons from RBAC, here resources may have different operations

@zhangjidi2016
Do you have any further updates for this PR.
If no further updates, since the feature works well, I'm OK to merge it and we can refactor it in the future.

@zhangjidi2016
Do you have any further updates for this PR.
If no further updates, since the feature works well, I'm OK to merge it and we can refactor it in the future.

Well, we can merge this PR first, and verify permissions according to the interface path in the first version, and then optimize this problem again according to the structure of RBAC.

@zhangjidi2016
This branch has conflicts with master, could you resolve the conflicts.
Thanks.

@zhangjidi2016
This branch has conflicts with master, could you resolve the conflicts.
Thanks.

OK，code conflicts have been resolved


Use uv to create new venvs?

Question: How does uv relate to different installed Python runtimes?

OK, I made a simple branch trying this out: feature/uv-create-venv
It just uses uv to create the venvs, if present. It doesn't use uv for any other tasks at the moment.
Want to give it a try, anyone? @Djaygo?
Hint: You can install uv with pipz:
$ pipz install uv

I've release 0.3.3 and am eager to get more users testing the uv backend and reporting any problems.
Just upgrade zpy, then ensure uv is installed (with pipz).


add non-interactive mode to open-group-channel

Added non-interactive mode to open-group-channel
https://github.com/alexbosworth/paid-services/pull/9
Files changed:
bos

Added a commit to add new commands on bos file


Encryption Method

Currently using a non-audited cryptography library, gotta find something a bit better and more secure.

Currently evaluating options. Build in AES-256 is looking like the best route moving forward. Updates to come.

Previously used library has updated their code base to conform to the pub.dev CI requirements as well as clarified in the description of the library that it is exclusively a wrapper over the previously chosen open source cryptography library. Best action is to leave this as is.


wip-ea-testing copied EventsourcedActorTestKit and Specs to core

Added EventsourcedActorTestKit + Specs for review

Good work @DavidTegtmeyer. I like your proposal for a higher-level event-sourced actor testing API and see it as a good starting point for the evolution of a more complete Eventuate test kit (which should include test APIs for views, writers, processors, ... as well).
For testing event collaboration between actors, we'd later need to implement the internal test event log in terms of the EventLog SPI and support expectations on events on actor level (in addition to log level).
I think it makes sense to merge initial work on the test kit into master and extend it later in context of separate tickets. Would you mind adding a separate testing section to the documentation to help others using the test kit and providing feedback?
Cheers,
Martin

I like it very much as well, really great! What about putting it into a separate eventuate-testkit module?

@krasserm @magro Thanks for your feedback, glad you like it! @krasserm Sure I will write some documentation. Just let me now, how to provide it. In the meantime I will incorporate suggestions made on this PR.

@DavidTegtmeyer We use Sphinx reStructuredText for the documentation which is located at https://github.com/RBMHTechnology/eventuate/tree/master/src/sphinx. Instructions how to build it locally are at http://rbmhtechnology.github.io/eventuate/developers.html#documentation. Maybe adding a Testing section to Reference is sufficient for the moment.

What about putting it into a separate eventuate-testkit module

This is definitely the goal. I wasn't sure whether to use eventuate-core/src/test as sandbox for evolving the test kit or creating a test kit module immediately. My preference is the latter so that we only expose it as "official" test kit in a separate module after having applied it to most/all internal Eventuate tests. I think that there will still be a lot of changes in the future when extending it to all needed testing functionality. For those who want to use the test kit earlier we can still publish an eventuate-core test JAR. WDYT?

I agree that it should be possible to change and break the testkit until it's considered stable. Perhaps it could be published as eventuate-testkit-experimental, and docs explicitly state that there are no guarantees for nothing?

@magro +1 from my side if you and others prefer a separate module from the beginning. I think adding a warning to the docs that it is experimental is sufficient, no need to use a special -experimental suffix in the artifact id.

@DavidTegtmeyer are you still planning to work on the discussed changes?

@DavidTegtmeyer ping

Closing because of missing answer from from original author. Work on it will may be resumed later.


feature: Allow for customized extra results to be written to results.csv.zip

At the moment, we write time-stamped results to results.csv.zip (a dataframe), and the serialized tuner to tuner.dill.
This PR allows to (optionally) write extra results to results.csv.zip. These are appended as new columns.
An example use case is given.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

I will rework this, so information is appended to the results.csv dataframe. Thanks Wes, this is indeed a better solution.

OK, this is totally rewritten. The extra results are now appended to the default ones, by extending the dataframe by additional columns. This has the advantage of not needing another file, and of getting time-stamped results.
The disadvantage is we cannot write out final results of complex structure (e.g., lists or dicts). But that is OK.


Navbar - hide logo

What should I do if I don't want logo in Navbar?

You can add an empty string:
<script>
...
let siteName = "";
let logo = "";
let alt = "";
</script>

<Navbar {siteName} {alt} {logo} />

Still giving the same result.

Ok, I did not add {alt}. With only {logo} (without alt) gives same result.


#442

Add IsSpellCheckEnabled property and TextChanged event for EditorField. ReturnCommand requires much more effort and will be ignored in this PR

Thanks for your contribution


Ref: Add include_source_context option in utils

Added include_source_context option to serialize_frame function to allow users to opt-out of getting source context.

This is my very first open-source contribution. Please let me know if I missed something.
Fixes #2017

Hey @farhat-nawaz !
Thanks for the contribution! Looks good!
Now we also need the include_source_context option in ClientConstructor class at the end and need to pass this option along so that all calls to serialize_frame are given the option set in ClientConstructor. (you can see   include_local_variables for a similar option)

If you do not have time it is also possible that we merge this and take over the rest of the implementation. Should we do this?

@antonpirker Sure, I can add those changes, no problem.

Hey @farhat-nawaz, thanks again for contributing! Did you already have time to start on the changes that Anton proposed? If not, I'm happy to take it from here and finish it.

Hi @farhat-nawaz, the PR looks good to me, I will merge it now as is and we'll add the missing stuff. Thank you for contributing! 🙏

@sentrivana Glad to have made the contribution, and looking forward to more. Sorry about not being able to respond earlier, something unexpected came up. :)


Use caret for dependency ranges

[x] I have read and agree to the contributing guidelines for submitting new pull requests.

Describe your changes
Clean up dependencies to resolve long resolution times on when installing griptape[all]
Issue ticket number and link
https://discord.com/channels/1096466116672487547/1291202108233748492

@vachillo just updated dependabots versioning strategy


Waypoint Navigation Evaluation Bug

On a fresh install. I created a Mission Config object with 3 waypoints. I simulated a waypoint navigation by creating 3 UAS Telemetry objects using the Django Admin interface. The 3 UAS telemetry objects had the exact same latitude, longitude, and altitude as the mission waypoints. Then I evaluated. As shown in the screenshot below, full points were given for all 3 waypoints. This is the expected behavior.

However, I then deleted the 1st UAS Telemetry object and re-evaluated. As shown in the screenshot below, zero points were given for all 3 waypoints. This is not the expected behavior, because only the 1st waypoint was missed. The 2nd and 3rd waypoints were hit perfectly. Full points should have been given for the 2nd and 3rd waypoints.

At least I believe that is not the expected behavior, based on the rulebook. In the Mission Demonstration, Autonomous Flight, Waypoint Accuracy section, it says "Each waypoint will be weighted equally, and the ratio of points received per waypoint will be max(0, (100ft − distance) / 100ft)".
Thanks.

This looks like the server still implements the requirement from last year
where you can't get points for a waypoint unless you hit all the ones
preceding it. I think the rules could be interpreted as such, but it was my
intention to change it this year to what you're expecting.
Thank you for discovering this, I'll look into it shortly.
On Apr 26, 2017 5:41 PM, "ethmur"<EMAIL_ADDRESS>wrote:
On a fresh install. I created a Mission Config object with 3 waypoints. I
simulated a waypoint navigation by creating 3 UAS Telemetry objects using
the Django Admin interface. The 3 UAS telemetry objects had the exact same
latitude, longitude, and altitude as the mission waypoints. Then I
evaluated. As shown in the screenshot below, full points were given for all
3 waypoints. This is the expected behavior.
[image: waypoint_navigation_evaluation_hit_waypoints_123]
https://cloud.githubusercontent.com/assets/12011400/25457869/c0d60d52-2aa5-11e7-9a85-95c31859b309.jpg
However, I then deleted the 1st UAS Telemetry object and re-evaluated. As
shown in the screenshot below, zero points were given for all 3 waypoints.
This is not the expected behavior, because only the 1st waypoint was
missed. The 2nd and 3rd waypoints were hit perfectly. Full points should
have been given for the 2nd and 3rd waypoints.
[image: waypoint_navigation_evaluation_hit_waypoints_23]
https://cloud.githubusercontent.com/assets/12011400/25458070/6ef58a7a-2aa6-11e7-9eb4-20f632743b3e.jpg
At least I believe that is not the expected behavior, based on the
rulebook. In the Mission Demonstration, Autonomous Flight, Waypoint
Accuracy section, it says "Each waypoint will be weighted equally, and the
ratio of points received per waypoint will be max(0, (100ft − distance) /
100ft)".
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/auvsi-suas/interop/issues/250, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACOBmO5LlWudaULS_4nqIjSyunskCnRGks5rz7n5gaJpZM4NJdgc
.


Add Beyond Identity passwordless (passkey) Auth Provider

What kind of change does this PR introduce?
This adds a new Auth Provider, Beyond Identity, with first class passkey support.

supports: https://github.com/orgs/supabase/discussions/8677

What is the current behavior?
No support for Beyond Identity OAuth
What is the new behavior?
Support for Beyond Identity using OAuth
Related PRs

https://github.com/supabase/gotrue-js/pull/750
https://github.com/supabase/supabase/pull/16206

Hi @turnipdabeets, apologies for the late reply, the team has been pretty busy recently with other priorities. We intend to support the addition of new oauth providers via webhooks or a generalised method. Currently, we only accept new oauth provider contributions on a case-by-case basis based on the demand for it / bandwidth of the team to support it.
Given that this provides an option for someone to use passkeys with Supabase Auth, I'll bring this up with the team internally first.

@turnipdabeets i've brought this up with the team and unfortunately, we won't be adding BeyondIdentity as an OAuth provider right now.
We plan to support any future oauth providers via an extension through a webhook rather than add them natively to gotrue - this helps us to keep the image size small and not bloat the code base.
We also want to be able to support passkeys natively instead of routing this through an oauth provider as it will allow us to support this better - if there's an issue with the authentication process, it will be challenging for the auth team to investigate the issue & coordinate with the folks at BeyondIdentity.

@kangmingtay - has there been any progress on adding passkeys natively in Supabase?


Editor shows error when switching from Python to JavaScript

Describe the bug
Editor shows error when switching from Python to JavaScript
Steps to reproduce the behavior

Navigate to https://arcade.makecode.com/beta#editor
Click "More..." -> "About..." -> "Experiments" and enable Python
On editor page, click "JavaScript" and choose "Python"
Choose "JavaScript" again

Expect behavior
Error should not show when switching from Python to JavaScript
Actual behavior
Editor shows error when switching from Python to JavaScript

Additional context

OS: Windows (rs6)
arcade version: 0.14.2
Microsoft MakeCode version: 5.21.5

Fixed, but might not be in beta or live yet.


add sarscov2 translated protein fasta data for blastp module

Thanks @alexthiery ! Is it possible to rename this file to proteins.fasta or proteome.fasta. Will that likely clash with other files in the future? Trying to keep the naming convention as simple as possible.

Hi Harshil - sure - done.


remove data orchestrator and openrdm docs

…for now)

Summary

Related issue :

@glarocca, @enolfc, @andrea-manzi should we just merge this now?

yes :-)

@glarocca can you please approve this change?


1.5.0 Framework - FatalError: error TS5023: Unknown compiler option 'typescript'.

Category

[x] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

Hi,
With latest Visual Studio Code Insiders and a hellowold Webpart on 1.5.0 Frameworks, I have this warning, after second save (I have no error after first launch of Gulp task) :
Warning - [tslint] Unable to create a TS program for TSLint. Some lint rules might not work correctly. Error FatalError: error TS5023: Unknown compiler option 'typescript'.
Do you also have this warning?
Thanks

After more test on cmd (outside of VSC) i have same error on fresh initialisation of helloworld (application customizer)
I run this on a PC with Windows 10 (1803), 64bits, node 8.10.0 & npm 5.6.0

This is actually a problem with the @microsoft/gulp-core-build-typescript which SharePoint framework uses to compile.  See https://github.com/Microsoft/web-build-tools/issues/712  I have included a fix in the issue.

The issue has been fixed in the web-build-tools, so it should be now resolved. Sorry for the inconvenience.

@VesaJuvonen The issue still exists in 1.5.1.

Yes, it still exists with latest spfx version. Will look for next beta version.


Update openpyxl requirements to compatiblity fix

drf_excel.renderers.XLSXRenderer uses openpyxl.writer.excel.save_virtual_workbook which has been deprecated since 2018 and removed in openpyxl 3.1.0
This is a temporary fix to solve dependency issues, but a proper fix should be to not use save_virtual_workbook

Thanks for this PR.
I also created https://github.com/wharton/drf-excel/pull/72 with a proposal to remove the deprecated dependency.

Thanks for the PR, @TurnrDev - it is appreciated! I'm going to close this in lieu of #72, from @alb3rto269, which gives us compatibility with OpenPyXL 3.10+.

Understand, #72 is definitely a better PR!
Will that be released soon? 😊


Make the 'tick summary' logging slightly less verbose.

I'm downvoting because I think that this will be really hard to read without newlines between each stat type.

Updated to make it optional, as per the discussion on slack.

New optional version is much better so I shifted my vote.

upvoted after change

This consensus thing is working better than I initially imagined. That's cool.


Update copyright

I think copyright in the manual is a bit out of date, at least I don't see anything in regards to new assemblies that Editor uses.
They are mentioned in Credits though. I have no idea why Copyright duplicates some of that info and not the rest...
It does not mention Allegro 4 for some reason either (I think it's giftware fwiw).
And what is this line for? is it necessary?

Pentium is a trademark of Intel corporation. Windows is a trademark or registered trademark of Microsoft corp.

There is a list of copyrights that has been reasonably recently updated for the debian package: https://github.com/adventuregamestudio/ags/blob/master/debian/copyright

Okay, I updated https://github.com/adventuregamestudio/ags-manual/wiki/Credits page, idk what to do with Copyright page, so will leave it for others to bring suggestions if they have any.


Fn::Join no longer works with nested Fn:: methods

Problem file: fn.ts
Problem method: FnJoin constructor
Last working version: 5bb7c93f283274263fb77445f8ffd529c37cd74b (0.13)
Broke in version: 33c32a8b88f4b2d749519ba15ab17084b3f4c822 (current, 0.14.1)
Problem
FN::Join no longer work when the listOfValues parameter contains another function, such as Fn::GetAtt.
For example, this code attempts to output the array of IP addresses for an AD Resource:
import { cloudformation as DirectoryService } from '@aws-cdk/aws-directoryservice';
import { FnJoin } from '@aws-cdk/cdk';

const adResource = new DirectoryService.MicrosoftADResource(this, `MicrosoftADDirectoryService`, {
  vpcSettings: {
    vpcId: vpcId
    // 2 subnets = 2 ip addresses
    subnetIds: [
      subnetA,
      subnetB,
    ],
  },
  // other params here
});

// create an output, works in 0.13.x, not in 0.14.1
const ipAddressOutput = new Output(this, 'MicrosoftAdDnsIpAddresses', {
  value: new FnJoin(',', adResource.microsoftAdDnsIpAddresses.resolve() as string[])
}).makeImportValue().toString()

// workaround
const ipAddressOutput2 = new Output(this, 'MicrosoftAdDnsIpAddresses', {
  value: {
    'Fn::Join': [
      ',',
      adResource.microsoftAdDnsIpAddresses.resolve()
    ]
  },
}).makeImportValue().toString()

Cause(?)
It looks like the latest changes to FN::Join are designed to unpack nested joins, but I don't see how this would work if the join contained a non-join function.
There was a previous commit<PHONE_NUMBER>9e0a5b5aebef2359bc418a4bd29236 that did something similar, but was rolled back for unrelated reasons. That commit seems to be doing a lot more to make sure there were only nested joins before unpacking them.  Maybe that logic can be brought in?
Until then, I am handwriting Fn::Join json objects as a workaround.

For L2 instances, there is slightly different voodoo you have to do for a workaround. The cast as unknown as string makes me sad :(
return new Ssm.ParameterResource(this, 'MicrosoftAdDnsIpAddressesParam', {
      name: this.domainSsmParameterPrefix + 'directory-dns',
      type: 'StringList',
      value: {
        'Fn::Join': [
          this.delimeter,
          microsoftAdDnsIpAddresses.resolve()
        ]
      } as unknown as string,

Thanks for reporting, having a look

I think the issue is in this line:
  value: new FnJoin(',', adResource.microsoftAdDnsIpAddresses.resolve() as string[])

The fact that you were able to bypass the typechecker here and make that work is actually an accident.
Related issues: https://github.com/awslabs/aws-cdk/issues/674, https://github.com/awslabs/aws-cdk/issues/744

Your current best workaround will be this:
new Fn('Fn::Join', [', ', adResource.microsoftAdDnsIpAddresses])

Until we sort that issue.

I'm going to close this, as your issue is a more specific case of another issue: lack of support for array tokens, and there is a workable workaround for it.
Feel free to reopen if you disagree.


Fix Kotlin DSL usage

compileSdkVersion isn't an infix function so parentheses are needed around the argument.

Thanks!


chore: trigger ecosystem-ci by comment

Description
Make it possible to run ecosystem-ci by commenting /ecosystem-ci run to PR.
Example: https://github.com/sapphi-red/vite/pull/2
(the CI ran failed because I commented out Line 37 which requires https://github.com/vitejs/vite-ecosystem-ci/pull/120)
requires https://github.com/vitejs/vite-ecosystem-ci/pull/122
Additional context

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[ ] Documentation update
[x] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the Commit Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

I've implemented these features:

allow user list
show result after run & disable discord webhook
/ecosystem-ci {suite}

and also changed to use GitHub App instead of PAT
Example: https://github.com/sapphi-red/vite/pull/3

The current flow:
sequenceDiagram
  actor U as user
  participant vPR as vitejs/vite
PR
  actor vGA as vitejs/vite
GitHub Actions
  actor eGA as vitejs/vite-ecosystem-ci
GitHub Actions

  U ->> vPR: comment on PR
  vPR ->> vGA: trigger
  vGA ->> vPR: add :+1: reaction to comment
  Note over vPR,vGA: when triggered user is not allowed, add :-1: reaction to comment and end
  vGA ->> eGA: trigger "ecosystem-ci-from-pr"
  eGA ->> vPR: add comment
  eGA ->> eGA: run ecosystem-ci
  eGA ->> vPR: add result to comment

  vPR ->> U: gets result

To setup GitHub App, the following steps are required:

Create GitHub App
Grant permissions

Actions: Read and Write
Issues: Read and Write
Pull requests: Read and Write

Install GitHub App

vitejs/vite
vitejs/vite-ecosystem-ci

Set secrets for vitejs/vite and vitejs/vite-ecosystem-ci

Amazing work @sapphi-red 😍, and thanks again for the detailed explanations.
I think we should move forward to test the flows, and we can keep iterating later! This is too good!

@patak-dev I don't have permission to create GitHub Apps under the vitejs org and set secrets to vitejs/vite and vitejs/vite-ecosystem-ci.
Would you setup these?

@sapphi-red all done 🙌🏼

@patak-dev Thanks!

/ecosystem-ci run

I love the 👍🏼 reaction on your comment ❤

It failed.
https://github.com/vitejs/vite/runs/8112624941?check_suite_focus=true#step:4:7
Maybe these values are different?🤔
It seems the values are empty or not a expected value. (Note that I changed secret names for each repository to make it easier to know what it is)
https://github.com/vitejs/vite/blob/7c4ab51e744747fd626b7316425f003bcb537c49/.github/workflows/ecosystem-ci-trigger.yml#L68-L69

/ecosystem-ci run


se of internal package not allowed

for some reason I get
../../go/src/github.com/EricLagergren/decimal/decimal.go:45:2: use of internal package not allowed
../../go/src/github.com/EricLagergren/decimal/decimal.go:46:2: use of internal package not allowed
../../go/src/github.com/EricLagergren/decimal/decimal.go:47:2: use of internal package not allowed
../../go/src/github.com/EricLagergren/decimal/decimal.go:48:2: use of internal package not allowed

lowercase 'ericlagergren'

@morriswinkler-simplesurance is it alright if I close this?

Yes sure, thanks for asking, very kind.

just wanted to make sure it was fixed for you :-)


Call predefined callable (invokable) with custom arguments per invokation

Helps out with thephpleague/route#12
This is a WIP to show how it could be done. Needs testing, explanation and documentation.

I'll redo this with more atomic commits but wanted it pushed fast so I could shut down to enjoy the rest of the weekend.

The gist I used to test it: https://gist.github.com/hannesvdvreken/8b83f00ebf0c69cb4555

Any chance of a test case just to be safe then I'll merge? Then on to v2, massive tidy up :-)

I was still going to add some tests. Will still keep that to do on my list so it's safer to refactor.

Thanks :-)

This PR screwed something up, there is some problem with the array_map in CallableDefinition. Also, I vote for \Reflection* classes NOT being aliased to the current namespace, they are noise.

Errors I am getting:

Warning: array_map(): An error occurred while invoking the map callback
Fatal error: Uncaught exception 'RuntimeException' with message 'Cannot resolve argument [name], it should be provided within an array of arguments passed to [Fuel\Dependency\Container::call], have a default value or be type hinted'

@sagikazarmark No need to argue about import statements.
I assume you mean this array_map?

Yes, I do

@hannesvdvreken I am trying to be consistent, seems like the rest of the library does not use unnecessary imports.

@sagikazarmark import everything seems to be a league standard and are being picked up as and when seen.
As for the error you've shown, that's an exception you are throwing, not from the container so I wouldn't know the issue without looking through your lib.

The exception is NOT thrown by my code (but the Container, see the exception message), but we sorted it out with @hannesvdvreken on IRC. There is a BC break, @hannesvdvreken will push a fix when he has time. (He is going to the gym now :stuck_out_tongue_winking_eye:)

Ah, sorry, correction. @hannesvdvreken is not going to the gym NOW. :stuck_out_tongue_winking_eye:

@philipobenito thanks for backing me on the import stuff ;-)
So, @sagikazarmark and I have been chatting on IRC about this.
It appears we broke backwards compatibility here.
This used to work, but now it isn't anymore.
$container->add('notifier.sms', function ($token, $ssl) {
    return new \Twilio\SMS($token, $ssl);
});

$container->get('notifier.sms', ['abcd', true]);

I didn't notice when registering such a callback it actually created a CallableDefinition. And that's where things changed (and broke BC).
I'm thinking about writing some tests for this first and then solve it by creating a different kind of Definition that doesn't have $this->callables and just passes on the $vars to the callable without reflection. This way BC should be restored.

@sagikazarmark sorry didn't recognise the message. At work so only scanned. I'll remove the tag and release for now until fixed.


GEODE-3539: Add tests for 'remove' command

Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ x] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[ x] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[ x] Is your initial contribution a single, squashed commit?

[ x] Does gradlew build run cleanly?

[ x] Have you written or updated unit tests to verify your changes?

[ x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

Yep, that test is on my radar, but it's very large and I would prefer to finish removing hydra tests before tackling it.


UsePythonVersion task isn't found in YAML definition

Issue Description
I've created a task definition to build a project which specifically requires Python 2.7.  I'm trying to use the UsePythonVersion task but it results in an error stating that the UsePythonVersion task doesn't exist.
resources:
- repo: self

queue:
  name: Hosted VS2017

steps:
- task: NodeTool@0
  inputs:
    versionSpec: '>= 6.x'

- task: UsePythonVersion@0
  inputs:
    versionSpec: '2.7'

- script: |
   script\build.cmd

Error logs
Here's the validation error I get when I try to run the build with this definition:
    Phase : Step references task 'UsePythonVersion' at version '0' which does not exist.

/cc @brcrista

I'm impressed you found the new task so quickly :)
Python support on our hosted images is currently rolling out as a preview.  It's gone out to our insiders and I would expect it to GA in about a week or so, barring any blocking issues.

If you don't want to wait for the GA, it's fairly simple to compile and upload any of the tasks in this repo to your account, assuming you have permissions to do so.  This task does depend on an update to the hosted images, which is a separate rollout, but I think you should have it on Hosted VS2017.
Clone this repo and and make sure you have Node 6 installed.  Run from the root:
npm install
node make.js build --task UsePythonVersion
to upload, download the TFS / VSTS CLI.  Then run:
tfx login --auth-type pat --token <your PAT> -u https://<your account>.visualstudio.com/DefaultCollection
tfx build tasks upload --task-path _build\Tasks\UsePythonVersion

@daviwil Have you tried this recently?  Your account should have the task by now.

Looks like it's working for me now, thanks a lot!


ARK v0.5.0 Release Plan (Released)

Timeline
Released Date: Dec. 16th, 2023
Work Items
Major Improvement

[x] MSCCL++: integrated with MSCCL++ and removed dependency on gpudma (#179)

Platforms Support

[x] ROCm: add ROCm multi-GPU support (#181)

Operators

[x] reduce: keepdims support for reduction (#173)

Optimization

[x] OpGraph: optimize OpGraph scheduling (#182)

Examples

[x] Example: add Llama2 multi-GPU examples (#170)

CI

[ ] Unit Tests: revise Python unit tests & add to the Azure pipeline (moved to the next version release plan)

[ ] Unit Tests: add ROCm Azure pipelines (moved to the next version release plan)

[ ] Code Coverage: add code coverage for Python code (moved to the next version release plan)

Released: https://github.com/microsoft/ark/releases/tag/v0.5.0


Assets-Boosted Cargo Train Station

Create an assets to have all cargo train station with all good. Start with a basic assets and create service upgrades.
Services Upgrades:

Park
Parking Lot
Extra Bypass Tracks
Oil Cargo
Ore Cargo
Agriculture Cargo
Forestry Cargo

Done. Finally I had finished to create all the 7 upgrades and test them.


Automatically Roll Deployments When ConfigMaps change

I dont really get how to use this feature from docs:
https://github.com/kubernetes/helm/blob/master/docs/charts_tips_and_tricks.md#automatically-roll-deployments-when-configmaps-or-secrets-change
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}

What is /secret.yaml ?
How does this feature essentially works? How does it know the changes in configs-map/secrets?
It would be nice if tiler could watch config-maps changes in cluster somehow  (or probably configs maps deployed using heml) and roll dependant deployments if values they depend on changed, I believe it is not possible now?

At present, Tiller does not watch the Kubernetes objects it creates.
The suggested technique above is a way to force Tiller to change a Deployment object when some other pertinent file changes, such as the hypothetical secret.yaml file above that would define a Secret object that the Deployment's pods use.
Normally, even if you changed the secret.yaml file and updated the chart that contains it, asking Tiller to upgrade to the new chart version would cause Tiller to update the Secret, but not the Deployment, because nothing in the existing Deployment object differs from the object that the rendered chart requests. Tying the definition of the Deployment object to the content of the secret.yaml file forces Tiller to update the former object when the latter changes in the installed chart.

Ah ok, so this annotation is just a trigger to change, and can be named anything not only checksum/config?

Yes, the name is immaterial. I take it as just a suggestion, so that its meaning would be clear, though note that there is a convention of choosing something that looks like a domain name for the annotation prefix—even though annotations keys are not subject to the same syntactic restrictions as label keys.

See also:
https://github.com/kubernetes/kubernetes/issues/22368
https://github.com/kubernetes/kubernetes/pull/31701#issuecomment-252110430

FWIW until kubernetes itself has some kind of capability in that area we created a little microservice to watch ConfigMaps and do rolling upgrades on Deployments when they change via annotations:
https://github.com/fabric8io/configmapcontroller/

If the secret.yaml template reads values from the values.yaml file, the checksum won't change even if those values change since the checksum if for the template and not the rendered result.
I tried this with configmaps, is there a way to use the checksum of the rendered template file  instead of the template in helm? That would be really great

/reopen

If you pipe the output of tpl into sha256sum, that should render a particular template with its values.
checksum: {{ tpl (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}

More info here: https://docs.helm.sh/developing_charts/#using-the-tpl-function

thanks @bacongobbler, but that didn't work for me.
Tried it, but got this error:
Error: UPGRADE FAILED: parse error in "/templates/deployment.yaml": template: /templates/deployment.yaml:5: unexpected <.> in operand

for this line:
checksum/config: {{ tpl (print $.Template.BasePath "/configmap.yaml") $. | sha256sum  }}

Sorry, I must've messed up the syntax. This is all from memory :)
Try replacing the $. with $ so it looks like this:
checksum: {{ tpl (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}

Tried it, unfortunately it is still returning the same checksum even after updating the values.yaml file 😞
$ kubectl describe deployment seed-service | grep checksum
Annotations:            checksum/config=a22a0640026634ea56e0cca8879ac16ec202e8767321056063892c246b200fcb

$ helm template . -x templates/deployment.yaml | grep checksum
checksum/config: a22a0640026634ea56e0cca8879ac16ec202e8767321056063892c246b200fcb

Tried running a helm upgrade just in case, also the deployment was not updated.

Looks like the tpl function is only returning the file path here:
{{ tpl (print $.Template.BasePath "/configmap.yaml") $ }}

$ helm template . -x templates/deployment.yaml  | grep checksum
    checksum/config: seed-service/templates/configmap.yaml

Isn't it supposed to return the contents of the file?

@midihenry it's not working for the base use case where the configmap.yaml file is overrided by values from a parent chart, so I wouldn't say you can just close the issue…

/remove-lifecycle rotten
/reopen

It didn't worked for some reason on a daemon set, on one of our legacy clusters on 1.8 :(  the configmap was updated and the daemon set pods are not rolling to re-read it.

/reopen

@k8s-ci-robot /reopen

I'm using terraform and passing all the values of values.yaml dynamically via terraform helm provider.
In this way the checksum of the file doesn't change, even if the confimap gets successful updated with the new values the pods in my deployment don't get bounced.

I am trying the same with statefulset and it is not working. All the time I am getting same checksum value. Seems sha256sum is getting calculated on the file itself and not its content
I tried with below two commands as $.Template.BasePath is not working for my helm deployment
checksum/config: {{ include (print $root.Template.BasePath "/configmap.yaml") $root | sha256sum }}
checksum/config: {{ include (print $root.Template.BasePath "/configmap.yaml") . | sha256sum }}

Also i want to monitor the changes in multiple properties file in multiple directories. Is there a way to do this ?
below  works fine for one file only.
checksum/config1: {{ $root.Files.Get "configmaps/abc.properties" | sha256sum }}
I am creating my config map using below which list all the properties file in one config map that i can mount in my liberty server and access these properties files.
  {{ range $path, $bytes := $root.Files.Glob "configmaps/**" }}   {{ base $path }}: |- {{ $root.Files.Get $path | indent 4 }}   {{ end }}

seems this one is working. the only thing is that i will have multiple checksum for all files in one field.
        checksum/config1: {{ range $path, $bytes := $root.Files.Glob "configmaps/**" }} {{ $root.Files.Get $path | sha256sum }} {{ end }}

Hi, can someone help me with this. I have a config-map with below  where it calls the loadconfigfiles helper function. And I do get values from external file globalvalues.yaml which I would be passing at the time of helm deployment. Can I know how to update the pod with new configmap when any value is changed in globalvalues.yaml file.
The command used to deploy app is - helm install app app --values=globalvalues.yaml
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-{{ .Values.appname }}-configmap
data:
{{template "loadConfigFiles" $}}

I am trying the same with statefulset and it is not working. All the time I am getting same checksum value. Seems sha256sum is getting calculated on the file itself and not its content
I tried with below two commands as $.Template.BasePath is not working for my helm deployment
checksum/config: {{ include (print $root.Template.BasePath "/configmap.yaml") $root | sha256sum }}
checksum/config: {{ include (print $root.Template.BasePath "/configmap.yaml") . | sha256sum }}

@adityagu0910 were you able to make it work with statefulset. I am seeing the same behavior with statefulset, everytime i get same checksome even after configmap is updated. I am using the following syntax checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}

seems this one is working. the only thing is that i will have multiple checksum for all files in one field.
 checksum/config1: {{ range $path, $bytes := $root.Files.Glob "configmaps/**" }} {{ $root.Files.Get $path | sha256sum }} {{ end }}

Thanks for this. Based on it I created one with short output:
kind: ConfigMap metadata:   annotations:     checksum/config1: {{- range $path, $bytes := .Files.Glob "files/**" -}} {{- $sha := $.Files.Get $path | sha256sum -}} {{- $shasha := printf "%s%s" $.Values.cmsha $sha -}}{{- $_ := set $.Values "cmsha" $shasha -}} {{- end -}}{{- .Values.cmsha | sha256sum  | indent 2 }}

        checksum/create_databases_config: {{ $.Files.Get "files/create_databases.sql.tpl"| sha256sum }}         checksum/install_plugins_config: {{ $.Files.Get "files/install_plugins.sql.tpl"| sha256sum }}         checksum/ota_cnf_config: {{ $.Files.Get "files/ota.cnf"| sha256sum }}


RateLimiting :  {"DisableRateLimitHeaders": false} is not showing X-Rate-Limit and Retry-After headers in response

Expected Behavior / New Feature
configuration file:
{
"Routes" :  [  {
      "DownstreamPathTemplate": "/users",
      "DownstreamScheme": "https",
      "DownstreamHostAndPorts": [
        {
          "Host": "jsonplaceholder.typicode.com",
          "Port": 443
        }
      ],
      "UpstreamPathTemplate": "/users",
      "UpstreamHttpMethod": [ "Get" ],
      "RateLimitOptions":
        {
          "ClientWhitelist": [],
          "EnableRateLimiting": true,
          "Period": "10s",
          "PeriodTimespan": 3,
          "Limit": 1
        }

    }],

  "GlobalConfiguration": {

    "RateLimitOptions": {
      "DisableRateLimitHeaders": true,
      "QuotaExceededMessage": "Exceed ",
      "HttpStatusCode": 602
    }

}

Response headers should contain X-Rate-Limit and Retry-After headers as mentioned in [document](https://ocelot.readthedocs.io/en/latest/features/ratelimiting.html)
Actual Behavior / Motivation for New Feature

It does not contain response headers.
Specifications

Version:

Hello,
as I see the problem is caused by the recent changes in the code. Now httpcontext is used in a different way than before, more: there is a new httpcontext created for each request...
I have an idea how to fix it, so I'm going to create a PR soon.

Thanks @jlukawska

+1, X-Rate-Limit and Retry-After headers are not set. Would be handy if this could get fixed since Polly supports automatic retries based on this header.

+1. Just updated my project from netcore3.1 to net5.0 Ocelot v17.0.0 and this breaks rate-limiting on a partner-facing api we host, as it no longer emits the required headers. I've also tried it on net6.0 Ocelot v18.0.0 and same issue.


Support Microchip ATECC508A - AEAD_AES_128_GCM

Related
#59

ATECC508A does not support AES GCM 128 in hardware. Software library needed in conjunction with ATECC508A vault.


How to generate TS Types where all fields are optional (nullable)

I am attempting to generate types to use inside my graphQl server to make my resolvers easier to maintain.  I hoping that I can do that using this project.
I am running into an issue with how optional/mandatory fields are generated.  I am hoping that someone can suggest a workaround for me.
Schema:
type Query {
	people(): [Person!]!
}

# FirstName, LastName & BirthDate are manditory.  MiddleName is optional.
Person {
	firstName: String!
	middleName: String
	lastName: String!
	birthDate: BirthDate!
}

BirthDate {
	...
}

When I generate a typescript class for this object
($(npm bin)/gql-gen --file schema.json --template typescript), I get the following:
export interface Person {
	firstName: String
	middleName?: String
	lastName: String
	birthDate: BirthDate
}
export interface Query {
	...
}
export interface BirthDate {
	...
}

Unfortunately, these objects are not extremely useful to me inside my GraphQl resolvers.  Inside my resolvers, I populate fields lazily.  What I would like to be generated is the following:
export interface Person {
	firstName?: String
	middleName?: String
	lastName?: String
	birthDate?: BirthDate
}
export interface Query {
	...
}
export interface BirthDate {
	...
}

To provide complete context, this is an example resolver.  You can see that I am getting a compiler error here:

const personResolver: IFieldResolver<any, any> = (parentObject: any,
                                                  args: any,
                                                  context: any,
                                                  info: GraphQLResolveInfo): Promise<Person[]> => {
	const firstName: string = loadFirstNameFromDb(..);
	const lastName: string = loadlastNameFromDb(..);
	const middleName: string|undefined = loadMiddleNameFromDb(..);

	# NOTE: We have a separate resolver for BirthDate.  Birthdate is
	# not known here.
	#
	# This causes the following TS Error:
	#
	#     Error:(7, 15) TS2322: Type '...' is not assignable to type 'Person'.
	#       Property 'birthDate' is missing in type '...'.
	const person: Person = {
		firstName: firstName,
		middleName: middleName,
		lastName: lastName,
	};
	return person
};

const siteResolver: IFieldResolver<any, any> = (parentObject: Person,
                                                args: any,
                                                context: any,
                                                info: GraphQLResolveInfo): Promise<BirthDate> => {
	...
};

const resolvers: IResolvers = {
    Query: {
        ...
    },
	Person:
    Order: {
        reports: () => [],
        studies: () => [],
        site: siteResolver,
    },
};

I have read through the other threads on this subject, but am still not sure if my use case is valid.  Other threads:

#155 - TS and Nullable types, again
#138 - Nullable fields with typescript

Thanks!

You can always use Partial<Person> to turn all those fields as optional when you need to. I don't think it makes sense change this on a generator side as in your schema you clearly have requirement flag for those fields. Or you can make your own templates I guess :)

@FredyC is right, use Partial<Person> to achieve this functionality.

Yes you can you Partial<SomeModel> but what you can do if you have nested long object?
For instance:
interface Post {
  id: number,
  creator?: Maybe<Creator>
  latestComment?: Maybe<Comment>
}

interface Creator {
  id: number,
  firstName: string
  email: string,
  createdAt: string,
  updatedAt: string,
}

interface Comment {
  id: number,
  creator: Maybe<Creator>,
  body: string,
  dateTime: string
}

Let's say from GraphQL server I want only few fields from creator
I'm writing tests for my component that could show post. That component have @Input or prop  (angular/react) that represent one post.
In test I mocked my post object with only necessary fields for my component, But I got typescript error Field createdAt is missing from Creator type...
So my suggestion is adding config option for generate all field optional.

This would also be useful for creating mock resolvers for use with  graphql-tools' makeExecutableSchema.

This would also be useful for creating mock resolvers for use with  graphql-tools' makeExecutableSchema.

Is there a solution to this in 2023? I have the issue of a nested response type where I have partial types I can't know in the top level object.

For those who are still looking for a way to achieve this, there is a StackOverflow question that describes a solution.


Fixing Drawer items position when scrolling

What does this pull request aim to achieve? 💯
Please be concise and link any related issue(s): #1308

[x] I have checked that no one else is working on similar changes.
[x] I have read the latest README and understand the development workflow.
[x] The name of this branch is: feature/<branch_name>, or hotfix/<branch_name> if this is a hotfix. The branch is created in a cloned version of this repo, not a forked repo.
[x] This branch is rebased/merged with the latest staging (or the latest production if it is a hotfix).
[x] There are no merge conflicts.
[ ] There are no console warnings and errors.
[ ] On the right hand side of this PR, I have linked the appropriate issue(s) under "Issues" and added a project progress under "Projects".

It worked on my side, so cool @Joeu


Tweak dependency package management

Codecov Report

Merging #112 (e0e9ff7) into master (be85373) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #112   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines           57        57
=========================================
  Hits            57        57

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 be85373...e0e9ff7. Read the comment docs.


AVRO-3950: [Rust] remove code that it is never called on schema_compa…

What is the purpose of the change

Continuation of  AVRO-3950
Some code blocks have been removed because they are never reached (mainly Errors)
Record and Enums can be in the same pattern matching
For Duration type we need to always return Ok(()) as we know that the writer and reader schemas are the same types before the match clause. The match can also be removed if we add a new method is_duration and we use it here

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Thanks, @marcosschroh !
Do you plan more PRs for this Jira issue ?


deinit not called

deinit is never called, however XCode memory profiler shows that it is not in memory anymore. Anyone facing the same problem?
deinit {
print("deinit is called")
}

@bingjiang @dzenbot Yes I can confirm that deinit is not called. Any solution to this??

@dzenbot Found the issue. Thank you


Listening to <IP_ADDRESS> introduces random 1000ms delays in responses

Describe the bug
Setting "Urls":  "http://<IP_ADDRESS>:8001" instead of "Urls":  "http://localhost:8001" in appsettings.json seems to introduce random 1000ms delays in responses (to local connections).
To Reproduce
I'm using a load-balancing configuration as below, with comments removed for simplicity. Requests come in parallel, 2 to 16 at a time and 4 services handle them, usually responding in 5-10ms. This is working fine until I change localhost:8001 to <IP_ADDRESS>:8001 in order to handle (very rare) requests from other IPs. After the change, the services still respond in 5-10ms but some times Yarp takes more than 1000ms (1020-1030) to respond in turn. That's with no requests from other IPs -- all requests are still local, the only thing that changes is listening to <IP_ADDRESS>:8001 instead of localhost:8001.
I tried changing "LoadBalancingPolicy" but that had no effect.
{
  "AllowedHosts": "*",

  "Urls":  "http://localhost:8001",

  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },

  "ReverseProxy": {
    "Routes": [
      {
        "RouteId": "route",
        "ClusterId": "cluster",
        "Match": {
          "Path": "{**catch-all}"
        }
      }
    ],
    "Clusters": {
      "cluster": {
        "Destinations": {
          "Pricer_Service_1": {
            "Address": "http://<IP_ADDRESS>:18001"
          },
          "Pricer_service_2": {
            "Address": "http://<IP_ADDRESS>:18002"
          },
          "Pricer_service_3": {
            "Address": "http://<IP_ADDRESS>:18003"
          },
          "Pricer_service_4": {
            "Address": "http://<IP_ADDRESS>:18004"
          }
        },
        "LoadBalancingPolicy": "RoundRobin"
      }
    }
  }
}

Further technical details

Yarp.ReverseProxy v1.0.0-preview.10.21168.2
Microsoft.NETCore.App 5.0.4
Microsoft.AspNetCore.App 5.0.4
Windows Server 2019

Use http://*:8001 instead.
Localhost listens on ipv4 and 6 (<IP_ADDRESS>, ::1). <IP_ADDRESS> is any ipv4 address. * Will get you any address.
Dns resolves ipv6 addresses first so the client tried those first, times out, and then tries the next one.

That worked, thanks!


Question:  Eclipse Che?

Has this language server been used/tested with Eclipse Che at all?  I see the issue for supporting Eclipse itself, but no mention of Che.

I have not tried Eclipse Che yet, but in theory this language server should work with any client. To run the language server you need to

Run ./gradlew installDist in the repository folder to build the JARs
Launch the start script in build/install/kotlin-language-server/bin/ (probably through Eclipse Che)

Eclipse Che could then communicate through stdin and stdout with the language server.
Let me know if there are any further issues with it.


Add ability/docs to enable AAD Auth/Authz

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Expected/desired behavior

With the help of AppService Auth enable Authentication and Authorization for specific AAD group in the tenant

I've enabled AAD for the other sample:
https://github.com/Microsoft/sample-app-aoai-chatGPT/
I did it via preprovision and postprovision hooks, and some scripts to create the app registration.
Unfortunately, I haven't gotten it working on CI/CD yet, but it does work well locally.
Let me know if you'd like a PR to this repo for those changes.

I would love a PR to this repo for those changes!

@wherewith  also if you could display the user icon in the headers with the logged in user details.

I think that whatever solution was used on the other sample would be perfect for this repo as a starting point @pamelafox

Yes please, it would be great to have some kind of authentication so not everyone can access the deploy.

PR at https://github.com/Azure-Samples/azure-search-openai-demo/pull/534
Please report back if it works for you.

We do have documentation now about using AAD but we'd like to automate it with scripts. @mattmsft is going to extend my scripts to work with the document-level access control he just added.

This is fantastic! I was hesitant to deploy the app initially and then manually integrate Azure AD later. Unfortunately, the official documentation didn't provide clear steps on how to achieve this using deployment scripts.

Sorry we never closed this - we did eventually do this
https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/login_and_acl.md#setting-up-optional-login-and-document-level-access-control


[minor] Docs: call attn to custom doc (besides docstring)

Seeing that I could customize the doc attribute of a task, I realized I actually like subtasks. (Before I had found them confusing as it seemed like I had to choose between all-tasks docstring or nothing.)
Might make sense to call this out to readers early on.

I figure this is not the only doc file to update, if the change is to be accepted... Let me know?

Coverage remained the same at 99.736% when pulling d0ed5273b4ea82569f19cd1caa6ad638ea9e1c4c on hangtwenty:patch-1 into<PHONE_NUMBER>d8a731aa207c60942c732bfc26431c on pydoit:master.

Yes, I guess you are right? I think tje.problem is that docs take so long to introduce the 'list' command and 'doc' only makes sense for 'list'. maybe we should introduce 'list' early on somewhere on 'task.rst'.

Thanks for feedback. I thought it was better to use a separate example:
https://github.com/pydoit/doit/commit/c09361844f4c2f3003b66ee523d789eb0b3b70fc


Error: 'object' does not contain a definition for 'ExportResultStringPart'

Test Outcome:	Failed
Result StackTrace:
at CallSite.Target(Closure , CallSite , Object , Object , KeyValuePair2[] )    at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)    at ExportImplementation.ExportExcel20071.ExportResultStringPartNotGeneric(IList data, KeyValuePair2[] additionalData)    at ExportImplementation.ExportExcel20071.ExportMultipleSheets(IList[] data, KeyValuePair`2[] additionalData)
This happens when i ran your example for ExportMultipleSheet Example. Need help on this

Hello.  The source code is here. Could you debug it ?


Back out #524

This PR backs out 58ef2b5 in prep for the 0.8.0 release. I'll re-apply it after the release.

Nevermind. I'll just tag the branch.