chore: bdd-spring-1584383056 to 0.0.2

chore: Promote bdd-spring-1584383056 to version 0.0.2

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Add integration tests for testing API breaks for ArtifactClient.

The tests do not verify anything of the functional part, except whether our code
is complied with, using all possible variants of the use of the public APIs.
Add integration tests for testing API breaks for ArtifactClient

Shoud be initialized withouth arguments
Test getSchemaDetails method with schemaDetailsRequest
Test getSchema method with schemaRequest

Relates-To: OLPEDGE-1763
Signed-off-by: Drapak Iryna Angelica<EMAIL_ADDRESS>

Codecov Report

Merging #278 into master will not change coverage by %.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #278   +/-   ##
======================================
  Coverage    90.3%   90.3%
======================================
  Files          57      57
  Lines        1622    1622
  Branches      194     194
======================================
  Hits         1464    1464
  Misses         89      89
  Partials       69      69

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 e34e81c...52c1bda. Read the comment docs.


settings: Fix input mouse behaviour in custom profile fields.

Fixes #17619

Testing plan:
GIFs or screenshots:

This is less obviously broken, so I'm going to go ahead and merged.  That said, the way I'm used to this sort of dragging UI working is only being able to grab on the \vdots type element at the far left of the table, and I think it might be better to do that?  May be worth finding some other project using this sort of dragging UI to look at the UI decisions they made and compare.
Can you start a thread on #frontend to discuss the precise semantics we want with the community?


chore: one cheer for collaboration

@ParanoidUser Thanks! I saw that you helped me earn the Pair Extraordinaire badge. Thanks a whole lot!!! ❤❤❤


Allow replacement of Id sanitization

HTML continues to evolve and users may have many different Id uniqueness or sanitization requirements.  For example a user who values uniqueness more than Unobtrusive validation or other CSS selectors, might want no sanitization at all.  Others may want to sanitize only characters that are known to cause issues in CSS selectors.
@DamianEdwards and I talked about one way to address these various requirements.  We could make Id sanitization a service MVC grabs from DI to meet the above requirement.  Current MVC 6.0 code uses a static method in TagBuilder – pretty much the opposite of an extensibility point.
FYI default sanitization will match MVC 5.2.  That provides Id values which match HTML 4 requirements.  So by default we could be sacrificing some uniqueness when names contain "invalid" characters.
Including Needs Design label per an offline comment from @yishaigalatzer

@Eilon @dougbu @DamianEdwards Have we had anyone ask for this? Close?

Can't recall whether @DamianEdwards and my conversation on this topic started from a customer request, team comment on a way-back PR, or random ions in that hallway.

I'm not aware of any real-world problems in this space.

Closing, but we would revisit based on customer feedback.


Collaboration for localised fpm documentation?

First, thanks for including TOML Fortran in your project, this is much appreciated. Also, sorry for not providing this kind documentation in TOML Fortran in the first place ;).
I just started building a new documentation repository for the Fortran package manager (fpm) at https://github.com/awvwgk/fpm-docs, especially with focus on allowing localised versions and I see fpm in a few places here. We already started working on German and Spanish translations and except for a few quirks it seems to working quite well.
Would you be interested collaborating at the fpm docs to contribute a translation as well?

Thank you for your invitation @awvwgk , we have been following fpm trends and are interested in contributing Chinese local translations to it.


seek and seek-to reset media back to

Hey there! I've just downloaded go-chromecast via go get for the first time on a new device running Ubuntu 20 (having used it before successfully on a Mac) and I successfully managed to stream a local video to my Chromecast, but it appears any usage of seek, seek-to, or attempting to seek using the left/right arrow keys in the ui command interface, simply resets the video back to the start every time.
I've attached the logs below from running the seek-to command with --debug on and from what I can see there's nothing unexpected, and the final log appears to imply the seek was successful. Any assistance would be appreciated!
using device name=Living Room TV addr=<IP_ADDRESS> port=8009 uuid=65cfe430cbb58bf41cf867184fe46bb1
DEBU[0000] (1)sender-0 -> receiver-0 [urn:x-cast:com.google.cast.tp.connection]: {"type":"CONNECT","requestId":1}  package=cast
DEBU[0000] (2)sender-0 -> receiver-0 [urn:x-cast:com.google.cast.receiver]: {"type":"GET_STATUS","requestId":2}  package=cast
DEBU[0000] (2)sender-0 <- receiver-0 [urn:x-cast:com.google.cast.receiver]: {"requestId":2,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedF romCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"63b96247-8ebb-474e-ad6a-d1a1cf34bd78","statusText":"Default Media Receiver","transportId":"63b96247-8ebb-474e-ad6a-d1a1cf34bd78","universalAppId":"CC1AD845"}],"userEq":{},"volume":{"controlType":"attenuation","level":0.7799999713897705,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}  package=cast
DEBU[0000] (3)sender-0 -> 63b96247-8ebb-474e-ad6a-d1a1cf34bd78 [urn:x-cast:com.google.cast.tp.connection]: {"type":"CONNECT","requestId":3}  package=cast
DEBU[0000] (4)sender-0 -> 63b96247-8ebb-474e-ad6a-d1a1cf34bd78 [urn:x-cast:com.google.cast.media]: {"type":"GET_STATUS","requestId":4}  package=cast
DEBU[0000] (4)sender-0 <- 63b96247-8ebb-474e-ad6a-d1a1cf34bd78 [urn:x-cast:com.google.cast.media]: {"type":"MEDIA_STATUS","status":[{"mediaSessionId":5,"playbackRate":1,"playerState":"PLAYING","currentTime":42.072977,"supportedMediaCommands":274447,"volume":{"level":1,"muted":false},"activeTrackIds":[],"media":{"contentId":"http://<IP_ADDRESS>:41457?media_file=/home/luke/Downloads/video.mkv&live_streaming=true","contentType":"video/mp4","streamType":"BUFFERED","duration":5.130125,"metadata":{"MetadataType":0,"artist":"","title":"","subtitle":"","releaseDate":""},"mediaCategory":"VIDEO","tracks":[{"trackId":1,"type":"VIDEO"}],"breakClips":[],"breaks":[]},"queueData":{"startIndex":0},"currentItemId":1,"items":[{"itemId":1,"media":{"contentId":"http://<IP_ADDRESS>:41457?media_file=/home/luke/Downloads/video.mkv&live_streaming=true","contentType":"video/mp4","streamType":"BUFFERED","duration":5.130125,"metadata":{"MetadataType":0,"artist":"","title":"","subtitle":"","releaseDate":""},"mediaCategory":"VIDEO"},"autoplay":true,"orderId":0}],"repeatMode":"REPEAT_OFF"}],"requestId":4}  package=cast
DEBU[0000] (5)sender-0 -> 63b96247-8ebb-474e-ad6a-d1a1cf34bd78 [urn:x-cast:com.google.cast.media]: {"type":"SEEK","requestId":5,"mediaSessionId":5,"currentTime":130,"resumeState":"PLAYBACK_START"}  package=cast

Hello! Ah that's annoying, thank you for the logs they are very helpful. This may be an issue with the default receiver itself, or an issue with how we seek. For the "Default Media Receiver" and "Plex" cast-applications we always try and seek-to (regardless of if it is a seek) since I believe when transcoding it isn't able to seek.
Let me do some investigation on this, seeking may not be possible when transcoding unfortunately but I'll play around with it.


Does not work

No cookiehub scripts added, you do not even use cookieshub in your own website, nor any other cookie compliance scripts.
All the starters that say they use this do not and why not.
Working example of your work is needed, but no one does that anymore and that really a problem with the whole internet programming community.
Show me!

Same issue, can't make it work, can you provide a working example ? thanks

Correct, the plugin seems to suck.
For anyone trying to use this plugin see the gatsby docs for add the script inline:
https://www.gatsbyjs.org/docs/custom-html/#adding-custom-javascript
Finally got it working.

The plugin didn't work for me too and I don't want to integrate it usinghtml.js, because of the limitations.
Now, I integrated cookiehub with my own react component:
import React from "react"
import Helmet from 'react-helmet';

const CookieBannerCookieHub = ({ googleTrackingId, cookieHubId }) => {
    const googleUrl = "https://www.googletagmanager.com/gtag/js?id=" + googleTrackingId
    const cookieHubUrl = "https://cookiehub.net/cc/" + cookieHubId + ".js"
    return (
        <Helmet
            script={[
                { type: "text/javascript", src: googleUrl },
                { type: "text/javascript", innerHTML:
                    `var gtagId = '`+googleTrackingId+`';
                    window['ga-disable-' + gtagId] = true;
                    window.dataLayer = window.dataLayer || [];
                    function gtag(){dataLayer.push(arguments)}
                    gtag('js', new Date());`},
                { type: "text/javascript", src: cookieHubUrl },
                { type: "text/javascript", innerHTML:
                    `window.addEventListener("load", function() {
                        window.cookieconsent.initialise({
                        onInitialise: function(status) {
                            if (this.hasConsented('required')) {
                            }
                            if (this.hasConsented('analytics')) {
                            window['ga-disable-`+googleTrackingId+`'] = false;
                            gtag('config', gtagId);
                            }
                            if (this.hasConsented('marketing')) {
                            }
                        },
                        onAllow: function(category) {
                            if (category == 'required') {
                            }
                            if (category == 'analytics') {
                            window['ga-disable-`+googleTrackingId+`'] = false;
                            gtag('config', gtagId);
                            }
                            if (category == 'marketing') {
                            }
                        },
                        onRevoke: function(category) {
                            if (category == 'required') {
                            }
                            if (category == 'analytics') {
                            window['ga-disable-`+googleTrackingId+`'] = true;
                            }
                            if (category == 'marketing') {
                            }
                        }
                        })
                        });`}
            ]}
        />
    )
}

export default CookieBannerCookieHub

Within layout.js or another place you can use the component easily:
<CookieBannerCookieHub googleTrackingId="<YOUR TRACKING ID>" cookieHubId="<YOUR COOKIEHUB ID>"/>

It didn't work for me either!
I decided to inject the JavaScript into the , using react-helmet and also the static directory feature of Gatsby.
`

`
(According to [this](https://stackoverflow.com/a/62562235) SO answer.


fix #36

Nice addition, I would love to merge it. Can you revert line 107 and adjust the documentation (README)?

@tersmitten
About line 107: I do not think the current behaviour is useful at all. If the service is present in your ansible configuration, it should obviously be enabled, or it would not be present in your config or be manually disabled IMO. Anyone who feels it necessary to explicitly state that it is enabled (which seems to be a rare usecase) can still do so with my patch. Otherwise this seems like unnecessary bloat.

I understand yoou point, but if you specify:
fail2ban_services:
  - name: ssh
    enabled: false

jail.local will contain:
enabled = False

instead of
enabled = false

This works like a charm
enabled = {{ service.enabled | default(true) | bool | to_json }}

What do you think about that?

I see your point! I have just tested this, and actually, True and False are interpreted correctly by fail2ban, so this issue is purely cosmetic :)
Your suggestion is fine, but I feel that it is utterly unreadable. (I.e., you wouldn't guess why it's there without knowing).
Perhaps there is a better way to achieve this? Or alternatively just leave it as-is, as it is just cosmetic.

{{ service.enabled | default('true') | bool | lower }} seems a bit more readable. Other suggestions?

I have just done some research regarding the README update:
There is a jail defined in jail.conf for every filter shipped with fail2ban. This role is currently not able to add new filters. So, generally, you will always just enable and perhaps adjust one of the predefined jails.
Ultimately, the only variable required for each fail2ban_services item is name.
Due to these points, It seems most reasonable replace the current fail2ban_services documentation with one or more examples on how to enable/adjust existing jails.

This role is currently not able to add new filters
What about fail2ban_filterd_path (see README)?

Due to these points, It seems most reasonable replace the current fail2ban_services documentation with one or more examples on how to enable/adjust existing jails and document the aforementioned behaviour

Can you make the documentation look something like this?
* `supervisor_programs_present` [default: `{}`]: Program definitions
* `supervisor_programs_present.{n}` [required]: Program name
* `supervisor_programs_present.{n}.command` [required]: The command that will be run when this program is started
* `supervisor_programs_present.{n}.directory` [optional]: A directory to which supervisord should temporarily chdir before exec’ing the child
* `supervisor_programs_present.{n}.environment` [optional]: A list of key/value pairs that will be placed in the child process’ environment
* `supervisor_programs_present.{n}.autostart` [optional]: If true, this program will start automatically when supervisord is started
* `supervisor_programs_present.{n}.autorestart` [optional]: Whether the process will be autorestarted
* `supervisor_programs_present.{n}.startretries` [optional]: The number of serial failure attempts that supervisord will allow when attempting to start the program before giving up

Okay, gotcha on the custom filters. Anyway, the only (always) required value is "name". Could you perhaps submit a concrete README draft (or merge this and commit it on your own).

I can fix the documentation, no worries


Feature Request - separate battery charging/discharging entities

Can currently only enter one entity for Battery preset. I use Envoy, which presents a charging and discharging power entity separately. Would like to see an option to enter both entities so the Battery preset will show arrows accordingly whether it is charging or discharging.

Hey there 👋
Sorry that I  respond so late.
Since you have two entities, I think it would be easier to just create a template sensor which combines the two. (https://my.home-assistant.io/redirect/helpers/)
This should only take a minute and should be as simple as:

I hope this helps!
If not, feel free to reopen the issue. 👍
Take care and stay safe!


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[proposal] add more metrics for koordlet for tracing each module/feature works well

What is your proposal:

[ ] performance(qps/rt) from to kubelet
[ ] cri performace(qps/rt)
[ ] Runtime Hook Server performance
[ ] os file(cgroup) read and write duration
[ ] duration of system call

Why is this needed:
Is there a suggested solution, if so, please add it:

link #987


Add support for healthcheck heartbeat keep alive type monitor

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
New Monitor
🔖 Feature description
If Uptime Kuma goes down, then you don't know if the rest of what it is monitoring goes down. I saw one request for this but he didn't seem to accurately descrive what was wanted. 611
If Uptime Kuma could have an option to ping an external service/endpoint then something else could check that Uptime Kuma is still good. An example of this is that you run Uptime Kuma on your internal network so don't want to open it to the internet. If Uptime Kuma could ping heathchecks.io (one example) then that external monitoring service would know if it goes down.
See this application for reference:
Chiadog redundant monitor
✔ Solution
Add a healthcheck/keep alive/heartbeat type monitor to allow Uptime Kuma the option to ping/post to an endpoint itself.
❓ Alternatives
You could run 2 Uptime Kuma. With one looking for the ping of the other. This is similar to what I want, but with not having to selfhost another monitor somewhere else and have it built in.
📝 Additional Context
Thanks for your project!

Looks like you already gave a solution, you can create a HTTP Type Monitor pointing to healthchecks.io Ping URL, if Uptime Kuma goes down and stop trying this monitor, healthchecks.io will produce an alert.

I'll close this. lol.
I guess I was thinking of it backard, where uptime checks if something is up, which of course emans its doing a call to that service so that service (healthchecks.io in this case) knows that its endpint was hit.
Thanks again!


The generate-typescript-typedefs command throws property.filter_content_type.map is not a function

Current behavior:
While running generate-typescript-typedefs command, I am getting the following error.
file:///Users/pawelgrzybek/Desktop/sb/node_modules/.pnpm/storyblok@3.30.0/node_modules/storyblok/dist/cli.mjs:3309
        tsType: `(${property.filter_content_type.map((type2) => __privateMethod(this, _getStoryType, getStoryType_fn).call(this, type2)).join(" | ")} | string )${property.type === "options" ? "[]" : ""}`
                                                 ^

TypeError: property.filter_content_type.map is not a function
    at _GenerateTypesFromJSONSchemas.getPropertyTypeAnnotation_fn (file:///Users/pawelgrzybek/Desktop/sb/node_modules/.pnpm/storyblok@3.30.0/node_modules/storyblok/dist/cli.mjs:3309:50)
    at _GenerateTypesFromJSONSchemas.getTypeAnnotationsForComponentProperties_fn (file:///Users/pawelgrzybek/Desktop/sb/node_modules/.pnpm/storyblok@3.30.0/node_modules/storyblok/dist/cli.mjs:3240:103)
    at async _GenerateTypesFromJSONSchemas.generateTSFile (file:///Users/pawelgrzybek/Desktop/sb/node_modules/.pnpm/storyblok@3.30.0/node_modules/storyblok/dist/cli.mjs:3166:50)
    at async Object.generateTypescriptTypedefs (file:///Users/pawelgrzybek/Desktop/sb/node_modules/.pnpm/storyblok@3.30.0/node_modules/storyblok/dist/cli.mjs:3465:12)

Expected behavior:
To have TS types generated.
Steps to reproduce:
Unfortunately I am unable to provide a source file, as it contains structure specific to my company. I am more than happy to share it via private channel. Luckily I managed to narrow the issue down slightly.
https://github.com/storyblok/storyblok-cli/blob/master/src/utils/typescript/generateTypesFromJSONSchema.ts#L347
    if (property.source === "internal_stories") {
      if (property.filter_content_type) {
        return {
          tsType: `(${property.filter_content_type
//           👇 - property.filter_content_type can also be a string, and this is the case for my schema
            .map((type2) => this.#getStoryType(type2))
            // In this case property.type can be `option` or `options`. In case of `options` the type should be an array
            .join(" | ")} | string )${property.type === "options" ? "[]" : ""}`,
        };
      }
    }

Other information:
Issue is consistent on Node.js 18 and Node.js 20.

Just stumbled upon exactly the same issue in Node.js 20.
Can fully confirm @pawelgrzybek's analysis as these are the different values for filter_content_type:
"filter_content_type": "author"         // string
"filter_content_type": ["reference"],   // Array<string>

After manually wrapping the plain string occurrences inside arrays, the generation works without a problem.

going through the storyblok UI and re-adding restricted content types fixed the string vs arrays issue for us as well!

I can confirm that I solved my issue by re-saving all blocks that use content filters via UI.
I imagine that a change in the data structure from string to array of strings happened internally over time so plenty of schemas generated in the past contain raw strings. That was the case for me. Since Storyblok internally handle both cases, TS conversion should also transparently convert raw strings into array of strings.
Thanks for good tip @bemayr

That should do: https://github.com/storyblok/storyblok-cli/pull/103

Thank you @pawelgrzybek for bringing this up!
You made a pretty accurate depiction of the issue: there has been a change to the exposed schema data structure and from that moment onwards all the filter_content_type have been handled as arrays, while in the past they used to be strings.
Thanks for opening a PR to fix this inconsistency and for making Storyblok a better place! 🙏


[BUG] Ilegal character in the notification.

Describe the bug
The notification element stating that the "Wallpanel is running..." uses a special char "horizontal ellipsis" (U+2026).
This character cannot be stored in the HA database.
To Reproduce
Steps to reproduce the behavior:
I have on the same device the HA Companion App installed and I use the Notification Sensor of the app to extract the notifications out of the device. The above mentioned notification cannot be stored into my PostgreSQL because of that special character.
Smartphone (please complete the following information):

Device: Acer Iconia 10
OS: Android 6.0
Applicaiton version: 0.9.4 build 9

Wallpanel is a dedicated application, it should not be run in conjunction with the companion app.  If the companion app cannot properly store characters, it's a problem of the companion app.

Yeah, interesting.
But I just disabled all Wallpanel's notifications.
Now there is no notification anymore and so there is no more text that needs to be stored into the history database.
Please close the issue.


Host verification failing due to Google certificate

Hi,
This piece of code was working couple of months ago. Yesterday, I decided to test it again to confirm if its still working. While testing I got this error. I had not seen this issue couple of months ago. Just want to confirm if this certificate issue is Google's issue and not spring-social-google related.
Filed bug with Google - https://code.google.com/p/google-apis-explorer/issues/detail?id=300
Thanks
H
59:27:345 ERROR org.springframework.social.connect.web.ProviderSignInController.oauth2Callback Message=Exception while completing OAuth 2 connection:
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://www.googleapis.com/plus/v1/people/me":Host name 'www.googleapis.com' does not match the certificate subject provided by the peer (CN=*.storage.googleapis.com, O=Google Inc, L=Mountain View, ST=California, C=US); nested exception is javax.net.ssl.SSLPeerUnverifiedException: Host name 'www.googleapis.com' does not match the certificate subject provided by the peer (CN=*.storage.googleapis.com, O=Google Inc, L=Mountain View, ST=California, C=US)
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:580)
    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:530)
    at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:237)
    at org.springframework.social.google.api.impl.AbstractGoogleApiOperations.getEntity(AbstractGoogleApiOperations.java:50)
    at org.springframework.social.google.api.plus.impl.PlusTemplate.getPerson(PlusTemplate.java:105)
    at org.springframework.social.google.api.plus.impl.PlusTemplate.getGoogleProfile(PlusTemplate.java:110)
    at org.springframework.social.google.connect.GoogleAdapter.fetchUserProfile(GoogleAdapter.java:51)
    at org.springframework.social.google.connect.GoogleAdapter.fetchUserProfile(GoogleAdapter.java:31)
    at org.springframework.social.google.connect.GoogleConnectionFactory.extractProviderUserId(GoogleConnectionFactory.java:37)
    at org.springframework.social.connect.support.OAuth2ConnectionFactory.createConnection(OAuth2ConnectionFactory.java:91)
    at org.springframework.social.connect.web.ConnectSupport.completeConnection(ConnectSupport.java:161)
    at org.springframework.social.connect.web.ProviderSignInController.oauth2Callback(ProviderSignInController.java:216)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)

Really seems to be on a lower level than Spring Social. Maybe your internal network or proxy is messing with the certificate? Try running it from another location.

@hth I ran into the same problem and came up with the following code to fix it: https://gist.github.com/mlaccetti/f824c0bc0b7b2d17084c
Validated to work, etc.

@mlaccetti Really appreciate for providing solution.
Another person has encountered the same issue https://code.google.com/p/google-apis-explorer/issues/detail?id=301.
It would be nice to have this incorporated rather than have it as one-off solution. Thanks again.

I'll see if I can integrate the code into the package, if @GabiAxel agrees.

Since the certificate has these SANs:
DNS Name=.storage.googleapis.com
DNS Name=.commondatastorage.googleapis.com
DNS Name=*.googleapis.com
, the certificate should be perfectly valid for www.googleapis.com.
While not the exact same error message, perhaps it's in the same area.. I had issues with spring-social-google after upgrading Apache HttpClient from 4.3 to 4.4. The issue is described in https://issues.apache.org/jira/browse/HTTPCLIENT-1613 "Support for so called 'private' domains in Mozilla Public Suffix List". HttpClient 4.4 cannot be used with spring-social-google.

@oyvindhorneland Downgrading to 4.3.x solved the issue. Thanks.


Python error: Internal error setting the array gltf2_blender_export.save()

Describe the bug
Python error when exporting:

To Reproduce
Export attached file as "gltf".
Expected behavior
It works.
Screenshots

.blend file/ .gltf
chest.zip
Version

OS: Windows 10
Blender Version 3.4.1

Hello,
I can not reproduce it, on 3.4 neither current 3.5 alpha (linux)
Do you use some option at export?
Can you please try to reset to factory settings before exporting?

Hmm, I didn't change any settings, but it no longer seems to reproduce the error.  The worst kind of bug!  😐

Hello,
I have the same error when i try to export as gltf with the following blend file
climb.zip

@ara-martirossyan
Hello,
No, your error is not the same than the traceback from this ticket.
Your issue is a duplicate of #1803
This will be fixed in Blender 3.6, and before release, you will find a workaround in #1803
Thanks !

@julienduroure
Hello, thanks for feedback and the reference to actual  issue
Then, I don't mean to spam in here, but I somehow realized that if i unselect "Always Sample Animations"
I manage to export successfully. Thanks again!

About the original bug:
Let's this ticket open 1 month. If nobody success to reproduce during this time, I will close the ticket.

Hello,
Seems nobody reproduced it :(
Let's close this ticket.
Feel free to open a new one if you encounter it again!


Add Jessie Frazelle blog to README.md

Nice. I think the whole docker team should be there....
Thanks!


Essential tasks fail when first setting up main chain state @ v1.1.0-rc2

Describe the bug
When first setting up the main chain state, four essential tasks fail and then ExpectedDataNotFound("DParameter") is reported along with Ariadne parameters not found. However, I don't see an entry for DParameter in any of the JSON configuration files that were generated in early steps in the process. Because of #45, I had to use v1.1.0-rc2 instead of v1.0.0.
Is this behavior a fatal error? or expected behavior? In either case, it would be helpful if it were documented in the instructions.
$ ./partner-chains-cli setup-main-chain-state
This wizard will set or update D-Parameter and Permissioned Candidates on the main chain. Setting either of these costs ADA!
Will read the current D-Parameter and Permissioned Candidates from the main chain, using 'partner-chains-node ariadne-parameters' command.
> DB-Sync Postgres connection string postgresql://cardano:bcb33b5c09e31e3dd5a2b4ff0ee111e6@<IP_ADDRESS>:5432/preview
> Partner Chains node executable ./partner-chains-node
running external command: ./partner-chains-node ariadne-parameters --base-path /tmp/.tmpQj6ovC --chain chain-spec.json --mc-epoch-number 672
command output: 2024-08-25 13:20:12 Using block data source configuration: DbSyncBlockDataSourceConfig { cardano_security_parameter: 432, cardano_active_slots_coeff: 0.05, block_stability_margin: 0 }
command output: 2024-08-25 13:20:12 Executing 'CREATE INDEX IF NOT EXISTS idx_ma_tx_out_ident ON ma_tx_out(ident)', this might take a while
command output: 2024-08-25 13:20:12 relation "idx_ma_tx_out_ident" already exists, skipping
command output: 2024-08-25 13:20:12 Using candidate data source configuration: CandidateDataSourceCacheConfig { cardano_security_parameter: 432 }
command output: 2024-08-25 13:20:12 Start session 0, epoch 0
command output: 2024-08-25 13:20:12 🔨 Initializing Genesis block/state (state: 0x1a8f…8e36, header-hash: 0x80b1…8c8f)
command output: 2024-08-25 13:20:12 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
command output: 2024-08-25 13:20:12 Essential task `txpool-background` failed. Shutting down service.
command output: 2024-08-25 13:20:12 Essential task `transaction-pool-task-0` failed. Shutting down service.
command output: 2024-08-25 13:20:12 Essential task `transaction-pool-task-1` failed. Shutting down service.
command output: 2024-08-25 13:20:12 Essential task `basic-block-import-worker` failed. Shutting down service.
ExpectedDataNotFound("DParameter")

Ariadne parameters not found.
> Do you want to set/update the permissioned candidates on the main chain with values from configuration file? Yes
Partner Chains Smart Contracts require access to Kupo and Ogmios. Please provide their configuration.
> Kupo protocol (http/https) http
> Kupo hostname <IP_ADDRESS>
> Kupo port 21442
> Ogmios protocol (http/https) http
> Ogmios hostname <IP_ADDRESS>
> Ogmios port 21337
> path to the payment signing file /scratch/iohk/networks/treasury/john-webster.skey
running external command: ./sidechain-main-cli update-permissioned-candidates --remove-all-candidates --network testnet --add-candidate 020a1091341fe5664bfa1782d5e0477968906ac916b04cb365ec3153755684d9a1:d43593c715fdd31c61141abd04a99fd6822c8558854ccde49a5684e7a56da27d:88dc3417d5058ec4b4503e0c12ea1a0a89be200f498922423d4334014fa6b0ee --add-candidate 0390084fdbf27d2b79d26a4f13f0cdd982cb755a661969143c37cbc49ef5b91f27:8eaf04151687736326c9fea17e25fc5287613698c912909cb226aa4794f26a48:d17c2d7823ebf260fd138f2d7e27d114cb145d968b5ff5006125f2414fadae69 --sidechain-id 2 --genesis-committee-hash-utxo<PHONE_NUMBER>000000000000000000000000000000000000000000000000000000#0 --threshold-numerator 2 --threshold-denominator 3 --governance-authority 0x7482e8285c7dfcfbf87bb2ed3e17836eafec035d3cde957ab6ab0fad --atms-kind plain-ecdsa-secp256k1 --kupo-host <IP_ADDRESS> --kupo-port 21442  --ogmios-host <IP_ADDRESS> --ogmios-port 21337  --payment-signing-key-file /scratch/iohk/networks/treasury/john-webster.skey
Permissioned candidates updated. The change will be effective in two main chain epochs.
> Do you want to set/update the D-parameter on the main chain? Yes
> Enter P, the number of permissioned candidates seats, as a non-negative integer. 2
> Enter R, the number of registered candidates seats, as a non-negative integer. 0
Partner Chains Smart Contracts require access to Kupo and Ogmios. Please provide their configuration.
> Kupo protocol (http/https) http
> Kupo hostname <IP_ADDRESS>
> Kupo port 21442
> Ogmios protocol (http/https) http
> Ogmios hostname <IP_ADDRESS>
> Ogmios port 21337
> path to the payment signing file /scratch/iohk/networks/treasury/john-webster.skey
running external command: ./sidechain-main-cli insert-d-parameter --network testnet --d-parameter-permissioned-candidates-count 2 --d-parameter-registered-candidates-count 0 --sidechain-id 2 --genesis-committee-hash-utxo<PHONE_NUMBER>000000000000000000000000000000000000000000000000000000#0 --threshold-numerator 2 --threshold-denominator 3 --governance-authority 0x7482e8285c7dfcfbf87bb2ed3e17836eafec035d3cde957ab6ab0fad --atms-kind plain-ecdsa-secp256k1 --kupo-host <IP_ADDRESS> --kupo-port 21442  --ogmios-host <IP_ADDRESS> --ogmios-port 21337  --payment-signing-key-file /scratch/iohk/networks/treasury/john-webster.skey
D-parameter updated to (2, 0). The change will be effective in two main chain epochs.
Done. Main chain state is set. Please remember that any changes can be observed immediately, but from the Partner Chain point of view they will be effective in two main chain epochs.

To Reproduce
Follow the steps in chain-builder.md for the preview testnet.
I built partner-chains-cli etc. using the following recipe:
$ nix develop
$ cargo build --profile=production

I built sidechain-main-cli using the following recipe:
$ nix build .#sidechain-main-cli
$ cd target/production
$ ln -s ../../result/bin/sidechain-main-cli

All of the steps up until Run the setup main chain state wizard proceeded without incident, but the four failures were reported when ./partner-chains-cli setup-main-chain-state was run.
I ignored the errors and proceeded answering the prompts (as shown above). Both Cardano transaction succeeded and were visible on the chain.
Expected behavior
No fatal errors when ./partner-chains-cli setup-main-chain-state is run, or clear instructions about how to deal with these.
Additional resources

partner-chains-cli-resources-config.json
partner-chains-cli-chain-config.json
chain-spec.json

Environment
$ nixos-version
24.05.4169.797f7dc49e0b (Uakari)

$ nix --version
nix (Nix) 2.18.5

$ git latest
b991b7e1b4a28f3773eeb1d4aef061c9c511fa17 (HEAD, tag: v1.1.0-rc2) update changelog for 1.1.0-rc1 (#35)

Hey, I've got the same situation.
The ExpectedDataNotFound("DParameter") seems to be caused by this query IF the returns is null using yours d_parameter_policy_id from partner-chains-cli-chain-config.json file.
 SELECT
			origin_tx.hash        AS origin_tx_hash,
        	tx_out.index          AS utxo_index,
        	origin_block.epoch_no AS tx_epoch_no,
        	origin_block.block_no AS tx_block_no,
        	origin_block.slot_no  AS tx_slot_no,
        	origin_tx.block_index AS tx_block_index,
        	datum.value           AS datum
        FROM ma_tx_out
        INNER JOIN multi_asset          ON ma_tx_out.ident = multi_asset.id
        INNER JOIN tx_out               ON ma_tx_out.tx_out_id = tx_out.id
        INNER JOIN tx origin_tx         ON tx_out.tx_id = origin_tx.id
        INNER JOIN block origin_block   ON origin_tx.block_id = origin_block.id
        LEFT JOIN datum                 ON tx_out.data_hash = datum.hash
        WHERE multi_asset.policy = '06fe544f055633c94e27c22cd51d18f10802c50cd68ba96127b81dfe'
		AND multi_asset.name = ''
        AND origin_block.epoch_no <= 668
        ORDER BY tx_block_no DESC, origin_tx.block_index DESC
        LIMIT 1;

Ive also ignored the errors and proceeded answering the prompts at ./partner-chains-cli setup-main-chain-state like you but afterwards when I run the node it still doesn't produces the blocks.
./partner-chains-cli start-node
🛠 Loaded node base path from config (partner-chains-cli-resources-config.json): ./data
🛠 Loaded Partner Chains node executable from config (partner-chains-cli-resources-config.json): ./partner-chains-node
🛠 Loaded DB-Sync Postgres connection string from config (partner-chains-cli-resources-config.json): postgresql://postgres:v8hlDV0yMAHHlIurYupj@postgres.cardano-db-sync.orb.local:5432/cexplorer
The following values will be used to run the node:
    executable = ./partner-chains-node
    base path  = ./data
    chain spec = chain-spec.json
    bootnodes  = [/ip4/<IP_ADDRESS>/tcp/3033/p2p/12D3KooWGxZsVx5a9FDaJcC6XEVGqi24oQGp5j6CZ8ZZUA3nU32L]
    environment:
        BLOCK_STABILITY_MARGIN             = 0
        CARDANO_SECURITY_PARAMETER         = 432
        CARDANO_ACTIVE_SLOTS_COEFF         = 0.05
        FIRST_EPOCH_TIMESTAMP_MILLIS       =<PHONE_NUMBER>000
        EPOCH_DURATION_MILLIS              = 86400000
        FIRST_EPOCH_NUMBER                 = 0
        FIRST_SLOT_NUMBER                  = 0
        DB_SYNC_POSTGRES_CONNECTION_STRING = postgresql://postgres:v8hlDV0yMAHHlIurYupj@postgres.cardano-db-sync.orb.local:5432/cexplorer
        SIDECHAIN_BLOCK_BENEFICIARY        = 9b201f7febd09b16c8bd0aa1ade6ae53d1d834d045cae657faabda1b6a6449d2
> Proceed? Yes
running external command: CARDANO_SECURITY_PARAMETER='432' \
         CARDANO_ACTIVE_SLOTS_COEFF='0.05' \
         DB_SYNC_POSTGRES_CONNECTION_STRING='postgresql://postgres:v8hlDV0yMAHHlIurYupj@postgres.cardano-db-sync.orb.local:5432/cexplorer' \
         MC__FIRST_EPOCH_TIMESTAMP_MILLIS='1666656000000' \
         MC__EPOCH_DURATION_MILLIS='86400000' \
         MC__FIRST_EPOCH_NUMBER='0' \
         MC__FIRST_SLOT_NUMBER='0' \
         BLOCK_STABILITY_MARGIN='0' \
		 SIDECHAIN_BLOCK_BENEFICIARY='9b201f7febd09b16c8bd0aa1ade6ae53d1d834d045cae657faabda1b6a6449d2' \
 ./partner-chains-node --validator --chain chain-spec.json --base-path ./data --port 30333 --bootnodes /ip4/<IP_ADDRESS>/tcp/3033/p2p/12D3KooWGxZsVx5a9FDaJcC6XEVGqi24oQGp5j6CZ8ZZUA3nU32L
command output: 2024-08-28 15:18:04 Partner Chains Node
command output: 2024-08-28 15:18:04 ✌  version 1.0.0-2620a12269e
command output: 2024-08-28 15:18:04 ❤  by IOG , 2017-2024
command output: 2024-08-28 15:18:04 📋 Chain specification: Partner Chains Template
command output: 2024-08-28 15:18:04 🏷  Node name: absurd-sugar-5632
command output: 2024-08-28 15:18:04 👤 Role: AUTHORITY
command output: 2024-08-28 15:18:04 💾 Database: RocksDb at ./data/chains/partner_chains_template/db/full
command output: 2024-08-28 15:18:04 Using block data source configuration: DbSyncBlockDataSourceConfig { cardano_security_parameter: 432, cardano_active_slots_coeff: 0.05, block_stability_margin: 0 }
command output: 2024-08-28 15:18:04 Executing 'CREATE INDEX IF NOT EXISTS idx_ma_tx_out_ident ON ma_tx_out(ident)', this might take a while
command output: 2024-08-28 15:18:04 relation "idx_ma_tx_out_ident" already exists, skipping
command output: 2024-08-28 15:18:04 Using candidate data source configuration: CandidateDataSourceCacheConfig { cardano_security_parameter: 432 }
command output: 2024-08-28 15:18:05 Start session 0, epoch 0
command output: 2024-08-28 15:18:07 Using default protocol ID "sup" because none is configured in the chain specs
command output: 2024-08-28 15:18:07 🏷  Local node identity is: 12D3KooWGxZsVx5a9FDaJcC6XEVGqi24oQGp5j6CZ8ZZUA3nU32L
command output: 2024-08-28 15:18:07 Running libp2p network backend
command output: 2024-08-28 15:18:07 Using block data source configuration: DbSyncBlockDataSourceConfig { cardano_security_parameter: 432, cardano_active_slots_coeff: 0.05, block_stability_margin: 0 }
command output: 2024-08-28 15:18:07 Executing 'CREATE INDEX IF NOT EXISTS idx_ma_tx_out_ident ON ma_tx_out(ident)', this might take a while
command output: 2024-08-28 15:18:07 relation "idx_ma_tx_out_ident" already exists, skipping
command output: 2024-08-28 15:18:07 Using candidate data source configuration: CandidateDataSourceCacheConfig { cardano_security_parameter: 432 }
command output: 2024-08-28 15:18:07 💻 Operating system: macos
command output: 2024-08-28 15:18:07 💻 CPU architecture: aarch64
command output: 2024-08-28 15:18:07 📦 Highest known block at #0
command output: 2024-08-28 15:18:07 〽 Prometheus exporter started at <IP_ADDRESS>:9615
command output: 2024-08-28 15:18:07 Running JSON-RPC server: addr=<IP_ADDRESS>:9944, allowed origins=["http://localhost:*", "http://<IP_ADDRESS>:*", "https://localhost:*", "https://<IP_ADDRESS>:*", "https://polkadot.js.org"]
command output: 2024-08-28 15:18:12 Unable to author block in slot. Failure creating inherent data provider: Stable block not found at<PHONE_NUMBER>000. It means that the main chain wasn't producing blocks for a long time.
command output: 2024-08-28 15:18:12 💤 Idle (0 peers), best: #0 (0x2991…7d6e), finalized #0 (0x2991…7d6e), ⬇ 0 ⬆ 0
command output: 2024-08-28 15:18:17 💤 Idle (0 peers), best: #0 (0x2991…7d6e), finalized #0 (0x2991…7d6e), ⬇ 0 ⬆ 0
command output: 2024-08-28 15:18:18 Unable to author block in slot. Failure creating inherent data provider: Stable block not found at<PHONE_NUMBER>000. It means that the main chain wasn't producing blocks for a long time.
command output: 2024-08-28 15:18:22 💤 Idle (0 peers), best: #0 (0x2991…7d6e), finalized #0 (0x2991…7d6e), ⬇ 0 ⬆ 0
command output: 2024-08-28 15:18:24 Unable to author block in slot. Failure creating inherent data provider: Stable block not found at<PHONE_NUMBER>000. It means that the main chain wasn't producing blocks for a long time.
command output: 2024-08-28 15:18:27 💤 Idle (0 peers), best: #0 (0x2991…7d6e), finalized #0 (0x2991…7d6e), ⬇ 0 ⬆ 0
command output: 2024-08-28 15:18:30 Unable to author block in slot. Failure creating inherent data provider: Stable block not found at<PHONE_NUMBER>000. It means that the main chain wasn't producing blocks for a long time.
command output: 2024-08-28 15:18:32 💤 Idle (0 peers), best: #0 (0x2991…7d6e), finalized #0 (0x2991…7d6e), ⬇ 0 ⬆ 0
command output: 2024-08-28 15:18:36 Unable to author block in slot. Failure creating inherent data provider: Stable block not found at<PHONE_NUMBER>000. It means that the main chain wasn't producing blocks for a long time.
command output: 2024-08-28 15:18:37 💤 Idle (0 peers), best: #0 (0x2991…7d6e), finalized #0 (0x2991…7d6e), ⬇ 0 ⬆ 0
command output: 2024-08-28 15:18:42 Unable to author block in slot. Failure creating inherent data provider: Stable block not found at<PHONE_NUMBER>000. It means that the main chain wasn't producing blocks for a long time.
command output: 2024-08-28 15:18:42 💤 Idle (0 peers), best: #0 (0x2991…7d6e), finalized #0 (0x2991…7d6e), ⬇ 0 ⬆ 0
command output: 2024-08-28 15:18:47 💤 Idle (0 peers), best: #0 (0x2991…7d6e), finalized #0 (0x2991…7d6e), ⬇ 0 ⬆ 0
command output: 2024-08-28 15:18:48 Unable to author block in slot. Failure creating inherent data provider: Stable block not found at<PHONE_NUMBER>000. It means that the main chain wasn't producing blocks for a long time.

@falcucci , thanks for the diagnosis. Interestingly, my node doesn't report command output: 2024-08-28 15:18:18 Unable to author block in slot. Failure creating inherent data provider: Stable block not found at<PHONE_NUMBER>000. It means that the main chain wasn't producing blocks for a long time. message, but it doesn't produce blocks either.
I'm going to try to run the chain in a pure substrate environment in order to see what the expected behavior (logs, blocks, etc.) and then compare that to the output of the PC node.

cc @LGLO @tgunnoe @skylar-simoncelli

I'm closing this as its based on an old version.

hey @nstanford5 I'll make sure anyway if it has been fixed and get back to you.


python310Packages.django_4: 4.2.2 -> 4.2.3

https://www.djangoproject.com/weblog/2023/jul/03/security-releases/
https://docs.djangoproject.com/en/4.2/releases/4.2.3/
Fixes: CVE-2023-36053
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 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

[x] Fits CONTRIBUTING.md.

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

2 packages marked as broken and skipped:

netbox_3_3
peering-manager

12 packages built:

healthchecks
netbox
paperless-ngx
python310Packages.django-admin-sortable2
python310Packages.django-admin-sortable2.dist
python310Packages.django_4
python310Packages.django_4.dist
python311Packages.django-admin-sortable2
python311Packages.django-admin-sortable2.dist
python311Packages.django_4
python311Packages.django_4.dist
tandoor-recipes


Taxes and discounts

If a discount is applied to a product, the taxes are still calculated from the original sales price, i guess this is wrong as the sales tax applies to the price after the discount is applied. In only few exceptions the taxes are applied to the original price ( Manufacturer or distributor vouchers where seller is reimbursed )

This is certainly an issue and something that was overlooked. The way it calculates the totals needs to be reworked.
It's pretty tricky - I'm tempted to disable discounts for the time being until this can be addressed.

for the percentage discounts should be easy to fix, but i´m still uncertain how to calculate taxes when the discount is an amount and there is more than one product in the cart with different taxes! how should the discount be applied?

What I've worked out is that it's about calculating a percentage difference between the non discounted totals and the new totals, so I don't think it makes much difference whether it's a fixed amount or a percentage off. Once this percentage is worked out, it's then a case of determining where to reduce the tax amounts. That gets really complex quickly, as there are both inclusive and exclusive tax options, as well as cases where taxes can be applied to shipping or not.
From looking at the code so far I've realised that the getTaxes function of CommunityStore\Tax\Tax needs to return not just a tax total, but separate tax values for both the products and shipping.
Then I think the getTotals function of CommunityStore\Utilities\Calculator would be able to work out whether it needs to reduce the tax for the shipping component, or the product component or both.
(i've also worked out getDiscountTotals doesn't get used so it should be removed)

not sure if i undestood, i would do it that way:
P is Product so P1 with the price of $100 (taxes 10%)and P2 with $300$ (Taxes 20%)  and a discount amount of $20, so the taxes should be calculated with the percentage from the subtotal:
25% for P1 and 75% for P2, right?

I've heavily reworked the way taxes are calculated, getting them to update when discounts are applied in this branch here: https://github.com/concrete5-community-store/community_store/tree/tax-discount-rework
I also discovered quite a serious existing bug which I've already fixed in master.
I was also able to reduce the number of ajax calls in the checkout as a positive site-effect from this work. I also removed quite a few functions that really just duplicated functionality.
I removed from the discounts the ability to take the discount off of the grand total.
On the surface it would seem like an easy one to implement, but it actually proves very difficult to then work out where you need to adjust the taxes. Having it as either subtotal or shipping discounts makes it very clear as to what you are actually discounting.
If you (or anyone else reading this) has the opportunity, it would be great if you could have a test/play with this branch, to see if there's any particular scenarios I've missed testing myself.
There are quite a few combos to test - inclusive/exclusive taxes, whether taxes apply to shipping or not, multiple taxes in play, discounts that impact either the subtotal or the shipping.

alright, we´ll test it tomorrow.

so i tested all scenarios and the taxes are calculated right, i just found an other bug in the discounts, even if you enter a perecentage value without making in it as a single use code, the checkbox for single use code is always checked!

by the way shipping methods should also have a tax amount!

I'll check out the bug with the percentages and single use shortly. I pushed up a further lots of changes/fixes after your test.
With the shipping and tax, there is an option on the tax configurations themselves whether the taxes are applied to the items and the shipping, or just the items.

Fix for the bug with single use checkbox has been pushed up to this branch

I've merged the tax/discounts fixes, plus some other discounts related tweaks into the master branch.
So I'll close this for now, but please open another issue if you find any issues


bug: db query failes, when property has a button

Closes #10

Could you add a test for this?

@devmaxde


Need a way to disable prisma:warn In production, we recommend using "prisma generate --no-engine" error

Problem
I have two Prisma clients in my application. An edge client ~/db/edge that I use in edge functions and a regular client ~/db that I use everywhere else. The edge client is using Accelerate. I'm constantly getting the prisma:warn In production, we recommend using `prisma generate --no-engine` error`  error in my logs. I can't use --no-engine because the non-edge Prisma Client won't work.
Suggested solution
An option to completely ignore this warning / error so that it doesn't clog up my logs

Alternatives
I've tried setting PRISMA_DISABLE_WARNINGS=true in my env and the error still emits
Additional context
For additional context, see this Slack conversation

Do I understand that you are using the same generated Prisma Client both with Accelerate and the normal local Engine?

I’m using the client from '@prisma/client/edge' for my edge instance and the client from '@prisma/client' for my regular instance.

@TaylorFacen same issue.. i'm using --no-engine for prod env but im using regular client on dev env.  the warning keeps appear in dev env. have you solved it?

any update on this issue? i'm facing the same thing.


Adds a note about using custom keys

If you do not use the index for a grid item key, then the layout cannot be found.  You can explicitly set the layout id using an object property named i.
I think this would be valuable to add to the documentation.  Not sure if this is the best place for the info though.

Thanks. This is a good addition.


Convert array of errors to object with indexed errors

Issue #86
Right now, the errors get added to an array every time a clause is parsed. This means if multiple changes cause a clause to be parsed multiple times, the same error will be added to the array multiple times and we end up with multiple of the same error.
Changes

Convert array of errors to an object with indexed errors

Flags

Needs update in cicero-ui for errors management, see related issue

Related Issues

Issue #86
accordproject/cicero-ui#137

awesome! Let's make sure we get the corresponding issue in cicero-ui resolved as well so the ErrorLogger can handle this new object. Great job!

Hi @Ph0tonic! I wanted to let you know that @flagoon is working on the corresponding issue in cicero-ui here: https://github.com/accordproject/cicero-ui/issues/137, so it might make sense to connect with them and see if you can test the two out together! 😃

Here it's.


⚠ WSINGRESOS - RECIBOPAGO has degraded performance

In ed1b700, WSINGRESOS - RECIBOPAGO (https://srvshyweb.yucatan.gob.mx/cgi-bin/wspd_cgi.sh/WService=wsingresos/internet/servicios/wsRecibosPagosWeb.r) experienced degraded performance:

HTTP code: 200
Response time: 2194 ms

Resolved: WSINGRESOS - RECIBOPAGO performance has improved in f23862b after 1 hour, 3 minutes.


Fixes #57 -Integrated advanced search

Fixes #57 ; refs #57
@ucsdlib/developers - please review

@mcritchlow The coverage/  has been added to the gitignore.

Coverage decreased (-0.6%) to 82.147% when pulling 18a5a3fb7dfd641ca4726edf2d41c128ecf68f6b on feature/advanced_search into 90c649a982d4709f20539099265008159061c238 on develop.

The 3 coverage files still appear to be listed in the PR, so the commit may need to be amended to remove them?

@mcritchlow The coverage files are removed.

Coverage decreased (-4.02%) to 82.147% when pulling 00a7663c23289f2b70e8cd7e0ac53ecabf09fc8f on feature/advanced_search into fa1b71fbeb25cc95972e062ac3dd3ddda49a265d on develop.

Coverage decreased (-4.02%) to 82.147% when pulling 00a7663c23289f2b70e8cd7e0ac53ecabf09fc8f on feature/advanced_search into fa1b71fbeb25cc95972e062ac3dd3ddda49a265d on develop.

Coverage decreased (-0.6%) to 85.55% when pulling 3f4cabe7ebc29696b6c3fa46f09547c2d3aa1527 on feature/advanced_search into fa1b71fbeb25cc95972e062ac3dd3ddda49a265d on develop.

👍


Update integration tests to use was transformed to.

This is part of the renaming of the relationship
from was built into to was transformed to.
Change-type: patch
Signed-off-by: Carlo Miguel F. Cruz<EMAIL_ADDRESS>

@balena-ci I self-certify!


Bump package dependencies

Update package dependencies where possible.
https://issues.redhat.com/browse/COST-2932

Codecov Report

Merging #2433 (db86cc3) into main (1ec6526) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main    #2433    +/-   ##
========================================
  Coverage   70.35%   70.35%
========================================
  Files         436      436
  Lines        8119     8119
  Branches     1898     1897     -1
========================================
  Hits         5712     5712
+ Misses       2404     2298   -106
- Partials        3      109   +106

Impacted Files
Coverage Δ

src/routes/costModels/components/rateTable.tsx
93.75% <ø> (ø)

src/utils/cookie.ts
58.33% <0.00%> (ø)

src/utils/format.ts
67.00% <0.00%> (ø)

src/api/orgs/orgUtils.ts
37.50% <0.00%> (ø)

src/api/queries/query.ts
43.85% <0.00%> (ø)

src/utils/localStorage.ts
78.66% <0.00%> (ø)

src/store/metrics/selectors.ts
75.86% <0.00%> (ø)

src/api/resources/resourceUtils.ts
17.18% <0.00%> (ø)

src/components/exports/exportsLink.tsx
43.75% <0.00%> (ø)

src/components/permissions/permissions.tsx
21.91% <0.00%> (ø)

... and 26 more

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 1ec6526...db86cc3. Read the comment docs.


ROX-20316: Add conditional RBAC for ShowAdministrationUsage

Description
Problem
Follow up #7435
To avoid merge conflicts close to 4.2 release, we waited to add conditional rendering.
Analysis
Both ShowAdministrationUsage and GenerateDiagnosticBundle encapsulate requests which require READ_ACCESS for Administration resource.
Solution
Lift up conditional rendering to include both buttons.
Checklist

[x] Investigated and inspected CI test results
[x] ~Unit test and regression tests added~

Testing Performed
Manual testing

Visit /main/system-health

With READ_ACCESS for Administration resource.

With NO_ACCESS for Administration resource (temporarily edit code to simulate).
See absence of buttons and also Vulnerability definitions card.

Integration testing

systemHealth/bundle.test.js
systemHealth/systemHealthGeneral.test.js

ocp-4-13-ui-e2e-tests never ran

No clusters in pool are ready to be claimed


Upgrade sushi to 3.1.0

Holding 3.3.0 back. Waiting for performance problems to be resolved.

See https://chat.fhir.org/#narrow/stream/215610-shorthand/topic/SUSHI.203.2E3.2E0

Perhaps worth checking v 3.0.1?
See https://chat.fhir.org/#narrow/stream/215610-shorthand/topic/SUSHI.203.2E3.2E1/near/385474118

SUSHI 3.3.1 is a patch release that provides improved performance during the FSH text import process. For more information, see the SUSHI 3.3.1 Release Notes.


FR: CodeGen template feature

Hi, just wondering if you have a plan to include something similar to CodeGen so it will look up the dependent model/seed/source and pre-generate the mock_ref template so user just focus on the mock data :)

Hi @ricky-at-domain, we don't have the plan to include it, but it's interesting to think about that.
Thank you for the idea.

hi @cdiniz, we have built the mock generation template for our internal use, this speeds up our entire unit test setup process and can have more time focus on mock data collection, just want to share the code for others as well, here our PR, https://github.com/EqualExperts/dbt-unit-testing/pull/131/files

Hi @ricky-at-domain, I wanted to express our gratitude for your valuable contribution. Your code is undeniably useful, but we have some reservations about including it as part of the package. We believe it would be more beneficial for everyone if users simply copied the code to their own projects and utilized it from there.
Personally, I will definitely be following that approach, and once again, I want to sincerely thank you for your contribution. Your efforts are greatly appreciated! If you have any other ideas or suggestions, please feel free to share them. 🙂


Add content-data-api ETL cronjob.

This used to be run from Jenkins.
The variations in the minutes field are intentional, for load spreading (since k8s CronJob still doesn't support fuzzing the start time 😢).
Tested: ran successfully on the integration cluster.
https://trello.com/c/v9XYF5EB
Related: https://github.com/alphagov/content-data-api/pull/1867

Oh, thanks I hadn't spotted that it was running at completely different times in non-prod. I'll fix that before merging.

I only just spotted that the "re-run" job also runs nightly on a schedule. Is that definitely still needed?
If so, I think you'd need to fix up the Rake task so that it can run without having to compute the dates to pass into it :)

I'm fairly sure the nightly re-run job became unnecessary with GA4: https://support.google.com/analytics/answer/11198161?hl=en
Shall we see how it goes without it?

Yeh it sounds like we may not need it anymore! Happy to leave it out and see how it goes 👍


replace validate_* calls with pupet4 datatypes

The goal of this is to drop the legacy validate_* calls. Apprently the travis matrix and the Gemfile is outdated and tests nothing on puppet4/recent ruby versions. I need some guidance for how to proceed here.

@raphink I basically only care about https://github.com/hercules-team/augeasproviders/pull/147/commits/05aa0634612f80dda063648cefaa334ed480d49b. All the legacy function calls generate a lot of noise in the puppetserver logfile. What about cherry-picking it into a new PR and merge it as is?

@raphink ping :)


Ramda website served on non secure website.

http://ramdajs.com points to a non-secure site and when you navigate to https://ramdajs.com it shows up with an error.

Do you have any plans to move the Ramda site to be served on https?

Thanks for bringing this up.  I saw the recent announcement, but forgot to follow up.
I started the process.  We're waiting on this step:

Not yet available for your site because the certificate has not finished being issued

I'm not quite sure how long that takes, but then I'll choose the "Require SSL" option too.

This should go rather fast, but it does not work now. In most cases that means something does not work correctly. Maybe retry or remove and add the custom domain in the process.

I did try that earlier, and again just now.  I will go through the instructions again to make sure I didn't miss a step.  If that doesn't work, I will see if I can find some GH support.

I recently tried it out on a site. Got nowhere after trying lots of changes. Based on googling I found a quick email to GH support will nudge it along (That's the word they use in their default response).

Thanks.  It's still not there, so I've sent a support request.

I never heard back on my support request, but it's working now.  The main docs page still has a small problem, in that we serve the logo only from its artist's insecure page.
@buzzdecafe: could you check with JCPhillips to see whether it's ok to self-host this, or if there are plans in the works to move her site to SSL?

no problem at all serving that img statically from ramdajs.com

Ok, it's up now.  Thanks to @LoganElliott for bringing this up and to @functionalStoic for the help.


Content disappears when scrolling down

I've implemented Perfect Scrollbar in my solitaire card game app - http://solitairegamecenter.com. It generally works quite well, but if I make the window really small in chrome (try to drag in your window to the size of a mobile phone) and then I scroll down the page, the content of the page disappears all of the sudden.
I haven't been able to figure out why this is happening and what might be causing it. Any ideas?

I can reproduce the problem in my Chrome too. I am not sure of the reason, I just guess it's a browser issue as it's not reproducible in Safari.

Ya... it's weird. Why would such a thing happen? Because i have too much content? Too many HTML elements? Too much css?

It could be, but I think it's more of browser issue rather than user-level one. It works fine in Safari or Firefox. I just assume it's related with GPU memory, but not sure at all.
I, anyway, wonder if it's resolved when there are less contents or CSS styles.

It’s kind of weird. It only happens when the browser window is very small or very large. Middle size works fine.
--
All the best
Holger Sindbaek
· UI/UX
Designer & Web/iOS Programmer
·

http://holgersindbaek.com/
On Tue, Oct 10, 2017 at 1:52 PM Hyunje Jun
<
mailto:Hyunje Jun<EMAIL_ADDRESS>
wrote:

a, pre, code, a:link, body { word-wrap: break-word !important; }
It could be, but I think it's more of browser issue rather than user-level one. It works fine in Safari or Firefox. I just assume it's related with GPU memory, but not sure at all.
I, anyway, wonder if it's resolved when there are less contents or CSS styles.
—
You are receiving this because you authored the thread.
Reply to this email directly,
https://github.com/utatti/perfect-scrollbar/issues/688#issuecomment-335448220
, or
https://github.com/notifications/unsubscribe-auth/AAqqY1Q3hIAz6AboLMkNeT07WOtQ1DZjks5sq1qWgaJpZM4PsU12
.

Hi, this case seems to happen on our site as well, specifically the editor app (create.piktochart.com). Unfortunately, we can't really reproduce it ourselves as it happens to some of our users.
@holgersindbaek is it still happening on your site?


[EMB-16] Add home dashboard

Needs: https://github.com/CenterForOpenScience/ember-osf/pull/342, https://github.com/CenterForOpenScience/osf.io/pull/8118
https://openscience.atlassian.net/browse/EMB-16
Purpose
Add user's dashboard to ember-osf-web, with functionality similar to the current osf.io dashboard.
Summary of Changes

Add / route
Dashboard route + component supporting it

Side Effects / Testing Notes
Should be tested for functional uses similar to the current dashboard page.
Ticket
https://openscience.atlassian.net/browse/EMB-16
Reviewer Checklist

[ ] meets requirements
[ ] easy to understand
[ ] DRY
[ ] testable and includes test(s)
[ ] changes described in CHANGELOG.md (don't have initial release yet)

Oh, and the padding in the institution carousel is off; they're almost touching the bottom:

After we break the ember-osf chains, I'd like to take a quick look at our page size vs the existing home page. If it's not too much larger, or if the perceived load time is the same or less, I think it would be worth adding the logged-out version of the home page to this. It should be minimal work and make things a little bit nicer all told.


chore: deletes unnecessary specs

These seem to be failing sporadically. This component is no longer needed but hasn't been deleted due to some difficulty in it's removal.

Thanks Peril...


feat: E2E Cookiecutter - Cover all REST authentication cases + one GraphQL case

Follow-up to #1410

Expands the coverage of the end-to-test for cookiecutters to cover all authentication methods for REST
Fixes misc issues discovered by mypy, including a missing import
Add a test case for GraphQL

:books: Documentation preview :books:: https://meltano-sdk--1428.org.readthedocs.build/en/1428/

Thanks for the PR @flexponsive ! We'll get one of the engineers to review @meltano/engineering


Incompatibility with redux-saga 1.0

Redux-saga 1.0 doesn't support yield [] anymore. You should replace for yield all().

Fixed in version 1.1.0.
I recommend you to take a look at redux-saga-routines – the extended version of redux-saga-actions.


Added Wolaita Sodo University

@meragion First stage of verification passed, official domain for Wolaita Sodo University is wsu.edu.et as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@meragion Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


Reactive relayer feature for upgrading clients

Crate

Summary
Add support in Hermes to detect a chain upgrade and to automatically trigger the upgrading of all clients which target the upgraded chain.
Problem Definition
The problem is that currently Hermes has only a manual upgrade client command, and we are at a WIP stage on adding a bulk upgrade clients CLI (#763).
It would be good to support client upgrading in a reactive manner; so this feature is an extension to the reactive capabilities (#823) of Hermes, to additionally support client upgrades.
Another problem we'd like to tackle is to extend the end-to-end tests with a scenario for chain & client upgrades.
Currently we only have some manual testing guide for this scenario.
Proposal

investigate and find which event does a chain generate upon upgrading

depends on https://github.com/cosmos/ibc-go/issues/270

add mechanism to handle the event, so that Hermes automatically triggers client upgrade
all clients (which target the upgraded chain) hosted on one of the chains in the config file should be upgraded

Acceptance Criteria

[ ] support for reactive client upgrade
[ ] extension to E2E test suite with appropriate test scenario for chain & client upgrade

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate milestone (priority) applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

Emitting upgrade_chain events should be released with ibc-go v7.0.0 early 2023


flash message duplicated, message.message undefined

flashing the message like so
          user.save(function(err) {
            if (err) {
              var message = getErrorMessage(err);
              //console.log(message); //working here
              req.flash('error', message);
              return req.res.redirect('/signup');
            }

signup route:
app.route('/signup')
     .get(users.renderSignup)
     .post(users.signup);

users.renderSignup:
exports.renderSignup = function(req, res, next) {
  if (!req.user) {
    res.render('signup', {
      title: 'Sign-up Form',
    });

  } else {
    return res.redirect('/');
  }
};

and in signup.ejs:
 <% for(message in flash) { %>
  <%console.log(flash)%>

<%= message.message %>

    <% } %>

What I get from console.log(flash):
[ { message: 'error', type: 'info' },
  { message: 'Duplicate Key', type: 'error' } ]
[ { message: 'error', type: 'info' },
  { message: 'Duplicate Key', type: 'error' } ]

So console.log(flash[1].message) gets me the message and
<% for(message in flash) { %>

<%= flash[message].message %>

 <% } %>

Outputs
error
the message

On another note, probably another issue. After page refresh and even navigating to another page and then come back to the /signup page manually, the flash message is still there.

The duplicate and persisting flash messages were due to this https://github.com/expressjs/flash/issues/2
But I still get
{ message: 'error', type: 'info' }
{ message: 'Duplicate Key', type: 'error' }

when I output message and undefined if I try to output message.message

This may be due to a race condition when a sequence of read-write session data including flash messages is broken.

@SergeKornilov I'm just learning MEAN development so not sure how to troubleshoot this. I've made a repo which at the moment is using connect-flash because it works for me.
I'll go back to expressjs/flash and see if I can figure out anything I'm doing that might be causing this. "sequence of read-write session data" got me wondering if having passport set to flash messages coule be causing the issue? https://github.com/isimmons/masteringmeanfirstcourse/blob/master/app/routes/users.server.routes.js#L16
Reading up more on passport docs but my thinking is that this would only occur if there was an error in the oauth authentication which should be completely separate from my mongo duplicate key error since it occurs after the callback in my saveOauthUser function https://github.com/isimmons/masteringmeanfirstcourse/blob/master/app/controllers/users.server.controller.js#L90
But if my function and passport are both trying to flash a message on the same session maybe this is the issue?
In this course I'm doing a lot of copy/paste and then going back to try to understand everything. I've found and fixed a few issues with it and the versions used in the course are about 6 months old so it's quite possible the issue has to do with me using the latest versions of everything and there is some new bug or new way of doing things.

@isimmons I must say that express-flash or connect-flash and passport modules are likely not related to the problem. I bumped against such situation when I used express-session with express-mysql-session and set useConnectionPooling option to true so a mysql client could establish several connection simultaneously but it led that some connections executed their queries (the set/get operations) in wrong order than it needed (set... /so far so good/ set... /here we have already doubled our session data/ get... /here we get our doubled session data/ get... /here we have nothing and it leads to undefined behavior in app/). Switching useConnectionPooling option to false seems to solve the problem. Probably you have the same situation with your session store driver.
In other hand if we look in express-session docs we can read following about resave option: "Forces the session to be saved back to the session store <...> Depending on your store <...> it can also create race conditions where a client makes two parallel requests to your server and changes made to the session in one request may get overwritten when the other request ends". So you can switch off resave option and try to test your app again. Also you can dive into your session store driver to write in set/get function bodies some extra debug calls to see what the order in which functions are called.
(if something makes no sense feel free to ask, english isn't my native)


Merge branch 'master' of https://github.com/virusv2/genty

Added rps command with stats

If I use except TimeoutError, the code doesn't work and throws an error. If I import TimeoutError from asyncio it doesn't like it stating I am overriding the default timeouterror exception. If I just use except, the code works but codefactor wants a reason for the except.


1px off on Password save popup

See screenshot.  The separator between the 'don't' save and 'v' button sticks out.
Couldn't find the ID with browser toolbox.

where do u find that password menu? link?

@Mattwmaster58, I'll see what I can do.  That appears to be an issue coming from FF, however, not the styling I've done as it's noticeable in a non-styled profile as well:


cant connect to office 365

I have add My Application Client ID and Redirect URI,But When I connect to Office 365.It Show Me Error cant connect to office 365

Hi @mohsin111,
Could you provide more detail?

Do you get prompted for credentials?
If so, do you get to a page like this one?

Can you provide some repro steps?

Thanks for trying this sample


fix(doc): use no external API references

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

npm package (@latest dist-tag)
GitHub release
1.1.1

Your semantic-release bot :package::rocket:


Fix 30162: add to .git ignore doesn't add new line

Fix #30162 Bringing some of the logic back again to ensure new line appends are correct.

You probably have to check whether the last line is empty or not, instead of the whole document, in order to make that decision.


Updated README.md

Issue Title :

Info about the related issue (Aim of the project) :
Name:
GitHub ID:
Email ID:
Identify yourself: (Mention in which program you are contributing. Eg. For a WoB 2024 participant, it's WoB Participant)

Closes: #issue_number that will be closed through this PR

Snippet Details 📃

Snippet Name: <snippet_name>
Category:  (e.g., strings, numbers, files)
Function Name: <function_name>

Summary of Changes

Added badges for version, build status, license, contributors, and issues to the top of the README.
Improved the "Table of Contents" by adding sub-sections and linking to specific sections.
Added a new "Quick Start" section for users to immediately see how to use the package.
4)Updated the "Features" section with emojis for better readability and added clarity for each feature.
5)Added a "Why Use PySnippets?" section to highlight the benefits of the package.
6)Created a "Roadmap" section to outline upcoming features and future development plans.
Maintained clear code examples and explanations throughout the document.

Code Changes

Documentation update

Example Usage
python
PySnippets - A Python Package for Reusable Code Snippets

Type of Change ☑
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

How Has This Been Tested? ⚙

Verified that all markdown links in the "Table of Contents" lead to the correct sections.
Checked that badges load correctly and display accurate information.
Reviewed the content for clarity and ensured it improves user navigation and understanding.

Checklist ☑

[x ] My code follows the guidelines of this project.
[x ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly where it was hard to understand.
[x ] I have made corresponding changes to the documentation.
[ x] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] Any dependent changes have been merged and published in downstream modules.

@ashmittt08 who told you to work on this issue? I am not merging it, as said I have assigned it to some other contributor check once before raising PR https://github.com/UTSAVS26/PySnippets/issues/8.

you have cleary assigned me this above

it is showing no assignees

Check it again I have assigned the issue to Yash.

you have cleary assigned me this above

I don't assign it to you but approve the changes the changes you made.


Update job.go

Update version given recent added functionality (such as Side Input).
Please add a meaningful description for your change here

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---
---

R: @herohde

I would be fine just fixing the version forward. I don't think we should change a release branch without a new micro version, which this change doesn't warrant.


Update diesel_codegen for the latest libsyntax breakage

Looks like diesel_codegen needs a new version with updates for the last round of breaking changes to libsyntax. Syntex has been updated to 0.32 for this.
/home/redacted/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel_codegen-0.6.1/src/insertable.rs:86:46: 86:54 error: no associated item named `empty` found for type `syntax::ptr::P<_>` in the current scope
/home/redacted/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel_codegen-0.6.1/src/insertable.rs:86         cx.typaram(span, str_to_ident("DB"), P::empty(), None),
                                                                                ^~~~~~~~
/home/redacted/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel_codegen-0.6.1/src/insertable.rs:86:46: 86:54 note: in this expansion of vec! (defined in <std macros>)
/home/redacted/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel_codegen-0.6.1/src/insertable.rs:86:46: 86:54 note: in this expansion of vec! (defined in <std macros>)
/home/redacted/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel_codegen-0.6.1/src/insertable.rs:86:46: 86:54 note: in this expansion of include!
/home/redacted/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel_codegen-0.6.1/src/queryable.rs:64:42: 64:50 error: no associated item named `empty` found for type `syntax::ptr::P<_>` in the current scope
/home/redacted/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel_codegen-0.6.1/src/queryable.rs:64     cx.typaram(span, str_to_ident(name), P::empty(), None)
                                                                                ^~~~~~~~
/home/redacted/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel_codegen-0.6.1/src/queryable.rs:64:42: 64:50 note: in this expansion of include!

Already fixed on master, see #312


bug: false positive on azure-container-logging

Describe the bug

The lint for azure-container-logging is outdated by recent release of the azurerm provider
To Reproduce
azurerm_kubernetes_cluster resource with a block like
  oms_agent {
    log_analytics_workspace_id = foo
  }

Expected behavior
No warning
Screenshots/Output
azure-container-logging is triggered
Additional context

azurerm 2.97.0 deprecated the oms_agent being a part of the addon_profile block and moved to preferring it as a top-level block
Presumably the lint needs a corresponding update

Thanks @dimbleby  - the breaking changes in providers is a problem that is hurting us a lot at the moment, we're looking for a good way to manage the evolution of providers and backward support. Will take a look


hci interface stopped working after few hours/days

Hi All,
I'm facing issues regarding ble's hci interface.
I'm having nrf52840 module on which i run zephyr's hci_uart app for beacon scanning.
I have Bluez 5.50 installed on my custom board (imx6ull).
i.MX6ULL is connected with nrf52840 chip over UART.
I'm using full UART (Tx, Rx, RTS, CTS). These 4 pins are connected & configured from both (i.MX6UL & nrf52840_pca10056) side.
Note : nrf52840 chip is flashed with HCI_UART sample app of zephyr. In that i have configured 4 pins and make HWFC enable from nrf5.conf file.
hci0 interface on my device is "UP RUNNING". So, i'm able to scan the beacons. (My application scans beacons after every 10 seconds).
Now, When i have put my device for over night testing, then i have observed that after few hours
(around 18-20) beacon scanning was stopped.
And i'm getting "Bluetooth: hci0 command 0x200b tx timeout" prints after every 5-10 seconds on the console, still the hci0 interface status is "UP RUNNING", but not able to scan the beacons.
Sometimes also getting the prints like "Bluetooth: hci0: Frame reassembly failed (-84)".
What could be the reason behind this ?
To Reproduce

Run beacon scanning continuously (After gap of every 10-20 seconds) for a long time.

Expected behavior

It should run continuously without having any problem.

Impact
This has a blocker kind of effect for my device (Because it stop scanning beacons and hence i'm not able to track the Assets).
Thanks,
Mayank

is there a way you can connect a logic analyzer to the pins to get the UART lines going in and out logged?
is there a way you can connect a debugger to the nRF52840 once it has stopped working to get a backtrace or some logging? A Segger debugger would be ideal, then we could use RTT

Could you please provide details about how you build, and reproduction steps (command line or simple application that you can share), particularly if you have any changes to samples or its configuration. Also, any logs (console logs, sniffer traces, btmon logs etc... just before the issue). Environment details, commit hash, toolchain used.
To Reproduce
Steps to reproduce the behavior:

mkdir build; cd build
cmake -DBOARD=board_xyz
make
See error

Screenshots or console output
If applicable, add a screenshot (drag-and-drop an image), or console logs
(cut-and-paste text and put a code fence (```) before and after, to help
explain the issue.
Environment (please complete the following information):

OS: (e.g. Linux, MacOS, Windows)
Toolchain (e.g Zephyr SDK, ...)
Commit SHA or Version used

is there a way you can connect a logic analyzer to the pins to get the UART lines going in and out logged?

This affects the UART lines I think. Might give it a try. But could end up it not being able to reproduce it if it is something in the flow-control I think.

Relabeling as question because it's unclear whether this is a Zephyr bug or a board/tty issue.

@mayankpatel17 please provide all the information required by @cvinayak in this comment and reply to the questions in this other comment.

Could you please provide details about how you build, and reproduction steps (command line or simple application that you can share), particularly if you have any changes to samples or its configuration. Also, any logs (console logs, sniffer traces, btmon logs etc... just before the issue). Environment details, commit hash, toolchain used.

I'm using zephyr's version 2.1.0. Compiling sample app using command "cmake -B build -DBOARD=nrf52840_pca10056 samples/bluetooth/hci_uart"

To Reproduce
Steps to reproduce the behavior:

mkdir build; cd build
cmake -DBOARD=board_xyz
make
See error

To reproduce this just need to keep the scanning on for a long time. There is not any compilation issue i have faced.

Screenshots or console output
If applicable, add a screenshot (drag-and-drop an image), or console logs
(cut-and-paste text and put a code fence (```) before and after, to help
explain the issue.
Environment (please complete the following information):

OS: (e.g. Linux, MacOS, Windows)
Toolchain (e.g Zephyr SDK, ...)
Commit SHA or Version used

Attaching file here which shows console logs before and after the issue.
hci_stoppped_working_logs.docx

is there a way you can connect a logic analyzer to the pins to get the UART lines going in and out logged?
The whole connection between i.MX6ULL and nrf52840 is embedded together on board, i don't have any direct access to the pins. So I have no idea how i would be able to connect analyzer to read the UART lines !
is there a way you can connect a debugger to the nRF52840 once it has stopped working to get a backtrace or some logging? A Segger debugger would be ideal, then we could use RTT

I have nrf52840 embedded on my custom board. Still, i have connection for Jlink on board to the nrf chip whcih i'm using to flash nrf chip.

I'm using zephyr's version 2.1.0.

Would you mind trying with the current master branch and reporting whether you see the same symptoms please? There are some fixes since 2.1.0 that could apply to the issue you see.

Trying to reproduce, will update here once anything is found.

@mayankpatel17 were you able to reproduce with master?

Hi @carlescufi ,
Not tested with the master, but currently trying to reproduce with the 2.1.0 zephyr version which i had used earlier for the build. Tried 2 times with overnight testing but not able to reproduce the issue.
When i reported this issue, I had observed some UART console related errors in my board, then afterwards this Bluetooth related error started to came. So seems like issue was related to UART and may not be related to Bluez/zephyr/hci in general.
Let me try 2-3 more times (For 2-4 days), if then also i cannot produce the issue again then we can close this question.
Thank you,
Mayank

Update : Trying with the zephyr V2.2.99, Facing some compilation issues.
I will update here once anything is found.

@mayankpatel17 any updates?

Hi Vinayak,
I have planned the retry with latest master branch but because of ongoing
nationwide lockdown I'm  not able to test it.
As soon as i will start or find anything on that part i will surely let you
know in this thread.
Regards,
Mayank Patel
On Tue, Apr 7, 2020 at 6:52 AM Vinayak Kariappa Chettimada <
<EMAIL_ADDRESS>wrote:

@mayankpatel17 https://github.com/mayankpatel17 any updates?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zephyrproject-rtos/zephyr/issues/23319#issuecomment-610120360,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACJ5YXCGXZLOKZC6VIHRGM3RLJ55HANCNFSM4LC5SFRQ
.

Closing due to inactivity, Please reopen if it's still an issue.

Still, I am facing this kind of issue for my board.
It shows me when I run sudo hciconfig hci0 reset
udo hciconfig hci0 reset
[ 1360.196739] Bluetooth: hci0: command 0x1003 tx timeout
[ 1362.329809] Bluetooth: hci0: command 0x1001 tx timeout
[ 1364.462769] Bluetooth: hci0: command 0x1009 tx timeout


Does not scale well for phones with notch

I think we could improve the appearance on the iPhone X. Other mobiles with notch should be checked as well.
Screenshots

System information
Operating system: iOS / Iphone X
Browser: Safari

Please don't:
https://i.imgur.com/v53wIaA.gif


Add a ConcurrentReadWriteDictionaryTest to test concurrent read write against REALTIME dictionary

Currently disabled. Enable it when we fix the concurrency issue.

Codecov Report

Merging #1295 into master will increase coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1295      +/-   ##
==========================================
+ Coverage   67.27%   67.37%   +0.09%
==========================================
  Files         774      774
  Lines       37802    37802
  Branches     4940     4940
==========================================
+ Hits        25433    25468      +35
+ Misses      10692    10658      -34
+ Partials     1677     1676       -1

Impacted Files
Coverage Δ

...y/selection/comparator/DocIdLongValComparator.java
0% <0%> (-81.82%)
:arrow_down:

...ection/comparator/CompositeDocIdValComparator.java
80% <0%> (-10%)
:arrow_down:

...ealtime/impl/dictionary/LongMutableDictionary.java
57.74% <0%> (-8.46%)
:arrow_down:

...rEqualitiesToInClauseFilterQueryTreeOptimizer.java
90.9% <0%> (-1.3%)
:arrow_down:

.../com/linkedin/pinot/common/data/TimeFieldSpec.java
95% <0%> (-1.25%)
:arrow_down:

...ot/core/query/pruner/ColumnValueSegmentPruner.java
84.48% <0%> (ø)
:arrow_up:

.../core/realtime/PinotLLCRealtimeSegmentManager.java
78.33% <0%> (+0.59%)
:arrow_up:

...not/broker/requesthandler/RangeMergeOptimizer.java
90.32% <0%> (+1.61%)
:arrow_up:

...pby/NoDictionarySingleColumnGroupKeyGenerator.java
92.92% <0%> (+2.02%)
:arrow_up:

...regation/function/customobject/QuantileDigest.java
55.36% <0%> (+2.14%)
:arrow_up:

... and 7 more

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 10e509f...3bf235e. Read the comment docs.


Speedup InitialSessionState..cctor()

PR Summary
At startup we create a temp file with name based on Datetime.Now.ToString().
It is very slow - ~14ms.
We have no need to use human date format for the temp file.
The fix is to use Datetime.UtcNow().Ticks.ToString():

Datetime.UtcNow() is significantly faster Datetime.Now() - now need to evaluate local time.
Ticks is long type and Ticks.ToString() is very fast. Datetime.ToString() is slow because it involves Calendar.

Perf win is ~10-30 ms.
Before

After

PR Context
Tracking issue #14268
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[ ] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:

Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode (which runs in a different PS Host).
Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).
Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

It is very slow - ~14ms.

Is this a release build?
Running a microbenchmark, Datetime.Now.ToString() takes ~1us!

It is very slow - ~14ms.

Is this a release build?
Running a microbenchmark, Datetime.Now.ToString() takes ~1us!

Yes, it is release build. And it is startup scenario - cold start (.Net runtime loads Calendar data from OS and initializes internal structures - you can see this in attached trace file.). If you run BenchmarkDotNet it is warm start.


Consolidate templates

Right now we have a lot of template files that vary by object. Try and consolidate as many as possible so end users don't need to override so many when incorporating into a project.

I'm not sure this is actually possible, as the important data varies too much by object.


renamed performance management related API endpoints

fixes #779
Signed-off-by: ashiscs<EMAIL_ADDRESS>

Ok sir @leecalcote

@ashiscs Any update over here?

@ashiscs Any update over here?

It is left to be done..

@ashiscs don’t forget that VS Code (and other IDEs) will help track down all the references to these names. What do you anticipate the ETA on this one is? There’s no rush here at the moment.

@ashiscs what would you like to do with this PR?


Using home-manager how is nix.conf managed on nix-on-droid ?

Regularly I can (in home.nix)
home.file = {
  nixConf = { text = ''''; };
};

which does not do on nix-on-droid so, if that did not work I could have tried
xdg = {
    enable = true;
    configFile."nix/nix.conf".text = '''';
};

which also seems to not work as it complains

Error installing file '.config/nix/nix.conf' outside $HOME

thus testing in nix repl that
nix-repl> builtins.getEnv "HOME"

gives

"/data/data/com.termux.nix/files/home"

I set
let
  homedir = builtins.getEnv "HOME";
xdg = {
    enable = true;
    configHome = "${homedir}/.config";
    configFile."nix/nix.conf".text = '''';
};

again getting

Error installing file '.config/nix/nix.conf' outside $HOME

but using that the nix.conf is though written not filled with the correct set of data
let
  homedir = /data/data/com.termux.nix/files/home;
in {
  xdg = { (...) }
}

so I resorted to
home.file = {
  ".config/nix/nix.conf".text = '''';
};

which feels pretty not the way things ought to be done but it works for now.
Has someone ideas where I can possibly have taken wrong steps ?

I learned something new about syntax.
Using
home.file = {
  nixConf = {
    text = ''
      # hello nix.conf
    '';
  };
};

things work as expected with nix.conf.
Also the xdg management is working, sample using defaults:
xdg = {
  enable = true;
  configFile = {
    "hello-xdg/hello.conf".text = ''
      show-home: ${toString config.home.homeDirectory}
    '';
  };
};

Reopening to remember to double-check it's OK.

@573 AFAICT your code snippets in your original description and your last comment seem to be identical.
home.file = {
  nixConf = {
    text = ''
      # hello nix.conf
    '';
  };
};

This should generate a file called ~/nixConf, does this actually write to ~/.config/nix/nix.conf?

@Gerschtli it writes the latter and it seems [expected to] (https://github.com/cachix/cachix/issues/239#issuecomment-654868603) do so.

Ah, just checked your repo and found https://github.com/jonascarpay/nix/blob/3840e6c20ff46e173600057eb490f8005f0787a7/home-modules/caches.nix#L92
{
  config.home.file.nixConf = {
    target = ".config/nix/nix.conf";
    text = nixConfSource;
  };
}

With this option it works of course. This was a crucial part of your config. For future issues you should always add a complete minimal reproduction config snippet :) So this issue seems fine to me, will close it, but feel free to reopen if necessary.


Error occurred during async invocation: MQTT: Callback threw an exception on update: [json.exception.type_error.302] type must be number, but is string

Hi,
There is a mistake in the tutorial for the dummy payload, the datatype for the requestId is a string and an int is expected in the sample.
It should be:
{ "position": 300, "requestId": 123}

Regards,
Pat

Hey @patopat,
good catch!
We will fix this in https://github.com/eclipse-velocitas/velocitas-docs/pull/99