Duplicate packages installed by Pip and apt in v2.7

I am compiling Pynq 2.7 for my board.
I find lots of python packaged are installed by apt and pip simultaneously, for eaxmple, python-cffi/ipython/jedi. The warning log is posted as follows.
One of the relevant files (I guess, forgive me if I am wrong) is sdbuild/packages/python_packages_focal/qemu.sh
When this file is executed, some packages has been installed by apt, so it will throw lots of warning.

Installing collected packages: traitlets, pyrsistent, tornado, pyzmq, ptyprocess, parso, jupyter-core, jsonschema, Pygments, prompt-toolkit, pexpect, nest-asyncio, nbformat, matplotlib-inline, MarkupSafe, jupyter-client, jedi, backcall, async-generator, testpath, pandocfilters, nbclient, mistune, jupyterlab-pygments, Jinja2, ipython, defusedxml, cffi, bleach, terminado, sniffio, Send2Trash, prometheus-client, nbconvert, ipykernel, argon2-cffi, websocket-client, notebook, anyio, widgetsnbextension, QtPy, pbr, jupyterlab-widgets, jupyter-server, json5, Babel, testresources, tenacity, qtconsole, pycairo, numpy, nbclassic, lrcurve, jupyterlab-server, jupyter-console, ipywidgets, click, SpeechRecognition, RISE, PyAudio, plotly, netifaces, jupyterplot, jupyterlab, jupyter, gTTS
Attempting uninstall: traitlets
Found existing installation: traitlets 4.3.3
Not uninstalling traitlets at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'traitlets'. No files were found to uninstall.
Attempting uninstall: pyzmq
Found existing installation: pyzmq 18.1.1
Not uninstalling pyzmq at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'pyzmq'. No files were found to uninstall.
Attempting uninstall: parso
Found existing installation: parso 0.5.2
Not uninstalling parso at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'parso'. No files were found to uninstall.
Attempting uninstall: Pygments
Found existing installation: Pygments 2.3.1
Not uninstalling pygments at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'Pygments'. No files were found to uninstall.
Attempting uninstall: prompt-toolkit
Found existing installation: prompt-toolkit 2.0.10
Not uninstalling prompt-toolkit at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'prompt-toolkit'. No files were found to uninstall.
Attempting uninstall: pexpect
Found existing installation: pexpect 4.6.0
Not uninstalling pexpect at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'pexpect'. No files were found to uninstall.
Attempting uninstall: jedi
Found existing installation: jedi 0.15.2
Not uninstalling jedi at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'jedi'. No files were found to uninstall.
Attempting uninstall: backcall
Found existing installation: backcall 0.1.0
Not uninstalling backcall at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'backcall'. No files were found to uninstall.
Attempting uninstall: ipython
Found existing installation: ipython 7.13.0
Not uninstalling ipython at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'ipython'. No files were found to uninstall.
Attempting uninstall: cffi
Found existing installation: cffi 1.14.0
Not uninstalling cffi at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'cffi'. No files were found to uninstall.
Attempting uninstall: pycairo
Found existing installation: pycairo 1.16.2
Not uninstalling pycairo at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'pycairo'. No files were found to uninstall.
Attempting uninstall: numpy
Found existing installation: numpy 1.17.4
Not uninstalling numpy at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'numpy'. No files were found to uninstall.
Attempting uninstall: netifaces
Found existing installation: netifaces 0.10.4
Not uninstalling netifaces at /usr/lib/python3/dist-packages, outside environment /usr/local/share/pynq-venv
Can't uninstall 'netifaces'. No files were found to uninstall.

This bug may not cause serious error, but will installs packages with wrong versions.


Entity not received by daemon if total size exceeds 64KB

STEPS TO REPRODUCE THE ISSUE

BeginSegment
BeginSubsegment
AddMetadata (optional, but it makes the reproduction easier if large metadata is added, for example 32KB)
EndSubsegment
Repeat steps 2 to 4 until total segment size is greater than 64KB (for example, 2 subsegments with 32KB of metadata)
EndSegment

According to documentation (https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html#api-segmentdocuments-subsegments), a segment document can be up to 64 KB, but subsegments can be sent separately to avoid exceeding the maximum segment document size. This scenario should work. However, you can see that the daemon does not receive the segment.
I found in the code that ProcessEndSegment method sends the entire segment to the daemon (on step 6), and that single document exceeds 64KB. The subsegments here should be sent separately.
As a workaround I changed the constant MaxSubsegmentSize from 100 to 1. That forces each subsegment to send immediately after calling EndSubsegment, as ShouldStreamSubsegments returns true. This works as expected for this case, but it is not optimal if the subsegments are small enough to fit into one single document.

Hi @sebarosales,
Thank you for the post.
We send segments/subsegments over UDP to the local X-Ray daemon. UDP packets are limited to 64KB in size which resulted in your segment (that contains all your subsegments) being rejected by daemon. You can get more insights by setting up logger. Please refer Link.
It would be possible for the SDK to automatically apply subsegment streaming to large segments. However, the segment size in bytes is not known until the segment JSON document has been serialized to a string - a relatively expensive operation. For reference : https://github.com/aws/aws-xray-sdk-java/issues/4
Recommended solution : setting MaxSubsegmentSize is the correct way for your use case.
I am closing this issue, please feel free to reopen, if you have any questions.
Thanks,
Yogi

Hi Yogi,
Thanks for your answer.
Currently MaxSubsegmentSize is a constant and the only way to change it is to modify and recompile the code. This makes the process of keeping the SDK updated much more complicated.
¿Could it be a setting?

Hi @sebarosales ,
We appreciate your feedback and have included this in our backlog.
Thanks,
Yogi


Added Line Awesome icon font to on icon picker field

As @mpixelz stated on #3339, since backpack adopted line awesome font on v4, it should be available to be used on icon picker field.

A new inspection was created.

The inspection completed: No new issues

I just checked this.. even thought it does show the lineawesome icons on the editor but the stored values are still fa and fas not la...

Indeed, they would never be stored as la icons because iconpicker (the jquery plugin) does not support it.
Even if you set iconset to something weird, it will default to fontawesome.

Supported by theirs website documentation:

glyphicon|ionicon|fontawesome4|fontawesome5|weathericon|mapicon|octicon|typicon|elusiveicon|flagicon

@pxpm I did some changes, so I replace fa > la before save, and la > fa before showing the icon on icon picker.
It's now stored as lineawesome.
This is possible because line awesome provides a font with the same naming as font awesome (fa).
It's working, is it a desired feature to make up for the extra layer of logic?

A new inspection was created.

Ugh bot that's just sad 😞😅
Now that I hear about it, it does make perfect sense to have line awesome inside the icon picker - especially if you use the backpack interface for both users and admins...
Any way we can make it a "supported font"?

a) Doesn't iconpicker provide a way to extend it?
b) If not, how difficult would it be to create a PR to their project for it? And how likely is it that it's get accepted? Better ask first. It's an opportunity to thanks someone whose work we've been using for a while now.

@tabacitu it appears we commented at the same time 😅 just check my previous comment if you missed out.
Yesterday I though about pushing a PR to add this font, but the project seems a little idle, the latest commit was 2 years ago and there are some issues and PR open.

The inspection completed: No new issues

Yesterday I though about pushing a PR to add this font, but the project seems a little idle, the latest commit was 2 years ago and there are some issues and PR open.

Hmm that's right. I see you've already contributed the project a few years ago 😀 🎉
Let's do this:

I've submitted an issue about it to the project - see and follow https://github.com/victor-valencia/bootstrap-iconpicker/issues/97
We wait for Victor's reply. If he doesn't reply in 1 week, we send a quick email, I see it's listed in his profile - https://github.com/victor-valencia
If another week has passed and no email reply, we regroup and think about what we should do alone 😀

I'm really hoping we can have a "proper" fix for this, not a hack 🤞

@tabacitu I agree it's a messy code and we should avoid it. It was kinda a smart move to try to use the flavor of line awesome with the prefix of font awesome, but I forgot the part of saving it 😅
Let's wait for an answer from Victor.

Since @pxpm got a better solution for this problem, let's close this PR and move the conversation to: #3345


Setting startTime and calling play() starts earlier than specified startTime

We've noticed in our app when we move the playhead position it's starting earlier than the specified time. We do this via:
player?.stop()
player?.startTime = position
player?.play()

I've created a sample project to demonstrate this behavior. SamplePlayer.zip
To replicate:

Run pod install
Open the workspace
Run the app
Notice a player is started and its currentTime is logged every millisecond
Tap "Go Back"
Stop the app
Search the console for "moving"
Notice the logs show MOVING PLAYHEAD TO 1.2345 and then the player's currentTime logged after that point are before the specified startTime such as

13.973310657596372

MOVING PLAYHEAD TO 1.2345

1.2131848072562357
1.2131848072562357
1.2131848072562357
1.2131848072562357
1.2131848072562357
1.2131848072562357
1.2131848072562357
1.2131848072562357
1.2131848072562357
1.2131848072562357
1.2131848072562357
1.223842403628118
1.223842403628118
1.223842403628118
1.223842403628118
1.223842403628118
1.223842403628118
1.223842403628118
1.223842403628118
1.223842403628118
1.223842403628118
1.223842403628118
1.2345226757369614
1.2345226757369614
1.2345226757369614
1.2345226757369614
1.2345226757369614
1.2345226757369614
1.2345226757369614
1.2345226757369614
1.2345226757369614
1.2345226757369614

This is problematic in our app because we run some logic based on the player's currentTime. To support looping sections of a song in real-time, we detect when the player's position has reached the end of a loop and move it back to the start time. This is breaking our logic because it starts earlier than the loop's start time, causing us to lose track of the current loop because we've exited the loop and we'll start a new loop a few milliseconds later.

Sorry, I didn't see this issue before. Guessing you have another solution by now.
try:
play(from: startTime).
Also, it may be that the currentTime property is the one that is wrong?

Closing due to lack of response from the original poster after Ryan's reply.


Fix Consul version. Fix Git URLs. Fix Nomad tags.

Fix a bunch of minor bugs that have crept up due to CI issues with running tests:

Update Consul usage to v0.3.1 everywhere, so the tags param is exposed. This fixes #26.

Update all Git URLs to use HTTPS instead of SSH for consistency.

Fix tags set on Nomad cluster in root example. Nomad clients should not get the same tags as servers.

@brikis98 Correct me if I am wrong: if we have already been using Consul v0.3.1, this PR is basically a no-op right?

@lawliet89 Yup, should be a no-op, and good to hear that's what you're seeing.


Variable "$foo" is propably undefined when using ->when() function on eloquent.

Larastan Version: v2.9.7
Laravel Version: 10.48.12

Description
Using when with isset() function in it still throws warning "Variable $ids might not be defined. "
Laravel code where the issue was found
if ($user->is_admin) {
     $ids = Position::pluck('id')
}

InvoiceableItem::query()
   ->when(isset($ids), fn($query) => $query->whereIn('position_id', $ids))
   ->get();

That's because you're accessing the $ids from the outer scope which hasn't has the isset applied to it (from static analysis standpoint).
First use a null default value, and then use the $ids that is passed to the closure:
$ids = null;

if ($user->is_admin) {
     $ids = Position::pluck('id')
}

InvoiceableItem::query()
   ->when($ids, fn($query, $ids) => $query->whereIn('position_id', $ids))
   ->get();

🤝
$ids = $user->is_admin
    ? Position::pluck('id')
    : [];

InvoiceableItem::query()
   ->when(isset($ids), fn($query) => $query->whereIn('position_id', $ids))
   ->get();

Can this issue be closed? There's nothing for us to do here...


update deprecated python packages csv

Marking the following packages as deprecated following recent release:

azure-cognitiveservices-search-autosuggest
azure-cognitiveservices-search-customimagesearch
azure-cognitiveservices-search-customsearch
azure-cognitiveservices-search-entitysearch
azure-cognitiveservices-search-imagesearch
azure-cognitiveservices-search-newssearch
azure-cognitiveservices-search-videosearch
azure-cognitiveservices-search-visualsearch
azure-cognitiveservices-search-websearch
azure-cognitiveservices-vision-computervision
azure-cognitiveservices-vision-contentmoderator
azure-cognitiveservices-vision-customvision
azure-cognitiveservices-vision-face
azure-iot-modelsrepository
azure-mgmt-scheduler
azure-servicemanagement-legacy
azure-synapse

The following recently released deprecated packages have already been marked deprecated:

azure-mgmt-servermanager
azure-graphrbac
azure-mgmt-batchai
azure-mgmt-documentdb

Do we also need to mark these packages deprecated for other languages?

@xiangyan99 - no, only these Python packages have been deprecated officially afaik.

@xiangyan99 - no, only these Python packages have been deprecated officially afaik. If/when other languages have officially deprecated these, they should be able to mark the packages deprecated in their respective language CSVs.

Took offline, we will follow up with other languages separately.


Sleep Apnea and BMI: One column approach might be better than two columns

In my opinion, this:

Looks better than this:

@mrueschman it appears one column on mobile screens - but it looked funny as one column on large monitors. Mind if I close?

Go ahead. I think I mainly made this because the columns were of a different sort. Maybe in another life the tool will be reworked from the ground up.

And pollen count will be included :8ball:


Update the Data Use Footer Banner text

On the data browser footer:

Update the policy acceptance text:
From:
"By downloading any data I accept the HCA Data Use Policy."
To:
"By downloading data from the HCA DCP, you agree to the guidelines specified in the HCA Data Release Policy."

@lauraclarke wanted to check in with you on the language above. I felt the text we had in place as a bit rough so modified so that:

Changed from "I agree" to "you agree"
Changed from "Data Use Policy" to "Data Release Policy" as thats the name of the linked document.

Do you have any objections to the change above or would you like to propose an alternative/clarification?
Cheers,
Dave

Happy with the use to release change.
From a readability perspective, I to you makes sense.
I am less sure if I to you changes the legal nature of the statement, you might want to ask a suitable legal rep for that


feat: add a check for 'Access Credential Manager as a trusted caller'

This PR adds a policy  to ensure Access Credential Manager as a trusted caller isn't set.
when there is an account with the credential:

without:

@chen-keinan this PR is ready for review. could you take a look pls?


Documentation /

Hey guys, first of all, thx for the script it's really good.
Soooo.... I dont know if i should make this here (issue) but i would like to know if is possible to someone make "Documentation" or explain the code a little more, im learning PHP and would love to help in the future...
What i mean is more detailed comments on the lines for advanced stuff.
like wtf is that lol
$LocalScriptHash = sha1( trim( file_get_contents( FILE ) ) );
$RepositoryScriptETag = '';
$RepositoryScriptHash = GetRepositoryScriptHash( $RepositoryScriptETag, $LocalScriptHash );
Thx and sry if its not a thing to ask =/

FILE is the name of the current file. It gets read and the contents are used to calculate sha1 sum.
The following lines then get the sha1 sum from this repository.
Later the two sums are compared to determine if the script is up to date.
Self documenting code ✨👌🦆

Self documenting code

For some one that just start to see "ifs and wiles" is not that simple...
But thx...

@PredatorIWD yeah, i mean, i have php classes thes month and i would like to learn how this code work, i did some research about the functions that i dont know but the point is why they make that way...
but its okey, im breaking the code piece by piece to see what is what....
But if they put on some lines function GetBestPlanetAndZone( &$ZonePaces, $WaitTime ) //This function do this and that , in that way bcus is cool bla bla bla would make easer for some one newb to get faster =)
But any way thx u guys!


GH3771: Add support for Chocolatey Export Command

This command was added in 0.11.0 of Chocolatey, providing the ability
for a user to export a file that contains information about all the
currently installed Chocolatey packages on a machine.
This information can be useful, therefore creating a Cake alias to
support it makes sense.
Fixes #3771

NOTE: I need to create an issue to go along with this, but wanted to open the draft PR to start running through all the unit tests :smile:

@gep13 I added https://github.com/cake-build/cake/pull/3768/commits/d3e558b20992c2884de278bed8b5159450d9b145 to let the integration tests pick up on the Cake.Chocolatey.* tests.

@nils-a thanks for getting that added! Does this mean that the integration tests are being run on each CI system, or are they still only being run in a few places? Just want to know where I can "see" the results.

They run on DevOps for the Windows, Ubuntu and Mac pipelines, as well as the GitHub pipelines.
(And, naturally, I missed a spot there... So "now" they should run during the integration tests.)

@gep13 your changes have been merged, thanks for your contribution 👍


Point two subdomains to same application

I want to point app.something.dev and api.something.dev to be pointing to same application. If i make two config files with different names i get A server is already running. Check /home/sztosz/app_dir/tmp/pids/server.pid. Is there a way to serve app under two diffrent subdomains?

Hi @sztosz,
Wildcard subdomains have been added in the latest version, so you should be able to have two subdomains pointing to the same app.
For example:
my-project$ hotel add 'cmd' -n something

You get something.dev pointing to my-project and also *.something.dev pointing to my-project.
Does it help?

Not really :) I have complicated domain structure in our company product. We got our landing site at example, we got main product at app.example we got public api at api.example and internal one at internal-api.example and few other ;)
Anyway our application serves either app or api or internal-api based on where does the request come and what domain is requested. I don't really know how does pow http://pow.cx/ does it but it just works. But pow does not work under linux.
I want to redirect, or basically serve one application under api.example and app.example, but server totally different one under example.
Adding optional config like
{
  redirect: some.domain
}

Would really rock! ;)
tl; dr
app.example and api.example is same application, but example (without subdomain) it totally different one.

@sztosz I was expecting that it wouldn't be so easy :) thank you for the explanations.
This week, I'll be working on fixing a few issues with the UI and add colors to the output. After that I'll have a look at redirections (I have a few ideas already but it will need some refactor).
As a temporary workaround, you could have www.example.dev (hotel add -n www.example ...) pointing to application A and *.example.devfor app.example.dev and api.example.dev (hotel add -n example ...) pointing to application B.

I'll wait and see for now. I can always rename the configuration jsons, because in developement i almost never need to have both app and api up :) but redirections, are really nice to have feature :)


Unit testing

In a lot of my projects I have to do some data pre-processing or I need to make an environment node, which lends itself well to unit-testing. Would it be useful to cover how to setup unit-testing with pytest?

Now that I've made the basic notebook, here's what I need to fix:

[ ] Assert statements can have a string associated to them
[ ] Fixtures arg combinations
[ ] Explain advantage of parameterize over constants, different named tests
[ ] Note the running with --pdb
[ ] Send output in pytest with a command link arg


[v1.5] 2019 04 29 backports

PR: 7803 -- Add guide for running Cilium via MicroK8s (@joestringer) -- https://github.com/cilium/cilium/pull/7803
PR: 7835 -- operator: add ca-certificates to operator (@aanm) -- https://github.com/cilium/cilium/pull/7835
PR: 7829 -- contrib: ensure check-fmt.sh runs correctly, and fails if it does not (@ianvernon) -- https://github.com/cilium/cilium/pull/7829
PR: 7840 -- endpoint: do not serialize JSON for EventQueue field (@ianvernon) -- https://github.com/cilium/cilium/pull/7840
PR: 7834 -- doc: fix up Ubuntu apt-get install command (@liuqun) -- https://github.com/cilium/cilium/pull/7834
PR: 7848 -- Improve operator bootstrap sequence (@tgraf) -- https://github.com/cilium/cilium/pull/7848
PR: 7860 -- docs: Mention enable-legacy-services flag in upgrade docs (@brb) -- https://github.com/cilium/cilium/pull/7860
PR: 7850 -- nodediscovery: Try to register node forever (@tgraf) -- https://github.com/cilium/cilium/pull/7850
PR: 7861 -- docs: Add upgrade guide from >=1.4.0 to 1.5 (@brb) -- https://github.com/cilium/cilium/pull/7861
PR: 7865 -- test: make function provided to WithTimeout run asynchronously (@ianvernon) -- https://github.com/cilium/cilium/pull/7865
PR: 7863 -- ginko: adjust timeout to something more appropriate (@borkmann) -- https://github.com/cilium/cilium/pull/7863

Note I've added one last commit to fix the generated k8s files

This change is

test-me-please

@aanm #7844 is not part of this PR , was there an issue backporting it? I can take a stab at it if there were conflicts.

@aanm #7844 is not part of this PR , was there an issue backporting it? I can take a stab at it if there were conflicts.

@ianvernon yes, the backport script didn't find the upstream commits.

test-docs-please

@aanm OK, I've edited the PR description to remove it accordingly. I can backport it in a follow-up PR since I wrote the PR.

K8s tests got stuck: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-K8s/1950/
18:14:00  STEP: Performing Cilium preflight check
19:02:42  Sending interrupt signal to process

This shouldn't have happened since #7865 is being backported as well :/

test-missed-k8s

Istio test failed due to JoinEP being found in logs: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-K8s/1956/testReport/junit/Suite-k8s-1/11/K8sIstioTest_Istio_Bookinfo_Demo_Tests_bookinfo_inter_service_connectivity/
2019-04-29T21:06:00.359453227Z level=warning msg="JoinEP: Failed to load program" containerID=dcd94c2737 datapathPolicyRevision=0 desiredPolicyRevision=43 endpointID=347 error="Failed to load tc filter: exit status 2" file-path=347_next/bpf_lxc.o identity=19032 ipv4=<IP_ADDRESS> ipv6="f00d::a0a:100:0:df73" k8sPodName=default/productpage-v1-666444955b-2pnvs subsys=datapath-loader veth=lxc1ef300b2cb6f

Both K8s test runs took an inordinate amount of time - https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-K8s/1956/flowGraphTable/ . I wonder if there is an issue on the baremetal machine that ran the tests? /shrug .

test-missed-k8s

test-missed-k8s

Hit known flake Suite-k8s-1.12.K8sDatapathConfig Encapsulation Check connectivity with transparent encryption and VXLAN encapsulation
@aanm I'm OK to merge it


remove an additional preposition in README.md

hey, nice project here!
just heard about it, and could not resist opening this small trivial PR 😄

@all-contributors please add @ammarnajjar for docs

@all-contributors please add @ammarnajjar for docs

Thank you!


signup and login page ui changes

@RunTerror umm the grey color is not looking good man, try to think something else ?


Payload ignored in Facebook quick reply using KeyboardCard and channel data

Bot Framework 3.3.3
I have created a KeyboardCard to provide quick reply to my Facebook bot.
Right now I'm using the following code to create them:
var keyCard = new KeyboardCard(text, new List<CardAction>
{
   new CardAction(ActionTypes.PostBack,"Option 1", null, "opt§1"),
   new CardAction(ActionTypes.PostBack,"Option 2", null, "opt§2"),
});

var r = context.MakeMessage();
r.ChannelData = keyCard.ToFacebookMessage();

await context.PostAsync(r);

I expected that when the quick reply buttons were pressed there will be an incoming message with text equals to the payload provided in the definition.
Unfortunatly, when I press the quick reply buttons the activity contains a text message with the CardAction title (ie. "Option 1") only. No payload found.

This is by design based on the facebook message sent to connector when a quick reply button is tapped.
https://developers.facebook.com/docs/messenger-platform/send-api-reference/quick-replies#callback

When a Quick Reply is tapped, a text message will be sent to your webhook Message Received Callback. The text of the message will correspond to the title of the Quick Reply. The message object will also contain a field named quick_reply containing the payload data on the Quick Reply.

Connector will promote the text in the Facebook message to the text field in the activity. If you want to access the payload, you can reach it through the channel data on the activity sent to your bot when the quick reply is tapped, e.g. activity.ChannelData.message.quick_reply

@msft-shahins  is this still the behavior on Facebook?


[5.5] Add ability to exclude specific columns from the result collection of Eloquent query

I made a pull request for this before but it's been closed before I  can fix the code for the expected behavior that @sisve warned me about in the discussion. I couldn't change the previous pull request since It's been closed so I hope this is fine to make a pull request for this again.
Thanks.

Rebase your fork, to avoid many commits 💯

You haven't added tests yet for it

It looks like this would fail for User::exclude('email')->get(); since the get's signature include the parameters; function get($columns = ['*']).

For reference; the previous pull request is at https://github.com/laravel/framework/pull/21681

@sisve  I don't know if User::select('email')->get(); will fail too?
What do you suggest for this case?

@lilessam Do you want help to write some tests? I submit a PR in your fork and you merge it!

@gabriel-caruso Yes my friend if you can help me to write tests it will be great. After that I'll rebase the repo to avoid many commits like you said before.
I'm waiting your help ! :)

@lilessam If someone could help us as well, I'd be grateful. Most of EloquentBuilderTest are Mocks, and I'm not familiar with that :cry:

@lilessam It is my belief that this functionality cannot be done without first querying the database for all available columns. That is the only way you can go from a "blind" select-everything (SELECT * FROM user) query to selecting all the fields (SELECT id, email, name FROM user). The resulting list of columns can then be the basis of manipulation with your new exclusion functionality.
I think your previous PR was on the right track, but there were some cases that it didn't handle, like chaining several exclude calls.

No plans on adding.


Is this still available in Okta?

Hello, is this application still available? I am not able to find it in the OIN.  Also, with "virtual tenants" in a single org, are duplicate ID's supported and if so, how?
Thanks,
John

ok. looks like this requires some up front steps before the application is added into Okta. Looks pretty involved. Is there any documentation as to what is being provisioned to Okta via terraform etc.? any reason it cannot be directly done in Okta?  what is the magic?

HI @trijohn . Okta DAC is a blueprint you can inspire from to build multi-tenancy into 1 Okta org, see disclaimer https://github.com/oktadev/okta-dac/blob/master/README.md#disclaimer. It is not an app you'll find in the OIN.
Re: duplicate ID - what do you mean + on what objects in particular?
Yes Okta DAC is a sample app you can tweak/inspire from to build/host your own custom portal in your env. Details about the underlying architecture and concepts is available there https://docs.idp.rocks/. Details about the setup to deploy the required resources is available there https://docs.idp.rocks/setup/
Hope that helps!
Nico

Thank you. What I mean by duplicate I’d is duplicate user id. If virtual tenants are being created, does that mean virtual UDs as well?
John

On Dec 16, 2022, at 5:45 PM, nicotriballier @.***> wrote:

HI @trijohn . Okta DAC is a blueprint you can inspire from to build multi-tenancy into 1 Okta org, see disclaimer https://github.com/oktadev/okta-dac/blob/master/README.md#disclaimer. It is not an app you'll find in the OIN.
Re: duplicate ID - what do you mean + on what objects in particular?
Yes Okta DAC is a sample app you can tweak/inspire from to build/host your own custom portal in your env. Details about the underlying architecture and concepts is available there https://docs.idp.rocks/. Details about the setup to deploy the required resources is available there https://docs.idp.rocks/setup/
Hope that helps!
Nico
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.

Hey John. Users are uniquely identified within Okta Universal Directory (UD) and they have a unique userId. A user can be assigned to 1 or multiple tenants. In that case the user still has 1 unique userId (there are no multiple "virtual" user ids, nor "virtual" UDs). When you try to list the tenant admins (see API https://docs.idp.rocks/api/#list-tenant-admins) you'll get a list of users from UD, each with their regular userId. Hope that makes sense.
Nico

Thanks
John

On Dec 20, 2022, at 10:47 AM, nicotriballier @.***> wrote:

Hey John. Users are uniquely identified within Okta Universal Directory (UD) and they have a unique userId. A user can be assigned to 1 or multiple tenants. In that case the user still has 1 unique userId (there are no multiple "virtual" user ids, nor "virtual" UDs). When you try to list the tenant admins (see API https://docs.idp.rocks/api/#list-tenant-admins) you'll get a list of users from UD, each with their regular userId. Hope that makes sense.
Nico
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.


Building project with custom ReactAdroid failed

Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
I made some changes to a react native core component and am now trying to build that so i can use it. I removed the default pre-built library from the gradle file i.e "implementation "com.facebook.react:react-native:+"  // From node_modules and replaced it with implementation project(':ReactAndroid'). i also set up the ndk.dir in local.properties to point to the one i downloaded from the link in the wiki pages.
React Native version:
System:
OS: Windows 10 10.0.18363
CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Memory: 602.00 MB / 7.89 GB
Binaries:
Node: 10.15.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.15.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version  <IP_ADDRESS> AI-183.54<IP_ADDRESS>52501
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.

Stop using default prebuilt library "implementation "com.facebook.react:react-native:+"  // From node_modules  and use implementation project(':ReactAndroid') instead
also be sure to add the ndk.dir and add the ReactAndroid project in settings.gradle.
Attempt to build

Expected Results
Expect a successful build
What I Got
`C:/Users/kyleb/AppData/Local/Android/Ndk/android-ndk-r17c-windows-x86_64/android-ndk-r17c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: cannot open C:/Users/kyleb/AppData/Local/Android/Ndk/android-ndk-r17c-windows-x86_64/android-ndk-r17c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/lib/../lib/armv7-a/libatomic.a: No such file or directory
C:/Users/kyleb/AppData/Local/Android/Ndk/android-ndk-r17c-windows-x86_64/android-ndk-r17c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: cannot open C:/Users/kyleb/AppData/Local/Android/Ndk/android-ndk-r17c-windows-x86_64/android-ndk-r17c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/lib/../lib/armv7-a/libatomic.a: No such file or directory
clang++.exe: clang++.exeerror: : linker command failed with exit code 1 (use -v to see invocation)
error: linker command failed with exit code 1 (use -v to see invocation)
C:/Users/kyleb/AppData/Local/Android/Ndk/android-ndk-r17c-windows-x86_64/android-ndk-r17c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld: error: cannot open C:/Users/kyleb/AppData/Local/Android/Ndk/android-ndk-r17c-windows-x86_64/android-ndk-r17c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/lib/../lib/armv7-a/libatomic.a: No such file or directory
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [C:\Users\kyleb\Documents\trp\node_modules\react-native\ReactAndroid/local/armeabi-v7a/libglog.so] Error 1   make: *** Waiting for unfinished jobs....
make: *** [C:\Users\kyleb\Documents\trp\node_modules\react-native\ReactAndroid/local/armeabi-v7a/libjsinspector.so] Error 1
make: *** [C:\Users\kyleb\Documents\trp\node_modules\react-native\ReactAndroid/local/armeabi-v7a/libfb.so] Error 1
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':ReactAndroid:buildReactNdkLib'.

Process 'command 'C:\Users\kyleb\AppData\Local\Android\Ndk\android-ndk-r17c-windows-x86_64\android-ndk-r17c\ndk-build.cmd'' finished with non-zero exit value 2

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 4m 18s`

cannot open C:/Users/kyleb/AppData/Local/Android/Ndk/android-ndk-r17c-windows-x86_64/android-ndk-r17c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/lib/../lib/armv7-a/libatomic.a: No such file or directory

I had the same issue on linux, my ndk-build command would finish with non-zero exit value 2.
you can troubleshoot this by running  C:\Users\kyleb\AppData\Local\Android\Ndk\android-ndk-r17c-windows-x86_64\android-ndk-r17c\ndk-build.cmd in your terminal
It will show the complete error message from that command.
My error when running that command was
Android NDK: Could not find platform files (headers and libraries)

I solved this by installing the ndk with android studio sdk manager then setting correct env variables
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
export ANDROID_HOME=$HOME/Android/Sdk
export ANDROID_SDK=$HOME/Android/Sdk
export ANDROID_NDK=$ANDROID_SDK/ndk/17.2.4988734


Inconsistent FIPS_PROJECT_DEPLOY_DIR if cmake project name != directory name

Bug: FIPS_PROJECT_DEPLOY_DIR and FIPS_PROJECT_BUILD_DIR use the cmake project name, while the rest of fips uses the directory name as project name.
Solution: the cmake variables also must use the directory name and ignore the cmake project name.

PS: there are also various other places where CMAKE_PROJECT_NAME is used instead of the directory name, these must be fixed as well.

This is fixed in commit c02765f102187f165405f8809d9f3c1cee45b319


adversarial image distorsion

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
I would like to see this approach implemented:
https://arxiv.org/pdf/1312.6199.pdf
I believe this is a precursor to the GAN approach?

The L-BFGS approach is implemented here: https://github.com/tensorflow/cleverhans/blob/master/cleverhans/attacks/lbfgs.py


Fix deprecated items for Terraform 1.27

Using terraform 1.27, there are 5 items flagged as deprecated.
{
  "context": "output \"bucket\"",
  "code": "  value = aws_s3_bucket_object.token.bucket",
  "detail": "The attribute \"bucket\" is deprecated. Refer to the provider documentation for details.",
  "filename": "modules/statestore/outputs.tf",
  "start_line": 2
}
{
  "context": "resource \"aws_s3_bucket_object\" \"token\"",
  "code": "  bucket                 = aws_s3_bucket.bucket.id",
  "detail": "Use the aws_s3_object resource instead",
  "filename": "modules/statestore/main.tf",
  "start_line": 24
}
{
  "context": "resource \"aws_s3_bucket_object\" \"token\"",
  "code": "  key                    = \"token\"",
  "detail": "Use the aws_s3_object resource instead",
  "filename": "modules/statestore/main.tf",
  "start_line": 25
}
{
  "context": "resource \"random_string\" \"uid\"",
  "code": "  number  = true",
  "detail": "Use numeric instead.",
  "filename": "main.tf",
  "start_line": 27
}
{
  "context": "output \"token\"",
  "code": "    bucket          = aws_s3_bucket_object.token.bucket",
  "detail": "The attribute \"bucket\" is deprecated. Refer to the provider documentation for details.",
  "filename": "modules/statestore/outputs.tf",
  "start_line": 15
}

You can use terraform validate -json | jq '.diagnostics[] | {context: .snippet.context, code: .snippet.code, detail: .detail, filename: .range.filename, start_line: .range.start.line}' to replicate the results above.

There are not any validation errors or warnings I can see on current master


Create a Basic Workflow in SAP Business Application Studio

Tutorials: https://developers.sap.com/tutorials/cp-workflow-2-create-module-cf.html
Hi,
When working through the tutorial, I tried to run the "yo" command to get the workflow:

However, it seems the package @workflow/workflow Module is not available for me. Am I missing something, or is it no longer there?

Hi,
OK, so you are in your projects folder, and choose Terminal > New Terminal, and then:
yo
Select @workflow/workflow-module
Enter path to mta.yaml
Enter the module name, there is a proposed name in light grey
Enter the workflow name and description
No merge needed anymore
I have just retried this in and it still works although some steps are now a bit changed.

user: projects $ yo
? 'Allo! What would you like to do? @workflow/workflow Module
Make sure you are in the directory you want to scaffold into.
This generator can also be run with: yo @workflow/workflow-module
? Module Name tescht
? Workflow Name test
? Workflow Description nix
create mta.yaml
create tescht/workflows/test.workflow

When creating your dev space, have you selected the additional Workflow Management extension?
Best regards,
Astrid

Thank you for your feedback. We haven't heard from you in a while, so we are closing the issue.
If you still have questions, feel free to reopen the issue.


Implement find sub-command

The find sub-command will be used to locate lines in a recursive directory search of files that match a regular expression pattern.
This feature is in development and will be released in v0.3.0.

Initial implementation available as of e63c762ae9a53d6e658bf247b3380da2af0de9e5

Initial implementation available as of 8bf65ee7ebe93ac6698001d860fcbd94ae1d138d

Tests in place as of https://github.com/chrissimpkins/recurse/commit/e18accc55f26f24d34d0e4298155ae0c88158306

released in v0.3.0


Enable executes gls.publish actions with posting authority for Golos accounts

Users should be able to post and vote using their posting key.
To implement this, when loading the genesis, it's need to create an entry for each user allowing him to perform the actions of a posting smart-contract with a posting key.
Cleos command:
cleos set action permission <user> gls.publish "" posting
This command create linkauth record:
> db.permlink.find({id:5}).limit(1).pretty()
{
	"_id" : ObjectId("5cb9b427ec8a5453357c07b0"),
	"id" : NumberDecimal("5"),
	"account" : "..tomqqhsvwz",
	"code" : "gls.publish",
	"message_type" : "",
	"required_permission" : "posting",
	"_SERVICE_" : {
		"scope" : "",
		"rev" : NumberLong(1),
		"payer" : "..tomqqhsvwz",
		"size" : 327
	}
}

PR #588


Enhanced Footer with Social Links ON README

Closes: #1737
Description
The current README lacks an engaging and consistent footer section with social media links. The goal is to create a visually appealing footer at the end of the README that includes clickable icons for different social media platforms, encouraging better engagement and easy access to contact links.
Issue_Reference: #1737

@iamrahulmahato the task has been completed.


Check for SIGTERM exit code

Related - https://github.com/nodejs/node-v0.x-archive/issues/8667
Closes #154.

Oh wow. I would honestly never have thought of this. Thanks again @floatdrop :)


What's the API CALL?

I have got 10 enclosures/frame/with 9 Computer modules
.Syn. Gen 10
In all thee enclosure/Frames I have virtual connect nodules,FrameLink Modules and Powersupply to the enclosure/chassis.
I need access the installed Firmware version And the Component Name
for
i)virtual connect module,
ii) The Frame link Module
iiii) The Power supply
How do I go about getting this via the python SDK ?
I have looked at the examples and I am starting from looping so I don''t hav any names
Below does not get me what I want

   logical_interconnects = oneview_client.logical_interconnects

   # Get all logical interconnects
   print("\nGet all logical interconnects")
   all_logical_interconnects = logical_interconnects.get_all()
   for logical_interconnect in all_logical_interconnects:
      #print('  Name: {name}').format(**logical_interconnect)
      #Get a logical interconnect by name
      #logical_interconnect = logical_interconnects.get_by_name(logical_interconnect_name)
      print("\nFound logical interconnect by name {name}.\n URI: {uri}").format(**logical_interconnect.data)
      print("who is jerry antrell 3rd try ")
      #print(logical_interconnect.data)
      #fw=logical_interconnect.get_firmware()
      pprint(logical_interconnect)

  """

Helllo Any update?
I am able to get the model number of the Virtual Connect and the framelinkmod/fwversion but unable to procure the fw version of the VC.See Below , what should i use instead of ?????

pip install flatten_json

all_enclosures = oneview_client.enclosures.get_all()
    for enclosure in all_enclosures:
        flat_enc=(flatten(enclosure))

 virtual_connect_model_num=flat_enc.get('interconnectBays_1_interconnectModel',"NO VC in this ENC!")
 virtual_connect_model_firmware=flat_enc.get('???", "NO fwin this ENC!")
 frame_link_mod_name=flat_enc.get('managerBays_0_model',"NO FRAME LINK MOD !!!")
 frame_link_mod_fwversion=flat_enc.get('managerBays_0_fwVersion',"NO FRAMELINK VERNUM")

Hi @zeshan1977,
You can get firmware version of VC from get call of interconnects resource. Please try this out and let us know if this helps.

Which get Call, Please give examples. Dp you mean the enclosure iterator

Please look into this line in examples/interconnects.py
https://github.com/HewlettPackard/oneview-python/blob/086f7de73f2a29a29340f51581b2755ee8ebaaec/examples/interconnects.py#L59
From this response, you can find firmware version.

Firmware versions are not stored within logical resources.  You must get that information from the physical device. In this specific case, getting the firmware version of a VC module needs to be from a GET /rest/interconnects API call, or the interconnects.py example script @chebroluharika provided.

Yes I got it. Thnks . Closing


Google drive for adroit has 404 error.

Google drive link "https://drive.google.com/drive/folders/14rH_QyigJLDWsacQsrSNV7b0PjXOGWwD?usp=sharing." has 404 error.
Could you share the link once more?

Hi, there we provide a new link here:
https://drive.google.com/drive/folders/1o1l5RHvxV8cGxDYoiIBIshb0csptHOKn?usp=sharing
Our original data and link is from the VRL3 repo: https://github.com/microsoft/VRL3?tab=readme-ov-file
This link is expired. I re-upload the data here.

Thank you for your quick response! Now I get it.


minor: allow Symfony 7.0

@kbond
Thanks for symfony 7 support.
Could you please make a new release (if it is allready stable)?

Released 1.5.0


Link to the Caddy tutorial is broken

I would like to use Caddy but I am not sure, what to write to the Caddyfile for the reverse-proxy to ass. Can you give me a hint or correct the link to your tutorial.

Yeah I have to either rewrite it or point to the official docs as they're usually sufficient now.
As long as you're able to install Caddy and get it running, you can use this as a simple baseline:

But do not include the import line! Unless you know how to configure Cloudflare for Authenticated Origin Pulls and Strict mode, then let me know and I'll provide the snippet for that.

Thanks a lot. The information solved my problem!


Proposal: filter and partition as typescript typeguard

filter and partition as typescript typeguard
When filtering or partitioning stream or events,
And the filter criteria will narrow down possible types,
the partition / filter returned Observable type should be narrowed down as-well
Given the following code:
export function typeGuard(root: HTMLElement) {
    return Observable.fromEvent<Event>(root, 'click', {capture: true})
    .filter(function (e) {
        return e instanceof MouseEvent;
    })
    .do(function (e) {
        // e should be of type MouseEvent
        // [ts] Property 'clientX' does not exist on type 'Event'
        e.clientX;
    });
}

The e parameter of do should be of type MouseEvent
How to implement:
Generics!
And maybe is possible with some inference magic

I think filter already has somekind of this functionality but the declaration it broken.

export declare function filter<T, S extends T>(this: Observable<T>, predicate: (value: T, index: number) => value is S, thisArg?: any): Observable<S>;

Unfortunately, as far as I know typescript's inference doesn't work automatically in this case and you may need supply generic types explicitly to narrow down types as you'd like to have.
Current type definition for filter supports does case and it is not broken, for example above snippet can supply generic types like
export function typeGuard(root: HTMLElement) {
    return Observable.fromEvent<Event>(root, 'click', {capture: true})
    .filter<Event, MouseEvent>((value: Event): value is MouseEvent => value instanceof MouseEvent)
    .do(function (e) {
        e.clientX; //now chained operator got narrowed down type <S> instead of original type <T>
    });
}

.
I'll leave this opened bit more and /cc @david-driscoll just in case if there's any possible improvement.

@Bnaya I think @kwonoj is correct here.  While value instanceof X is a valid typeguard, the actual method itself is not a type guard, so it behaves exactly as it should, just a normal filter function.
If you make the method explicitly a typeguard it should work.  I don't think the concept of implicit typeguard exists in TypeScript (I could be wrong).  In order for this to work any other way would most likely require a compiler change which would "promote" the inner typeguard (collection of type guards creating a union type??) to the parent method.

Thanks!

@kwonoj do you have a suggestion how to handle partition?  AFAIK TypeScript has no way of specifying "if function returns true, type is A, otherwise type is B.


Bump controller-runtime to v0.14.1 and k8s API to v0.26.1

What does this PR do?
Updates core dependencies:
* sigs.k8s.io/controller-runtime to v0.14.1
* k8s.io/api (et al.) to v0.26.1
Notable changes in the update:

corev1.Handler is replaced with corev1.LifecycleHandler and corev1.ProbeHandler
k8s.io/apimachinery/pkg/util/clock is replaced with k8s.io/utils/clock
github.com/go-logr/logr/testing is deprecated in favor of github.com/go-logr/logr/testr

The update also ran into issues around github.com/redhat-cop/operator-utils, the latest version of which depends on k8s API v0.25.0 and controller-runtime v0.13.0. Since our usages of this package have been integrated into controller-runtime, the dependency is dropped in favor of these methods (latest versions of operator-utils just wrap the controller-runtime equivalents).
What issues does this PR fix or reference?
Closes https://github.com/devfile/devworkspace-operator/issues/1059
Is it tested? How?
N/A
PR Checklist

[ ] E2E tests pass (when PR is ready, comment /test v8-devworkspace-operator-e2e, v8-che-happy-path to trigger)

[ ] v8-devworkspace-operator-e2e: DevWorkspace e2e test
[ ] v8-che-happy-path: Happy path for verification integration with Che

Before merging this PR, we should do a smoke test against the Che Operator next to ensure the updated k8s API version does not cause issues.

Code looks good to me :sunglasses:. I had experimented recently with upgrading the controller-runtime to v0.14.1 and am familiar with the API changes that were required (corev1.LifecycleHandler, corev1.ProbeHandler, k8s.io/utils/clock and github.com/go-logr/logr/testr).

Before merging this PR, we should do a smoke test against the Che Operator next to ensure the updated k8s API version does not cause issues.

I'm currently spinning up a cluster to test this out before approving this PR.

I also compiled DWO (..even with the issues in the test files somehow? Maybe go doesn't care if there's compilation issues in the test files) and created + subscribed to the catalog source, and then deployed che:next with chectl and opened up the Che-Website workspace and things worked fine. Though I will repeat this process once the small final changes are made to this PR :)

ping @AObuchow waiting on approval

ping @AObuchow waiting on approval

Going to approve this since everything worked with Che when I last tested this PR even when the tests were broken (since the tests weren't part of the actual DWO image)


[Feature Request] Add a Tag for the git branch.

Ansible is frequently run from a git repo and for testing purposes, typically run from a git feature branch to work out any kinks. Including git branch information in the data reported to datadog would allow for more feature rich events and better alerting.

I've followed the contribution guidelines and created a Pull Request that would add this to the datadog plugin.
It should be compatible with git >=1.8.1 and  requires the subprocess built-in

I've followed the contribution guidelines and created a Pull Request that would add this to the datadog plugin.
It should be compatible with git >=1.8.1 and  requires the subprocess built-in


Unable to Nullify a many-to-one and Update a one-to-one at the Same Time

Bug description
I'd like to nullify a many-to-one relationship and update a one-to-one relationship in the same query.
Running the query below, produces the following error:
Error: Unknown arg `team_id` in data.team_id for type PersonUpdateInput. Did you mean `team`?
I'm unable to update team using connect due to it being a nullable field.
How to reproduce
await prisma.person.update({
  where: {
    id: 1,
  },
  data: {
    team_id: null,
    personData: {
      update: {
        favorite_color: 'Purple',
      },
    },
  },
});

Expected behavior
No response
Prisma information
model Person {
  id         Int    @id
  first_name String
  last_name  String
  team_id    Int?

  personData PersonData?
  team       Team?       @relation(fields: [team_id], references: [id])
}

model PersonData {
  person_id      Int    @id
  favorite_color String

  person Person @relation(fields: [person_id], references: [id])
}

model Team {
  id   Int    @id
  name String

  people Person[]
}

Environment & setup

OS: Ubuntu
Database: SQL Server
Node.js version: 18

Prisma Version
3.15.2

Would disconnect work for you here?

Using disconnect has been working all along. My bad...
Thank you for looking into this!


Simplify parameter dumping

We currently have a clunky way of dumping the parameters used to define a cosmology object to file. This requires doing things from the C layer through ccl_parameters_write_yaml and ccl_parameters_read_yaml. It'd be nicer if we were able to do this directly from python (and one could even imagine adding a class method that allows you to initialize a Cosmology object directly from a yaml file)

@damonge, is this not addressed by https://github.com/LSSTDESC/CCL/blob/master/examples/Reading-writing-Cosmology-objects.ipynb ?

@damonge bumping again can we close?

I think the python part of this has also now been addressed in #852.


Correctness Failure Detector for non-linear topologies

sequence_window works really well for detecting correctness violations to states in topologies that can be described as either linear, or fan-out where each branch is linear (e.g. no fan-in).
We need to come up with a detector design that can work well with fan-in on state.
The problem that arises is that this introduces non-deterministic input order, which wasn't a problem in fan-out-only type topologies. market_spread is an example of such a topology.
Initial idea
Each State update should create a record of the strict order between its update and the update which resulted in the message that triggered its update. For example, in the topology
Step A -> Step B -> Step C

where B is stateless, an update to Step A which results in an output o that then goes to Step B and is transformed into a new output o', which then arrives at Step C and triggers a state update. As Step C performs its update, it would record that it immediately preceding state update was the one producing o in Step A.
If each step had a logical clock, we could record these strict orders in the state itself:
State in Step C, after processing o':
{ id: C, State: payload, clock: 15, direct_ancestors: [{id: A, clock: 23}]}

In the aggregate view, this produces a set of strict order relationships between pairs of state updates within a Wallaroo application topology. To verify correctness, we would construct a flow graph from the set of strictly ordered pairs, and look for cycles and gaps as indicators that something went wrong.
A cycle would indicate a regression in strict time: thing B happened after thing A, but appears as an ancestor to thing A.
A gap would indicate something was lost along the way.

this is done with the multi partition detector


Pin versions for HuggingFace models

As mentioned in https://github.com/citadel-ai/langcheck/issues/67#issuecomment-1844123581, it would be ideal to pin the versions of models downloaded from HF so the scores don't unexpectedly change.
We can explicitly increment model versions in LangCheck releases.

Hi, let me work on this issue!

Thanks @ThanhChinhBK!

Hi @ThanhChinhBK! Are you still planning to work on this issue?

No worries! That's totally fine, just wanted to make sure you intended to work on this. If not, we can assign it to someone else.


Add module for multi-region buckets (telia-oss)

The idea here is that we should be able to have Travis upload lambda.zip, and then have it replicated to all regions, and then we can write s3_bucket = "telia-oss-${data.aws_caller_id.region_name}" in our Lambda modules and have it work magically across all regions 🐺

Travis builds are being rejected with "abuse detected"; I have emailed support and will hopefully get it resolved so we can have green commits before we merge.

Where did you see that notification from Travis?

If you go to the travis page for this repo, and then select the 'requests' page.

@mikael-lindstrom - Travis is fixed. Thoughts on the PR?


MIME Type Check for Issue #1218 and #1212

Hellow,
this pull request adds a File MIME Type check to all 3 AJAX requests to prevent file injection as described in #1218 and #1212.

logo-upload.php
profile-picture-upload.php
upload-images.php

It also adds a new GLOBAL variable called ALLOWED_IMG_MIMETYPES with the respective allowed types: image/gif, image/png, image/jpeg and image/svg+xml.
~ Sam.

thanks!


Issue since version 10.0.2 stopping playback

Hey,
I have mentioned that the library updated to 10.0.2 and tested it. Unfortunately, as soon as I try to play the video it plays for half of a second and then stops automatically. I think this is related to the canPlay attribute in LegacyYouTubePlayerView somehow that seems to be bound to some sort of lifecycle of the player. I do not bind any life cycle in my use case.
So, canPlay stays false and blocks the playback. This is the only idea I have why it doesn't work.
If you think it is an implementation issue on my side and my assumption is wrong, please let me know.
(As my usage/implementation is a bit complicated I currently try to find a pattern on how to reproduce this issue.)
Thank you for your time!

Hey, thank you for reporting the bug. You are right, the logic is not implemented correctly. I suggest you roll back to version 10.0.1 until this will be fixed in version 10.0.3! thanks for the help!

Okay, glad to hear that I didn't mess up any listeners in my implementation 😄 thank you!

Bug fixed. But I'll do some further testing before releasing the patch!

Version 10.0.3 released. Thanks for the help!


[2.0-beta12] Not working

I have a simple project with one page index.js using programmatic api (express)
Super simple page:
import React from 'react'
import BaseTemplate from '../components/BaseTemplate'
import MainPage from '../components/MainPage'

export default class extends React.Component {
    static async getInitialProps({ req }) {
        const isServer = !!req;
        return {
            isServer: isServer
        }
    }

    render() {
        return (
            <BaseTemplate>
                <MainPage />
            </BaseTemplate>
        )
    }
}

updated to latest version of next and always getting error:
 SyntaxError: Unexpected token m in JSON at position 0
    at Object.parse (native)
    at _callee$ (E:\projects\mr47\client\node_modules\next\dist\server\read-page.js:51:32)
    at tryCatch (E:\projects\mr47\client\node_modules\regenerator-runtime\runtime.js:64:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (E:\projects\mr47\client\node_modules\regenerator-runtime\runtime.js:355:22)
 at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (E:\projects\mr47\client\node_modules\regenerator-runtime\runtime.js:116:21)
 at step (E:\projects\mr47\client\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
 at E:\projects\mr47\client\node_modules\babel-runtime\helpers\asyncToGenerator.js:28:13
 at propagateAslWrapper (E:\projects\mr47\client\node_modules\async-listener\index.js:421:23)
 at E:\projects\mr47\client\node_modules\async-listener\glue.js:188:31
 at E:\projects\mr47\client\node_modules\async-listener\index.js:458:70

most part of error log ase useless but it's seems its connected to https://github.com/zeit/next.js/commit/165924b71b290388fbbacbc2a74cba80e1058133
JsonPagesPlugin making some black magic on pages.
Thanks!

Hey, could you wrap this into a small repo and send to me.
Also, tell me your OS and node version.

Actually, we did a fix for windows here: https://github.com/zeit/next.js/pull/611
It's not released yet.

@arunoda i'll test master version in few min. Thanks!


Feature/replace caching idp metadata manager

Replace Caching Zone Aware Idp Metadata manager with a non caching one.
Travis build slowness had been reported on account of the lengthy time taken by the destroy method for ZoneAwareIdpMetadataManager.
ZoneAwareIdpMetadataManager has been replaced by a non-caching NonSnarlIdpMetadataManager.

Coverage decreased (-1.2%) to 84.771% when pulling 43d5e5a593b8397517d55161758c11be3118a012 on GESoftware-CF:feature/replace_caching_idp_metadata_manager into 7303b5ce3e75ec0bca6d6f8a3d10bda6dc822d34 on cloudfoundry:develop.

Coverage decreased (-1.2%) to 84.771% when pulling 43d5e5a593b8397517d55161758c11be3118a012 on GESoftware-CF:feature/replace_caching_idp_metadata_manager into 7303b5ce3e75ec0bca6d6f8a3d10bda6dc822d34 on cloudfoundry:develop.

Coverage decreased (-0.02%) to 85.991% when pulling 742a1748557da241ed99e78e87d9cd37d8f864ce on GESoftware-CF:feature/replace_caching_idp_metadata_manager into 7303b5ce3e75ec0bca6d6f8a3d10bda6dc822d34 on cloudfoundry:develop.

Coverage decreased (-0.02%) to 85.991% when pulling 742a1748557da241ed99e78e87d9cd37d8f864ce on GESoftware-CF:feature/replace_caching_idp_metadata_manager into 7303b5ce3e75ec0bca6d6f8a3d10bda6dc822d34 on cloudfoundry:develop.

Coverage decreased (-0.02%) to 85.991% when pulling 742a1748557da241ed99e78e87d9cd37d8f864ce on GESoftware-CF:feature/replace_caching_idp_metadata_manager into 7303b5ce3e75ec0bca6d6f8a3d10bda6dc822d34 on cloudfoundry:develop.

Coverage decreased (-0.02%) to 85.991% when pulling 742a1748557da241ed99e78e87d9cd37d8f864ce on GESoftware-CF:feature/replace_caching_idp_metadata_manager into 7303b5ce3e75ec0bca6d6f8a3d10bda6dc822d34 on cloudfoundry:develop.

Coverage decreased (-0.02%) to 85.991% when pulling 742a1748557da241ed99e78e87d9cd37d8f864ce on GESoftware-CF:feature/replace_caching_idp_metadata_manager into 7303b5ce3e75ec0bca6d6f8a3d10bda6dc822d34 on cloudfoundry:develop.


Error: something went wrong generating declaration files When using  module-federation/typescript

with a given configuration:
import webpack from https://github.com/webpack/webpack;
const {FederatedTypesPlugin} = require(['@module-federation/typescript'](https://www.npmjs.com/package/@module-federation/typescript));

const federationConfig = {
  name: 'AuthenticationApp',
  filename: 'authentication-ui/remoteEntry.js',
  remotes: {
    'someRemote': `someRemote@http://remoteaddress.com/remoteEntry.js?${Date.now()}`,
  },
  exposes: {
    './LoginPage': './src/federated/RemoteLoginPage',
    './ResetPasswordPage': './src/federated/RemoteResetPasswordPage',
    './Routes': './src/federated/routes',
    './Context': './src/contexts/index',
    './Interceptors': './src/Interceptors/index',
    './Middlewares': './src/Middlewares/index',
    './reactAdminAuth': './src/reactAdminAuth/index',
    './FeatureFlags': './src/FeatureFlags/index',
    './Notification': './src/Notification/index',
  },
  shared: {
    ...deps,
  },
};

module.exports = {
  /* ... */
  plugins: [
    // ...
    new FederatedTypesPlugin({
      federationConfig,
      // ...
    }),
  ],
};

I'm having the following error
<e> [FederatedTypesPlugin] Error: something went wrong generating declaration files
<e>     at TypescriptCompiler.generateDeclarationFiles (/Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/@module-federation/typescript/src/lib/TypescriptCompiler.js:46:15)
<e>     at FederatedTypesPlugin.compileTypes (/Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/@module-federation/typescript/src/plugins/FederatedTypesPlugin.js:72:29)
<e>     at /Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/@module-federation/typescript/src/plugins/FederatedTypesPlugin.js:57:39
<e>     at Hook.eval [as call] (eval at create (/Users/belfoer1/Documents/platform-ui/login/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:12:1)
<e>     at Hook.CALL_DELEGATE [as _call] (/Users/belfoer1/Documents/platform-ui/login/node_modules/tapable/lib/Hook.js:14:14)
<e>     at Compiler.newCompilation (/Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/webpack/lib/Compiler.js:1121:30)
<e>     at /Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/webpack/lib/Compiler.js:1166:29
<e>     at Hook.eval [as callAsync] (eval at create (/Users/belfoer1/Documents/platform-ui/login/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:22:1)
<e>     at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/belfoer1/Documents/platform-ui/login/node_modules/tapable/lib/Hook.js:18:14)
<e>     at Compiler.compile (/Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/webpack/lib/Compiler.js:1161:28)
8% setup compilation FederatedTypesPluginnode:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: something went wrong generating declaration files
    at TypescriptCompiler.generateDeclarationFiles (/Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/@module-federation/typescript/src/lib/TypescriptCompiler.js:46:15)
    at FederatedTypesPlugin.compileTypes (/Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/@module-federation/typescript/src/plugins/FederatedTypesPlugin.js:72:29)
    at /Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/@module-federation/typescript/src/plugins/FederatedTypesPlugin.js:57:39
    at Hook.eval [as call] (eval at create (/Users/belfoer1/Documents/platform-ui/login/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:12:1)
    at Hook.CALL_DELEGATE [as _call] (/Users/belfoer1/Documents/platform-ui/login/node_modules/tapable/lib/Hook.js:14:14)
    at Compiler.newCompilation (/Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/webpack/lib/Compiler.js:1121:30)
    at /Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/webpack/lib/Compiler.js:1166:29
    at Hook.eval [as callAsync] (eval at create (/Users/belfoer1/Documents/platform-ui/login/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:22:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/Users/belfoer1/Documents/platform-ui/login/node_modules/tapable/lib/Hook.js:18:14)
    at Compiler.compile (/Users/belfoer1/Documents/platform-ui/login/packages/client/node_modules/webpack/lib/Compiler.js:1161:28)

```
I'm currently using webpack latest version and the version 2.2.0 of @module-federation/typescript

Note: the types gets generated properly but it does not create the remoteEntry.js file and it breaks after the generation of types.

Just found this issue, basically, module-federation/typescript was trying to generate some conflicting types found the workaround internally .
Just a note if other devs comes here having the same issue, please use the option
 infrastructureLogging: { level: 'verbose', colors: true },

for better debugging your federated modules.

@erickbelfy I'm having the same issue. Could you share what you found and how you fixed the issue? thanks

@erickbelfy I also have the same issue. Trying to set this logging doesn't help, I have no clue where I could see these logs now. Just getting the same error in the console like in the initial post here.


Updated i18next.translate(... options) Missing Parameter Type

Added parameter type to i18next.translate function based on source code from https://github.com/jamuhl/i18next/
Compiled test file successfully.

@TeamworkGuy2 Thanks mate!


Buffer size roundtrip test

Aims to resolve #8 by returning a Nan::NewBuffer instead of a Nan::New<v8::String>
This only adds the first two arguments to the Nan::NewBuffer method, which are data, and size - but there are two more options that can be added which relate to garbage collection - so we should be sure to do this properly if we can https://github.com/nodejs/nan/blob/master/doc/buffers.md#nannewbuffer - I'm just a little uncertain how to do it properly.
Separately: this would be a great addition to the node-cpp-skel examples, i.e. "return a buffer object" (similar to "ingest a buffer object" https://github.com/mapbox/node-cpp-skel/issues/67)
cc @millzpaugh @artemp

thanks @mapsam! this looks good to me, but I'll wait for @artemp to check it out before merging in.

:+1:


Packit: enable f39 targets

The target specification will become a lot simpler once f37 goes EOL.

@cfergeau @baude PTAL.

LGTM, Ill leave final to @cfergeau

/approve
/lgtm


[embedded] Fix a compiler crash when using generic classes in -O/-Osize

Honestly not sure if this is the right approach, please suggest any better solutions :)
The added testcase currently triggers a compiler crash, under -Osize (doesn't happen in -Onone):
Assertion failed: (vtable), function emitLazySpecializedClassMetadata, file GenMeta.cpp, line 5113.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
3.	While evaluating request IRGenRequest(IR Generation for module main)
4.	While emitting lazy specialized class metadata for type '_ContiguousArrayStorage<Int>'
7  swift-frontend           0x0000000107f56c90 swift::irgen::emitLazySpecializedClassMetadata(swift::irgen::IRGenModule&, swift::CanType) (.cold.4) + 0
8  swift-frontend           0x00000001031c1798 swift::irgen::emitLazySpecializedClassMetadata(swift::irgen::IRGenModule&, swift::CanType) + 656
9  swift-frontend           0x000000010314148c swift::irgen::IRGenerator::emitLazyDefinitions() + 2056
10 swift-frontend           0x000000010323bb68 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 2584

What happens is: A generic function in the module ends up using implementation of arrays from the stdlib. This functionality gets loaded (deserialized). MandatoryPerfOpts ends up not actually specializing any of it, because there is no non-generic anchor from which it would be used, and namely it doesn't specialize the vtable of _ContiguousArrayStorage. Then the performance pipeline, later, ends up inlining and specializing the implementation of arrays. This creates a reference to _ContiguousArrayStorage from some non-generic functions (!) because they are specialized (by the performance pipeline). IRGen ends up lowering those functions, and crashes when it cannot find a specialized vtable for _ContiguousArrayStorage.

@swift-ci please test

@swift-ci please test

@swift-ci please test Linux platform

@swift-ci please test Linux platform

@swift-ci please test Linux platform


splash is not rendering this page form properly

The page https://focus.pcsb.org/focus/ is supposed to look like this:

But splash is rendering the page without the form in the middle, like this:

My Lua is :
function main(splash)
                        splash: set_viewport_size(1980, 1020)
                        splash.private_mode_enabled = false
                        splash:set_user_agent(splash.args.agents)
                        assert(splash:go(splash.args.url))
                        assert(splash:wait(5))
                        return {{html = splash:html(), pic=splash:jpeg(),cookies = splash:get_cookies()}}
                    end

I am using scrapy splash plugin

same problem, have you figured this out?


Feature Ideas for Interactive Mode

Hey, my feature requests are:

Interactive Mode Options: Provide a toggle or menu option to switch between a "Read-Only" mode and a "Full Editor" experience in Interactive Mode. This would allow for quick, inline sketches or adjustments.
Persistent Interactive Mode Bounds: Ensure that any changes made to the bounds in Interactive Mode are saved persistently. When reopening a note, it should retain the previously set bounds. Already working, sorry!
Adjust height of embeds
Allow embeds for different TLPages

Thanks for considering.

Do-able, I can implement this in a future release
:grinning: no worries haha
#59 provides a section "Using <embed_size>"

For example, if you use 0x100 the height of the embed will be 100 pixels tall
Maybe this could be made easier by adding a height adjustment bar?

Do-able, future release

Thoughts?

Hi, thanks for the quick response!
Including points 1 and 4 in a future release sounds fantastic, thank you!
Apologies if I’m mistaken, but I noticed that when the embed reaches its maximum width, it doesn’t scale any further. Even though the max width is already reached, the embed should still expand in height. It would be great to have a height adjustment bar that allows real-time scaling.
Sometimes I write quite a lot, so having the option to insert a larger embed would make it easier to display the entire exercise in a clear, readable size.

Sure, here is the exported image created in tldraw as an example:

What i wish:

In this example, you can see that the height expands, making everything readable. However, it becomes too long for the screenshot. :)

How it currently looks like:

When embedding the image like this, the "embed image component" has a fixed maximum height. I can either "zoom" with the crop tool (not ideal, as I want to display everything as shown in the image) or scale it by size, as in the current example. However, in this case, some elements, such as X5, X6, etc., are cut off. If I don't scale them by size, the elements are too small to be readable. Note that both images (embeds) here have the same height.

To summarise:: What I want is for them to grow dynamically in height.

I hope that clarifies what I meant. Thank you very much!

@tobias0409
Sorry, I was busy.
Is this what you mean?
https://github.com/user-attachments/assets/880a35e7-eb7a-45b0-a7f3-df72ca67ed5e

@jon-dez Hey, this is great and exactly what I was looking for! Thanks for your work.


feat: improve multi-thread inference and fix corner case

improve multi-thread inference and resolve thread contention issue observed in studio testing.
minor bug fixes

hi @tsinggggg , can you take a look at this PR when you have some time. Thank you!

Hi Haode, thanks a lot for the fix, just wondering, would you please elaborate a bit on the thread contention issue you ran into on watson studio? thank you!

hi @tsinggggg , the resource allocated in studio is quite small. Even set the number of workers equal to the number of cpus, the inference could still get struck. There is a few improvements. 1. ping the service before actual inference to load the model 2. use executor service/futures with proper timeouts and retries


Handle Empty CodeActionKind

This PR makes sorbet-lsp supports Empty CodeActionKind.
spec: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#codeActionKind
For example, vim-lsp sends Empty CodeActionKind in only property of CodeActionContext.
code: https://github.com/prabirshrestha/vim-lsp/blob/3af8f3b38effc4a631a15bb283a4b701c251275d/autoload/lsp/ui/vim/code_action.vim#L55
Related slack thread: https://sorbet-ruby.slack.com/archives/CFT8Y4909/p1701997597443059
Motivation

Vim with vim-lsp users cannot use Sorbet's CodeAction because sorbet-lsp returns the following error message when vim-lsp requests CodeAction.
Unable to deserialize LSP request: Error deserializing JSON message: Invalid value for enum type `CodeActionKind`:

This error message looks like truncated because the error is caused by an empty string (""), which represents Empty CodeActionKind.
Test plan

I am sorry but I don't have good idea to write code to check make_lsp_types.cc follows the spec.
I would like to have some advice to do that if I need to write test in this case.

We have a policy of testing changes to Sorbet against Stripe's codebase before
merging them. I've kicked off a test run for the current PR.  When the build
finishes, I'll share with you whether or how it failed. Thanks!
Stripe employees can see the build results here:
→ https://go/builds/bui_QFZPOuqhngO0tY
→ https://go/builds/bui_QFZPLOiTrO82P4
→ https://go/builds/bui_QFZP0wSpoOazuB

@froydnj Hello! Thank you for your support!!
How is the CI situation? Do I need to do anything to advance this PR?


Add temporary call to openshift_node_groups in gce_upgrade job

This commit adds temporary code until we can modify the
release repo.

pushed *

updated and pushed to jenkins.

updated and pushed to jenkins.


about the dummy gateway

I’ve upgrade from 0.8.0 to 0.9.0, and my containers became unconnected...Finally i found that the default gateway in my container was <IP_ADDRESS>, which is changed is #51 . i am still not clear about that after reading the whole PR. Could anyone make some explanation for that? And how could i fix the whole cluster, besides rolling back to v0.8.0?

could anybody help ? @robbrockbank @djosborne

There's not a great paper trail on these changes, I don't think 51 is the actual cause of the issue, just a reaction to another change upstream. Let me explain -
Originally, Calico explicitly set the Gateway on the container's interface to be the $IP on it's Host (i.e. eth0 on the host.). @tomdee realized this was unnecessary. We can simply rely on the container sending its traffic to the default route since, on the host side, we're proxying all traffic from the container to the host anyways. Furthermore, we could set the gateway address to any value we wanted (so we chose the dummy address <IP_ADDRESS>) as long as the host accepted all traffic coming from the container. #101 was created in libcalico, and #897 was created in calico-containers.
These changes broke libnetwork-plugin, So #51 was merged to stop trying to read the assigned gateway address, and instead just use / expect the known dummy address.
This is my understanding of the problem, but since @tomdee was the main one to implement these changes, maybe he can correct me or elaborate. Time spent on a good explanation here will also help complete #66 - document use of link-local address as default gateway.

thanks for the explanation @djosborne ! but what's the meaning for on the host side, we're proxying all traffic from the container to the host anyways?
On my host, there's only
# tcpdump -i cali8206253672f -n
tcpdump: WARNING: cali8206253672f: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on cali8206253672f, link-type EN10MB (Ethernet), capture size 65535 bytes
15:10:38.691942 ARP, Request who-has <IP_ADDRESS> tell <IP_ADDRESS>, length 28
15:10:39.692471 ARP, Request who-has <IP_ADDRESS> tell <IP_ADDRESS>, length 28
15:10:40.694466 ARP, Request who-has <IP_ADDRESS> tell <IP_ADDRESS>, length 28
...

while the container ip is <IP_ADDRESS>.
Is there any other configuration or components needed, besides calico-node & calico-libnetwork-plugin ?

I should have said "forwarding", not "proxying".
After that ARP comes in, the Host does a "Proxy ARP Response" telling the container it has <IP_ADDRESS> (even though it doesn't). The container should then forward it's traffic to the host.
There are no other configurations or components needed besides those two.
If you're not seeing an ARP response sent back out that interface, proxy arp must not be functioning correctly. Probably it's going out eth0 to the host's nexthop? Worth checking if your kernel supports proxy_arp

proxy-arp is enabled by felix when it configures the caliXX interface.

i'm using CentOS 7.2 with kernel 3.10.0-327 supporting proxy_arp.
[   10.811390] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.333546] nf_conntrack version 0.5.0 (65536 buckets, 262144 max)

# cat /proc/sys/net/ipv4/conf/calif5a3af1281e/proxy_arp
1
# cat /proc/sys/net/ipv4/conf/all/proxy_arp
0
# cat /proc/sys/net/ipv4/conf/eth0/proxy_arp
0

Is the default route such as default dev eth0  scope link or route for <IP_ADDRESS>/16 necessary for this function ? Containers connected when i added it..

Yes, the host needs to think it can route to <IP_ADDRESS> over an interface other than cali* (a default route is fine).

You might want to add a dummy interface with <IP_ADDRESS> on it, for example.

thanks @matthewdupre  @djosborne ! The major thing is using default route for the out-going traffic, instead of specifying eth0 forcibly, in my understanding...
i need to add default route for my servers... :joy:


ability to use mgp

Thanks for contributing this. I don't have a sense of how popular mgp is, and so am having trouble judging the balance between simplicity and adding this feature.  We want meteor-buildpack-horse to be as simple as possible, while being useful in its default config to as many people as possible.
Can you help me get a sense of where mgp stands?  Googling I see few references from blog posts, forums, etc. showing interest and use, and the last commit to https://github.com/DispatchMe/mgp/ was in 2015.  If it's only solving things for a small number of users, I might prefer that people maintain a fork to handle it. But if it's something where we'd expect a substantial proportion of meteor users to be interested in, we might want to include it.


[WIP] Test support for Python 3.11

This is a test to see how the CI suite fares with Python 3.11

[X] I have added the tests to cover my changes.
[X] I have updated the documentation and CHANGELOG accordingly.
[X] I have read the CONTRIBUTING document.

That didn't work out as planned! Only a single Py 3.8 test is run on PRs. Oops...

    def test_deps_workflow():
        """Test the deps functionality."""

        deps_pip = DepsPip(packages=["numpy==1.23.1"])
        deps_bash = DepsBash(commands=["echo $HOME >> /tmp/deps_bash_test.txt"])

        def deps_call():
            Path("/tmp/deps_bash_test.txt").unlink()

        @ct.electron(
            call_before=[deps_pip, deps_bash],
            call_after=[DepsCall(deps_call)],
        )
        def get_deps_results():
            results = []
            with open("/tmp/deps_bash_test.txt", "r") as f:
                results.append(f.read())
            results.append(numpy.sum(numpy.identity(3)))
            return results

        @ct.lattice
        def workflow():
            return get_deps_results()

        # Dispatch the workflow
        dispatch_id = ct.dispatch(workflow)()
        res = ct.get_result(dispatch_id, wait=True)
>       assert int(res.result[1]) == 3
E       TypeError: 'NoneType' object is not subscriptable


Re-enable PDF builds for Read the Docs

Description
The SVG images generated by the sphinxext/inheritance_diagram.py extension create multiple PDFs upon LaTeX output with Sphinx's LaTeXBuilder. This PR makes them render on HTML output only, which is in-line with documentation for other projects that display inheritance diagrams for API components.
Closes #3240
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.

[ ] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[x] Bug fix (non-breaking change which fixes an issue)

Key checklist:

[x] No style issues: $ pre-commit run (or $ nox -s pre-commit) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
[x] All tests pass: $ python run-tests.py --all (or $ nox -s tests)
[x] The documentation builds: $ python run-tests.py --doctest (or $ nox -s doctests)

You can run integration tests, unit tests, and doctests together at once, using $ python run-tests.py --quick (or $ nox -s quick).
Further checks:

[x] Code is commented, particularly in hard-to-understand areas
[ ] Tests added that prove fix is effective or that feature works

I also added a few CSS improvements and removed rules we did not need (we can inherit them from the theme itself). Ready to merge now


Typescript - Call mock api with call effect

Hi,
It's my first issue ans I didn'T find a way to label it, sorry. I'm trying to call a mock API and i got this error:
error TS2345: Argument of type 'Promise<Program[]>' is not assignable to parameter of type 'CallEffectNamedFn<{ [x: string]: Func0; }, string>'.
Type 'Promise<Program[]>' is not assignable to type '{ context: { [x: string]: Func0; }; fn: string; }'.
Property 'context' is missing in type 'Promise<Program[]>'.
The version of redux-saga is: "^0.16.0"
Here the mock API:
    getAllMembersAsync() : Promise<Program[]> {
        const promise : Promise<Array<Program>> = new Promise((resolve, reject) => {
                var members : Array<Program>;

                members = ProgramsData.map((currentProgram) => {
                    var program : Program = new Program();

                    program.code = currentProgram.code;
                    program.nom = currentProgram.nom;
                    program.cours = currentProgram.cours;

                    return program;
                });

                resolve(members);
            // });
        });
        return promise;
    }

And here my saga:
import {call, put, takeLatest} from 'redux-saga/effects';
import { receivedPrograms, FetchPrograms, FETCH_PROGRAMS } from '../actions/programActions';
import { Program } from '../model/program';
import programAPI from '../api/programAPI';

function* fetchPrograms(action: FetchPrograms) {
    let programs: Array<Program>;
    programs = yield call(programAPI.getAllMembersAsync());
    yield put(receivedPrograms(programs));
}

Can someone tell my what i'm not doing correctly ?
thanks alot guys !

I have nearly zero experience with TS, but maybe you could try this:
    programs = yield call(programAPI.getAllMembersAsync);

call is responsible for actually executing ur function, so invoking it here is probably not what u were looking for.

Thanks a lot @Andarist, my nearly zero experience with TS in nearer of zero than yours.
thanks again !

I guess this can be closed then. Glad it helped :)