Viewing all findings fail

Bug description
Exception Value: __init__() got an unexpected keyword argument 'name'

This is on today's dev checkout, new image rebuilt.
For context, this is also after a dumpdata/loaddata, and this seems to be a key element (or not)?
Steps to reproduce
Steps to reproduce the behavior:

Go to Findings > All Findings
See it bomb

Environment:

Request Method: GET
Request URL: http://defectdojo-poc:8080/finding

Django Version: 2.2.1
Python Version: 3.7.3
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'polymorphic',
 'overextends',
 'django.contrib.admin',
 'django.contrib.humanize',
 'gunicorn',
 'tastypie',
 'auditlog',
 'dojo',
 'tastypie_swagger',
 'watson',
 'tagging',
 'custom_field',
 'imagekit',
 'multiselectfield',
 'rest_framework',
 'rest_framework.authtoken',
 'rest_framework_swagger',
 'dbbackup',
 'taggit_serializer',
 'django_celery_results',
 'social_django')
Installed Middleware:
['django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'dojo.middleware.LoginRequiredMiddleware',
 'dojo.middleware.TimezoneMiddleware',
 'social_django.middleware.SocialAuthExceptionMiddleware']

Traceback:

File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  115.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
  113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "./dojo/finding/views.py" in open_findings
  74.             request.GET, queryset=findings, user=request.user, pid=pid)

File "./dojo/filters.py" in __init__
  378.         self.form.fields['cwe'].choices = list(cwe.items())

File "/usr/local/lib/python3.7/site-packages/django_filters/filterset.py" in form
  258.             Form = self.get_form_class()

File "/usr/local/lib/python3.7/site-packages/django_filters/filterset.py" in get_form_class
  250.             for name, filter_ in self.filters.items()])

File "/usr/local/lib/python3.7/site-packages/django_filters/filterset.py" in <listcomp>
  250.             for name, filter_ in self.filters.items()])

File "/usr/local/lib/python3.7/site-packages/django_filters/filters.py" in field
  138.             self._field = self.field_class(label=self.label, **field_kwargs)

Exception Type: TypeError at /finding
Exception Value: __init__() got an unexpected keyword argument 'name'

Expected behavior
A clear and concise description of what you expected to happen.
Deployment method (select with an X)

[ ] Kubernetes
[x] Docker
[ ] setup.bash / legacy-setup.bash

Note that if you go through a test within an engagement, it works fine. Going to the "Findings" tab of the engagement also fails (since the call is the same as reported in the original post).

It seems that it may relate to #1289 ... the loaddata never re-import the table's data dojo_test_type.

Just tested dumpdata/loaddata from current dev branch without any issue. Dumping and loading occurred on the same branch. Just curious, are you trying to load a python2.7 dumped data file on the the python3 branch? If so, that may be the issue here.

yes, exactly the case, as i was upgrading for an instance people use for a POC on dev branch.

Thanks for the clarification. This is going to be a tough one to track down.

@madchap would it be possible to share the dumpdata file that you used? The reason I ask is because I was able to load the view all findings page using a python2.7 dumpdata file in the python3 branch.

Hey,
Unfortunately, I can't unless I redact it.

@devEricA Did you take the same datadump options?

@devEricA I could anonymize a mysql dump, if this can help. I could share it.

So this is fixed by https://github.com/DefectDojo/django-DefectDojo/pull/1405, I am closing this. Cheers!


Add JUnit Tests

Added JUnit tests for ModelManager and LogicManager

Codecov Report

Merging #61 (26a6cbb) into master (89c4dae) will increase coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master      #61      +/-   ##
============================================
+ Coverage     73.77%   73.80%   +0.03%
- Complexity      925      926       +1
============================================
  Files           136      136
  Lines          3001     3001
  Branches        421      421
============================================
+ Hits           2214     2215       +1
+ Misses          666      665       -1
  Partials        121      121

Impacted Files
Coverage Δ

...rc/main/java/seedu/address/logic/LogicManager.java
70.83% <0.00%> (+4.16%)
:arrow_up:

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 89c4dae...26a6cbb. Read the comment docs.


change license from MIT to AGPL

Hey. First of all, I need to say that the project is cool. I am willing to help it more, mostly regarding front-end.
I wanted to make an adjustement about the license. I don't know if you used MIT license by a comprehensive decision and don't wanna interfere if you are very certain about this decision. If you aren't, I would say that using AGPL would be more beneficial for the project for particular reasons:
GNU GPL licenses are copyleft licenses. With copylefted licenses, the derivatives of the work must licensed under the same license or another copyleft license.
GNU GPL set the term "copyleft" at the very beginning of free software. On free software philosophy, the important topic is user's freedom. Richard M. Stallman thought that a free software should stay free, consequently users as well.
But when we are talking about a web application, GNU GPL's copyleft can be insufficient. In GPL, you have to redistribute the source code with copies of software; but there comes a problem about web applications, because they are running on a server, not in our computers. GNU AGPL v3 was authored to solve this problem; if you run an AGPL'd software in a server (in other words if software is used over networks) you have to distribute the source code of it.
But why we need this? I'll give an example on this project. With this license; if somebody fork website-terminal and create a public Git repository, they must license their fork with the same license GPL v3 according to the conditions of it. But, if they add some extra code/features to website-terminal and create a website called terminal-website.cc or something like that, they don't have to distribute the source code. Because, they are running the software, not you.
Why does that matter? Because its better if people are aware of the core project and keep the free tradition of it. It would also attract contributors.
To resolve this problems, I strongly recommend to switch GNU AGPL v3. It will be nice.
With love,

Hello @Yutyo!
That's a valid point for usage of the given License in projects, maybe such as https://github.com/fossbarrow/swedish-ssn-validator. However, for this repository, it's kind of the wrong approach as this is more of a generic tool rather than a package that people can add to their projects.
Also, everyone is free to fork this and make their own version of it or maybe even something bigger. It's open-source afterall!


Support for creating Fusion Middleware Domain using Docker

Hi,
The dockerfiles that are provided are very useful.
We are working on ADF applications.
For our applications, we create fusion middleware domain using configuration wizard by executing "config.sh" located at "/u01/oracle/oracle_common/common/bin".
Once we create a domain, a set of libraries will be available and these libraries are needed for our application deployment and runtime.
So could you please provide us the solution for this using docker.
Thanks in advance.

You can create a domain template, and then import it using command line tools (WLST) while building the image. Since this is not really an issue, I will close it, but we may continue the conversation.

There is a push request just waiting for review for a new  FMW Infrastructure image.  One of the purposes of this  image is to extend it and deploy ADF applications.  As part of the image there are WLST scripts to create a base domain  that extends the WLS domain and applies the JRF templates.  Please use this image as an example for your work.


Invalid time period format error

Verify your email address e-mail is received correctly, but when click on validation link http://localhost:4321/verify-account/... or when try to login to using UI http://localhost:4321/api/v1/auth/login I get the error:
Invalid time period format

{
    "type": "internal_error",
    "status": 500,
    "message": "Invalid time period format",
    "errors": []
}

Container log:
TypeError: Invalid time period format
    at default (file:///app/node_modules/.pnpm/jose@5.2.4/node_modules/jose/dist/node/esm/lib/secs.js:10:15)
    at SignJWT.setExpirationTime (file:///app/node_modules/.pnpm/jose@5.2.4/node_modules/jose/dist/node/esm/jwt/produce.js:54:74)
    at createToken (file:///app/dist/server/chunks/pages/_code__Boop2Qnt.mjs:316:84)
    at handle (file:///app/dist/server/chunks/pages/login_CBh_LCiK.mjs:54:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Module.<anonymous> (file:///app/dist/server/chunks/pages/_code__Boop2Qnt.mjs:489:30)
    at async renderEndpoint (file:///app/dist/server/chunks/astro_DYxJoNmB.mjs:370:20)
    at async callMiddleware (file:///app/dist/server/entry.mjs:977:10)
    at async RenderContext.render (file:///app/dist/server/entry.mjs:1466:22)
    at async NodeApp.render (file:///app/dist/server/entry.mjs:2025:18)

Additional information:
My actual time zone is CET (UTC +2), I've tried setting TZ variable but no luck, same error.

Your JWT_EXPIRES_IN variable format should be JWT_EXPIRES_IN=31d, which means it will be valid for 31 days.


apply screen restore fix to win10_22H2_or_later

Potentially Closes #11706

This currently fails Test_popup_and_window_resize tests.
Moving to draft for now, will try and fix it later.

Hi @brammool
Just backporting the fix I did for screen restore on Windows 11, to now also work on WIndows 10 22H2.   This is a simple patch, easy to revert if it causes problems.
It does actually succeed Test_popup_and_window_resize on all Windows systems I have tried.  But this test fails in CI testing.
I can replicate the failure if I use WinPTY instead of ConPTY.   I can then resolve the issue simply by setting termwintype=conpty to bypass WinPTY even if if WinPTY is installed.
But that doesn't fix it in CI testing - it only changes the error message to a timeout error.   I wish I could work out why using the alternate screen buffer combined with WinPTY causes this particular test to fail in CI test environment, or at least why the setting termwintype=conpty doesnt solve there but it does in my environments.  So, I'm not sure how to move forward with that at the moment, and I don't know if this really is an issue, or just a quirk of the CI environment.  I don't know how to replicate that exactly.
I believe it's worth releasing anyway, because it solves real open issues.

@brammool
Problem solved by not using alternate screen buffer if vim is a guest running in a terminal buffer that is hosted by a parent vim instance.


Upgrade node version to node16

GitHub has deprecated support for node12 in actions: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
To continue using this action after Summer 2023 the version of node must be updated.

I would open a PR to do this but I'm not sure how to test the action. Would appreciate any guidance to help with that.

Did anyone found an alternative to this action?

I've needed this myself, so I created an action that uses the same approach a this one but has all the dependencies updated, using node 20.
I am not an active javascript developer, so bear with me that I use this package to scratch my own itch. If you need it too, here it is: https://github.com/pxpm/github-tag-action


ResolutionRequestStatus passes back source ref data in structured way

Feature request
Remote ResolutionRequestStatus currently only has a Data field that stores the string representation of the resolved content. It would be great to add extra structured field SourceRef into ResolutionRequestStatus whose type is the configSource that SLSA defines.
current
type ResolutionRequestStatusFields struct {
	// Data is a string representation of the resolved content
	// of the requested resource in-lined into the ResolutionRequest
	// object.
	Data string `json:"data"`
}

desired
type ResolutionRequestStatusFields struct {
	// Data is a string representation of the resolved content
	// of the requested resource in-lined into the ResolutionRequest
	// object.
	Data string `json:"data"`
        // SourceRef
        SourceRef intoto.ConfigSource
}

Use case
As discussed in https://github.com/tektoncd/pipeline/issues/5522, we need to pass the source ref information to Run status so that Chains can pick up the information and record the link back to origins in the SLSA provenance.
Currently, we are trying to do this through annotations i.e. for git resolver https://github.com/tektoncd/pipeline/pull/5397. The problem with that is annotations are not structured. This might add confusions about what those annotations are and make it hard to find how it interact with existing annotations in the Run object.

Had this discussion with @wlynch in today's S3C meeting.
@abayer  Please comment here if you have any questions/concerns. Thanks!

So there's the additional problem that we can't guarantee structured resolution source information - that's going to depend on the resolver implementation itself. We can control that for git, bundles, cluster, and hub, but not for any third-party resolvers that are written. I'm also a bit wary of using a struct because even just with those four resolvers, we've got 5+ from git (I forget off the top of my head if more are added in #5397), 3 in bundles, and 2 in cluster (hub currently doesn't have any annotations), so that would be a pretty dang big struct. It really feels like we're just going to end up approximating a map anyway.

It just needs to be structured enough that we can report back in a general way to record what was fetched in build provenance. https://github.com/in-toto/attestation#provenance-example has an example of what this should look like.
A pURL + digest identifier would do the trick. Intoto Materials seems to be the general go-to for this type of data - the schema is pretty flexible so resolvers can self-determine what the format of the pURL is + what revision types they want to support.

I'm also a bit wary of using a struct because even just with those four resolvers, we've got 5+ from git (I forget off the top of my head if more are added in #5397), 3 in bundles, and 2 in cluster (hub currently doesn't have any annotations), so that would be a pretty dang big struct. It really feels like we're just going to end up approximating a map anyway.

If we start using the structured intoto configSource, we wouldn't need to create those annotations at all. Passing the structured SourceRef from ResolutionRequest to pipeline reconciler should be sufficient, which is essentially what Chains needs for the provenance.
type ResolutionRequestStatusFields struct {
	// Data is a string representation of the resolved content
	// of the requested resource in-lined into the ResolutionRequest
	// object.
	Data string `json:"data"`
        // SourceRef
        SourceRef intoto.ConfigSource
}


PT-BR localization

brazilian portuguese localization

Thank you. Please note we handle translation through lokalise so you should consider joining our team there. See instructions.


having trouble with cert-manager

I was following this tutorial: https://www.youtube.com/watch?v=APnXlMiKBWg&list=WL&index=30&t=0s
everything works until the cert thing, the presenter was mentioning that the order of executing matters (apply the certs first THEN ingress) which I did. I keep getting errors though, I pasted below, I tried googling around but I am not familiar enough with kubernetes to navigate the issue.
Please advise :)
cert-manager % kubectl describe clusterissuer,certificate,order,challenge
Name:         letsencrypt-prod
Namespace:
Labels:       <none>
Annotations:  kubectl.kubernetes.io/last-applied-configuration:
                {"apiVersion":"certmanager.k8s.io/v1alpha1","kind":"ClusterIssuer","metadata":{"annotations":{},"name":"letsencrypt-prod"},"spec":{"acme":...
 Please upgrade to a newer version.
    Reason:                ErrRegisterACMEAccount
    Status:                False
    Type:                  Ready
Events:
  Type     Reason                Age                From          Message
  ----     ------                ----               ----          -------
  Warning  ErrVerifyACMEAccount  15m (x3 over 15m)  cert-manager  Failed to verify ACME account: acme: urn:ietf:params:acme:error:rateLimited: Your ACME client is too old. Please upgrade to a newer version.

I created a guide on Medium following this repo and other information I was able to gather, it is available here.
I hope that helps! 😄

@osamaaamer95 this blog post was really helpful

@hyusetiawan did you ever get a fix for this? I'm getting the same error


Improve error handling for Winpty

Closes #2344
I've managed to make it such that failures to spawn the shell now result in a proper error message being displayed. Turns out the winpty crate had a TODO item to plumb through the appropriate error in the Winpty::spawn method :smile:
Crashes on the Winpty backend now also display error descriptions such as SpawnCreateProcessFailed instead of the Winpty internal error codes (e.g. 2).

It only took two days for @chrisduerr to be proven right about those map methods :blush:

Thanks for the code review. I've fixed up most of what you pointed out (and run rustfmt, my bad).
Just the SpawnCreateProcessFailed error match to clean up, once I know what you'd prefer.

Added those newlines :)

https://github.com/jwilm/alacritty/issues/2016


Rest to SOAP Microservice

As a data curator I would like to be able to ingest data into the platform from SOAP interfaces.
AC:

[ ] Microservice exposes an endpoint that takes 3x parameters

WSDL URL
Action to invoke
map or list? of parameters to pass to action

[ ] service then consumes the WSDL and dynamically invokes the action and returns the response it receives

TN:

[ ] Do not need transform the data
[ ] How do we handle errors?  For this card assume happy path but write card(s) for any edge cases identified while working this
[ ] New Application
[ ] Probably written in Java

https://examples.javacodegeeks.com/enterprise-java/jws/jax-ws-dynamic-proxy-client-example/

Card 1: CICD - 3pts
Card 2: Webservice - 5pts


Script doesnt work.
I got error when running different modules.

When running the modules, i get the following error:
Traceback (most recent call last):
File "/usr/lib/python3.8/sre_parse.py", line 1039, in parse_template
this = chr(ESCAPES[this][1])
KeyError: '\s'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scylla.py", line 41, in
import pythonwhois
File "/usr/local/lib/python3.8/dist-packages/pythonwhois/init.py", line 1, in
from . import net, parse
File "/usr/local/lib/python3.8/dist-packages/pythonwhois/parse.py", line 363, in
registrant_regexes = [preprocess_regex(regex) for regex in registrant_regexes]
File "/usr/local/lib/python3.8/dist-packages/pythonwhois/parse.py", line 363, in
registrant_regexes = [preprocess_regex(regex) for regex in registrant_regexes]
File "/usr/local/lib/python3.8/dist-packages/pythonwhois/parse.py", line 205, in preprocess_regex
regex = re.sub(r"\s*(?P<([^>]+)>.+)", r"\s*(?P<\1>\S.*)", regex)
File "/usr/lib/python3.8/re.py", line 210, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/lib/python3.8/re.py", line 327, in _subx
template = _compile_repl(template, pattern)
File "/usr/lib/python3.8/re.py", line 318, in _compile_repl
return sre_parse.parse_template(repl, pattern)
File "/usr/lib/python3.8/sre_parse.py", line 1042, in parse_template
raise s.error('bad escape %s' % this, len(this))
re.error: bad escape \s at position 0

This is an error with pythonwhois library
I did this
Give a # before import pythonwhois
And make the WHOIS function a docstring
It worked for me, but this tool will be "WHOIS deficient"😂


[1.3] Upgrade puppeteer

Description

Upgraded puppeteer to 13.7.0
Changed timeout to 300000

Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #488 (4345653) into 1.3 (1dfa5aa) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##                1.3     #488   +/-   ##
=========================================
  Coverage     74.35%   74.35%
  Complexity      383      383
=========================================
  Files            94       94
  Lines          3969     3969
  Branches        612      612
=========================================
  Hits           2951     2951
  Misses          884      884
  Partials        134      134

Flag
Coverage Δ

dashboards-reports
77.06% <100.00%> (ø)

reports-scheduler
71.83% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...r/routes/utils/visual_report/visualReportHelper.ts
80.37% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Strange podping activity

The following observations were not rare, and so if you watch the activity over a couple of minutes, you will likely be able to observe similar examples.
While watching the podping stream, I saw the newsradio1620 appear multiple times in succession. More strange, the URL takes me to a castos login page, and so should probably not have been broadcast via podping:
http://newsradio1620.com/feed/podcast
http://newsradio1620.com/feed/podcast
http://newsradio1620.com/feed/podcast
https://blackcollegenines.com/feed/podcast/
http://newsradio1620.com/feed/podcast
https://khilafah.news/ur/?feed=podcast/
http://newsradio1620.com/feed/podcast
http://newsradio1620.com/feed/podcast

All pings by heliumradio.com point to invalid XML documents which are actually 2 XML documents concatenated together:
https://heliumradio.com/feed/podcast/benja-welldone-comedy-show/

media.rss.com pings seem to be a bit spammy, for example, with the following URL being pinged 56 times over a couple of minutes (possibly suggesting a bug in rss.com):
https://media.rss.com/outofthedryingpan/feed.xml

Each time a ping occurs, you might also get a sort of Slashdot effect with all podcast apps trying to download the same feed at the same time, and this would be amplified if the ping-er is sending many duplicate pings for the same feed.
Perhaps this suggests some appropriate usage guidelines that pingers should agree to when joining the network (don't spam redundant events, ping only valid feeds), and appropriate usage guidelines for ping watchers so that they buffer pings and schedule the fetch for a bit later, adding a bit of a diffusion effect. E.g. a ping watcher might want to buffer up the pings for the same host and then send a batch request to that host when the buffer is full, or when the buffer has been stagnant.

@ryan-lp thanks for pointing that out. We recently removed email addresses all from all our RSS feeds. Prior to proceeding with that mass RSS feed update, we spoke with @daveajones and we decided to temporarily disabled podping. It is possible, however, that a few Podping requests were sent anyway (e.g. by old k8s pods that were still active at the time of the change). It occurs to me that this could be an artifact produced by that mass update.
In any case, spammy and spam are not the most appropriate labels, given that we are all striving to innovate in the same industry and we are all on the same boat rowing in the same direction. This is rather a matter of defining guidelines and best practices.
In the absence of official guidelines (to the best of my knowledge), our implementation of Podping at RSS.com is extremely simple: each time we re-generate an RSS feed, we call Podping. So in your example, if we did update a given RSS Feed 56 times in a couple of minutes (it's not common, but there are a few reasons why this could have happened), then we called Podping 56 times.
If we want to implement rate limiters or more sophisticated rules, we can do that. But we need to define criteria and best practices first.
For instance, when last week we disabled Podping before a mass update over 24k RSS feeds that we host, we proactively reached out to Dave as a "courtesy" to align and to avoid sending too many requests. But, theoretically speaking, shouldn't have we pinged podping 24k times instead? After all, we really updated those RSS feeds.
Good points though. Probably we need better guidelines for the "pingers" and "ping watchers".
The only drawback I can see in making the implementation more complex is that this would add a bit more friction to the adoption of podping for new joiners.

If 24k RSS feeds are updated, then I think it makes perfect sense to send 24k pings because the ping watchers will inevitably need to reflect all of those changes. It is only a question of whether you want to spread those pings out over time to avoid a Slashdot effect hitting back at your own server. So if there are 100 ping watchers, 24k pings will soon be followed by 2.4 million requests to your server, all of which are ultimately necessary, but you would have the power to spread those out if you needed to spread the load over time.
But as for the 56x pings for same feed over 2 minutes, this is definitely worth optimising because each ping will trigger the entire feed processing pipeline for 100 ping watchers (using the example number I gave earlier), which can in some cases constitute significantly more load than the pinger itself. If ping watchers would know in advance that there were going to be 56x pings of the exact same feed URL over the next 2 minutes, we might prefer to just wait for the final ping, and then do our processing pipeline once. But the watchers can't really know that in advance. So if the pinger does know that it is about to ping the same URL 56 times over the next 2 minutes, say as part of some sort of collective update operation, we might be able to imagine a guideline for how best to go about that. Perhaps something along these lines:
AVOID:
for each episode in feed:
    modify(episode)
    ping(feed)

GOOD:
for each episode feed:
    modify(episode)

ping(feed)

(P.S. I meant spam in the Monty Python sense, or simply repeatedly broadcasting the same message multiple times in a row. You are right, we're rowing in the same direction, so my apologies for any negative connotations arising from that choice of word.)

The system can cope with a mass pinging of a large block, in fact, it is more efficient if you can send a batch of pings at once. Dave's part of the system podping.cloud will batch these and as a result will send out fewer podpings with many IRIs (up to around 130) and this is more efficient. Additionally, Podping.cloud will de-duplicate everything it receives (I'm not sure exactly on what time frame Dave does the aggregation.
The hivewriter software works in line with Hive's 3s blocks so even though that will de-duplicate, in practice, it doesn't seem much duplication in under 3s.
BTW here's an example of that in production: https://hive.ausbit.dev/tx/78ba9473715003597b4bf10ce52bd62225225e48 Buzzsprout batch up their changes and this single podping carried 178, the current world champion podping!
3speak recently pinged all their (smaller number) of feeds and nobody but me noticed though this goes through a be-spoke system which I operate (not podping.cloud).
Sometimes I think podcast creators actually do make multiple edits of a feed correcting typos and stuff over the course of a few minutes, 56 is on the high end but the whole system seems to work.

It's ok to call it spam if it is in the Monty Python sense ;)
We checked the logs for the RSS feed we host that you mentioned in your message above. It was not updated 56 times, but actually 90 times in a time span of 36 minutes (between 3.50AM and 4.26AM UTC) and not 2 minutes. The person in question was fine tuning their podcast description by adding and removing information and each time they were saving the description thus triggering an update of the RSS feed, with a consequent podping. Each update of the feed sends a podping task to our queue system that is typically executed within 1 second. When you say that podping received all these requests in a couple of minutes how many minutes exactly? It should be 36 ballpark.
Perhaps we can introduce a buffer logic to group changes and delay calling podping, but it would be great to decide together which criteria this logic should follow so everyone implements it the same way. If other hosting companies implemented podping like us, then a podcaster editing 96 times their podcast description would trigger 96 feed updates and 96 podping requests. It would be great to compare notes with others on how they approach this.

I'm getting these from the back end database of Pingslurp which records all the podpings.
Started:
2023-02-19T02:52:54.000+00:00
and ended them
2023-02-19T03:28:54.000+00:00
And I think it was around 74 pings. :-)
I think those are UTCs but I'm not going to quibble over an hour, seems to match up with yours.
Hive can handle this, there might well be some utility to delaying pings a little, especially for feed updates where timing isn't super critical.

A suggestion for an algorithm (as a starting point) that might work for everyone...
On a change of an RSS feed...
Has there been another change to this feed in the last five minutes?
NO: then podping it!
YES: then...

If it is an addition or deletion of an audio file, podping it!
If it is a metadata change, schedule a podping for 5 minutes time. No matter how many changes happen in the next five minutes, ensure that only one podping is sent.

This should mean that new episodes publish immediately, but otherwise changes occur within five minutes, and podpings are not made more often than five minutes (except for new/changed metadata).
OR
Podping consumers (directories) might just run a simple queue that does the same sort of thing - watches for frequently updated feeds and puts them in a queue for single updates. (Harder this time to know if it's a new episode though).
The podping system is certainly capable of rapid frequent updates; but many downstream services may not be. I think it's easily fixed with a sensible algorithm. Podnews doesn't use podping (for a variety of reasons) and scaling concerns are certainly a factor here.
Either way, it's a good problem to have!

I think we can close this issue @daveajones but I am keeping an eye on this.

@jamescridland 's algorithm is essentially "debounce" with this additional idea of having "high priority" feed changes that bypass the debounce mechanism and go straight through immediately.
I think this could be handled by the podping protocol if we have a "priority" field in the message.
As hinted above, requiring every host to implement this might not be realistic, so there will still be some hosts that will ping the same URL frequently, and this will inevitably motivate the consumers downstream to defensively implement a similar sort of algorithm to debounce the stream of pings. But without knowing the priority, they won't be able to handle that special case where a high priority change is pinged (e.g. adding a new audio file).
If messages had priorities, this algorithm could be handled either defensively by the consumers or automatically by the podping itself.


update(networking): compile boringtun from a fixed version of the souce code

Signed-off-by: Aldo Lacuku<EMAIL_ADDRESS>
Description
The boringtun application seems to be heavily under developement. In order to avoid breaking liqo-gateway we choose to use a fixed version of boringtun source code instead of the master branch.
Fixes #(issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

[x] Manually tested that boringtun v0.4.0 supports all the flags used by the wireguard driver.

/test

/merge


Caesar test

Added Cipher Caesar test code

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@e98d086). Click here to learn what that means.
 Consider uploading reports for the commit 1c63c93 to get more accurate results

Additional details and impacted files
@@           Coverage Diff            @@
##             master      #1   +/-   ##
========================================
  Coverage          ?   0.00%
========================================
  Files             ?     411
  Lines             ?   14542
  Branches          ?    2713
========================================
  Hits              ?       0
  Misses            ?   14542
  Partials          ?       0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


Searching for null

A query like db.find({ selector: { day: null } }) doesn't work: (TypeError: Cannot use 'in' operator to search for '$ne' in null(…)), whereas a query like db.find({ selector: { day: { $eq: null } } }) does!
Is this because of the Cloudant query API?  I quickly glanced at the docs and see anything.
Thanks for the library!  I started trying to do it myself (coming from Meteor), and was relieved to find this.

It seems there are other problems with null.
var db = new PouchDB("test");
db.createIndex({ index: { fields: ["field1"] } });
db.createIndex({ index: { field: ["field2"] } });
db.post({ field1: null, field2: null });
db.find({ selector: { field1: null } }); // fails as described in previous post
db.find({ selector: { field1: { $eq: null } } }).then((res) => console.log(res)); // OK, returns 1 doc
db.find({ selector: { field2: { $eq: null } } }).then((res) => console.log(res)); // OK, returns 1 doc
db.find({ selector: { field1: { $eq: null }, field2: { $eq: null } } }).then((res) => console.log(res)); // WRONG, returns empty array

Those look like bugs. Thanks for reporting. If you could create some
failing tests in the test suite that would be really helpful.
On Sun, Mar 27, 2016 at 7:35 PM, froatsnook<EMAIL_ADDRESS>wrote:

It seems there are other problems with null.
var db = new PouchDB("test");db.createIndex({ index: { fields: ["field1"] } });db.createIndex({ index: { field: ["field2"] } });db.post({ field1: null, field2: null });db.find({ selector: { field1: null } }); // fails as described in previous postdb.find({ selector: { field1: { $eq: null } } }).then((res) => console.log(res)); // OK, returns 1 docdb.find({ selector: { field2: { $eq: null } } }).then((res) => console.log(res)); // OK, returns 1 docdb.find({ selector: { field1: { $eq: null }, field2: { $eq: null } } }).then((res) => console.log(res)); // WRONG, returns empty array
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/nolanlawson/pouchdb-find/issues/169#issuecomment-202110739

This issue was moved to pouchdb/pouchdb#6270


[RHODS-1.33] CVE 44487: Upgrade ubi package libnghttp2 to fix http2 cve

CVE 44487: Upgrade ubi package libnghttp2 to fix http2 cve
Based on the update:

https://catalog.redhat.com/software/containers/ubi9/python-39/61a61032bfd4a5234d59629e?architecture=amd64&image=65301f5a53a51a886582fba1&container-tabs=security
https://catalog.redhat.com/software/containers/ubi8/python-38/5dde9cacbed8bd164a0af24a?architecture=amd64&image=64cab6d204b5b858e24f2f62
as the ubi8 doesn't have fix, using dnf to update the packages.

Merging for the backporting.
Thanks.


Drop building ReactiveSwift in 3.X modes

Pull Request Description
Removes the configuration to build ReactiveSwift in a few Swift 3 modes.
Project already has a current 4.0 hash.

@swift-ci test


Add support for running commands before playing the project from the editor

When using GDNative, it is often desired to compile the attached library (or libraries) before starting up the project (e.g. by pressing F5 in the editor).
Adding support for defining one or several commands to run before playing the project will make using GDNative more convenient (and there would be less risk to forget recompiling the library, thus wondering why things don't work as expected).
However, should the commands be stored in the editor, or in the project, considering that some of the user-defined commands may not work in a cross-platform manner (which is a bad thing for collaborative projects)?

Godot has feature tags that could be used to store appropriate command per platform

Maybe what you want is something like EditorNode's build callback to be exposed to scripts?

This could be done by assigning an script instead.
This way we can call the external script any way we want, for example by calling an executable or by connecting to a server, etc.
Instead of having to press F5 it could also be done automatically on resource change, this way the file resource can be provided to the script.

Closing in favor of https://github.com/godotengine/godot-proposals/issues/119, as feature proposals are now tracked in the Godot proposals repository.

FYI: This is actually what EditorPlugin::build() is for, iirc. Every EditorPlugin's build() function is called when the editor tries to run a scene. All of them have to return true or else the editor stops running the scene prematurely. This allows you to create an EditorPlugin to run GDNative build commands and the like. I expect to make this a more integrated component of my godotengine/godot-proposals#119 implementation.


Search for multiple lines

Hi! First of all, thanks for such an amazing plugin. I use it everyday for refactoring and it's simply saving lots of time for me.
The question is: can i search for more then 1 line in Scan or Search? Let's say i want to search for these 2 tags in my project
 $screen-xs: 400px
 $screen-sm: 767px
Is it possible to do with narrow?
Thanks!

Both scan and search support regExp search option.
Enable regExp search by clicking button on control-bar then search $screen-(xs|sm).

Thank you! It makes sense. Closing


Josh/bump version

No code change. Just a version bump to indicate it's ours react-scripts 3.1.2 is 3.1.22 here

Sorry guys; meant to PR our forked version :grimacing:


commander calibration routines initialize everything

Most of this is just being paranoid and even borderline unnecessary, but there were a couple cases of possibly uninitialized variables being used (tc_locked for example).

TODO: recalibrate everything on v5 with stackcheck


TN-529 followup fixes

followup fixes to this story:
https://jira.movember.com/browse/TN-529
fix printing display issues

more fixes coming, closing this for now


Could not find type 'SpyNote_V6._4.SN.ThemeTabControl

Could not find type 'SpyNote_V6._4.SN.ThemeTabControl'. Please make sure that  the assembly that contains this type is referenced.
Could not find type 'SpyNote_V6._4.SN.ThemeTabControl'. Please make sure that  the assembly that contains this type is referenced.

Could not find type 'SpyNote_V6._4.SN.ThemeTabControl'. Please make sure that  the assembly that contains this type is referenced.

why thhis occer ??


bug-fix/pre commit hook

Description of Changes

Enables user to commit to gh-pages branch locally
Renames valid branch prefix bugfix to bug-fix to align with pr title naming conventions

Checklist

[x] Your code builds clean without any errors or warnings

will separate bugfix label change into a separate pr


401 - Unauthorized

Another Update
Have managed to get rid of the console errors by using this line:
function config(adalProvider, $httpProvider, $locationProvider) {
$locationProvider.html5Mode(true).hashPrefix('!');
...
}
Still not able to call Web API endpoint.
Started a bounty on this at : http://stackoverflow.com/questions/32352325/adal-js-does-not-get-tokens-for-external-api-endpoint-resource
End Update
Update
OK more info
The token for the web API service is not getting populated in localStorage.
** refer to second attachment **
This seems to be related to this issue: https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/42
** refer to third attachment **
I have been noticing similar errors in the developer console which seems to be preventing the service token from being fetched, but the worrying thing is, the above question has been open for almost a year.
End Update
Followed all instructions diligently as per below.

Was working when on localhost but does not work when deployed to 2 separate domains:

shailenclient.azurewebsites.net and shailenservice.azurewebsites.net

WORKS if I remove [Authorize] and leave [EnableCors(origins: "", headers: "", methods: "*")] on the controller
I am pretty sure that it is related to config but cannot figure out what..
If I leave [Authorize] on the controller, I get this message:
"Authorization has been denied for this request"
Fiddler shows that the bearer token is forwarded in the Request header & it passed pre-flight check
(See screenshot)
[Bearer eyJ0eXA....]
Client
web.config, ida:tenant set correctly (check). [tenant].onmicrosoft.com
ida:Audience set to [client id] of client app (check) - '99e60913-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
Azure AD: configured permission to Shailen Service.
JAVASCRIPT
app.js
var endpoints = {
"https://shailenservice.azurewebsites.net/": // service url
"https://[tenant].onmicrosoft.com/Shailen.Service",
};
adalProvider.init(
{
instance: 'https://login.microsoftonline.com/',
tenant: '[tenant].onmicrosoft.com',
clientId: '99e60913-xxxx-xxxx-xxxx-xxxxxxxxxxxx', // client app id
extraQueryParameter: 'nux=1',
endpoints: endpoints,
cacheLocation: 'localStorage'
},
$httpProvider
);
SERVICE
web.config,
ida:tenant set correctly (check). [tenant].onmicrosoft.com
ida:Audience set to audience of service app (check) : https://[tenant].onmicrosoft.com/Shailen.Service
CORS:
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
config.EnableCors();
..}
Controller
[Authorize]
[EnableCors(origins: "", headers: "", methods: "*")]
public class ValuesController : ApiController
{ .. }
[startup.auth.cs]
app.UseWindowsAzureActiveDirectoryBearerAuthentication(
new WindowsAzureActiveDirectoryBearerAuthenticationOptions
{
Tenant = ConfigurationManager.AppSettings["ida:Tenant"],
TokenValidationParameters = new TokenValidationParameters {
ValidAudience = ConfigurationManager.AppSettings["ida:Audience"]
},
AuthenticationMode = AuthenticationMode.Passive
});
Note: For both client and service, ensured that "Enable Organization Authentication" is unchecked when publishing application as I have set it up manually.

SOLVED IT!
Small but annoying error on the controller in the WEB API service..
//[System.Web.Http.Authorize]
[System.Web.Mvc.Authorize]

This issue us still pending.. closed by mistake

@shailensukul Which version of adal are you using? From the images, it seems that the token that you got for https://shailenclient.azurewebsites.net is getting attached to the requests that are being sent to https://shailenservice,azurewebsites.net. Do you receive any error message in the 401 response?

@tushargupta51 - thanks for answering.
The token for https://shailenclient.azurewebsites.net is being sent with request (see screenshot)

However, the token for the service is still not being fetched (see screenshot below). I have tried specifying both the service App Id and client Id in the endpoints, but both are not returning a token.

I also noticed a few things missing between the instructions and the code:

EnableCors is missing in the code but mentioned in the instructions. I have added it to my controller in my sample

Some other issue mentioned removing extraQueryParameter: 'nux=1', but some other post mentioned adding extraQueryParameter: 'domain_hint=sharepointclouddesign.com'. Tried both.

Overall, my experiences have prompted me to rethink the quality of this sample, as the code seems to be slightly off from the instructions. But I will keep trying..

Has this been resolved? I am having the exact same issue and it is very frustrating that a Microsoft provided sample does not work following the provided directions.

I also really need an update on this. @shailensukul did you ever get this working?
I have a node.js hosted angularjs SPA gated with adal that I'm trying to call an MVC Web API also gated by AAD. When I remove the [Authorize] tag on the REST endpoint the call works fine and brings back the JSON object. As soon as I add in the Authorize tag, even though all permissions have been configured properly in Azure, angular and the web api, I get an unauthorized error.
Really need to get this working.

I'm running into a similar issue when using AdalJS without Angular. So far I've not found how I should specify the endpoint I need to get a token with aud parameter for my Web API.
I've got it working for an Angular sample application, but I've not succeeded trying to port that to a non-Angular SPA application.
The aud parameter is my SPA application's application ID, and my API returns 401 Unauthorized.

Hi there, did anyone of you get this working. I have exactly the same problem and it seems like even when the AAD token is requested using the endpoints array or the loginResource, the decrypted token aud is always the client id, which does not match the audience for the web api service and therefore gets a 401.
I have asked a stack overflow question around the issue
http://stackoverflow.com/questions/42648737/angular-2-spa-azure-active-directory-jwt-issue

I'm also having the original issue where I am getting an empty token back for the API with no error to try to track down.

Why is my access token empty?
@jscanlon77 It sounds like it's just using your apps id_token from the login to send to the service. I think the code defaults to using the client id (and id_token) if it can't match the request in the endpoints. Make sure that config is correct:
var endpoints = {
    "api/ToGoList": "https://<tenant>.onmicrosoft.com/api/ToGo"

//if a request contains "api/ToGoList", obtain and use the token for that API app
};

Is this problem solved ? Is there a specific way to configure adal angular,From SPA we are trying to reach endpoint which is hosted behind APIM. our configuration is similar to the original post.
I am also not clear on what "enpoints" is doing actually. No matter what i put in the endpoints token is not being passed downstrem

@skundojjala My issue is resolved - I don't recall specifically but I think it was configuration related. Endpoints is used for when you need to make a call to a different domain and acquire a different token than the one your main app is using. For instance, if you had another API that someone else managed that required a token with a different audience, the endpoint allows adal to automatically detect requests to that domain and silently request a token for those (beware user consent conditions when silently obtaining tokens). In general if you are just communicating with your SPA api you likely don't even need to configure the endpoints.

I had the same problem. In endpoints I had put APP URI ID, replaced it with App ID.
var endpoints = {
    // Map the location of a request to an API to a the identifier of the associated resource
    "https://localhost:44327/": "<Application ID>" // Not APP URI ID
 };

using app uri works for me.


add moneroTs default export

This PR adds moneroTs default export so that the module can be imported as:
import moneroTs from "monero-ts";
Resolves #146
For additional comments and details see #163

It's working great. Thanks very much for your help.


Place fish prompt in /etc/fish/functions/fish_prompt.fish to allow us…

…er override
The fish prompt is currently placed in /etc/fish/conf.d/fish_prompt.fish. Normally, fish_prompt.fish is expected to contain an function and is put in a functions directory, either /etc/fish/functions by default, or overridden by a user in ~/.config/fish/function. Fish will then autoload the function when it's needed.
I'm not 100% sure of the specific load order, but it seems like having the function fish_prompt in /etc/fish/conf.d/fish_prompt.fish means that a user's custom fish_prompt.fish is never loaded. This can be confirmed by removing /etc/fish/functions/fish_prompt.fish and seeing your custom fish_prompt.fish loaded as expected.

Meant to open on microsoft repo 😅  https://github.com/microsoft/vscode-dev-containers/pull/821

Re-opening in case this is the fork we are deploying from 😅

This is upstream now.


TypeScript support

Greetings,
I was wondering if there are any plans to release TypeScript definition files.
I am working on a project that exclusively uses TypeScript and keycharm was pulled in as a dependency of one of my dependencies. This is causing my TypeScript compiler to be a little bit complainy about keycharm not having any typings.
While it's trivial to work around my issue, it might actually also be interesting to just add TypeScript definitions to this project. If you are short on time, I can give it a shot over the course of the next weeks and open a PR afterwards.
Let me know your thoughts and plans on this subject matter.
Kind regards,
M.

Hi Alex,
thank you for the swift response. I will try to have a look at it in the coming weeks if I can and nobody else gets it done first. :)
M.

Given that the definition are on master, could someone publish this to npm?

I have pushed 0.3.1 to npm


Attach a disk to existing scale set not working

I have followed the steps to attach a disk to existing scale set, but nothing appears within the VM in disk management. I have also tried to add a data disk in the GUI and everytime I save and navigate to another page in the portal the disk disappears. Do you know if this a bug or am I missing something?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5cb1e138-0384-cc19-845d-06d22beebb0c
Version Independent ID: 36e9235f-7962-ec76-fee2-495f04c74e31
Content: Tutorial - Create and use disks for scale sets with Azure PowerShell - Azure Virtual Machine Scale Sets
Content Source: articles/virtual-machine-scale-sets/tutorial-use-disks-powershell.md
Service: virtual-machine-scale-sets
GitHub Login: @cynthn
Microsoft Alias: cynthn

@eveningit Thanks for the comment. We are actively investigating on the issue and will get back to you shortly with an update.

@eveningit I tried reproducing the issue, I followed the tutorial and I am able to see the disks in the disk management (below screenshot for reference).
Since this channel is for driving improvements towards MS Docs, because this isn't feedback about the documentation, I will proceed to close this issue.
However, I would recommend to try this one more time and if you are still run into the same issue then this may needs a deeper investigation and troubleshooting. Can you please raise a support ticket?
Please tag me if you don't have a support plan. I can help you with one time free support to get assistance on this issue.


Sign commits & releases (tags)

You should consider signing git commits & releases.

onionshare#221 (comment)
It is also displayed on GitHub: https://github.com/blog/2144-gpg-signature-verification
Here is GitHub's help for this: https://help.github.com/articles/generating-a-gpg-key/
And here is how you can sign releases: https://wiki.debian.org/Creating signed GitHub releases

The v1.3.2 tag, .tar.gz file and .zip file are signed with my personal GPG key (fingerprint D2B4 98F5 C237 5320 1BC7  A020 808A 6AE4 B9B4 4894, available at https://www.grahamedgecombe.com/gpe.asc or via pgp.mit.edu). Future releases/tags will also be signed with this key.


Refactor CMD to reflect cobra defaults

Refactors the cmd / cli folder to use the standard cobra templates (via
cobra init and cobra new. Cleans this up so it's much cleaner.
Also changes pkg/opencomposition.go to avoid using cobra / viper in
it's code (completely separate it from everywhere else).

LGTM! Thanks for the clean up!


[feature] Pass cli args via a configuration file

Describe your idea:
Hello! It would be nice to pass cli arguments to jadx via a config file instead of flags. jadx-gui already has the ability to copy existing settings to the clipboard. I think this function can be used to create config files for jadx-cli. What do you think?

@Fi5t thanks for bringing up this topic. There are several implementations and issues:
Now jadx-cli already support "@ syntax" from jcommander library, so it is possible to store cli flags in file.
Example with usage notes:
-v
# split option and value
-d
out-jadx-tmp
# remove quotes for string values
--rename-flags
none

classes.dex

and use like:
jadx @config

It is possible to implement generation of this file in jadx-gui to export settings. But taking into account that there are other options stored in jadx project file like renames (#1341) and comments, maybe it will better just support jadx project file in jadx-cli. Main issue in that approach that jadx-gui uses 2 configs: project and global settings, so looks like export for jadx-cli will needed anyway.
So in short: we need to implement import of jadx project file with embedded global settings into jadx-cli and add export of such file in jadx-gui.
P.S this will also help to resolve #534 (support excluded packages in jadx-cli)


Save MailPieces created during cache process to the database

As a developer, I want the MailPiece objects created during the cache process to be saved to the database.
Acceptance Criteria

MailPieces created during the cache process are saved to the database.
Document any relevant content in the Programmer guide (draft thoughts of usage and importantly the "Why")
Updates SRS and STP (and other docs if necessary)
Add/Update relevant unit tests

tested on iPad

Verified - Test PASS


Can it be produced in batches?

Great project!!!
Can it be produced in batches? The whole project, or all methods in a class?
I did not find documentation for the relevant function.

Hey, we haven't built functionality like this yet! You still need to manually run the extension on each code snippet you want to document.

@tobias-mintlify Do you know when you will have this functionality?
I think this would be far better.
Can then run it on CI/CD pipeline, for big codebases this is a must have feature.

We are not planning on building this functionality because we're too busy on other projects. Feel free to open a PR contributing to the repo!


[fix] Allowing raw request body when Content-Type is already specified

Currently, when you use the -d option twurl calls request.set_form_data which URL encodes the request body and overrides any previously set Content-Type value by forcibly setting it to application/x-www-form-urlencoded.
https://github.com/twitter/twurl/blob/master/lib/twurl/oauth_client.rb#L112
Example without Modification (Unexpected Behavior):
twurl -t -X POST -A "Content-Type: application/json" "/1.1/some/endpoint" -d '{ "foo": "bar" }'

opening connection to api.twitter.com:443...
opened
starting SSL for api.twitter.com:443...
SSL established
<- "POST /1.1/some/endpoint HTTP/1.1\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: OAuth gem v0.4.7\r\nAuthorization: OAuth oauth_consumer_key=\"OIDntXZULiYrCzSBq23BQ\", oauth_nonce=\"oYU432ViX4OSSBLyWvThQ7jvxor5j84kN2Xy75SHDw\", oauth_signature=\"8v%2B4YEeV8gItbM100oyzFV5NwoU%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1433577823\", oauth_token=\"15678855-Q9DtXWXni83LwkqPcUl3dBkhtr9VgHu02nLKueKMI\", oauth_version=\"1.0\"\r\nConnection: close\r\nHost: api.twitter.com\r\nContent-Length: 30\r\n\r\n"
<- "%7B+%22foo%22%3A+%22bar%22+%7D"

This behavior prevents users from ever being able to send a request with Content-Type: application/json and a JSON payload in the request body.
The change I'm making here is simple, non-breaking and preserves the default behavior while allowing the expected behavior you'd see in curl for the scenario described. If the request has Content-Type set to any value, we set request.body to the raw value of options.data and leave the content header untouched.
Example with Modification (Expected Behavior):
twurl -t -X POST -A "Content-Type: application/json" "/1.1/some/endpoint" -d '{ "foo": "bar" }'

opening connection to api.twitter.com:443...
opened
starting SSL for api.twitter.com:443...
SSL established
<- "POST /1.1/some/endpoint HTTP/1.1\r\nContent-Type: application/json\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: OAuth gem v0.4.7\r\nAuthorization: OAuth oauth_body_hash=\"Tj2XHfH2CojbvcRl2SoNiHqmQgM%3D\", oauth_consumer_key=\"OIDntXZULiYrCzSBq23BQ\", oauth_nonce=\"Kq6NBzJqGI5afVJVEbvOxMG9VuqeLcctiaSsQkDX2Q\", oauth_signature=\"a%2BGF7v4ZdUH%2FYk0f0gsKoL3b%2BAo%3D\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1433578200\", oauth_token=\"15678855-Q9DtXWXni83LwkqPcUl3dBkhtr9VgHu02nLKueKMI\", oauth_version=\"1.0\"\r\nConnection: close\r\nHost: api.twitter.com\r\nContent-Length: 16\r\n\r\n"
<- "{ \"foo\": \"bar\" }"

Would you mind adding a test for this?

@sferik done. apologies for not including that from the get go.

No need to apologize. Thanks for the patch!

Just my own guilt ;-) Thanks Erik.

@sferik got a few people asking when this fix will be released. Ads API in particular has a new feature launching this week which twurl won't work with unless this fix is present.
Do you have an ETA on when we'll be cutting a new gem? I hate to ask for a release just for this, but I also don't see much else in motion on here at the moment.

@sferik Ping.

Hey. Thanks for the ping. I was on vacation last week. I’ll try to get to this later today. I’ll also add you as a gem owner so you can push releases yourself in the future.

:shipit:

Thanks a bunch @sferik!


Exclude react-dom in webpack config and build/

Reduces minified JS size from ~150kB to 18kB by excluding react-dom from the output

👍 cheers @gavinmillar

(will be tidying up and getting a new bundle published today)

Have released this with v0.9.0. Thanks!
Release diff: https://github.com/chrisui/react-hotkeys/compare/v0.8.0...v0.9.0?expand=1
Feel free to grab the new build bundle from the repo.


Remove circular import when dask-expr enabled

Reload dask.dataframe on ImportError

[x] Closes https://github.com/dask-contrib/dask-expr/issues/706
[x] Tests added / passed
[x] Passes pre-commit run --all-files

Edit, woops, duplicate of https://github.com/dask/dask/pull/10822

thx @milesgranger


Using expression

Is it possible to use functions like coalesce? For example I want the build number to be based on the PR number, unless it was run manually, then it should use the date. Something like name: $[coalesce(system.pullRequest.pullRequestNumber, Build.SourceBranchName)].$(Rev:r)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a57f8545-bb15-3a71-1876-3a9ec1a59b93
Version Independent ID: 28c87c8d-c28d-7493-0c7c-8c38b04fbcd7
Content: Run (build) number - Azure Pipelines
Content Source: docs/pipelines/process/run-number.md
Product: devops
Technology: devops-cicd
GitHub Login: @juliakm
Microsoft Alias: jukullam

@Jon889  Thank you for the question.
The coalesce function under functions is supported unless you are not including a literal expression at the end of the parameter sequence or the pullRequestNumber is being evaluated to something other than a given value or the empty string/null value.
Please see https://github.com/Microsoft/azure-pipelines-agent/issues/1751 onr some of the caveats for using coalesce and comment below if any of this applies.

I was finally able to get my use case working by setting some variables to a string, then coalesce to either choose the macro value or keep the string null so it'll collapse correctly:
variables:
  ${{ if eq( variables['build.reason'], 'PullRequest' ) }}:
    date: ''
  ${{ if ne( variables['build.reason'], 'PullRequest' ) }}:
    date: ${{ '$(Date:yyyyMMdd)' }}

name: ${{ coalesce( variables['date'], '$(System.PullRequest.PullRequestNumber)', 'Yet another fallback value' ) }}$(Rev:.r)

Hope this helps


[#3378] aggregate agent's dataSource to show application's dataSource

Codecov Report

Merging #3453 into master will decrease coverage by <.01%.
The diff coverage is 25%.

@@            Coverage Diff             @@
##           master    #3453      +/-   ##
==========================================
- Coverage   40.41%   40.41%   -0.01%
==========================================
  Files        2156     2156
  Lines       70587    70590       +3
  Branches     9753     9754       +1
==========================================
  Hits        28531    28531
- Misses      39318    39322       +4
+ Partials     2738     2737       -1

Impacted Files
Coverage Δ

...web/service/stat/ApplicationDataSourceService.java
45.16% <0%> (-4.84%)
:arrow_down:

...vo/stat/chart/ApplicationDataSourceChartGroup.java
71.42% <50%> (ø)
:arrow_up:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
79.02% <0%> (-1.05%)
:arrow_down:

.../com/navercorp/pinpoint/profiler/context/Span.java
50% <0%> (+1.72%)
:arrow_up:

...ofiler/sender/StandbySpanStreamDataSendWorker.java
83.58% <0%> (+2.98%)
:arrow_up:

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 cf04b97...f84abaa. Read the comment docs.


Improper cache hits for some components in v7

Describe the bug
In certain circumstances, calls to cell-decorated functions are getting cached by gdsfactory when they should not be, leading to unexpected behavior.
To Reproduce
I'm using gdsfactory 7.9.4 and Anaconda Python 3.11.7.
Below is some minimal example code showing the unexpected behavior. This script should make some rectangles of varying sizes on layer 1, add them to some holder component, then generate copies of the same rectangles on layer 2 by calling an additional function. However, running the code just produces identical layer-two copies as whatever the first function call returns.
import numpy as np
import gdsfactory as gf
from gdsfactory.component_layout import Polygon

@gf.cell
def doSomething(inputc):
    return gf.components.rectangle(size=(10, inputc.ysize), layer=(2,0))

main = gf.Component()
width = np.arange(1,5,0.5)

for i,w in enumerate(width):
    holder = gf.Component('tmp',with_uuid=True)

    #some polygon with variable dimensions
    c = gf.components.rectangle(size=(10, w),layer=(1,0))
    cref = holder << c
    cref.y = i*10

    print('component name: %s'%holder.name)
    offsetcomp = doSomething(holder)
    ocref = main << offsetcomp
    ocref.y = cref.y

    main.add_ref(holder)

main.write_gds('output.gds')

Screenshot of resulting gds. Only a single "doSomething" cell shows in the tree.

Expected behavior
As different components with different identifiers are getting passed on each call to the function, I would expect the function to execute every time rather than using a cached result. The output gds should have identical rectangles on layers 1 and 2.

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."

Sorry, closing because I see a later v7 release already fixed this.


fix: await handling stream errors + try/catch

Description

Handles an edge case where handling the stream error might itself throw
Also ensures we await the handling of stream errors

Closing this one because it feels like an edge case and hard to replicate


Omnisharp Stdio.Host fail, Quick Fix unavaliable (can we change the used SDK version?)

Issue Description
This issue seems to happen after .Net SDK 5.0 installed by Visual Studio.
[fail]: OmniSharp.Stdio.Host (cf. OmniSharp Log for detail)
Steps to Reproduce
Create a new folder.
dotnet new console
Open folder with Visual Studio Code
Open Program.cs
No quick fix avaliable.
Expected Behavior
Intellisence work normally: Quick fix is avaliable for errors, warnings and infos.
Actual Behavior
For all errors, warnings and infos, there is no quick fix avaliable. Ctrl+. or cursor on and choose quick fix do not work.
Logs
OmniSharp log

Starting OmniSharp server at 27.12.2020, 09:50:54
    Target: f:\repos\JWI2020\RUNDE2\Aufgabe1
OmniSharp server started.
Path: c:\Users\wangc.vscode\extensions\ms-dotnettools.csharp-1.23.8.omnisharp\1.37.5\OmniSharp.exe
PID: 14884
    Starting OmniSharp on Windows 6.2.9200.0 (x64)

    DotNetPath set to dotnet

    Located 2 MSBuild instance(s)
        1: Visual Studio Community 2019 16.8.30804.86 - "D:\VS2019\MSBuild\Current\Bin"
        2: StandAlone 16.8.0 - "c:\Users\wangc\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.5\.msbuild\Current\Bin"

    Registered MSBuild instance: Visual Studio Community 2019 16.8.30804.86 - "D:\VS2019\MSBuild\Current\Bin"

    Detecting Cake files in 'f:\repos\JWI2020\RUNDE2\Aufgabe1'.

    Could not find any Cake files

    No solution files found in 'f:\repos\JWI2020\RUNDE2\Aufgabe1'

    Queue project update for 'f:\repos\JWI2020\RUNDE2\Aufgabe1\Aufgabe1.csproj'

    Detecting CSX files in 'f:\repos\JWI2020\RUNDE2\Aufgabe1'.

    Could not find any CSX files

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0

    Loading project: f:\repos\JWI2020\RUNDE2\Aufgabe1\Aufgabe1.csproj

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140

    Configuration finished.

    Omnisharp server running using Stdio at location 'f:\repos\JWI2020\RUNDE2\Aufgabe1' on host 19220.

    Successfully loaded project file 'f:\repos\JWI2020\RUNDE2\Aufgabe1\Aufgabe1.csproj'.

    Adding project 'f:\repos\JWI2020\RUNDE2\Aufgabe1\Aufgabe1.csproj'

    Update project: Aufgabe1

    Solution initialized -> queue all documents for code analysis. Initial document count: 4.

    ************  Response ************

{
"Request_seq": 6,
"Command": "/v2/highlight",
"Running": true,
"Success": false,
"Message": ""System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: line
at Microsoft.CodeAnalysis.Text.LinePosition..ctor(Int32 line, Int32 character)
at OmniSharp.Roslyn.CSharp.Services.SemanticHighlight.SemanticHighlightService.d__1.MoveNext() in D:\\a\\1\\s\\src\\OmniSharp.Roslyn.CSharp\\Services\\SemanticHighlight\\SemanticHighlightService.cs:line 36
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OmniSharp.Endpoint.EndpointHandler2.<GetFirstNotEmptyResponseFromHandlers>d__19.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at OmniSharp.Endpoint.EndpointHandler2.d__20.MoveNext() in D:\\a\\1\\s\\src\\OmniSharp.Host\\Endpoint\\EndpointHandler.cs:line 230
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OmniSharp.Endpoint.EndpointHandler2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",   "Body": null,   "Seq": 33,   "Type": "response" } [fail]: OmniSharp.Stdio.Host         ************  Response ************  {   "Request_seq": 13,   "Command": "/v2/highlight",   "Running": true,   "Success": false,   "Message": "\"System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: line    at Microsoft.CodeAnalysis.Text.LinePosition..ctor(Int32 line, Int32 character)    at OmniSharp.Roslyn.CSharp.Services.SemanticHighlight.SemanticHighlightService.<Handle>d__1.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\SemanticHighlight\\\\SemanticHighlightService.cs:line 36 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at OmniSharp.Endpoint.EndpointHandler2.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OmniSharp.Endpoint.EndpointHandler2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 230 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at OmniSharp.Endpoint.EndpointHandler2.d__16.MoveNext() in D:\\a\\1\\s\\src\\OmniSharp.Host\\Endpoint\\EndpointHandler.cs:line 131
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OmniSharp.Stdio.Host.d__13.MoveNext() in D:\\a\\1\\s\\src\\OmniSharp.Stdio\\Host.cs:line 215"",
"Body": null,
"Seq": 42,
"Type": "response"
}

C# log
dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.404
 Commit:    470f6754b3
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.19041
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\3.1.404\
Host (useful for support):
Version: 5.0.1
Commit:  b02e13abab
.NET SDKs installed:
3.1.404 [C:\Program Files\dotnet\sdk]
5.0.101 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Environment information
VSCode version: 1.52.1
C# Extension: 1.23.8
Dotnet Information
.NET SDK (reflecting any global.json):
 Version:   5.0.101
 Commit:    d05174dc5a
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.19041
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\5.0.101\
Host (useful for support):
Version: 5.0.1
Commit:  b02e13abab
.NET SDKs installed:
3.1.404 [C:\Program Files\dotnet\sdk]
5.0.101 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

csharp
ms-dotnettools
1.23.8

element-ui-snippets
SS
0.7.2

java
redhat
0.73.0

JavaScriptSnippets
xabikos
1.8.0

jupyter
ms-toolsai
2020.12.414227025

LiveServer
ritwickdey
5.6.1

nodejs-extension-pack
waderyan
0.1.9

npm-intellisense
christian-kohler
1.3.1

path-intellisense
christian-kohler
2.3.0

python
ms-python
2020.12.424452561

search-node-modules
jasonnutter
1.3.0

vetur
octref
0.31.3

vscode-csharp-snippets
jorgeserrano
1.1.0

vscode-css-formatter
aeschli
1.0.1

vscode-eslint
dbaeumer
2.1.14

vscode-java-debug
vscjava
0.30.0

vscode-java-dependency
vscjava
0.16.0

vscode-java-pack
vscjava
0.12.1

vscode-java-test
vscjava
0.26.1

vscode-maven
vscjava
0.27.0

vscode-npm-script
eg2
0.3.13

vscode-todo-parser
minhthai
1.9.1

vscode-userscript
adpyke
1.3.2

vscode-yaml
redhat
0.13.0

vscodeintellicode
VisualStudioExptTeam
1.2.10

vue-snippets
hollowtree
1.0.4

xml
DotJoshJohnson
2.5.1

Seems similar with #4317 , but I am not using Unity. Instead, I am only working on .Net Core.

The error that you are seeing is only related to semantic highlighting and is a known problem, but doesn't affect code actions or intellisense. could you provide more information on what do you expect to see (e.g. which quick fix, in which place in the code specifically)?

Thanks for the quick response.
Every quick fix is not avaliable. I discovered this yesterday and tried to reinstall, etc.
The above information comes from today... Which points out another problem - highlighting.
Here the error information from yesterday:

{
  "Request_seq": 633,
  "Command": "/findusages",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Unexpected null
   at Roslyn.Utilities.Contract.Fail(String message)
   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol(ISymbol symbol)
   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.d__2.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\Navigation\\\\FindUsagesService.cs:line 41
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at OmniSharp.Endpoint.EndpointHandler`2.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at OmniSharp.Endpoint.EndpointHandler`2.d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 227
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at OmniSharp.Endpoint.EndpointHandler`2.d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at OmniSharp.Stdio.Host.d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",
  "Body": null,
  "Seq": 699,
  "Type": "response"
}

I am currently trying to entirely deinstall the addIn and remove the folder manually and then reinstall it. I'll let you know if there's any success.

You can try the following. If you create omnisharp.json at the root of your workspace with the following setting
{
   "msbuild": {
       "useBundledOnly": true
   }
}

it will force OmniSharp to use the bundled MSBuild instead of discovering the one from VS 2019 that you have installed. Perhaps it will help.

After entirely reinstalling the VS Code and the Addin and adding this .json file, the problem concerning Quick Fix seems disappeared.
For now, I will close this issue. However, if this problem reoccurs later, I will open it again.
The highlighting issue is not fixed.
Thank you for your help and have a good day.


Users/jasholl/extract files2

This task will extract files to a specified output location. On Windows, 7zip is used, and is bundled with the task, so no further setup is required by the user.

The user enters a search string which is comprised of relative or absolute paths, or minimatch file patterns in a multiline pattern (each line delimits a search pattern).
The user then enters an output location, again either relative, or absolute as to where the archives are to be extracted.
The task will parse the input search string, and fully resolve them (in the case of relative paths, the repository root is used) in the case of files, or in the case of search parameters, will fully resolve the root directory to search under (this is why the path.isAbsolute() is required).  The results from each search are then added to a set (to prune duplicate matches) (this is why the new node collections dependency is required).
Next, the files are extracted.  On Windows 7zip is used for all extraction.  In the case of tars, they are first decompressed into a temporary location (derived from the output folder), and then expanded, and finally, the temporary location is cleaned up.  On Linux & mac, files are matched using standard file name patterns, and native tar is used for tars, and unzips are used for zips, and 7zip is used for everything else.
The entire task is single threaded due to the I/O nature of it.

Hi @jasholl, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Jason Sholl). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

Don't checkin binaries in git.  We're adding a build option in the next couple of days to pull from http at build time and package.  (similar how we pull tee into agent build)

Bryan,
Thanks for the feedback, I have addressed all your concerns.

One question - the file match patterns. Task lib has find and match functions.  I want consistent patterns from user pattern entry and that is minimatch

Bryan,
Yes this code does use the task library's find and match calls and uses minimatch.  Most of the code in the findFiles() method is actually around giving the user meaningful error messages.


Update fuzzers to use polkadot-sdk v1.1.0

Update dependencies to use the polkadot-sdk monorepo, version 1.1.0.

statemine-fuzzer still needs some work, right now it panics on setting validation data for a second block, with
'no space left for the block in the unincluded segment', $HOME/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/f60318f/cumulus/pallets/parachain-system/src/lib.rs:1274:9


feature level transcriptomics tab

it is missing total number of comparisons.

filter works only after clicking twice.

https://www.patricbrc.org/portal/portal/patric/TranscriptomicsGeneExp?cType=feature&cId=PATRIC.83332.12.NC_000962.CDS.1010313.1011734.fwd&sampleId=&colId=&log_ratio=&zscore=
https://www.beta.patricbrc.org/view/Feature/PATRIC.83332.12.NC_000962.CDS.1010313.1011734.fwd#view_tab=transcriptomics

The total count is at the table tab.

The filter should work after clicking once now. The fix will be available in the next build.

fixed. verified on beta.


PasteOrUpload component refactoring and storybook entry

Type

[ ] Bug fix
[ ] New feature
[x] Improvement to existing feature

Related JIRA Issue(s)
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-357
Importance
2019 - Sprint 5 - Data Review
Description

Moved PasteOrUpload to shared -> components

Views affected

CustomDownlods -> Filters -> Limit By Gene ID
Storybook -> Shared Components -> PasteOrUpload

Other effects

[ ] I have checked any requirements for Google Analytics
[x] I have created any required tests
[ ] The PR has as its final commit a WASM/JS update commit if any Rust files were updated.

Is this PasteOrUpload component reappearing in any application other than CustomDownload? Do we know what its behaviour will be?
For example, I am a bit surprised that this component "does not display the textarea by default" (why?). I also suspect that reading file contents and immediately filling the textarea with it may be too specific a behaviour (as may be incorrect to be called upload).

It is not reappearing anywhere at the moment. However, it will appear on other places in the future as we have more apps to be added like tools, for example. The current behaviour seems to work as expected, provided the limited backed we have.

"does not display the textarea by default"
If we display the textarea by default, it will be same as having a Textarea component and the option to upload a file will not be visible to the user.

To my understanding, upload would mean that there is an option to select a file form the local disk. I wouldn't be worried too much about what happens to the file after selecting. I am happy to reword it if we can come up with a meaningful name.

That's true. We need an Upload component as well.  I would prefer to create JIRA tickets for these two components and leave PasteOrUpload in the shared folder just so it gets more attention to be improvised in future. We already have many components that are only used in Custom Downloads but placed in the shared folder.

We already have many components that are only used in Custom Downloads but placed in the shared folder.

We have the Accordion shared component that is used only in Custom Download, but is sufficiently generic. We have the Checkbox shared component that is used only in Custom Download, but is sufficiently generic. ENSWBSITES-357 could have been accomplished by creating the Textarea shared component and using it in Custom Download's PasteOrUpload. If instead you propose to take PasteOrUpload out of Custom Download, I have no objections to that, but I do not understand why not do it properly.
I don't think there is much more I can say about this PR, and I understand that this conversation is itself distracting and time-consuming. If you prefer to treat PasteOrUpload as a very temporary component that generates subsequent tasks for its refactoring, then merge it; if you'd rather do it properly from the beginning, then don't.

Okay, I will put this task on hold and get back to it once I complete the other CD tasks. I might be able to find some time to work on Textarea and Upload components later on.


[Bug] 指定sequence_col的类型为时间的默认值是CURRENT_TIMESTAMP，insert 失败

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
1.2/master
What's Wrong?
sequence列使用CURRENT_TIMESTAMP在fe没做处理，导致insert失败。
CREATE TABLE order_info (
project_id BIGINT NOT NULL ,
consume_date DATETIMEV2 NOT NULL,
order_id BIGINT NOT NULL ,
combo_extend JSONB DEFAULT NULL,
age INT ,
name varchar(20),
write_time DATETIME DEFAULT CURRENT_TIMESTAMP
) UNIQUE KEY(project_id, consume_date,order_id)
DISTRIBUTED BY HASH(project_id) BUCKETS 1
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"enable_unique_key_merge_on_write" = "true",
"function_column.sequence_col" = 'write_time'
);
INSERT INTO
test.order_info_4 (
order_id,
project_id,
consume_date,
age,
name
)
VALUES
(
1231234356,
370040365,
'2023-01-12',
NULL,
NULL
);

What You Expected?
intert成功
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I will take this task，please assign me，thk！


Improve save bar

Issue
NA
Description

Fix: display info message only in update mode
Doc: add some documentation around its modes and usages

Gravitee.io Automatic Deployment
A prerelease version of this package has been published! 🚀
To use it in your project run the following lines:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

Gravitee.io Automatic Deployment
📚 View the storybook of this branch here

:tada: This PR is included in version 1.3.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add player logging

Context

Currently the game does not announce when players join or leave nor is it logged

Choices

Adding in logging as a background task

Test instructions

Start a server
Verify it logs it you leaving and joining in docker
With players in game test with others joining
Test multiple players joining within the same polling period
Delete player data, create a new players with any name that may break it (Spaces, commas, numbers, etc)

Output will look like
palworld-server  | Dashboy1998 has joined
palworld-server  | Broadcasted: Dashboy1998_has_joined
palworld-server  | Dashboy1998 has left
palworld-server  | Broadcasted: Dashboy1998_has_left

If #425 has been merged then the output will be
palworld-server  | Broadcasted: Dashboy1998_has_joined
palworld-server  | Broadcasted: Dashboy1998_has_left

Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I've added documentation about this change to the README.
[x] I've not introduced breaking changes.

nice work!


Fix issue 1163

Fixes #1163

Hmm... why can't you handle it the same way CPython references are handled in the object mode version? I'm not sure I understand why you decref the objects every time the generator is suspended.

My bad.  I was too confused on making a fix quickly that I forgot I was working around something weird.  The nrt references are acquired at each reentry to the generator.  And, they need to be cleaned up.  I am not sure where it acquiring occurred.

I think I know what is going on now.


Docs builds are broken

Currently docs are not building because the watch option to the mkdocstrings plugin in mkdocs.yml is no longer recognised.

Fixed in #122


Update README

verify external links, remove/update as needed
proofread
node section - update version(s) in use
remove "Tools That I Do Not Use"

Remove MAMP. Use XAMPP instead.

Add Google Chrome & Chrome Dev. Tools

Updates and Corrections:

http://htmlshell.com/ - change link to toptal and note that it has changed
TOC->Node does not point to the heading

update version list
correct content text, there are some wordos and typos

Update the "Database Managers" section:

versions
links

complete.


Split User.elm to separate files

#102

Looks good. I've added a few comments which are not related to the PR, that just popped up

@amitaibu Done.


Sunny/unwrapped axelar

@sunnya97 Do we want this changed for all the wrapped Assets (not just BNB)?
Not sure how tricky it might be to update in all languages....

Yeah I was just testing things out.  Was a bit more complicated than expected.  Will probably just punt this and wait for proper unwrapped support


Apriori using mlxtend on symptom dataset

import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from mlxtend.frequent_patterns import apriori, association_rules
df= pd.read_csv('D:/MSc_UofM/Data Mining/Project/DataSets/symptoms.tsv',delimiter="\t", header=None)
df.head()
show unique symptoms
items = (df[0].unique())
pre-proess to apply apriori
encoded_vals = []
for index, row in df.iterrows():
labels = {}
uncommons = list(set(items) - set(row))
commons = list(set(items).intersection(row))
for uc in uncommons:
labels[uc] = 0
for com in commons:
labels[com] = 1
encoded_vals.append(labels)
encoded_vals[0]
ohe_df = pd.DataFrame(encoded_vals)
apply apriori with MinSup 0.0045
freq_items = apriori(ohe_df, min_support=0.0045, use_colnames=True, verbose=1)
find association rules
rules = association_rules(freq_items, metric="confidence", min_threshold=0.2)
plot supprort Vs Confidence
plt.scatter(rules['support'], rules['confidence'], alpha=0.5)
plt.xlabel('support')
plt.ylabel('confidence')
plt.title('Support vs Confidence')
plt.show()
plot supprort Vs Lift
plt.scatter(rules['support'], rules['lift'], alpha=0.5)
plt.xlabel('support')
plt.ylabel('lift')
plt.title('Support vs Lift')
plt.show()
plot lift Vs Confidence
fit = np.polyfit(rules['lift'], rules['confidence'], 1)
fit_fn = np.poly1d(fit)
plt.plot(rules['lift'], rules['confidence'], 'yo', rules['lift'],
fit_fn(rules['lift']))
Frequest Item sets

Generated Rules

Support Vs Confidence

Support Vs lift

lift Vs Confidence

Implementation of Apriori  using 'mlxtend' Library and all outputs


build: update to TypeScript 4.7 final

Bumps up to TypeScript 4.7 for our own build as well as any newly-created apps.

RC-specific PR in #23223.


proposal --file-reporter [name] [output file]

Hi,
I would like to propose a new feature, while the current reporter is outputting to the console,
I would like another reporter or maybe set or reports to be outputting to file.
For each file reporter a output file name and the report to use must be specified.
Then an additional option of how the file should be open, in append mode or freshly create a new file.
What we would like to do, is have moch run our test and see the output to the screen, but at the same time have a back ground process interpret the output at the same time. This would allow us to have our functionality feel more integrated.
Ideally the file output would be interpret the test file output and in our case produce a list of tests that failed with a certain criteria. This list would then potentially in our case be used as regular expression used used as input into our next test run.
The motivation is that we have a dynamically configuration application, were if certain configuration is missing, then the operator doesn't have for what ever good reason and money, security, the ability to run those test in his environment. As a developer, we would like to run all the other tests for which their is configuration available, however, like to be pain less and little work.
We don't want to ahve to hoist and provide summaries of configuration dependancies for tests, that are already deep down in modules or even have to categorised the tests, extra. All of this would require man power attempting to keep config and test categorisation in sync, which is a tedious task and can be automated.
As of current the idea is to dump the output run to file and loose our cli display so that we can cache these tests that don't have permission or config to run. Then any future runs of test environment will be much faster, as we just skip the test instead of all the overhead of starting it up in the first place.
Mabye at a later stage, this could be improved that one can skip tests based on a file path and a relative call stack., which would also leaned itself to a much more efficient lookup algorithm speeding up the process at a later stage of the game.
Please let me know you thoughts, so I can potentially look at moving forward with and implementation.

 Personally, I desire a simpler --output <file> option (with stdout as its default) and have the reporter autoselect its output stream based on its environment (file/stdout for CLI, console.log for browser).
However, your motivation paragraph makes your argument sound somewhat off-putting -- you don't want to keep your config and tests in sync. Write/run a capabilities function in your test startup (beforeAll), then write a gestalt-like function run in each test (before) to determine whether to continue or skip. Don't believe your concept of skipping future runs by analyzing past runs works since system capabilities can change outside your control.
Or did I misunderstand you?

Tree would be perfect as long one want the same report output format to screen and file... :-)
Could be a compromise and a start for now for minimal viability.
Imagination having alot of test that exercise code, then code that is being exercise, sprinkled all over the place checks a config file for properties if they exist or not then uses then,basically check a json structure in mem for property. This can be improved, depends weather it is end to end testing or not. The idea we have had is that.. Is that when configuration is missing, then throw certain new Guid Error.  We would then check a first run of our test for this GUID, knowing that these test are missing configuration. For reasons, that this developer many not have access rights to retrieve or use that configuration for that code. So instead of having to now continually have to categorize our tests to main list of who can run what at a code level and which test at which levels, which is a big task. It simpler to just relying on weather he was permitted to get certain configuration or not, if doesn't have configuration for those tests, then they won't run locally and have be run when process by a build CI process.
Their is a single point the configuration file, at which we can control everything from for a permissions and security basis. Our configuration file would basically be encrypted on the server and different sections with different encryption, one would require the correct encryption key to decrypt the configuration file for the settings you require after assume that role with you current amazon account. The server will then only return the section, to which your encryption key has granted you access to decrypt, which still be transmitted to you over an encryption, that will then be decrypted on your local machine directly into some secure memory area.

Per #5027, we don't plan on any new major features. This is implementable in userland with a custom reporter.
If the community ends up loving the idea and embracing a third party reporter that does it, we can consider adding this to core.
Cheers!