Add Drupal 11 project support

Problem
You cannot create a new Drupal 11 project:
$ ddev config --docroot=web --project-type=drupal11
apptype must be one of backdrop, craftcms, drupal10, drupal6, drupal7, drupal8, drupal9, laravel, magento, magento2, php, shopware6, typo3, wordpress

Solution

Unify Drupal 8+ under a drupal project type, following the recommended PHP version for the current release (Drupal 10 and PHP 8.1)

OR

Add Drupal 11 as a project type option, requiring a minimum PHP version of 8.2.

Describe alternatives
Use Drupal 10 config.
Additional context
No response

Drupal 11 is really 10.2, so this task can wait, see Clarify that current version 11 is 10.2.

I'd really like to just change drupal8+ to "drupal"

Yes, that would simplify things. There are different PHP requirements though ... Databases are more straightforward, only PostgreSQL with D9/10+ and D10/12+ differ.
With a single drupal config for Drupal 8/9/10/11, the default PHP could follow the current official release, currently Drupal 10 on PHP 8.1.
Then, the individual DDEV project can always bump up or down the PHP version. Also, drupal6could stay as a config option, but not get exposed as an option after running ddev config?
With Drupal 11 added
Project Type [backdrop, craftcms, drupal11, drupal6, drupal7, drupal8, drupal9, drupal10, laravel, magento, magento2, php, shopware6, typo3, wordpress]
Less config options:
Drupal 8/9/10/11 unified, drupal6 not shown
Project Type [backdrop, craftcms, drupal, drupal7, laravel, magento, magento2, php, shopware6, typo3, wordpress]
What do you think?

use project type drupal10 and then ddev composer create drupal/recommended-project:^11@dev it will install drupal 11 on local.
ddev config --project-type=drupal10 --docroot=web --create-docroot
ddev start
ddev composer create drupal/recommended-project:^11@dev
ddev composer require drush/drush
ddev drush site:install --account-name=admin --account-pass=admin -y
ddev drush uli
ddev launch

Thanks, but I know that the drupal10 type works.

referring to @gitressa 's comment with the comparison between d11 added and drupal 8/9/10/11 unified (is there a way here on github to refer to comment with something like a comment number like in the d.o issue queue to make the referral more explicit? )
the first option Drupal 11 added has the downside that drupal  occupies 6 out of 15 available options. on the plus side that way things are explicit and it is possible to have specific php and database settings for the drupal version in question. not sure to what degree settings differ in between major versions.
the second option Drupal 8/9/10/11 unified, drupal6 not shown. i am not sure if it is a good idea hiding drupal6. for one there are still quite a few sites that need to be migrated to drupal 9+ and people might have the need to have a drupal 6 site locally and removing the drupal6 option would take away that convenience. plus from a usability perspective having only the option drupal and drupal7 would make me think. what does drupal refer to?
there might be a third option. i am not sure if it would be an over complication of things but would it make sense to add another configuration step to ddev config instead? that each cms has  a single option for the project type step. and in case the cms has several different sub types like drupal has, have another step after setting the project type where the user is able to choose in between the different available version numbers? that way the general project type list would be concise in case one of the options has more than a single sub option. but i am uncertain if drupal alone would justify introducing another configuration step?

I usually copy the date link and use that. But yes, a number would be nice :)

i am not sure if it is a good idea hiding drupal6. for one there are still quite a few sites that need to be migrated to drupal 9+ and people might have the need to have a drupal 6 site locally and removing the drupal6 option would take away that convenience

I get your point, but from my perspective, out of the many, many Drupal projects being started every day, a very small fraction is Drupal 6. And this minority can probably quickly verify that DDEV supports D6 by searching for "Drupal 6 DDEV", and after that use --project-type=drupal6.
About the granular config method, I like to keep things simple (I just discovered ddev config --auto, yay!) and adding another step doesn't sound too appealing ...

And this minority can probably quickly verify that DDEV supports D6 by searching for "Drupal 6 DDEV", and after that use --project-type=drupal6.

FWIW, Drupal 6 was end of life 2016-02-24. My vote would be to remove it from the list but keep the "project-type" code untouched. The quickstart guides can show it's available.

The reason we keep things like drupal6 around is so people can rescue unmaintained websites. For example, we still have support for PHP 5.6, MySQL 5.5, MariaDB 5.5, all incredibly old and gone, but they're super valuable to folks who inherit an unmaintained site.
Your point that it could be removed from ddev config --project-type is valid though, but to date, almost anything that is supported in config.yaml has an equivalent representation in ddev config.

I agree, and never suggested removal of drupal6, so removing Drupal 6 configuration is not up for debate:

Also, drupal6 could stay as a config option, but not get exposed as an option after running ddev config?

I do understand that up until now, all available projects were listed. But the list is ballooning, and I think slimming down the options would be an improvement.

Thanks!

Removed from v1.23 milestone, but please let us know when D11 starts to get explicit usage, and we'll add it in, probably with project type 'drupal'.

i was just curious tonight and created a drupal11 project type locally and ran make. work out well.
one thought about having a single project type drupal. having just drupalcovering 8+ might be problematic. the minimum php version as well the settings.php file differs across versions. not sure if that would work out well. for people on the latest version no problem at all but for those trying to set up a drupal 8 or 9 site for migrations it might have some surprises ready.
but how about use drupalfor all supported versions of drupal 8+ which is equal to drupal 10 and 11. that way it might work and all the discontinued versions could have dedicated project types (drupal6, drupal7, drupal8, drupal9)

That makes sense @rpkoller, something like this?
drupal = For Drupal 10 and Drupal 11, until their PHP/DB requirements diverge.
Keep drupal6, drupal7, drupal8, drupal9, drupal10 as options, but only show drupal7 and drupal after running ddev config:
Project Type [backdrop, craftcms, django4, drupal, drupal7, laravel, magento, magento2, php, python, shopware6, silverstripe, typo3, wordpress] (php):

Keep drupal6, drupal7, drupal8, drupal9, drupal10 as options, but only show drupal7 and drupal after running ddev config:
i am not sure if i would keep the drupal10 project type. that would be inconsistent having drupal and drupal10where drupalcovers version 10 and 11. if drupaland drupal7 would be the way forward i would only provide a dedicated project types that are not supported anymore and discontinued.

and how about something like:
ddev config:
Project Type [backdrop, craftcms, django4, drupal, drupal7, laravel, magento, magento2, php, python, shopware6, silverstripe, typo3, wordpress] (php):
ddev config --all
Project Project Type [backdrop, craftcms, django4, drupal, drupal 6, drupal7, , drupal8, drupal9, laravel, magento, magento2, php, python, shopware6, silverstripe, typo3, wordpress] (php):
that the --all flag shows all the deprecated legacy project types? and when ddev configis run an informal line could be added right before the list of available project types that by enteringddev config --all` (or however it is called) you could get all the additional legacy project types could be listed?

Sure, let's wait with drupal10, until its requirements diverges from Drupal 11. And great idea with the --all parameter.

Drupal 11 will be released in mid-June, late July or early December 2024.

https://www.drupal.org/project/drupal/issues/3265677
Perhaps drupal can be an option at some point, since Drupal 11 support will soon be relevant?

Saw those timelines go by, thanks. That's a pretty wide swath of time. I wasn't convinced that that announcement helped any of us!
I will put this on the "right after v1.23.0" milestone. Thanks for watching it!

or would it make sense to have a two step process. create a drupal 11 project type just now ( i've already built a version locally a few weeks back, it should be easy to reproduce and I could create a PR for) and do the suggestion distinguishing supported (ddev config) and discontinued  versions (for example ddev config --all) in a follow up to reduce the sheer number of in particular different drupal versions you see on every execution of ddev config?

Since modern Drupal (8+) are composer-based projects, I wonder if DDEV could read the version from composer.json and set PHP and DB version appropriately?

A minor difficulty here is that unless people explicitly set the php version and database version to match the variant of Drupal, we can't really detect it. In our normal workflows people do a ddev config before they do a ddev composer create. We've used the project type at ddev config time to detect the proper requirements for the project type.
One way around this is basically how every other CMS is set up... Just use the current highest version's defaults.

I would really appreciate if all you Drupal 11 folk could test and review https://github.com/ddev/ddev/pull/5991#issuecomment-2008555360


Can't access subpages in github.io

When you are visiting the https://marcoshuck.github.io/typescript-express-firestore/ page, it shows you a 404 error every time you access to a subpage.

This issue was fixed changing typedoc mode from modules to file.


Add SecKeyOperationType and SecKeyIsAlgorithmSupported

Greetings! I've got a rustls resolver implementation that uses the included code to ensure an algorithm is supported and thought I'd upstream these definitions to you.
I don't have a toy-example handy; let me know what it would take to demonstrate this code is solid and get it included.
Thanks for your project!

Thanks


Expression window creates a syntax error (slashes in var name)

I used the insert variable button and it gave me mesh_topo/color, but then the parser complains it is invalid. This seems like a bug to me.
For context, this data is from a blueprint mesh.

I made a mistake. This is not an issue.


ParameterMap can't handle string parameters

When adding a string parameter like
$params->add(new \com\zoho\crm\api\Param('fields'), 'id,Last_Name,Email');

get_class($value) in line 70 throws an \Error on PHP 8, but code catches \Exception. Should catch \Throwable.

@law909 Please try the sample code provided below.
$paramInstance->add(new \com\zoho\crm\api\Param('fields',"String"), 'id,Last_Name,Email');
Please forward any SDK-related queries to<EMAIL_ADDRESS>and we'll take things forward.


Expose since for events/requests through code

As far as I can tell, the since information in protocol definitions is only used for generating documentation.
It would be nice if there was a way to get it through code in order to write more readable code, i.e. only resize and request set_buffer_scale if supported by the compositor.

Right now, the since information is only exposed in the associated constant MESSAGES of the MessageGroup implementation of the Event/Request enums. This is clearly not very ergonomic, indeed.
Not sure what would be the best way to expose it. A set of constants like EVENT_{NAME}_SINCE in the module of the interface, maybe?


Draft update for 18Q1.

There may be additional revisions before we deploy but this
is good to merge.

Bump the version number.
Add @dhidas 'oscars' package to the standard 'analysis' env.
Also add 'dask' and 'distributed'.

Looks good to me.


Add Pydantic to PyPI classifers

I think it would be good to add Framework :: Pydantic to PyPI's list of classifers, there are lots of other frameworks listed there with much less use (both by dependants count and download count) than Pydantic.
Anyone know what the process is for this?
Should we just add one classifier, or multiple? I guess just one is fine.

Seems we have to add it to https://github.com/pypa/trove-classifiers/
we can have one classifier per version like Django. for example:

Framework :: Pydantic :: 1.10
Framework :: Pydantic :: 2
Framework :: Pydantic :: 2.0

Great, I think just major versions.

Sure. I will take care of this

Amazing, please at me in an issue or pr.

Here is the PR https://github.com/pypa/trove-classifiers/pull/127

Closing this as the PR got merged!


GH-36939: [C++][Parquet] Boolean encoding has inconsistent implemention

Rationale for this change

This is from a bug in boolean encoding. Boolean will introduce bad length when writing arrow data.
What changes are included in this PR?

Change sink_.Advance to advance the real payload
Are these changes tested?

Yes
Are there any user-facing changes?
A bug fix.

Closes: #36939

@pitrou @emkornfield Do you want to take a look?

General question, is this code path actually used in practice?  (should we just delete the code)?

General question, is this code path actually used in practice? (should we just delete the code)?

We use parquet boolean type to store bool value. And this is exposed in python for a long time. So I think:

Boolean type is not widely used, otherwise it would be found earier
However, I think there're someone using it. So I think we'd better fix this

We use parquet boolean type to store bool value. And this is exposed in python for a long time. So I think:

Yes, I think we got lucky here because I think the python/c++ column writer code calls put_spaced.

Thats lucky! Maybe I'll just fix like this and add some comments

@emkornfield I'd like to leave sink_.AdvanceUnsafe here, this patch just tent to fix the bug. Glad to find that arrow array encoding is not used.

@emkornfield I'd like to leave sink_.AdvanceUnsafe here, this patch just tent to fix the bug. Glad to find that arrow array encoding is not used.

The problem is I think we end up potentially writing out unitialized memory even with the temporary fix.  I think the write "fix" here it likely to just delete this code or fix it properly (and start using it on the write code path).

https://github.com/apache/arrow/pull/36972#issuecomment-1666737682
I've make it wrong. We're not using Boolean arrow, but I think fix it it's not hard.

@pitrou I've change the description
The previous implemention for Put(BooleanArray) regard sink_.size() as bits, and reserve less of space for it. Seems that we already uses PutSpace and Put for Boolean ( see ColumnWriter ). I think it's ok to have a naive implemention for convert BooleanArray to std::vector<bool> and use PutImpl to unify them.

@ursabot please benchmark lang=C++

@mapleFU If BufferBuilder is incorrect for this, perhaps we should use TypedBufferBuilder<bool>? Or, if that doesn't work, handle the accumulation buffer by hand.

Actually:

For non-spaced put: I can enhance PutImpl to make it accept a BooleanArray.
For spaced put, maybe current implemention is ok.

But I think since we already have PutImpl, it's better to use same code here.

I'd rather not suffer a potentially significant performance regression here. Ideally, writing a boolean Arrow array would go through this function (I'm not sure why it doesn't).

I'd rather not suffer a potentially significant performance regression here. Ideally, writing a boolean Arrow array would go through this function (I'm not sure why it doesn't).

Sure I'll rewrite it :-)
But I wonder that how can we optimize PutSpaced. Should we just regard it as before?

But I wonder that how can we optimize PutSpaced. Should we just regard it as before?

For now, yes, but it could perhaps be improved if it's often used.

I've changed to bit_writer_.PutValue try to make non-spaced Put faster.  Though it would still slower than CopyBitmap, but I think it's right...

Again, why not use TypedBufferBuilder<bool>?

Again, why not use TypedBufferBuilder<bool>?

Because PutImpl already uses sink. And I think TypedBufferBuilder<bool> is as slow as current implemention.

TypedBufferBuilder<bool> uses CopyBitmap internally, so it should be faster. It should also help automate some of the bookkeeping you're doing by hand.

Okay, I've refactor all into a TypedBufferBuilder

@github-actions crossbow submit -g nightly-tests

@github-actions crossbow submit -g nightly-tests


move doc imgs from github cloud

closes #117

Just started reviewing :) :octocat: Sent from GH.

Thanks @jonnilundy!


fix(ui): settings labels

Issue #472
Temp "fix"
I'm thinking the settings panel needs to be rearranged a little.
This setting for example should be enable to enable instead of enable to disable.
Also, I'm thinking the settings should be:

General
Zwave
Enable WS server. (instead of inside of Zwave) (show the relevant options if toggle on)
Enable MQTT Gateway. (show the relevant options if if toggle on) (opposite behavior from current)

Seems like an easy change so if you like the idea I'll figure out how to do it and submit another PR.

Pull Request Test Coverage Report for Build 543309716

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 20.766%

Totals

Change from base Build 542943065:
0.0%

Covered Lines:
1996

Relevant Lines:
9852

💛  - Coveralls

@towerhand Could you show me your idea?

If you would like let's merge this, I have to figure out how to create a mock up to show you and make the changes I'm thinking about.


Updated to include encryption at rest for SQS queue

Issue #, if available:
*Description of changes: Addd KMS Encryption for data at rest in SQS queue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Static Analysis is failing for an issue that is configured in the EFS encryption. There is an issue with the rule.


Sum over multiple dimension breaks for groupby object (since Xarray 0.14.0)

MCVE Code Sample

import xarray
import pandas as pd

time = pd.date_range('1950-01-01', '1960-12-31', freq='D')
length = len(time)

x = np.arange(0,100,2) # x coords
y = np.arange(0,200,2) # y coords
data = np.random.rand(3,length,100,50)
mask = np.random.rand(100,50)
ds = xr.Dataset({'SMB': (['TIME', 'Y21_199', 'X10_105'],  data[0,:,:,:]),
                 'RU':  (['TIME', 'Y21_199', 'X10_105'],  data[1,:,:,:]),
                 'ME':  (['TIME', 'Y21_199', 'X10_105'],  data[2,:,:,:])},
                 coords={'X10_105': (['X10_105'], x),
                         'Y21_199': (['Y21_199'], y),
                         'TIME': time})

# THIS FAILS
early = ((ds.SMB.loc['1950':'1955']*mask).groupby('TIME.dayofyear')
         .sum(dim=[xr.ALL_DIMS]))

 # THIS FAILS AS WELL
early = ((ds.SMB.loc['1950':'1955']*mask).groupby('TIME.dayofyear')
        .sum(dim=['X10_105','Y21_199','TIME']))

# THIS PRODUCES EXPECTED BEHAVIOR
early = ((ds.SMB.loc['1950':'1955']*mask).groupby('TIME.dayofyear')
        .sum('TIME').sum('X10_105').sum('Y21_199'))

Expected Output
<xarray.DataArray 'SMB' (dayofyear: 366)>
Problem Description
Yesterday I updated to the latest version of xarray and now the sum(dim=['dim1','dim2',..] over a groupby('TIME.dayofyear') object yields an error, despite it working with my older version of xarray
error cannot reduce over dimension ['X10_105', 'Y21_199', 'TIME']. expected either xarray.ALL_DIMS to reduce over all dimensions or one or more of ('TIME', 'Y21_199', 'X10_105').

which is weird given that I'm providing all of the dimensions that are in the dataset. I've tried changing the order of the dimension, using xr.ALL_DIMS as suggested by the error message. The only workaround for me at the moment is to sequentially sum over the intended dimensions, which works for some reason.

The default behaviour of reducing across all dimensions for DataArrayGroupBy objects has now been properly removed as was done for DatasetGroupBy in 0.13.0 (GH3337). Use xarray.ALL_DIMS if you need to replicate previous behaviour. Also raise nicer error message when no groups are created (GH1764). By Deepak Cherian.

to get the ALL_DIMS example working, try
early = ((ds.SMB.loc['1950':'1955']*mask).groupby('TIME.dayofyear')
         .sum(dim=xr.ALL_DIMS))

(don't put ALL_DIMS in a list)
I think that your second example fails because of a bug in DatasetGroupBy.

Thanks for filing the issue @shofer16450 . This is a bug and is fixed on master. Hopefully we can release soon.


[1.20.1] Crash with the latest update

Hi! With the latest update when I try to turn on my dedicated server it crashes.
With the previous version it worked for me.
latest.log
Create: [0.5.1.f]
Kotlinforforge: [4.11.0]
Create: Enchantable Machinery: [1.1.3]

There seems to have been a problem with the configured Workflow.
Removed the 1.1.3 version from CurseForge and Modrinth and re-uploaded the new 1.1.3 version.
Please replace the jar file and try again.

Yup, it's starting to work now, thanks :D!


Working with types or regex

Hi Guys,
Where can I find samples of how to create the pact file with types instead of fixed values?
I wan tot use this in a project, but I won't be able to unless I can find a way to work with types instead of fixed data.
Thanks,
Karl

Hi @karlgjertsen
Is this the kind of the thing you are after https://github.com/SEEK-Jobs/pact-net/blob/master/Samples/EventApi/Consumer.Tests/EventsApiConsumerTests.cs ?
Also wanted to mention that we do not support partial or regex matching at this time. See https://github.com/SEEK-Jobs/pact-net/issues/9

I am trying to add the PACT tests to my API Provider, but I'm finding the tests are too brittle. For example, I might return an integer value, which may change. I only want to test it for an integer and not an actual value.
I'm using the GitHub API as my test service. I have written the consumer tests, which work ok. In the provider tests, I am calling the live API, but what if a value changes, example: public_repos (int) might change.
Do I need to add something to the PactVerifier to overload how it does the validation? I can't find any samples or documentation for this.
I am so close to making this work, but I feel that must be missing something!

Yep, I completely understand.
v1 of Pact is all about testing providers where you can control the state and put the system in a deterministic state.
v2 is aiming to work with the scenarios you mention.
At this time PactNet does not support v2 of the Pact specification.
As a side note your contract should only specify the values that your consumer actually requires, so if you don't use public_repos it should not be in the contact and wont be validated on the provider side.
If you want to use PactNet now you have two options:

Setup an account in Github (because you are testing the Github api) which has a very specific state, that you can completely control and that will not change. Then use that account data for your consumer test. This should give you the deterministic state you require.
Consider having a look at the Pact v2 spec https://github.com/pact-foundation/pact-specification, https://github.com/SEEK-Jobs/pact-net/tree/version-2 v2 branch and https://github.com/SEEK-Jobs/pact-net/issues/9 and help out in implementing the v2 specification.

Thank you for the answer Neil
I will try to schedule some time and then see what I can help with.


Few improvements on sct_run_batch

The following features would be nice:

display header when running the command, as done in other SCT functions:

--
Spinal Cord Toolbox (VERSION-COMMIT)

Create log file, which will include:

command ran
runtime
terminal output

Send email once command has terminated (with output status)

Great ideas.

added sct_init() at the top of the script
in the process of adding the email feature.
I'm a bit uncertain of the log file. I can definitely print either the full command string or just the task file. Do we want to add an extra flag for a general log when the user can run
      sct_run_batch.py ... > terminal_log.txt
or
     sct_run_batch.py ... | tee terminal_log.txt

i like the idea of an extra flag (many users are not familiar with tee)

Fair enough, pretty easy to add.

So I tried using apprise to send myself a gmail email, and it didn't work, it told me I needed to enable "less secure" app permissions for my account. I wasn't sure if I needed that to use smtp directly so I fixed up the send_email code but unfortunately that required the same thing. I can see an argument with sticking to the old smtp code, it doesn't require the user to learn the apprise syntax, and it might be easier to wrap with getpass so the user doesn't need to pass secrets on the command line (particularly if we wanted to dump the full command string to the logs).
@jcohenadad or @zougloub do either of you feel strongly in favour of one approach or the other?

I don’t feel strongly about a lot of things (including this ;-) )

Another feature that would be nice (i just happen to need it right now): have the possibility to include a list of subjects to include/exclude. This is similar to the -include flag, but this flag currently does a regex filtering. In some cases it is not possible, and just listing subjects would be a good alternative.
so, one way to do it, in order to avoid adding flags (could be confusing), would be to add the possibility to include a "config.json" (for track record). We've already discussed that in the previous PR, now would be a good time to add that feature i guess. What do you think @cfhammill ?

Ok, I think I'm going to use apprise for notifications. It's a bit more complicated, but being able to do sms notifications was something I thought would be useful anyway. I'll need to think about how to ensure people aren't leaving passwords/tokens in their .bash_history and in the program logs.
For subject inclusion and exclusion lists, I guess collapsing the subject list to an exact matching regex is a bit heavy handed (and probably too much to ask users for). I'll definitely add this feature.
And yes, I think now would be a good time to add a config.json.

For subject inclusion and exclusion lists, I guess collapsing the subject list to an exact matching regex is a bit heavy handed (and probably too much to ask users for). I'll definitely add this feature.

cool, so what do you think would be a good approach? replacing the current regex feature by a list of subjects (separated by space)? We would need to be able to input a shell variable (e.g. (sub1 sub2 sub3), so users can batch their processing. Also, i guess it would be compatible with a config.json approach (i.e. in the json file, there would be a field for "include", that would take a bracket-list of strings representing each subject)

I've already added a proposal for the inclusion and exclusion, I'll push the commit so we can discuss, but in brief I added two more ways to do inclusion/exclusion. So now we'd have:

-include, the regex version
-include-list, space separated list of subjects
-include-file, a single text file with one line per subject.

It's a bit more repetitive than trying to guess on the command line which the user wants.

-include-file, a single text file with one line per subject.

i would leave that one out, (same for the sister "-exclude-file"), because the config.json will do the job, right?

If users are going to use the config file then yes. I'll remove those arguments


HackerRank Clone

Description
I will be creating hackerrank clone using html,css,javascript.
Code of Conduct

[X] I follow Contributing Guidelines of this project.

/assign


Bitbucket Server personal access tokens support

Is your feature request related to a problem? Please describe.
Currently it's impossible to work with Bitbucket Server personal tokens. In the version 2020.1.3 it's simply impossible to authenticate with Bitbucket Server as the only option is the tokens which aren't passed correctly to the server. In the version 2020.1.4-alpha.1 it's better since at least I have the option of filling out my login and password in the token field. However, there is still no option to just use personal access tokens.
Describe the solution you'd like
Personal access tokens for Bitbucket Server are supported and correctly passed to the server.
Additional context
Atlassian Documentation suggests that these tokens are supposed to be passed as bearer tokens, not as a part of basic authentication. However, Insomnia doesn't seem to support this use case.

The same issue

@4n70w4 were you able to at least get it working with your login and password for the time being?

Same issue here. Insomnia.Designer-2020.4.1 Only allows for token unable to get it working with user/pw


[Datastore Management] Include Icon with datastore connection (FE)

Is your feature request related to a specific problem?
As part of the datastore management landing page, we will display a list of datastores that have been connected. To help users easily manage the list, we will be including the logos of the type of connector. We will ultimately need a more streamlined solution for including logos (and allowing end users to upload logos for their custom connectors that they build) but for now we just need a way to display the proper logo.
Describe the solution you'd like
-display the default logo (see attached figma file) for all connected datastores
-make sure to error gracefully if it cannot find an image (can use default icon)
-add info to connector that will help describe type and then serve svg (optional/nice to have)
Additional context
Default logo

Hey @eastandwestwind sorry for the confusion, I know there was a lot of back and forth on this one in the last week.

That is correct although we said that app-specific logos were a nice to have. At the minimum we should display that ethyca thumbprint logo for each connected datastore. If it's possible for us to get the connectors to a point where we can, for example, display the mailchimp logo on the connected mailchimp connector within this sprint, then that is great. I'll send you the SVGs for each of our supported connectors. We can consider custom logos (like if someone wrote their own connector and wanted to upload an emoji as the logo or something) out of scope.
I think my answer to number one above might have answered part of this question? And yes, if a specific app's logo is not found, we can display the ethyca thumbprint logo as default.

So to clarify, those 10 supported connector SVGs you sent (Postgres, Sqlserver, hubspot, mongodb, redshift, snowflake, mailchimp, mariadb, mysql, segment) includes both SaaS and databases.
So instead of thinking of logo functionality as SasS vs database, we can alter acceptance criteria to something like this:

Display the datastore's logo if we support the specific datastore (includes 10 across SaaS and db for now, but will grow in future)
Otherwise, just display default logo

Does that sound better?

So to clarify, those 10 supported connector SVGs you sent (Postgres, Sqlserver, hubspot, mongodb, redshift, snowflake, mailchimp, mariadb, mysql, segment) includes both SaaS and databases.
Yep

Does that sound better?

sounds good! @eastandwestwind

Currently, I am waiting on new .svg files from Simon for the Connection Logos. In addition, I need to know the new schema field to determine the Sass type on api/v1/connection API endpoint. This was discussed earlier this week during standup.


Postgres authentication not working

(total rookie writing)
I tried to follow the tutorial for installing flyte on my desktop machine which has microk8s on it. I can set up the dependencies, minio seems to be running fine and I can also log into the postgres pod and see the according databases.
But whenever I try to run "helm install flyte-binary flyteorg/flyte-binary  --values onprem-flyte-binary-values.yaml -n flyte", the pods keeps crashing with following log:
time="2024-07-15T09:37:59Z" level=info msg="Using config file: [/etc/flyte/config.d/000-core.yaml /etc/flyte/config.d/001-plugins.yaml /etc/flyte/config.d/002-database.yaml /etc/flyte/config.d/003-storage.yaml /etc/flyte/config.d/013-storage-secrets.yaml /etc/flyte/config.d/100-inline-config.yaml /etc/flyte/config.d/202-database-secrets.yaml]"
2024/07/15 09:37:59 /flyteorg/build/datacatalog/pkg/repositories/config/postgres.go:75
[error] failed to initialize database, got error failed to connect to `host=postgres.flyte.svc.cluster.local user=flyte database=flyte`: server error (FATAL: password authentication failed for user "flyte" (SQLSTATE 28P01))
panic: failed to connect to `host=postgres.flyte.svc.cluster.local user=flyte database=flyte`: server error (FATAL: password authentication failed for user "flyte" (SQLSTATE 28P01))
goroutine 136 [running]:
github.com/flyteorg/flyte/datacatalog/pkg/repositories.Migrate({0x4360f40, 0xc0007f2f50})
 /flyteorg/build/datacatalog/pkg/repositories/initialize.go:63 +0x786
github.com/flyteorg/flyte/cmd/single.startDataCatalog({0x4360f40, 0xc0007f2f50}, {0x0?})
 /flyteorg/build/cmd/single/start.go:48 +0x1d
github.com/flyteorg/flyte/cmd/single.glob..func4.3()
 /flyteorg/build/cmd/single/start.go:235 +0x31
golang.org/x/sync/errgroup.(*Group).Go.func1()
 /go/pkg/mod/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
 /go/pkg/mod/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:75 +0x96

I am using the default "postgres" password and I already figured out that there is a username mismatch in the two files provided: in "onprem-flyte-dependencies .yaml" the username is "flyte" but in "onprem-flyte-binary-values.yaml" the username is "postgres". After I changed the config for the binary, it now just keeps complaining about the password. I tried it with providing the passwork together with the username but also with the local-secret.yaml ... neither is working. Could you please help me and point me in the right direction?
(There also seems to be a typo in point 3 of "002-single-node-onprem-install.md" -> the command is "kubectl apply -f local-flyte-resources.yaml" but the file downloaded is called "onprem-flyte-dependencies.yaml" ... or am I missing something?)

Adding the username to the secrect (acc. this bug report) fixed the issue but now I have another problem. No clue why the pod is not running:
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.2/pkg/manager/internal.go:514 +0x258
{"json":{"src":"start.go:226"},"level":"panic","msg":"Failed to start Propeller, err: failed to create FlyteWorkflow CRD: Post \"https://<IP_ADDRESS>:443/apis/apiextensions.k8s.io/v1/customresourcedefinitions?timeout=30s\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)","ts":"2024-07-15T10:33:10Z"}
panic: (*logrus.Entry) 0xc0006f0ee0
goroutine 146 [running]:
github.com/sirupsen/logrus.(*Entry).log(0xc0006f0e00, 0x0, {0xc003db1d40, 0x110})
 /go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:260 +0x491
github.com/sirupsen/logrus.(*Entry).Log(0xc0006f0e00, 0x0, {0xc0017a1e68?, 0x1?, 0x1?})
 /go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:304 +0x48
github.com/sirupsen/logrus.(*Entry).Logf(0xc0006f0e00, 0x0, {0x34d6a61?, 0x0?}, {0xc0040a67b0?, 0x0?, 0x0?})
 /go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:349 +0x7c
github.com/sirupsen/logrus.(*Entry).Panicf(0x4360f40?, {0x34d6a61?, 0x414325?}, {0xc0040a67b0?, 0x2cf9f20?, 0x1?})
 /go/pkg/mod/github.com/sirupsen/logrus@v1.9.3/entry.go:387 +0x2e
github.com/flyteorg/flyte/flytestdlib/logger.Panicf({0x4360f40?, 0xc000697ef0?}, {0x34d6a61, 0x22}, {0xc0040a67b0, 0x1, 0x1})
 /flyteorg/build/flytestdlib/logger/logger.go:189 +0x5e
github.com/flyteorg/flyte/cmd/single.glob..func4.2()
 /flyteorg/build/cmd/single/start.go:226 +0xb1
golang.org/x/sync/errgroup.(*Group).Go.func1()
 /go/pkg/mod/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
 /go/pkg/mod/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:75 +0x96

it seems that flyte propeller failed to connect to K8S apiserver using https://<IP_ADDRESS>:443, normally it should be the internal svc address <IP_ADDRESS>:443

@brandli thank you for pointing the problems in the guide and sorry for the poor experience.
I'll work on reproducing/fixing these problems soon. Thanks!
Also if you want to contribute, please feel free.

@brandli there was a mismatch in the db username between the Helm values and the actual db deployment. It only affected flyte-binary and is now fixed.
Could you redeploy and report back any issues?
Thanks and sorry for the inconveniences


No support for web-based OAuth

It would be nice if reddit-api could add support for oauth for websites, so that a user may for example sign in to foobar.com with their reddit credentials without giving foobar.com their reddit password.

It also seems like the r/#{subreddit}/messages/moderator endpoint isn't covered.

Hello,
I will look into oauth for websites seems like it would be useful as ruby can be used with rails / sinatra / rack and many others to make websites.
As for the moderator endpoint. I scraped the API docs page here: https://www.reddit.com/dev/api
But I am not seeing it there, I found a few undocumented APIs before, I will do some testing and add it.

Bumped to version 0.1.2 and pushed to rubygems. Added the Mod Message endpoint under:
Reddit::Services::PrivateMessages.get_message_moderator

For reference, you can get a full list of all API endpoints (including undocumented ones) from PRAW:
https://github.com/praw-dev/praw/blob/master/praw/__init__.py#L71


MapSet for keys in Dataloader.KV

Use a MapSet for keys, to keep it consistent with Dataloader.Ecto, and to allow regression testing of a bug in absinthe without needing to use Dataloader.Ecto

Looks good, thanks!


tuya-device-sharing-sdk: init at 0.2.0, home-assistant: update component-packages

Description of changes
The new tuya integration requires the python package tuya-device-sharing-sdk which is added by this PR.
Also I re-generated the component-packages.nix adding the previously missing propagated inputs for tuya and re-enabling tests for it. Also fixed minor typo in the script shebang (or I'm missing something? Without my change I couldn't run it but actually I find weird that nobody noticed in 1 year i.e. since when the supposed typo was introduced).
I tried building the new python package on my x86_64-linux workstation and then I also re-deployed my home-assistant (on an aarch64-linux host) using this branch and tuya seems to work now.

Things done

Built on platform(s)

[X] x86_64-linux
[X] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 294706 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.tuya
python311Packages.tuya-device-sharing-sdk
python311Packages.tuya-device-sharing-sdk.dist
python312Packages.tuya-device-sharing-sdk
python312Packages.tuya-device-sharing-sdk.dist


Try another way to implement DNS cache.

Now we have eternal DNS cache of unbounded size

with a command to reset it manually (SYSTEM DROP DNS CACHE);
with auto reset on network errors - but this code is questionable and doesn't work in practice;
with possibility to disable it completely.

This DNS cache cannot be used when IP addresses of hosts change frequently. But we cannot totally remove the DNS cache, because:

local DNS resolver is often configured in a bad way and sometimes (in rare but unwanted occasions) works slow;
it's difficult to properly handle connection timeout settings if we have to do name resolution (examples: it's impossible to do with getaddrinfo function; there is getaddrinfo_a function that has bugs and works bad; there are c-ares and a couple of similar libraries that we don't use at this moment).
if we don't have DNS cache, the name resolution will be performed too often (example: two DNS requests are performed for every connection from a user with access restricted to hostname mask).

Proposal is to implement DNS cache with constant asynchronous refresh. It will run in separate thread and resolve each host every 5 seconds (default; regardless to the actual TTL - for simplicity). It won't consume any significant amount of resources even for large clusters. If name resolution will hang for a moment, we will use previous result from the cache.

In master.


Allow the specification of alt-text on images when using CLI.

This PR adds the ability to specify alt-text on images to help give descriptive values to them.  It is written so that the alt-text input is a one-to-one map of strings based on the image filename input.
Let me know what I need to do to help get this approved and merged!  I'm not sure what level of documentation is required since I assume bsky-cli is a proof-of-implementation tool, however it works just fine for me for what I need it to do so figured I'd improve it!

Thank you for the pull-request!
Please check the format first with cargo fmt-no-gen --check.
It is curious that images is plural and alt_text is singular, even though both are Vec. Shall we change it to image to align them?
I see that it also takes into account cases where the number of images does not match, such as --image img1.png --alt-text alt1 --image img2.png. If there is no corresponding idx alt_text, the file name is still used by default. (In this example, the alt text for the second image is “img2.png”.)
Conversely, I would like to consider the case where we want to specify only the second. If I do --image img1.png --alt-text “” --image img2.png -alt-text alt2, I want the alt of the first image to be “img1.png “.
For example, how about the following?
let alt = match args.alt_text.get(idx).filter(|s| !s.is_empty()) {
    ...
};


Client should expose the internal sender or provide a method to send async message to the server

Currently, neither the transport sender (internal.Sender) or a method that allows for async send to the server is exposed by the client.
As the supervisor is shaping up, I think the client should expose a way to send async messages to the sender. I can think of a few reasons:

Report failing health of the agent or worse, termination status of the agent.
Report agent restart metrics.
Report agent package or addon download progress. This is allowed in the spec, but the client doesn't have enough context to fetch this information and for good reasons, I don' think it should either. Instead, the actual downloader should have the ability to report progress to the server through the client.

Generally, I do not think we should expose Sender directly. If we need to send a message then it should be exposed in the OpAMPClient interface, similar to for example SetEffectiveConfig. Let's keep Sender in internal.

Report failing health of the agent or worse, termination status of the agent.
Report agent restart metrics.

I think these are both expected to be reported via own telemetry, so shouldn't be done via OpAMP. What OpAMP message do you want to send for these 2 cases?

Report agent package or addon download progress.

This should happen in response to the OnAddonsAvailable/OnAgentPackageAvailable callbacks. The AddonSyncer and AgentPackageSyncer are supposed to have the context to report the progress. Are these not sufficient?

I think you are right. I was thinking that there might be separate telemetry needs from the supervisor -- reporting the up/down stats of the collector, but the spec as it stands today doesn't talk about this at least not in the context of the supervisor. And as to the agent/addon download status, etc, the syncer should be a good place.


[youtube] Signature extraction failed

Output from youtube-dl --verbose vuQ9_jZ0Kf0 with version 2015.12.13
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'vuQ9_jZ0Kf0']
[debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8
[debug] youtube-dl version 2015.12.13
[debug] Python version 2.7.3 - Linux-3.2.0-4-686-pae-i686-with-debian-7.9
[debug] exe versions: avconv 0.8.17-6, avprobe 0.8.17-6, ffmpeg 0.8.17-6, ffprobe 0.8.17-6
[debug] Proxy map: {}
[youtube] vuQ9_jZ0Kf0: Downloading webpage
[youtube] vuQ9_jZ0Kf0: Downloading video info webpage
[youtube] vuQ9_jZ0Kf0: Extracting video information
[youtube] {22} signature length 43.43, html5 player en_US-vflXJM_5_
[youtube] vuQ9_jZ0Kf0: Downloading player https://s.ytimg.com/yts/jsbin/player-en_US-vflXJM_5_/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 877, in _decrypt_signature
video_id, player_url, s
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 792, in _extract_signature_function
res = self._parse_sig_js(code)
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 855, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/home/user/bin/youtube-dl/youtube_dl/jsinterp.py", line 241, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'gr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Could not find JS function u'gr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 877, in _decrypt_signature
video_id, player_url, s
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 792, in _extract_signature_function
res = self._parse_sig_js(code)
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 855, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/home/user/bin/youtube-dl/youtube_dl/jsinterp.py", line 241, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'gr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 663, in extract_info
ie_result = ie.extract(url)
File "/home/user/bin/youtube-dl/youtube_dl/extractor/common.py", line 290, in extract
return self._real_extract(url)
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1431, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 887, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 877, in _decrypt_signature
video_id, player_url, s
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 792, in _extract_signature_function
res = self._parse_sig_js(code)
File "/home/user/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 855, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/home/user/bin/youtube-dl/youtube_dl/jsinterp.py", line 241, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'gr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Could not find JS function u'gr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Thank you for the report. I believe this issue to be fixed in the current version of youtube-dl, 2015.12.18. See our FAQ if you need help updating.


Can't paste in Firefox

Plugin Name with version
copypaste_advanced: "3.0.4"
JSpreadsheet version
v9.x
Describe the bug
When trying to paste anything in Firefox, macOS, getting this error:
Uncaught TypeError: navigator.clipboard.read is not a function
paste index.js:512
keydown index.js:443
index.js:512
paste index.js:512
keydown index.js:443
Pasting never happens.
In Chromium on macOS there's also an error, but pasting does work:
Uncaught (in promise) DOMException: Failed to execute 'getType' on 'ClipboardItem': The type was not found
at eval (webpack-internal:///./node_modules/@jspreadsheet/copypaste_advanced/index.js:512:41)
Reproduction steps
1. Paste in Firefox
...
Error

Hi,
I publish new version 3.0.5 to fix error message. But on firefox this plugin doesn't work with clipboard of navigator. The clipboard read is reserved to extension of firefox, from windows, you need paste with Ctrl + V
If you found an example who work on firefox, i will integrate on this plugin


feat: Upgrade RHACM to 2.8

closes: #255
Description of changes:

Upgrade the version of RHACM

Output of argocd app list command or screenshot of the ArgoCD Application synchronization window showing successful application of changes in this branch.

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


tasks 250-253: more from SPL

Adding remaining datasets for restaurants domain (with English as the source language).

What's the reasoning for the space between the word and the apostrophe and "s" in some of the examples and instances? For example, "wendy 's". I think it would be best to remove these spaces so the LMs can better understand them better with how "'s" represents belonging and/or relation and how it is not some separate word or entity.
Change "natural written(formal)" to "naturally written and formal". Change "formal form" to "formal language". Remove the "However," in the next sentence.
Add a period in the last sentence of the definition.
Not sure about the asterisks and caps lock for emphasis but I can leave that to @swarooprm and @danyaljj to decide.

Looks good to me otherwise! Nice work. These are all minor changes that I recommend.

Looks good!
I was wondering if you can create more translation tasks for longer text. Here, every instance is limited to questions and contains shorter text. May be you can create new tasks in this way.

Yes, I can look into other datasets for the translation task if I get the chance. Do you have any suggestions?


docs: "build from source" link 404's

Browsing to https://ghostsecurity.github.io/reaper/getting-started/installation , then following the link for "build from source" leads to a 404 with a URL of https://ghostsecurity.github.io/reaper/getting-started/source
Following the link from the Table Of Contents section below that, to "From Source" works, with a URL of https://ghostsecurity.github.io/reaper/getting-started/installation/source

Hey @raesene - good to see you! Thanks for the bug report :)


Speed Dating Networking Session for Women and Non-Binary Folks Only!

What Is Your Target Audience?
Women and Non- Binary Folks welcome
How Much Time Would You Like To Commit?
120 mins Community Space
What Is The Style of Your Session?:
120 min of  Speed Dating Networking sessions where experts from Superwomen DAO and The Phoenix Guild can be asked questions related to various topics like Web3, NFTs, Blockchain Languages, Metaverse, Design, Opportunities in Web3 etc.
Are You Submitting Alone or With A Team?
Co-ordinators from TPG - Nivedita Vivek, Gnana Lakshmi & Srilakshmi
Co-ordinator from Superwomen DAO - Aditi Chopra

Hey!
Can you please share the target audience as mentioned in the template?
Thank you


Add logo of bronze sponsors to readme

According to our sponsors tier, bronze sponsors should also be mentioned in the readme.
We need to add 2 companies:

Ably - https://ably.com/press-center/ably-branding
Rviewer that is a brand new bronze sponsor - https://rviewer.io/img/logo-rviewer.434b8512.svg or https://github.com/Rviewer-Challenges

Below Silver, we need new Bronze section

Can i work on this issue

@DarrenDsouza7273 please do

@derberg had some issues during creating the pr will redo it


enhance show exprid in slot descriptor

Proposed changes
This pr makes explain verbose more readable
we print slot descriptor with its name and Expression ID.
Let's take some examples to illustrate its benifit.
1. link expression with its slot descriptor
explain verbose select * from t1 X join t1 Y  on X.a=Y.a;
here is a fragment of explain.
   3:VHASH JOIN
         join op: INNER JOIN(BROADCAST)[]
        equal join conjunct: a[#2] = a[#0]

it is not easy to see what is the datatype of a[#2] from tuple descriptor table
Now we have
| Tuples:                                                                   |
| TupleDescriptor{id=0, tbl=t1, byteSize=8}                                 |
|   SlotDescriptor{id=0, col=a#2, colUniqueId=0, type=INT, nullable=false}  |
|   SlotDescriptor{id=1, col=b#3, colUniqueId=1, type=INT, nullable=false}  |
|                                                                           |
| TupleDescriptor{id=1, tbl=t1, byteSize=8}                                 |
|   SlotDescriptor{id=2, col=a#0, colUniqueId=0, type=INT, nullable=false}  |
|   SlotDescriptor{id=3, col=b#1, colUniqueId=1, type=INT, nullable=false}

it is easy to see that a[#2] and a[#0] correspond to slot0 and slot2 respectively.
helps to detect slot date type error

with exprId, we could track how a slot transfers from one tuple to another tuple.
from above pic, we see that slot165 comes from slot155 not slot157, and its nullable value is wrong.
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 36.01 seconds
load time: 496 seconds
storage size:<PHONE_NUMBER>5 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230119125613_clickbench_pr_84221.html


[cxx-interop] Do not pass -lc++/-lstdc++ flags to the compiler

Motivation:
The Swift compiler has recently introduced support for building with C++ stdlibs which aren't the default on the target platform, specifically libc++ on Linux. The Swift Driver has logic to determine which C++ stdlib should be used, depending on the target and explicit -Xcc -stdlib=xyz flags, and link against the requested standard library. Similar functionality exists in Clang Driver. We should defer the C++ stdlib selection to the compiler driver, it shouldn't be necessary to duplicate it in the build system.
Modifications:
This makes sure that SwiftPM does not explicitly ask the compiler to link against a particular C++ stdlib.
Result:
Projects that use libc++ on Linux build correctly with SwiftPM.
rdar://141047307

@swift-ci please test


Programmatically scaling models for simulations?

Howdy!
I'm a professor and I'm trying to use MuJoCo for biomechanical simulations of different bodies.
I'm looking for some help with how to take a model I have of an upper limb (which was, I believe, ported from OpenSim) and scale its parts; I want to run a variety of simulations with different scales on its arms, hands, torso, etc., so that it "matches" different people's dimensions. Playing with the Simulate tool and looking at Issue #41 , I can see how to scale mesh parts of the model, but this does not bring the tendon parts along. As an example, if I use a negative scale and flip a bone out of place, the tendons it used to be attached to now just hang in space. Is there a tool (similar to OpenSim's scaling tool) that enables easy per-body scaling such that tendon positions, dependent bodies' positions, and so forth are updated appropriately, as well? I would like to be able to scale the thorax by .75 while the humerus is scaled by .85, for example, without losing their connection to each other or to the tendons.
The model that I'm using is https://github.com/aikkala/user-in-the-box/blob/main/uitb/bm_models/mobl_arms/bm_model.xml , but I'm also happy to learn how to do this on a simpler model; I'm confident I can figure out how to port the calls.
Thanks!

Hi @valkyriesavage,
This is a great question! The very short answer is: in native MuJoCo, unfortunately no. However:

As a medium-term (and possibly long-term) solution, I encourage you to use pyMJCF. This is a python package that lets you procedurally edit MJCF models (before they are compiled by MuJoCo). It is quite powerful and you can find many examples of its use inside the dm_control repository.
That said, being able to natively stretch, scale and generally transform MuJoCo model elements is something that we consider a high priority, and completely understand its importance – especially for biomechanics. Implementing such native transformation machinery in MJCF itself is on our roadmap and will hopefully be implemented by the end of 2023.

Cheers


Add man page for youtube-dl.conf

It would be great to have a manpage for the config file since they are usually documented in man pages, too. Maybe it could be just a pointer to the youtube-dl manpage initially.

make youtube-dl.1.

This is for a man page for youtube-dl, not for the config file, the target would be make youtube-dl.conf.5, since config files are documented in section 5.


Unhandled exception on mailing label query timeout

I have a citizen who is trying to run To Mailing Labels on a large abutters list and the GPV is just hanging on him.  I’m getting the error below on the server side.  I’m wondering if there is some way I can configure or work around this timeout so he can make his list?  At the very least it would be nice if it could be caught reported back to the user.  Have others had this issue?
More info:

The user was able to download the Excel version of the same list
The list is about 400 "parcels" (stacked for condo ownership)
The MaxNumberSelected variable in the Layer is 500.
The server-side max is 1000.
The error occurs after waiting for a minute or so from clicking Create.

Here is my approximation of their query, though the caveat is that the mailing label download works for me in this ma.  Maybe because I’m internal?
http://gis.cambridgema.gov/map/Viewer.aspx?state=783894434671
Error Text
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/27/2015 9:42:30 AM
Event time (UTC): 3/27/2015 1:42:30 PM
Event ID: 1d5603c8d0994adca271ee6b004953bf
Event sequence: 394
Event occurrence: 2
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/Map-1-130719362811828185
Trust level: Full
Application Virtual Path: /Map
Application Path: D:\gis_website\GPV\GPV_v4.1.0\
Machine name: FIDO
Process information:
Process ID: 8324
Process name: w3wp.exe
Account name: IIS APPPOOL\GPVMapAppPool
Exception information:
Exception type: OleDbException
Exception message: Query timeout expired
at System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr)
at System.Data.OleDb.OleDbDataReader.NextResult()
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.OleDb.OleDbCommand.ExecuteReader()
at MailingLabels.CreateLabels(String id, String fontName, Single textSize, Boolean columnMajor) in d:\gis_website\gpv\GPV_v4.1.0\MailingLabels.aspx.cs:line 127
at MailingLabels.cmdCreate_Click(Object sender, EventArgs e) in d:\gis_website\gpv\GPV_v4.1.0\MailingLabels.aspx.cs:line 80
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://gis.cambridgema.gov/map/MailingLabels.aspx
Request path: /map/MailingLabels.aspx
User host address: <IP_ADDRESS>
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\GPVMapAppPool
Thread information:
Thread ID: 39
Thread account name: IIS APPPOOL\GPVMapAppPool
Is impersonating: False
Stack trace:    at System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr)
at System.Data.OleDb.OleDbDataReader.NextResult()
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.OleDb.OleDbCommand.ExecuteReader()
at MailingLabels.CreateLabels(String id, String fontName, Single textSize, Boolean columnMajor) in d:\gis_website\gpv\GPV_v4.1.0\MailingLabels.aspx.cs:line 127
at MailingLabels.cmdCreate_Click(Object sender, EventArgs e) in d:\gis_website\gpv\GPV_v4.1.0\MailingLabels.aspx.cs:line 80
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:

You can view the stored state for my recreation in the map using the following link and entering the state ID<PHONE_NUMBER>71.
http://gis.cambridgema.gov/map/DecodeSavedState.aspx

This ran for me in under a minute and produced 14 pages of labels. So it
doesn't look like an internal/external issue, I think.
On Wed, Apr 8, 2015 at 9:46 AM, Sean Sweeney<EMAIL_ADDRESS>wrote:

I have a citizen who is trying to run To Mailing Labels on a large
abutters list and the GPV is just hanging on him. I’m getting the error
below on the server side. I’m wondering if there is some way I can
configure or work around this timeout so he can make his list? At the very
least it would be nice if it could be caught reported back to the user.
Have others had this issue?
More info:

The user was able to download the Excel version of the same list
The list is about 400 "parcels" (stacked for condo ownership)
The MaxNumberSelected variable in the Layer is 500.
The server-side max is 1000.
The error occurs after waiting for a minute or so from clicking
Create.

Here is my approximation of their query, though the caveat is that the
mailing label download works for me in this ma. Maybe because I’m internal?
http://gis.cambridgema.gov/map/Viewer.aspx?state=783894434671
Error Text
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/27/2015 9:42:30 AM
Event time (UTC): 3/27/2015 1:42:30 PM
Event ID: 1d5603c8d0994adca271ee6b004953bf
Event sequence: 394
Event occurrence: 2
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/Map-1-130719362811828185
Trust level: Full
Application Virtual Path: /Map
Application Path: D:\gis_website\GPV\GPV_v4.1.0
Machine name: FIDO
Process information:
Process ID: 8324
Process name: w3wp.exe
Account name: IIS APPPOOL\GPVMapAppPool
Exception information:
Exception type: OleDbException
Exception message: Query timeout expired
at System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr)
at System.Data.OleDb.OleDbDataReader.NextResult()
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.OleDb.OleDbCommand.ExecuteReader()
at MailingLabels.CreateLabels(String id, String fontName, Single textSize,
Boolean columnMajor) in
d:\gis_website\gpv\GPV_v4.1.0\MailingLabels.aspx.cs:line 127
at MailingLabels.cmdCreate_Click(Object sender, EventArgs e) in
d:\gis_website\gpv\GPV_v4.1.0\MailingLabels.aspx.cs:line 80
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument)
at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://gis.cambridgema.gov/map/MailingLabels.aspx
Request path: /map/MailingLabels.aspx
User host address: <IP_ADDRESS>
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\GPVMapAppPool
Thread information:
Thread ID: 39
Thread account name: IIS APPPOOL\GPVMapAppPool
Is impersonating: False
Stack trace: at
System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr)
at System.Data.OleDb.OleDbDataReader.NextResult()
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior
behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.OleDb.OleDbCommand.ExecuteReader()
at MailingLabels.CreateLabels(String id, String fontName, Single textSize,
Boolean columnMajor) in
d:\gis_website\gpv\GPV_v4.1.0\MailingLabels.aspx.cs:line 127
at MailingLabels.cmdCreate_Click(Object sender, EventArgs e) in
d:\gis_website\gpv\GPV_v4.1.0\MailingLabels.aspx.cs:line 80
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument)
at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
—
Reply to this email directly or view it on GitHub
https://github.com/AppGeo/GPV/issues/42.

--
Andrew Buck
Senior Consultant
617-447-2430 Direct |<PHONE_NUMBER> Main
Applied Geographics, Inc.
24 School Street, Suite 500
Boston, MA 02108
www.AppGeo.com
--
This e-mail message and any attachments may contain confidential or legally
privileged information. If you are not an intended recipient or otherwise
authorized to receive this message, you should not use, copy, distribute,
disclose or take any action based on the information contained in this
e-mail or any attachments. If you have received this message and material
in error, please advise the sender immediately by reply e-mail and delete
this message. Thank you on behalf of Applied Geographics, Inc. (AppGeo).

Running the mailing label stored procedure direcly in SQL Server Management Studio gives valid results, but does take 20 seconds.  The 31 Target IDs translate into 395 ownership records (and thereby 395 labels).

Please verify whether this is still an issue.


Copy query to clipboard

It would be really useful to be able to copy the query to clipboard so that I can share the query with others. At the moment, I can't highlight the query and tmux select doesn't work either.

@nicolas-martin, this functionality was added in v0.2.0 of jqp. Want to give that a shot and see if it works for you?

Yes that works perfectly, thank you!


guarantee baileys always send ack for messages/notifications to avoid break connections

I only added try {} finaly{ sendMessageAck() } in handleMessage/handleNotification, this will send ack even that baileys emit an error, and will propague the error normally

its only identation, i only added try finally

I am not able to modify this branch. I will copy the changes onto a PR of mine


Lat Lon in Deg,Min,Seconds

Hi there,
I am not able to do this:
#assign gps coordinates
gps_ifd = {piexif.GPSIFD.GPSLatitudeRef: "S",
piexif.GPSIFD.GPSLatitude: "((40, 1), (41, 1), (476051999, 10000000))",
piexif.GPSIFD.GPSLongitudeRef: "W",
piexif.GPSIFD.GPSLongitude: "((165, 1), (22, 1), (14268000, 10000000))"
}
While dumping get "UnboundLocalError: local variable 'new_value' referenced before assignment"
Is there a proper way of doing this or not capable at this point?
Thanks

Found out by myself.
gps_ifd = {piexif.GPSIFD.GPSLatitudeRef: "S",
piexif.GPSIFD.GPSLatitude: [(40, 1), (41, 1), (476051999, 10000000) ],
piexif.GPSIFD.GPSLongitudeRef: "W",
piexif.GPSIFD.GPSLongitude: [ (165, 1), (22, 1), (14268000, 10000000) ]
}


Fix graphql ws did not ignore parsing errors

Description
The legacy WS protocol dictates that servers should ignore text messages sent by clients that are not valid JSON. Here's the relevant section from the legacy protocol specification:

GQL_CONNECTION_ERROR
[...]
It server also respond with this message in case of a parsing errors of the message (which does not disconnect the client, just ignore the message).

I accidentally changed this behavior in a recent refactor to match the newer protocol, which requires servers to close the WebSocket in this case.
This PR restores the intended behavior and updates the relevant tests.
Types of Changes

[ ] Core
[x] Bugfix
[ ] New feature
[ ] Enhancement/optimization
[ ] Documentation

Summary by Sourcery
Fix the handling of non-JSON messages in the legacy GraphQL WebSocket protocol to ignore parsing errors instead of closing the connection, and update tests to reflect this behavior.
Bug Fixes:

Restore the behavior of ignoring non-JSON messages in the legacy GraphQL WebSocket protocol, aligning with the legacy protocol specification.

Documentation:

Add a RELEASE.md file documenting the fix for the regression in the legacy GraphQL WebSocket protocol.

Tests:

Update tests to ensure non-JSON WebSocket messages are ignored rather than causing a connection closure in the legacy protocol.

Thanks for adding the RELEASE.md file!

Here's a preview of the changelog:

This release fixes a regression in the legacy GraphQL over WebSocket protocol.
Legacy protocol implementations should ignore client message parsing errors.
During a recent refactor, Strawberry changed this behavior to match the new protocol, where parsing errors must close the WebSocket connection.
The expected behavior is restored and adequately tested in this release.
Here's the tweet text:
🆕 Release (next) is out! Thanks to @NucleonJohn for the PR 👏

Get it here 👉 https://strawberry.rocks/release/(next)


HTTP status: 503 Service Unavailable in Github action pipeline

Step 1/5 : FROM ghcr.io/aquasecurity/trivy:0.34.0
received unexpected HTTP status: 503 Service Unavailable
Warning: Docker build failed with exit code 1, back off 1.279 seconds before retry.
/usr/bin/docker build -t 290506:2a37db7d2bac4b86970a8f85ca423577 -f "/home/runner/work/_actions/aquasecurity/trivy-action/master/Dockerfile" "/home/runner/work/_actions/aquasecurity/trivy-action/master"

this was a intermittent issue on the GHCR side, should be fixed now.


Parse error:

Hello
I'm using a local Wamp server. After installing I had a blank screen. When i activated the PHP Error display option this is what I got.
Parse error: syntax error, unexpected '.', expecting ',' or ';' in C:\wamp\www\inventorysystem\includes\upload.php on line 10
I can not pass this stage.

Hey
Try this

 'SITE_ROOT',DS.'..'.DS.'uploads/users';

if it's doesn't solve your problem then replace it with this
 public $userPath = 'uploads/users';
 public $productPath = 'uploads/products';

Thank you.

Hello Siamon123
Thanks for the quick reply but it did not help.
When I use this code:
public $userPath ='SITE_ROOT',DS.'..'.DS.'uploads/users';
public $productPath = 'SITE_ROOT',DS.'..'.DS.'uploads/products';
I do not get the login page but I get this error:
Parse error: syntax error, unexpected 'DS' (T_STRING), expecting variable (T_VARIABLE) in C:\wamp\www\inventorysystem\includes\upload.php on line 10

When I use this code:
public $userPath = 'uploads/users';
public $productPath = 'uploads/products';
I get to the login page. I'm then redirected to the page http://localhost/inventorysystem/home.php
Error on this Query :
SHOW TABLES FROM inventoryproj-db LIKE "users"
"inventoryproj-db" being the name I gave the database on my system.
Thanks

NO problem,
just logout and login back.

still does not work.
I used http://localhost/inventorysystem/index.php to logout.
When I log back in  I'm then redirected to the page http://localhost/inventorysystem/home.php
Error on this Query :
SHOW TABLES FROM inventoryproj-db LIKE "users"

index.php doesn't has logout function, it's should be
 http://localhost/inventorysystem/logout.php

And you getting that error from this function, either DB_NAME or table not exit.you can find this function in sql.php
tableExists($table)

Hello Siamon,
The problem was the database name. I changed it from "inventoryproj-db" to "inventoryprojdb" and everything works fine now.
Thanks for the tips.
Ryan


feat(config): import Z-Wave Alliance Files batch 11

Batch 11 for volunteer review

I'll tackle this one.

@blhoward2 please review when you get a chance.


Refactor host API

The refactoring ensures that API is less likely to be misused, and moves logic associated with a BLE role to the appropriate place.

Peripheral type for advertising
Central type for connecting and scanning
Runner type for running the stack

/test


attempt to call field '_reload_file' (a nil value)

After lazy updating LuaSnip form 2.1.1 to 2.2.0 i have errors on each filewrite
first error comming is
Error detected while processing BufWritePost Autocommands for "*":
Error executing lua callback: ...e/pack/packer/start/LuaSnip/lua/luasnip/loaders/init.lua:141: attempt to call field '_reload_file' (a nil value)
stack traceback:
        ...e/pack/packer/start/LuaSnip/lua/luasnip/loaders/init.lua:141: in function 'reload_file'
        ...e/pack/packer/start/LuaSnip/lua/luasnip/loaders/init.lua:129: in function <...e/pack/packer/start/LuaSnip/lua/luasnip/loaders/init.lua:128>

and then the second one after any keypress which harms something in nvim-notify
Error executing vim.schedule lua callback: ...nvim/lazy/nvim-notify/lua/notify/service/buffer/init.lua:103: FileType Autocommands for "*": Vim(append):Error executing lua callback: ...site/p
ack/packer/start/LuaSnip/lua/luasnip/util/util.lua:462: bad argument #1 to 'ipairs' (table expected, got number)
stack traceback:
        [C]: in function 'ipairs'
        ...site/pack/packer/start/LuaSnip/lua/luasnip/util/util.lua:462: in function 'redirect_filetypes'
        ...e/pack/packer/start/LuaSnip/lua/luasnip/loaders/init.lua:112: in function 'load_lazy_loaded'
        ...my_username/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:87: in function <...my_username/.local/share/nvim/lazy/LuaSnip/plugin/luasnip.lua:86>
        [C]: in function 'nvim_buf_set_option'
        ...nvim/lazy/nvim-notify/lua/notify/service/buffer/init.lua:103: in function 'render'
        .../share/nvim/lazy/nvim-notify/lua/notify/service/init.lua:53: in function 'push'
        ...ocal/share/nvim/lazy/nvim-notify/lua/notify/instance.lua:77: in function 'n'
        .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:323: in function 'notify'
        .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:365: in function 'warn'
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/reloader.lua:86: in function <...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/reloader.lua:80>
stack traceback:
        [C]: in function 'nvim_buf_set_option'
        ...nvim/lazy/nvim-notify/lua/notify/service/buffer/init.lua:103: in function 'render'
        .../share/nvim/lazy/nvim-notify/lua/notify/service/init.lua:53: in function 'push'
        ...ocal/share/nvim/lazy/nvim-notify/lua/notify/instance.lua:77: in function 'n'
        .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:323: in function 'notify'
        .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:365: in function 'warn'
        ...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/reloader.lua:86: in function <...l/share/nvim/lazy/lazy.nvim/lua/lazy/manage/reloader.lua:80>

my config is just simple
{
        "L3MON4D3/LuaSnip",
        -- follow latest release.
        version = "2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
        -- config = function()
        --   require("config.luasnip")
        -- end
        -- install jsregexp (optional!).
        -- build = "make install_jsregexp",
    },

also if it matters i have side package cmp_luasnip for cmp
 {
        "hrsh7th/nvim-cmp",
        event = "InsertEnter",
        config = function()
            require("plugins.cmp")
        end,
        dependencies = {
            "hrsh7th/cmp-nvim-lua",
            "hrsh7th/cmp-nvim-lsp",
            "hrsh7th/cmp-buffer",
            "hrsh7th/cmp-path",
            "hrsh7th/cmp-cmdline",
            "hrsh7th/cmp-calc",
            "saadparwaiz1/cmp_luasnip",
            {
                "David-Kunz/cmp-npm",
                config = function()
                    require("plugins.cmp-npm")
                end,
            },
        },
    },

I was out of neovim for a while, since before 2.2 update and i had a bunch of lazy updates.
Exactly luasnip updates causes that errors

Oh, you have a leftover installation of luasnip with packer somewhere in your runtimepath!
Check the first error-trackeback, it refers to a file in a directory packer :D
Just remove all of those and it should be fine

I was out of neovim for a while, since before 2.2 update and i had a bunch of lazy updates.
Exactly luasnip updates causes that erro

Phew, that was a lot for me to discover in my config and my pc)
But ur advice made a total sense
Thanks


AttributeError: 'NoneType' object has no attribute 'exists'

import os
from watchpoints import watch

os.environ['a'] = 'before'
watch(os.environ)
os.environ['a'] = 'after'

results in
====== Watchpoints Triggered ======
Call Stack (most recent call last):
Exception ignored in: <async_generator object _ag at 0x7feacd0fc320>
Traceback (most recent call last):
  File "/usr/lib64/python3.6/types.py", line 27, in _ag
  File "/home/conan/.local/lib/python3.6/site-packages/watchpoints/watch.py", line 133, in tracefunc
  File "/home/conan/.local/lib/python3.6/site-packages/watchpoints/watch.py", line 158, in _default_callback
  File "/home/conan/.local/lib/python3.6/site-packages/watchpoints/watch_print.py", line 36, in __call__
  File "/home/conan/.local/lib/python3.6/site-packages/watchpoints/watch_print.py", line 48, in _file_string
  File "/home/conan/.local/lib/python3.6/site-packages/watchpoints/watch_print.py", line 56, in getsourceline
AttributeError: 'NoneType' object has no attribute 'exists'

I'm not able to reproduce this error. This error basically says os.path does not have exists. I noticed that there's an exception:
Exception ignored in: <async_generator object _ag at 0x7feacd0fc320>

which could not be possibly generated from the code snippet you provided.
Could you make sure your code snippet can produce this error?

I verified it again. Python 3.6.8 on CentOS 7.
On Sun, 25 Apr 2021 at 20:44, gaogaotiantian @.***>
wrote:

I'm not able to reproduce this error. This error basically says os.path
does not have exists. I noticed that there's an exception:
Exception ignored in: <async_generator object _ag at 0x7feacd0fc320>
which could not be possibly generated from the code snippet you provided.
Could you make sure your code snippet can produce this error?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gaogaotiantian/watchpoints/issues/24#issuecomment-826361609,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2ORDPWYVDUUN3L3NPAA6DTKRIJTANCNFSM43RPYTEA
.

Sorry I noticed that I'm using the wrong code. I'm looking into it. It seems like a resource release error. Could you try to unwatch at the end of your code and see if you could reproduce it?

import os
from watchpoints import watch, unwatch

watch(os.environ)
os.environ['a'] = 'after'
unwatch(os.environ)

does not error but neither it triggers the watchpoint

Yeah, I'm looking into it and see why it won't trigger the watchpoint.

Oh I see what's going on for the watchpoint not trigger issue.
os.environ is a customized object(os._Environ). For customized objects, there is no way for watchpoints to reliably figure out if it's changed, or copy it. The best it can do is to guess. So, by default, it will create a shallow copy of the object and use __eq__(!=) method for comparison.
For this matter, when you watch os.environ, a shallow copy is not enough to make watchpoints aware of the changes, because the copy watchpoints saved will be changed as well when you do os.environ['a'] = "after".
This is not a bug, but a trade off for default behavior. One simple solution is to use deepcopy.
watch(os.environ, deepcopy=True)
Or you can define your own copy method of the object and pass it with copy arg:
watch(os.environ, copy=your_own_copy_function).
The exception is still a bug, but let me know if this trigger explanation is good for you.

Thanks, with deepcopy the watchpoint is triggered.
On Sun, 25 Apr 2021 at 21:12, gaogaotiantian @.***>
wrote:

Oh I see what's going on for the watchpoint not trigger issue.
os.environ is a customized object(os._Environ). For customized objects,
there is no way for watchpoints to reliably figure out if it's changed,
or copy it. The best it can do is to guess. So, by default, it will create
a shallow copy of the object and use eq(!=) method for comparison.
For this matter, when you watch os.environ, a shallow copy is not enough
to make watchpoints aware of the changes, because the copy watchpoints
saved will be changed as well when you do os.environ['a'] = "after".
This is not a bug, but a trade off for default behavior. One simple
solution is to use deepcopy.
watch(os.environ, deepcopy=True)
Or you can define your own copy method of the object and pass it with copy
arg:
watch(os.environ, copy=your_own_copy_function).
The exception is still a bug, but let me know if this trigger explanation
is good for you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gaogaotiantian/watchpoints/issues/24#issuecomment-826365781,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2ORDJRSSR6CNNAM23TNPDTKRLSTANCNFSM43RPYTEA
.

I believe the exception was an issue to access stuff when python try to release the objects(at the end of the execution). For now I don't think it's meaningful or possible to monitor variables in this process reliably. I will just turn watchpoints off when the main body of script is done with atexit.


api#am#admin#v0.14.war gets removed during server optimisation.

Description
The api#am#admin#v0.14.war gets removed when optimizing the APIM-2.6.0 server to any profile. Hence the api#am#admin#v0.14.war webapp needs to be added to the publisher and devportal profiles.
Steps to Reproduce

Go to the wso2am-2.6.0/bin/ location.
Run the profileSetup.sh and optimize the server to any profile.
Check the  wso2am-2.6.0/repository/deployment/server/webapps/ directory for the api#am#admin#v0.14.war webapp.

Affected Component
APIM
Version
wso2am-2.6.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

The same issue has been duplicated at https://github.com/wso2/product-apim/issues/6686 and has been resolved with the public fix found at https://github.com/wso2/product-apim/pull/6786, which subsequently closed the issue.


V0.5.23

Summary
Fixes for several recently reported minor bugs
Checklist
Delete items not relevant to your PR:

[x] Unit and integration tests covering the common scenarios were added
[x] A human-readable description of the changes was provided to include in CHANGELOG

@genzgd Thanks for you work on this, very much appreciated.


Documentation generated by nbdev_build_docs lacks template

I'm working through the minimal example (https://nbdev.fast.ai/example.html), and find that the documentation created does not have any templating, including any navigation.

The checked in repo can be found here: https://github.com/sflinter/deck_of_cards
...and the resulting documentation site is here: https://sflinter.github.io/deck_of_cards/.
There are two additional pages that can only be found with explicit URLs: https://sflinter.github.io/deck_of_cards/card.html
...and https://sflinter.github.io/deck_of_cards/deck.html

I have installed Jekyll locally, and the same rendering is visible.
I've had to make a few changes from the given installation and setup instructions to get this far:

I'm using python 3.8.8 on macOS 11.2.3 (Big Sur)
Upgraded nbdev after the initial install (which installs 0.2.40 by default)
Downgraded nbconvert to 5.6.1

I'm using miniconda for environment management:
$ conda list
# packages in environment at /usr/local/Caskroom/miniconda/base/envs/nbdev:
#
# Name                    Version                   Build  Channel
anyio                     2.2.0            py38hecd8cb5_1
appnope                   0.1.2           py38hecd8cb5_1001
argon2-cffi               20.1.0           py38h5406a74_2    conda-forge
attrs                     20.3.0             pyhd3eb1b0_0
babel                     2.9.0              pyhd3eb1b0_0
backcall                  0.2.0              pyhd3eb1b0_0
backports                 1.0                pyhd3eb1b0_2
backports.functools_lru_cache 1.6.3              pyhd3eb1b0_0
bleach                    3.3.0              pyhd3eb1b0_0
brotlipy                  0.7.0           py38h9ed2024_1003
ca-certificates           2021.1.19            hecd8cb5_1
certifi                   2020.12.5        py38h50d1736_1    conda-forge
cffi                      1.14.5           py38ha97d567_0    conda-forge
chardet                   4.0.0           py38hecd8cb5_1003
cryptography              3.4.7            py38h1fa4640_0    conda-forge
dbus                      1.13.18              h18a8e69_0
decorator                 5.0.5              pyhd3eb1b0_0
defusedxml                0.7.1              pyhd3eb1b0_0
entrypoints               0.3                      py38_0
expat                     2.3.0                h23ab428_2
fastcore                  1.3.19                     py_0    fastai
fastrelease               0.1.11                     py_0    fastai
gettext                   0.21.0               h7535e17_0
ghapi                     0.1.16                     py_0    fastai
glib                      2.68.0               hdf23fa2_0
icu                       58.2                 h0a44026_3
idna                      2.10               pyhd3eb1b0_0
importlib-metadata        3.7.3            py38hecd8cb5_1
importlib_metadata        3.7.3                hd3eb1b0_1
ipykernel                 5.5.3            py38h6c79ece_0    conda-forge
ipython                   7.22.0           py38h6c79ece_0    conda-forge
ipython_genutils          0.2.0              pyhd3eb1b0_1
ipywidgets                7.6.3              pyhd3eb1b0_1
jedi                      0.18.0           py38h50d1736_2    conda-forge
jinja2                    2.11.3             pyhd3eb1b0_0
jpeg                      9b                   he5867d9_2
json5                     0.9.5              pyh9f0ad1d_0    conda-forge
jsonschema                3.2.0                      py_2
jupyter                   1.0.0                    py38_7
jupyter-packaging         0.7.12             pyhd3eb1b0_0
jupyter_client            6.1.12             pyhd3eb1b0_0
jupyter_console           6.4.0              pyhd3eb1b0_0
jupyter_core              4.7.1            py38hecd8cb5_0
jupyter_server            1.5.1            py38h50d1736_0    conda-forge
jupyterlab                3.0.12             pyhd8ed1ab_0    conda-forge
jupyterlab_server         2.4.0              pyhd8ed1ab_0    conda-forge
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1
libcxx                    10.0.0                        1
libffi                    3.3                  hb1e8313_2
libiconv                  1.16                 h1de35cc_0
libpng                    1.6.37               ha441bb4_0
libsodium                 1.0.18               h1de35cc_0
libxml2                   2.9.10               h7cdb67c_3
llvm-openmp               10.0.0               h28b9765_0
markupsafe                1.1.1            py38h1de35cc_1
mistune                   0.8.4           py38h1de35cc_1001
nbclassic                 0.2.6              pyhd3eb1b0_0
nbconvert                 5.6.1                    py38_1
nbdev                     1.1.13                     py_0    fastai
nbformat                  5.1.3              pyhd3eb1b0_0
ncurses                   6.2                  h0a44026_1
notebook                  6.3.0            py38hecd8cb5_0
openssl                   1.1.1k               h0d85af4_0    conda-forge
packaging                 20.9               pyhd3eb1b0_0
pandoc                    2.12                 hecd8cb5_0
pandocfilters             1.4.3            py38hecd8cb5_1
parso                     0.8.2              pyhd3eb1b0_0
pcre                      8.44                 hb1e8313_0
pexpect                   4.8.0              pyhd3eb1b0_3
pickleshare               0.7.5           pyhd3eb1b0_1003
pip                       21.0.1           py38hecd8cb5_0
prometheus_client         0.10.0             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.17             pyh06a4308_0
prompt_toolkit            3.0.17               hd3eb1b0_0
ptyprocess                0.7.0              pyhd3eb1b0_2
pycparser                 2.20                       py_2
pygments                  2.8.1              pyhd3eb1b0_0
pyopenssl                 20.0.1             pyhd3eb1b0_1
pyparsing                 2.4.7              pyhd3eb1b0_0
pyqt                      5.9.2            py38h655552a_2
pyrsistent                0.17.3           py38haf1e3a3_0
pysocks                   1.7.1            py38h50d1736_3    conda-forge
python                    3.8.8                h88f2d9e_4
python-dateutil           2.8.1              pyhd3eb1b0_0
python_abi                3.8                      1_cp38    conda-forge
pytz                      2021.1             pyhd3eb1b0_0
pyyaml                    5.4.1            py38h9ed2024_1
pyzmq                     20.0.0           py38h23ab428_1
qt                        5.9.7                h468cd18_1
qtconsole                 5.0.3              pyhd3eb1b0_0
qtpy                      1.9.0                      py_0
readline                  8.1                  h9ed2024_0
requests                  2.25.1             pyhd3eb1b0_0
send2trash                1.5.0              pyhd3eb1b0_1
setuptools                52.0.0           py38hecd8cb5_0
sip                       4.19.8           py38h0a44026_0
six                       1.15.0           py38hecd8cb5_0
sniffio                   1.2.0            py38hecd8cb5_1
sqlite                    3.35.4               hce871da_0
terminado                 0.9.4            py38hecd8cb5_0
testpath                  0.4.4              pyhd3eb1b0_0
tk                        8.6.10               hb0a8c7a_0
tornado                   6.1              py38h9ed2024_0
traitlets                 5.0.5              pyhd3eb1b0_0
urllib3                   1.26.4             pyhd3eb1b0_0
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
webencodings              0.5.1                    py38_1
wheel                     0.36.2             pyhd3eb1b0_0
widgetsnbextension        3.5.1                    py38_0
xz                        5.2.5                h1de35cc_0
yaml                      0.2.5                haf1e3a3_0
zeromq                    4.3.4                h23ab428_0
zipp                      3.4.1              pyhd3eb1b0_0
zlib                      1.2.11               h1de35cc_3

How do you have your documentation link setup in git? You need to make sure that in the hosting settings it's pointing to /docs. By default it uses the root
Settings -> Options -> GitHub Pages -> Source -> Branch: master, folder: /docs

Hi @sflinter thanks so much for reporting this.  yes indeed I forgot to update that example to follow the new nbdev remote theme.  Can you please try it again.  I fixed this with https://github.com/fastai/deck_of_cards/pull/4

We also just did a release earlier today which could help.
I also just produced a fresh nbdev repo from that environment.  Note that the docs build in gitHub Actions so I'm not sure why your local dev environment would matter here but lets try to figure it out if it still doesn't work.
~Furthremore, I also just tried making an nbdev repo from the template and it works~ Nope something is still wrong....

Nope. wait I fixed it in the wrong place!  one second

Ok its fixed now.  Try again with the new template.
I tested it with https://github.com/hamelsmu/nbdev_foo
The rendered site is https://hamelsmu.github.io/nbdev_foo/

@hamelsmu, thanks for the prompt response. Yep, that looks like it's done the trick: https://sflinter.github.io/deck_of_cards/.
Very cool project!


Changes for network and resources  to work with 2015-* profile

…ialization changes for 2015-* profile

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[ ] The PR has modified HISTORY.rst with an appropriate description of the change (see Modifying change log).

Command Guidelines

[ ] Each command and parameter has a meaningful description.
[ ] Each new command has a test.

(see Authoring Command Modules)

@bganapa,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Codecov Report

Merging #2807 into api-profile-support will decrease coverage by 0.01%.
The diff coverage is 66.66%.

@@                   Coverage Diff                   @@
##           api-profile-support    #2807      +/-   ##
=======================================================
- Coverage                63.02%   63.01%   -0.02%
=======================================================
  Files                      483      483
  Lines                    26203    26213      +10
  Branches                  3971     3976       +5
=======================================================
+ Hits                     16515    16517       +2
- Misses                    8649     8656       +7
- Partials                  1039     1040       +1

Impacted Files
Coverage Δ

...ource/azure/cli/command_modules/resource/custom.py
51.22% <100%> (+0.1%)
:arrow_up:

...etwork/azure/cli/command_modules/network/custom.py
62.09% <65.62%> (-0.38%)
:arrow_down:

...-cli-role/azure/cli/command_modules/role/custom.py
19.28% <0%> (ø)
:arrow_up:

src/azure-cli-core/azure/cli/core/util.py
68.99% <0%> (ø)
:arrow_up:

...dback/azure/cli/command_modules/feedback/custom.py
34.69% <0%> (ø)
: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 188cdd2...477a2b5. Read the comment docs.

Closing and taking over this PR. Will create a new PR once changes made.