Universal Webpack or universal Babel

As mentioned in https://github.com/zeit/next.js/issues/867#issuecomment-277801396 and https://github.com/zeit/next.js/issues/627#issuecomment-271184919, it sounds possible to use Webpack universally. There's e.g the universal-webpack package which might help, and this article gives some tips and an example.
If it can be done efficiently, having a universal Webpack sounds like a great way to reduce the complexity of the Next.js codebase and would allow users to load any Webpack plugin they need?
What's Next.js' team's opinion on this, does it make sense and should it be investigated?

Having a such a system is nice. That's what we wanted ultimately.
But that solution seems like a bit of an experiment.
What we have today is a subset of Webpack but it's production ready.
And we've total control of how things works.
So, in the short-term we won't be able to hook into such system.

Why would universal Webpack be more of an experiment than the Webpack + Babel combo?
Why couldn't we have total control of how things work, with a universal Webpack setup?

Completely agree with @sedubois and @ccorcos (via #867).
I previously alluded to this in #658 and your linked comment above with universal-webpack.
I too would love to see Next.js work with a full Webpack setup using target: node and pre-compiling on the server side. Much like is achieved via nuxt.js (a project inspired by Next.js) here: https://github.com/nuxt/nuxt.js/blob/master/lib/webpack/server.config.js
Babel plugins don't offer the same functionality as Webpack and I ❤  SSR with Next.js so for me (and much of the community) this is a must have feature!

:+1: then we could finally use libraries like which require us to import the css/scss manually without a hassle (e.g. https://github.com/Hardtack/react-material-components-web)

I've been doing universal webpack apps successfully for well over a year now (I have a terrible sense of time, but it's been in production for over that long!), and here's a quick way of doing it with next:
// package.json scripts
"dev": "./node_modules/next/node_modules/.bin/webpack --config webpack.config.server.js --hide-modules --watch",

// webpack.config.server.js
require("source-map-support/register");

const CaseSensitivePathPlugin = require("case-sensitive-paths-webpack-plugin");
const FriendlyErrorsWebpackPlugin = require("friendly-errors-webpack-plugin");
const StartServerPlugin = require("start-server-webpack-plugin");
const webpack = require("webpack");
const nodeExternals = require("webpack-node-externals");

process.env.NODE_ENV = process.env.NODE_ENV || 'development'

const dev = process.env.NODE_ENV === "development"
const createCompiler = require("next/dist/server/build/webpack").default;

module.exports = createCompiler(".", { dev }).then((compiler) => {
  const server = Object.assign({}, compiler.options, {
    devtool: "inline-source-map",
    entry: {
      "server.js": [
        "webpack/hot/poll?1000",
        "./server.js",
      ],
    },
    externals: [
      /^@?\w[\w\-0-9\./]+$/,
    ],
    module: {
      rules: [
        {
          exclude: /node_modules/,
          loader: "babel-loader",
          options: {
            cacheDirectory: true,
            sourceMaps: dev ? 'both' : false,
          },
          test: /\.js(\?[^?]*)?$/,
        },
      ],
    },
    node: { __dirname: true, __filename: true },
    plugins: [
      new CaseSensitivePathPlugin(),
      new FriendlyErrorsWebpackPlugin(),
      new StartServerPlugin(),
      new webpack.HotModuleReplacementPlugin(),
      new webpack.NamedModulesPlugin(),
    ],
    target: "node",
  });

  return server;
});

From there I borrowed server.js from https://github.com/ericclemmons/webpack-hot-server-example/blob/master/src/server.js and used the custom-server-express example (minus the .listen call) and was off to the races!

Just wanted to chime in and mention that if universal Webpack gets supported, it will fix issues such as #364 as well as reducing a lot of confusion around different behavior between client and server.

Using webpack server-side would be especially nice for asset fingerprinting. This BUILD_ID PR not only lets you cache-bust assets, it forces cache-busting which is pretty heavy-handed. Typically, none of my assets change between deploys and when they do it's usually just a few files. Hashing the file keeps the fingerprint the same until bits change.

There are a few issues with that @kjs3. If you bump the version of next let's say, the content hash of a page might remain the same, but the behavior would not. Therefore it needs to get invalidated.

@rauchg, that's a good point as far as the js bundle is concerned.
In the webpack config you could use BUILD_ID for js/css file names but use [hash] for images.

Actually, I think you'd use [hash] for css too.

@kjs3 it's pretty nice idea to use webpack in the server as well. Then it gives us per assets hashing for FREE.
But the problem is how it works with complex apps. We wanted to make sure it won't use a lot of CPU cycles and so on. And it needs to work with our automatic code splitting feature as well.
And we need to support all the features including custom server and etc.
I think that's doable. But it require significant effort. (Specially testing)
So, we can't do it for 2.0, but we can have a look at after that and may the 3.0 be the all webpack version.

@ide  I hope you got some ideas on this too.

I'd recommend looking into using Babel more than Webpack for SSR since Babel decouples preprocessing from bundling, in contrast with Webpack. Next's emit-file-loader is an effort to use Webpack without the "pack".
For sites with thousands of components I find Babel very appealing compared to Webpack, especially thinking about build times. Webpack can quickly get to 20 second build times and keeps growing to even a minute with sites much smaller than that size, while after the first build Babel can do much less work and run in under a second. (The site I'm working on has server-only code separate from client code so the server-only code never goes through Webpack, which works really well. Still, the client builds take a lot of time.)
We want to have the same plugins on the server and client, and Webpack is a means to that end, but from first principles I believe Babel plugins might be a better means to that end. This would be a new experimental direction: we could replace Webpack loaders and plugins with Babel plugins. These Babel plugins could generate & consume static resource metadata (similar to Webpack's build stats). They would work with a pure-Babel build for the server, and could also be invoked from babel-loader for the client-side Webpack build.

@ide are there any production examples out there of "universal babel"? What is Babel's official position on the subject? Any documentation?

@sedubois,
Babel is already used "universally" by Next.js. I think what @ide is suggesting is that there should be a shift in plugin reliance from Webpack to Babel to increase developer productivity. Because Webpack is designed to "pack" it comes with a lot of overhead that result in long build times.
Webpack is still needed to be able to take advantage of tree shaking and separate entry points but @ide makes a great point in that Webpack could be used just for that and then Babel would take care of the rest. In the end, client code would be Webpack'd (using babel-loader to use the new plugins) and server code would simply be transpiled with Babel.
I like this proposal!

@ide, I'd love to see an example of asset imports being replaced with URLs the way url/file-loader works but with Babel alone. Because you're right, we don't really want the pack part of Webpack.

@kjs3 Sure! This is a rough idea, a function that first processes all of the assets (ex: optimizes them, resizes them for different screen resolutions, renames them to be a hash of their contents) and produces a mapping from original asset name to renamed asset name (ex: "/static/icon.png" -> "/.next/static/914a48855b4.png"). Then this mapping is passed to a Babel plugin and Babel is invoked programmatically, this is the pseudocode:
async function buildAsync() {
  let staticResourceMap = await preprocessStaticResourcesAsync();
  for (let file in allSourceFiles) {
    babelCore.transform(file, {
      // bunch of .babelrc stuff here....
      plugins: [
        [require.resolve('./babel-plugin-static-resource-loader'), {
          // this is where webpack-like loader config ends up. probably want to offer some defaults
          // and also make it configurable
          {
             filenameTest: /\.txt$/,
             // For txt files we'll just naively export the text content
             async transformAsync(filename) {
               let contents = await fs.readFile(filename, 'utf8');
               return `module.exports = ${JSON.stringify(contents)};`;
             },
          },
          {
             filenameTest: /\.png$/,
             // For image files we'll export a link instead
             async transformAsync(filename) {
               // This is where we use the SR map!
               return `module.exports = ${staticResourceMap[filename]};`;
             },
          }
        }],
      ],
    });
  }
}

Taking this idea further, preprocessStaticResourcesAsync() could be based on Webpack (or something else, I worked on a static resource system for a complex website for a couple of years and believe there's so much more that can be done in open-source static resource bundling). After all we still need to create the client-side bundle with Webpack, and staticResourceMap can be based on the Webpack build stats.
In fact, this is structurally more robust than server-side Webpack today! One of the assumptions server-side Webpack often makes is that static resources will get renamed the same in the server-side Webpack config as they do in the client-side one. Ex: we need to ensure that both Webpack configs rename ./static/icon.png to /.next/static/914a48855b4.png or else the server-rendered markup won't match the client-rendered markup.
It would be nice if we could nix this content coupling, which is what the pseudocode does by taking the build stats (staticResourceMap) from the client-side Webpack build and uses it in the server-side build.
Configuration from application code
Further more, I anticipate wanting to have control over how assets are processed both in the build process and in the application code. So maybe implementing the AMD loader idea (which Webpack also supports) in these Babel plugins could be really good:
// No loaders prescribed by the application code; the build process decides how png files are handled
<img src={require('./static/icon.png')} />

// We want a custom loader!
// Gives you back some object like { width: 25, height: 25, colorProfile: 'srgb', ...etc }
let imageMetadata = require('image-metadata!./static/icon.png');

@ide, this sounds like an interest project. Could even draw some inspiration from the recently released https://github.com/callstack-io/haul.
Also, https://github.com/istarkov/babel-plugin-webpack-loaders seems to want to do something like this. It has the added benefit that it aims to work with existing Webpack loaders.
The repo doesn't look very active but perhaps it could be contributed to or forked? It seems to be going in the right direction.

Reading this thread, am I right to conclude that there's no (off-the-shelf) way to fingerprint assets in Next at the moment? If so, is there maybe an interim solution while the babel approach is being developed?
(More generally, I completely agree that webpack is sloooow, but replacing it with Babel seems like it will involve recreating a lot of stuff that already exists in the webpack ecosystem.)

@ethanresnick Next.js allow you to create a /static folder and place your assets there, then you can just use them as /static/your-image.png. For production usage it's better if you serve them from a CDN because Next.js set cache to 0.

@sergiodxa Right. My question though is about how to put a fingerprint (hash of the files contents) in the file's name, and use that fingerprint in your server/client-rendered html. This fingerprint is useful for cache busting, regardless of where you serve your files from, so it's a separate concern.

That's not possible right now, maybe you can add the hash to your files but you will need to change every usage of that file in your components.
Thinking about it you can dynamically generate a map of your assets paths (with hashes) and then import it in your Next.js code and use them.

Not being able to just add Webpack loaders and have them work on both the client and server is really painful.
We were evaluating a migration to Next.js for a project because it is a great fit on so many levels (effortless server-side rendering, the option to support static pages, etc.), but we simply cannot afford the multi-week effort of porting all of the external SCSS we have to styled-jsx or another CSS-in-JS solution. It would be so awesome if we could just add the Webpack loader we are currently using to the Next.js configuration and it would work on both the server and client, with hot reloading, imports and everything.
If universal Webpack would provide us with something like that, I'm all for it. The idea of making use of Babel for this is compelling, but then we are missing out on the mature Webpack loader ecosystem that already exists.

I understand that Babel has a shared context that can be referenced while processing inputs, which means it can produce virtually any kind of desirable output given the right plugins.
However, I wonder whether universally using Webpack would be a more correct approach?  There's already an understanding for compilations, sources, assets, so forth. It's support for multiple build targets (specifically scripts that are executed in a different context on the web) and the fact that it's getting more useful every day for distributing applications make it a very attractive choice to build on top of.

I give my support on making next.js language independent, the recently-released CoffeeScript 2.0 makes a powerful combination with next.js and React, but thanks to the hardcoded dependency with Babel on next.js, I cannot integrate CoffeeScript without an external transpiler process which is inconsistent and unpredictable (based on filesystem sync). This is also demonstrated in the example packages.
I'm also forseeing the possibility of integrating TypeScript with babel-preset-typescript but it has since still been alpha (for a whole year), and it makes it unsafe in production use.
Sorry if my wordings are kind of weird. I'm not a native user at all.

Has there been any progress with this? It's a pretty crucial feature to have in some cases.
I would love to help and make this possible, but I would need a few pointers on what the real issues are to just run webpack also for server code.

How can we help make this happen?


Fixed: Fixed tuplets in the Schubert Lindenbaum example

Previously the tuplets in the measures 4 and 8 were not properly encoded. On measure 4, the final g was missing and on measure 8, it was not included in the tuplet.

There are also some new 2012 examples, aren't there? Do we want this? Shouldn't we have them in 2013 version directly?

We only changed the mistakes in the 2013 version. Would you like them to be changed in the 2012 version as well?

I am seeing new files (samples/MEI2012/Handcodings/Schubert_Erlkönig.mei) in the 5 files changed.

Sorry, I just understood, one commit is about the change in the filename. Did you want to change this as well?

The ö in Erlkönig seemed to be causing some problems with git, and the file was showing up as marked for deletion. I think re-committing it fixed that issue.


Updating object

This may be more a kind of general firebase question, but as it is angular specific, i wanted to ask how to handle updates in general.
Often you have small objects like:
class Meeting {
  place: string;
  leader: string;
}

which you then bind to an input element with ngModel. My question now: Is there a recommended way of updating the record?
Atomical updates are ideal, but imho sometimes not very useful since i think i would need a fair amount of code to get these atomic updates from the model. In the upper case i might like to update the model as a whole like
meetings.update(meeting.$key, meeting);
This leads to the following problem:
1.) The $key property is still on the meeting object and will cause an error because the key contains forbidden characters ($)
Now i could the following:
meetings.update(meeting.$key, { place: meeting.place, leader: meeting.leader });
2.) If one of the properties is undefined i will get an error
1.) could be solved by deleting the $key property on update. This might not be an elegant solution, so dont worry too much about it.
My Idea would be creating a directive which binds to a FirebaseObservable and does the atomic updates, but anyhow: Is there a way to do updates in a recommended way?

I'm curious about this too.

Right now the best option is to manually delete the $key property. In the future we'll look at supporting this in the library, but right now we are focused on getting it aligned with RC3 and supporting new Firebase features.
See #197 for a sample of how to handle it.


Create adam config folder

Create adam/config folder to hold merged (adam path & environment token) template json file.

add adam_config_template.json into adam/config folder after it is created.


⚠ Authentication Server has degraded performance

In 318a706, Authentication Server (https://auth.its-telekom.eu/) experienced degraded performance:

HTTP code: 503
Response time: 5730 ms

Resolved: Authentication Server performance has improved in 8a777aa.


Small xcode cleanup

[x] remove keybase test scheme.
[x] cleanup app delegate
[x] add go debugging env vars while debugging (shows GC details and thread details)

@keybase/react-hackers

remove keybase test scheme.

There's a target "Keybase for tests" in Podfile, want to remove?


Please consider changing ViewBag to ViewSac

For comic relief, of course.

👀 👜

/cc @sebastienros

If we get 500 likes, do we have to ship it?

As funny as this is, I'm closing because we have no plans to make this change 😄 Thanks for the laughs!


Loadtest testnet. Determine testnet parameters (BlockSize, TargetDensity, blockTime...)

### Tasks
- [ ] Setup Loadtest testnet
- [ ] Prepare loadtest client (celotool or optimism's)
- [ ] Determine Blocksize limits with 2second/block
- [ ] Determine TargetDensity recommendation for 2second/block
- [ ] Test with 1second/block?

From @carterqw2: Decide weather we adapt our load testing infrastructure or use whatever Optimism has.


Info in activity stream is incomplete

Hi there,
For some reason when an issue is commented on, there is a string %!(EXTRA string=##) alongside the issue name in the activity stream.

This only started happening recently and appears to be affecting all issues displayed in the activity stream.

Hi, I've just found and fixes this issue in dev branch.

PS: you can test on https://try.gogs.io

Great - working just fine on try.gogs.io. Thanks!
On Mon, Feb 9, 2015 at 2:49 PM, 无闻<EMAIL_ADDRESS>wrote:

PS: you can test on https://try.gogs.io
—
Reply to this email directly or view it on GitHub
https://github.com/gogits/gogs/issues/920#issuecomment-73455700.

--
Michael Dyrynda
P: (08) 7129 6369
M: 0439 883 971
Blog: http://deringer.tumblr.com

@deringer no problem!


[surfacers.otel] Add first draft of OpenTelemetry surfacer.

You can now add an OpenTelemetry surfacer to Cloudprober. Exporter endpoint configuration can be done either through OTLP exporter environment variables or through config fields.
surfacer {
  type: OTEL
  otel_surfacer {
    otlp_http_exporter {}
  }
}

This changes was requested in https://github.com/cloudprober/cloudprober/issues/326.

I've tested this surfacer locally for quite some time now. I'll go ahead and merge this surfacer and work on any issues in different PRs.


The build system needs a cleanup

Yes! We need some cleanup on the build system.
Several problems:

We need to push the same CFLAGS over to pkg-config
USE_CBLAS is handled differently than other build options.

OK! let's start thinking...
I really don't want any autoconf/automake/libtool. They might work for other projects, but I they create more mess than I appreciate. I really don fancy cmake either. Also I would prefer not to have many other dependencies.
Let's look at the list: https://en.wikipedia.org/wiki/List_of_build_automation_software
hmmm...  nothing much new there...
I think I have to stick with make and makefiles. However I can maybe summarize a few problems and learnings and maybe come up with a set of requirements here.
It seems obvious (even though I'm not sure it is) that I need the same configuration when building applications as used when building the libraries. I think I should pass those configuration over to the application builder through pkg-config. However that will then make an other dependency....
And then all the dependencies....
Let's assume we build at a system which has a minimum set of tools available.

A C compiler: GCC or Clang or Intel(?)
make
Basic shell utils. cp, mv, sed, awk, grep, install(?), ar, ranlib, rm, mkdir, echo, strip. And the configure script is written in bash. So bash must be installed.
And what about pkg-config ? Is that really a dependency?
Depending libraries: libzip (!) and then BLAS and OpenMP

Hmmmm....
But wait... there is more. Which operating system is this? And which hardware? Which instruction set is supported?
... so many questions.... I'm already getting a headache.

It's actually not that bad as it is.... I will do some changes such that I can (easily) build at RHEL 8 machines. I just need to build and locally install libzip, but that works.


Mat/Pat - Maternity leave - General information & Maternity leave - Length of leave information

Tab -  Maternity leave - General information & Maternity leave - Length of leave information
AC

[ ] Content is present for Maternity leave - General information
[ ] Content is present for Maternity leave - Length of leave information

Script: https://bcgov.sharepoint.com/:u:/r/teams/03991/Shared Documents/General/Selenium/Selenium Scripts/Maternity Parental L%26A/MaternityInformation_1889.side?csf=1&web=1&e=WfaWd1

Worked flawlessly! Thanks Fazil!

Infotest worked great

Length of leave also tested perfectly PO'd  and closing


fix: unsigned integers cannot be negated

Description
Problem*
Resolves #3649
Summary*
Forbid negation of unsigned integers
Additional Context
Documentation*
Check one:

[X] No documentation needed.
[ ] Documentation included in this PR.
[ ] [Exceptional Case] Documentation to be submitted in a separate PR.

PR Checklist*

[X] I have tested the changes locally.
[X] I have formatted the changes with Prettier and/or cargo fmt on default settings.

@guipublic We'll probably need to add constants like u*::MAX to allow using the maximum value instead of hardcoding it


[FLINK-27626] Introduce pre-aggregated merge to table store

We can introduce richer merge strategies, one of which is already introduced is PartialUpdateMergeFunction, which completes non-NULL fields when merging. This PR introduces support for pre-aggregated merges.

Hi @HannanKan , can you add more unit tests to functions? Now there is only itcase.

Good idea! I will do it later.

Hi @HannanKan , can you add more unit tests to functions? Now there is only itcase.

I have added uint testings for key functions and updated docs. I appreciate if you can review the code again.

@JingsongLi @alpinegizmo @aljoscha @rmetzger  Excuse me. I found that my pr need approve to run github action each time I update branch related to pr. I wonder whether this step could be removed so that we work more efficiently?


QueryParams doesn't seem to work

Hello I think there are some problems with the data retrieved in post.
`17:47:08 INFO: ------WebKitFormBoundaryox489tCMjCKXHvQN
Content-Disposition: form-data; name="uuid"
ba804244-3406-4d0e-9e80-628513ac930b
------WebKitFormBoundaryox489tCMjCKXHvQN
Content-Disposition: form-data; name="reason"
Tu as Ã©tÃ© kick
------WebKitFormBoundaryox489tCMjCKXHvQN--
17:47:08 INFO: qparams null`
http://i.imgur.com/LSTOMyy.png

Whats is your router path??


Upgrade Erlang OTP from <IP_ADDRESS> to 20.3.5

Hello,
We have had an Erlang process leak in Erlang 19 which has caused cluster instability and performance issues for at least a few months.  We updated Erlang OTP in place and have been running this dev build in pre-prod for about a week.  Since the upgrade, we have no observed any leaks.
Changes in this PR:

Updated sha for golang in blob.yml.  It looks like the sha in the repo does not match the golang asset in the blobstore.  I've updated it with the sha1 reported by the cli, but it would be great to get a confirmation on which sha should be there.  If I missed something on my end, this change can be omitted from the PR all together.
Erlang package has been updated in place from <IP_ADDRESS> to 20.3.5 and rabbitmq-server jobs were updated accordingly.  Autoconf package was added as a build dependency for erlang.
-The erlang package was ported from https://github.com/rabbitmq/rabbitmq-server-boshrelease/tree/master/packages/erlang-20.3.5.
-The update erlang package requires autoconf to build, this was also ported from https://github.com/rabbitmq/rabbitmq-server-boshrelease/tree/master/packages/autoconf-2.69.

Package Sources:
-Autoconf 2.69 - https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz
-Erlang OTP - https://github.com/erlang/otp/releases/tag/OTP-20.3.5
Open Questions:

Do we want to rollout OTP 20 as an in-place package bump or in the style of rabbitmq-server.version?
To build and test this PR I was dropping the tarballs into the src directory.  Is the list of sources above sufficient to add these as blobs to this project's S3 bucket?

Thank you!
Kit

@kitsirota Thank you for signing the Contributor License Agreement!

Hi folks, Im psyched to see the this PR was "scheduled."  Please let me know if you have any questions or suggestions on the approach.  Im also available on CloudFoundry slack under @kit.sirota
Thanks!

Hi @kitsirota,
TL;DR we have just released v245.0.0 which upgrades to Erlang 20.3.5
Thank you for your pull request.  We have used it as inspiration rather than merging it for the following reasons:

we wanted to create automation to do this for us in future - and have now done so
we needed to filter out some files for open source licensing reasons
we run autoconf on Erlang prior to creating the tar file (which becomes the blob).  This is for historical reasons, and maybe should be changed, but we did not want to make that change at the same time as an upgrade

Thank you for your contribution.  We would welcome feedback on your experience of contributing, and how the latest release works for you.


Spacing between the LinkedIn and the GitHub icons

In the Our team section of the website, the spacing between the LinkedIn and GitHub icon is not proper for @nikhil25803.
Screenshot:

@prakhar-1005 can you please assign me with this issue , I would like to solve it .

Can you assign it to me?

Ge ahead and solve this @prakhar-1005 .

@Rajdip019 This is already fixed. Kindly close this issue


Ignore unsubscribe links in notification footers

These URLs are the last GitHub url listed, so opening these links unsubscribes by accident.

Ah didn't know this path exist. Can this be added to reject_unwanted_paths instead?

Running into this exact same issue.

This is out with 0.7.0, also added a mute button + shortcut, and uploaded to the Chrome web store!

(Default shortcut shift + h)

:raised_hands:


Toggle wait flag for upsert related methods

It is currently impossible to set the wait flag to false from the haystack client and it can be a necessity.

@lpi-tn Introduced in 1.0.4. Thanks for your contribution!


Deleting items by id

I find this to be a good way of setting up a delete by id:

type_defs = gql("""
   type Document {
        id:ID
        name: String!
   }

 type DeleteResults{
       success:[String]
       errors:[String]
   }

type Mutation{
DeleteDocument(input:[DocumentUpdate]): DeleteResults
}
"""

@mutation.field("DeleteDocument")
def DeleteDocument(*_, input):
    deleted =[]
    errors =[]
    for inputs in input:
        try:
           id = inputs.get("id")
           doc = Document.objects.get(pk=id)
           deleted.append("id "+ id+": "+ doc.name +" document deleted")
           doc.delete()
        except Document.DoesNotExist:
            errors.append("id: "+id+" not found")
    return {'success': deleted, 'errors': errors}

For the function just replace the model Document with whatever model. The results are the same for any model where a string is returned of the items you deleted and the errors. Is there a way some way to write the code so we can just plug in the django models to a function / class in this setup so less code is written? (I am not good at meta programming but find myself repeating this pattern)

I built something like this internally, but never really built up the test coverage, etc. to make me comfortable with adding it to this package.  Here's the resolver that can be subclassed:
from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist

class DeletionResolver:
    model_lookup_field = "id"

    def __init__(self, info=None, lookup_value=None):
        required_arguments = ["model_lookup_field"]
        required_fields_missing = []
        for required_argument in required_arguments:
            if getattr(self, required_argument, None) is None:
                required_fields_missing.append(required_argument)

        if required_fields_missing:
            raise ImproperlyConfigured(f"Need to define {required_fields_missing}")

        self.graphql_info = info
        self.model_lookup_value = lookup_value

    def get_queryset(self):
        raise NotImplementedError("Override me...")

    def get_object(self):
        qs = self.get_queryset()
        try:
            lookup_dict = self.get_lookup_dict()
            instance = qs.get(**lookup_dict)
        except ObjectDoesNotExist:
            instance = None
        return instance

    def destroy(self, *args, **kwargs):
        instance = self.get_object()
        original_instance = instance
        self.perform_destroy(instance)
        setattr(original_instance, self.model_lookup_field, self.model_lookup_value)
        return original_instance

    def perform_destroy(self, instance):
        if instance:
            instance.delete()

    def get_lookup_dict(self):
        return {self.model_lookup_field: self.model_lookup_value}

Here's an example of it in use:
from ariadne import gql

from core.graphql.resolvers.deletion_resolver import DeletionResolver
from resetbutton.graphql.decorators.assess_state_required import assess_state_required
from resetbutton.graphql.decorators.login_required import login_required
from resetbutton.graphql.mutation_type import mutation

type_defs = gql(
    """
    extend type Mutation {
        deleteFamilyMemberRecord(familyMemberId: UUID!): FamilyMemberRecordDeleteResult!
    }
    """
)

class FamilyMemberRecordDeletionResolver(DeletionResolver):
    object_lookup_field = "id"

    def get_queryset(self):
        return self.graphql_info.context["request"].user.filingperson.family_profile.familymemberrecord_set

    @mutation.field("deleteFamilyMemberRecord")
    @login_required()
    @assess_state_required()
    def __call__(self, info, familyMemberId, *args, **kwargs):
        obj = FamilyMemberRecordDeletionResolver(info=info, lookup_value=familyMemberId).destroy()
        return obj

There's still some boring repetitive code, but it's a smidge less and much more favorable to quick copypasta.

@maxmorlocke  I have not written test for mine either. I think this is useful to but it is easy to do the delete mutation and queries. When you get to the update and create it gets kind of difficult especially if you have nested foreign keys and trying to process them in bulk.

We did create and update pretty well while also handling nesting.  This required a pretty customized set of helpers to our DRF serializer though, as it doesn't handle child objects very well (e.g.   That being said, bulk updates and creates would definitely be a pain point.


Add Source AreaScans "ar"

Checklist:

[ ] Updated extVersionCode value in build.gradle for individual extensions
[X] Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions
[ ] Referenced all related issues in the PR body (e.g. "Closes #xyz")
[ ] Added the isNsfw = true flag in build.gradle when appropriate
[X] Have not changed source names
[ ] Have explicitly kept the id if a source's name or language were changed
[X] Have tested the modifications by compiling and running the extension through Android Studio
[X] Have removed web_hi_res_512.png when adding a new extension

is it different/copycat of this Area Manga

is it different/copycat of this Area Manga?

Yes, it is different. The site has been divided into two sites: 1. Specialized in Chinese business 2. Specialized in Korean business (Korean campaigns caused headaches for many sites)

is it different/copycat of this Area Manga?

They are looks like ARESManga and SCARManga


Genesis validator pubkey tracker

Client Teams

[x] ConsenSys: 100_000 #28
[x] EF DevOps: 100_000 #27
[x] Lodestar: 100_000 #21
[x] Nethermind: 100_000 #38
[x] Nimbus: 100_000 #41
[x] Prysm: 100_000 #31
[x] Sigma Prime: 100_000 #36
[x] Grandine: 50_000 #39
[x] Erigon: 5_000 #33
[x] Besu: 100_000 #32

Node Operators

[x] Attenstant: 100_000 #20
[x] Kiln: 100_000 #35
[ ] Manifold: 100_000
[x] P2P Validator: 100_000 #42
[ ] Pier Two: 100_000
[x] RockawayX: 100_000 #45
[x] Rocket Pool: 100_000 #46
[x] RockX: 50_000 #44
[x] Stakely: 50_000 #43
[x] CryptoManufaktur: 20_000 #19
[x] Chainstack: 10_000 #29
[ ] Simply staking: 10_000

Others

[x] EthStaker: 40_000 #30
[x] Goerli (Afri): 20_000 #25
[x] arnetheduck: 10_000 #37
[x] Sam Padilla Google (GCP): 10_000 #47
[x] Chainbase: 20_000 #26
[ ] Blockblaz (Gajinder): 10_000
[ ] dapplion: 10_000
[ ] protolambda: 10_000
[ ] ralexstokes: 5_000
[x] EF Security: 10_000 #34

Please submit your PR by Friday 18th of Aug 2023 23:59 UTC. Please read the docs about how to create the PR here. Please make a PR if you see your name/organization on the list.

EF Security Research did not get included in this list even though we asked for an allocation before the deadline https://github.com/eth-clients/holesky/issues/13#issuecomment-1613170173. Can we please get added back into the list?

You can remove me from the list ( Sam Padilla (GCP): 10_000) since you already added Google Cloud.
ref #47

@theSamPadilla thanks, updated.


2.2.1 breaks stylelint

Sorry, for creating an issue in this manner. I have no time to investigate right now. I'm not sure if it's browserslist's issue, or stylelint's. But we just received two issues about browserlist error, and new browserlist version just released.
https://github.com/stylelint/stylelint/issues/2775
https://github.com/stylelint/stylelint/issues/2774

linked issue : https://github.com/ionic-team/ionic/issues/12441

I didn't know who to blame and I couldn't pinpoint the cause so as first since stylelint was being loaded the error came from there. Then after removing stylelint I was getting the same error in autoprefixer, so I reported it there instead.
I guess I should have reported the issue here, sorry for that.
From my findings using browserslist 2.1.5 works but when 2.2.1 is used I'm getting this error.

<EMAIL_ADDRESS>is work well, but 2.2.1 is having this bug :(

That is good news! We have at least pipointed where the issue started to happen, now just someone needs to submit a fix and release a new patch build asap.

https://github.com/ai/browserslist/commit/9d3e5de995a5f560452c6f9457f41e25b5634924?w=1#diff-168726dbe96b3ce427e7fedce31bb0bcR78

Yeah that seems to be the exact cause. Submitted #159.

@hinaloe & @XhmikosR — thanks for your work. Didn't see the #159 PR so added one myself with an extra test, hoping to speed up a patch release.

Sorry, for creating an issue in this manner. I have no time to investigate right now.

wow you wasted a lot of other peoples time

Sorry, for creating an issue in this manner

:D You did everything right. Browserslist used by Autoprefixer with the big user base. False alarm, in this case, is better rather than thousands of wasted hours by Autoprefixer users.
Sad that issue was founded only when I went to sleep (other good reason to report it faster).

apologies to OP, im sure it wasnt his fault 8/


chore(package): update @types/node to version 10.9.4

Closes #20

Codecov Report

Merging #21 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #21   +/-   ##
=======================================
  Coverage   89.24%   89.24%
=======================================
  Files          27       27
  Lines         465      465
  Branches       47       47
=======================================
  Hits          415      415
  Misses         50       50

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 4716ce4...745ca15. Read the comment docs.


New elements added to FieldArray after Submission Error are invalid

Bug Report
What is the current behavior?
I am using FieldArray to manage an array of simple strings (not an array of objects), so maybe that is problem right there, but if this is a supported feature, I have encountered a bug. If there is a submission error, adding new elements to the field array is also initializing the submitErrors array elements to {} so it thinks newly added elements are also in error.
Please see this jsfiddle with sample and steps to reproduce
https://jsfiddle.net/ns6knwtg/2/
What is the expected behavior?
I expect newly added elements to a FieldArray of strings, after a submission error has occurred, to be valid
What's your environment?
Redux-form 6.5.0, Mac OS 10.11, Chrome 56.0.2924.87, JSFiddle

This has been resolved in redux-form 6.6.0. Thank you to everyone for your hard work on this great library.


[bee #48, #49, #40]: introduce netstore

Due to popular demand - the return of the immortal NetStore
This is a naive and trivial NetStore implementation: no caching and no fancy stuff, including any concurrency.
A note about about the retrieval protocol:
I introduced the Interface type but I cannot change the New constructor to return the Interface type, that is because in the retrieval tests, the server is expected to implement the Protocol method:
   recorder := streamtest.New(
   	streamtest.WithProtocols(server.Protocol()),
   )

Personally it would be nice to return the interface directly from the constructor and not even export Service at all, but then the test won't fly in this form.
It does work when I cast server to a Service:
	sprot := server.(*retrieval.Service)
	recorder := streamtest.New(
		streamtest.WithProtocols(sprot.Protocol()),
	)

But I feel this solution is also sub-optimal since Service still needs to be exported.
If someone has some nicer idea, I'd be happy to hear.
needed for #48
closes #49
closes #40
related to #98

@acud You can always export the service in export_test.go. But how would you use Service if it is not exported? It is needed to add protocol to p2p, right?


[core] Use Lerna to publish

Closes #23785. The usage of Lerna should solve the pain around managing the version between the different packages. I have been doing it by hand so far. However, it's error-prone, doesn't scale with the number of packages, and time-consuming.

What are all the changes to the tsconfigs for?

@eps1lon There are a couple of different changes in the tsconfigs. Some are purely about sorting the properties to be in the same order in all the files. I could move them to a "batch". I think that the only important change for the types is around tsconfig.build.composite.json. I can't get the cd packages/material-ui/ && yarn build command to work on my environment. Could you check that it works for you? It would help identify if it's an issue with my env or the dependencies. Thanks!

Could you check that it works for you?

Actually, this reproduction steps aren't accurate. What I can reproduce the error with is this command:
yarn build:codesandbox

Then, once it fails, I can have cd packages/material-ui/ && yarn build fail.

So can we handle this another time then? It sounds like the tsconfig changes are not blocking any step in the release process. Unless you're doing something difference, hence the request to add documentation.

So can we handle this another time then?

@eps1lon During the last release, it has almost blocked me from releasing. I had to find the trick (remove compose). Unfortunately it was breaking the CI, so I added it back in 86ec791926445539921f2ebcf8b7d97c46f64f75 on next.

Could you please describe the steps that are breaking? First you said it was build:codesandbox but that's unrelated to releasing the packages.
If it's only cd ... && yarn * then use yarn workspace ... * instead.

Unfortunately it was breaking the CI, so I added it back in 86ec791 on next.

Well nobody can help you if you don't ask and silently commit to the repo. The CI is not for certain groups only. It helps everyone so please leverage it instead of skipping it. This can leave the repository in a broken state that nobody is aware of.

Could you please describe the steps that are breaking?

A cleaner reproduction:

Setup

git clone git@github.com:mui-org/material-ui.git foo
cd foo

Build 1 ✅

yarn && cd packages/material-ui/ && yarn build

Build the lab

cd ../packages/material-ui-lab/ && yarn build && cd ../../

Build 2 ❌

cd ../packages/material-ui/ && yarn build

The CI is not for certain groups only. It helps everyone so please leverage it instead of skipping it. This can leave the repository in a broken state that nobody is aware of.

That wasn't "clean", agree. Hopefully, the change was small enough to be easy to revert.

Perfect, it's already reproducible with just repeating yarn workspace @material-ui/core build. We clean the build folder but don't tell TypeScript that we changed the build state (i.e. delete tsconfig.build.tsbuildinfo. Will include fix in https://github.com/mui-org/material-ui/pull/23805

Should be rebased on next and the tsconfig changes removed.


test data not unzip

hi, I not unzip test data, Do you kown how to get data?
Thanks~

Hi, I'm not sure if I understand your question, but does it work when you go to the link https://github.com/facebookresearch/NeuralPassthrough/blob/main/data/test.zip and click the download button?

Hi, I'm not sure if I understand your question, but does it work when you go to the link https://github.com/facebookresearch/NeuralPassthrough/blob/main/data/test.zip and click the download button? I'll close the issue for now.

Thanks, I have solved the problem~because LFS


hideAnimated:afterDelay invoke after handleHideTimer but before done method

done method will invalid current timer ,cause the showing(hide after delay) hud don't hide

I'm sorry, but I don't understand what are you trying to say. Can you be more specific or write a failing test case?

I will call the follow method when a network request failed:
    [aWindowGlobalHud showAnimated:YES];  [aWindowGlobalHud hideAnimated:YES afterDelay:delay];
The above method call internally:
[self hideUsingAnimation:self.useAnimation] --[self animateIn:NO withType:self.animationType completion:^(BOOL finished) {             [self done];         }];
If at the same time another follow method is called
    [aWindowGlobalHud showAnimated:YES];  [aWindowGlobalHud hideAnimated:YES afterDelay:delay];
aWindowGlobalHud may not be hidden，because a new hideDelayTimer(created at [aWindowGlobalHud hideAnimated:YES afterDelay:delay] method)  be invalid at the [self done] method

you can add the follow code :
`- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
UIView *rootView = rootViewController.view;
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:rootView animated:NO];
[hud showAnimated:YES];
[hud hideAnimated:YES afterDelay:0.3];

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
    [hud showAnimated:YES];
    [hud hideAnimated:YES afterDelay:0.3];
});

}`
in the HudDemo Project's MBHudDemoViewController.m,
hud won't be hidden

You have an issue in your code, that would prevent this from working correctly. You should not ue the showHUDAddedTo:animated: helper, if you plan on reusing the HUD.
But if you modify the code like this, your report is valid:
- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
    UIView *rootView = rootViewController.view;
    MBProgressHUD *hud = [[MBProgressHUD alloc] initWithView:rootView];
    [rootView addSubview:hud];
    [hud showAnimated:YES];
    [hud hideAnimated:YES afterDelay:0.3];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.3 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        [hud showAnimated:YES];
        [hud hideAnimated:YES afterDelay:0.3];
    });
}

There is a race here. I think this should fix it: https://github.com/matej/MBProgressHUD/pull/90.

Resolved in https://github.com/matej/MBProgressHUD/pull/90.

Thank you very much!


updated init-containers page

Fixes #38066.

@sftim, @mengjiao-liu,
Could you please take a look into it!!

Hi @sftim,
Thanks for the review, i have reworked on your suggestions.
could you please take an another look!!
Deploy preview: https://deploy-preview-41514--kubernetes-io-main-staging.netlify.app/docs/concepts/workloads/pods/init-containers/

@dipesh-rawat,
Thank you for your feedback.
Could someone else kindly approve the PR so that it may be merged as quickly as possible?

/approve


🐞 Noticeable delay occurs when changing Settings

Description
Changing any setting causes a slight delay before the UI is updated to reflect the change. This is problematic when interacting with a stepper control when it is common to click several times consecutively or a text field when it is common to type characters consecutively. The UI doesn't have time to respond resulting in a sluggish UI.
To Reproduce

Open Settings
Navigate to the Text Editing page
In the Font Size field, click the up arrow to increase five times in a row
Notice that the UI does not update immediately resulting in it feeling sluggish to interact with

Expected Behavior
The UI should respond to user action immediately.
Version Information
CodeEdit: 0.0.3-dev (32)
Additional Context
This might be because it is writing to settings.json in our Application Support folder. I think it waits until it has been updated (not sure, just a theory). I think we should be handling this more optimistically and not be so dependent on writing to the file.
Screenshots
https://user-images.githubusercontent.com/806104/234976310-d53e977e-31a7-4ac0-b4e2-ab9890172bba.mov
Related issues

#1246

We've discovered the root of the problem. The MonospacedFontPicker is causing this. When this is removed, performance is fine when changing a font size. If the user has a lot of fonts installed, for whatever reason it effects other fields in the form. If the Other Fonts picker is taken out of this view, everything seems to be fine.
Things to try:

Only include the other fonts Picker when the monospaced fonts picker menu is open
Explore if there is a way to lazy-load these menu items
Rewrite the picker using AppKit


z/OS test failures unmasked by https://github.com/libuv/libuv/pull/3323

Version: v1.x
Platform: z/OS

Looks like there are several tests consistently failing on z/OS since 10 Oct:

I've done some bisecting and narrowed it down to 6564ccc90073296769ac17319bba3f3357005603 (https://github.com/libuv/libuv/pull/3323):
Passing on c273d8b9cf4b3cbd4c896dc484c30c3e18a02d6e: https://ci.nodejs.org/job/libuv-test-commit-zos-cmake/1018/
Failing on 6564ccc90073296769ac17319bba3f3357005603: https://ci.nodejs.org/job/libuv-test-commit-zos-cmake/1019/
At first glance it seems confusing as the z/OS builds should not have any of the ASAN defines, but I think what has happened is the enumeration change in https://github.com/libuv/libuv/commit/6564ccc90073296769ac17319bba3f3357005603#diff-e57c72083d6a9b7bb10c57702f244f8c3770e2fa066008c3a3d80f4ac168c85a to renumber TEST_SKIP exit code has unmasked failures that were previously treated as skips.
Could someone from @libuv/zos take a look?

Failure details:
not ok 47 - fs_copyfile
# exit code 1
# Output from process `fs_copyfile`: (no output)
...
not ok 105 - fs_statfs
# exit code 1
# Output from process `fs_statfs`: (no output)
...
not ok 155 - loop_alive
# exit code 1
# Output from process `loop_alive`: (no output)
...
not ok 332 - threadpool_multiple_event_loops
# exit code 1
# Output from process `threadpool_multiple_event_loops`: (no output)
...

Previously exit code 1 was treated as TEST_SKIP.

Bump. Is there an active team for @libuv/zos?
I ran a new CI run for all platforms on v1.x: https://ci.nodejs.org/job/libuv-test-commit/2209/

@richardlau Can you coordinate with other IBM'ers?

@richardlau Can you coordinate with other IBM'ers?

I'll try reaching out in the shared IBM - Red Hat Slack workspace.

@vtjnash, I'm a developer on the Node.js for z/OS team.  Can I be added to the https://github.com/orgs/libuv/teams/zos team?
@zsw007 on my team is in the process of upstreaming our Node.js z/OS libuv changes, and will likely be the one looking into this issue.

FWIW @IgorTodorovskiIBM did reach out to me about being added to the zos team here but I don't have permissions to invite/add people.

I am currently looking into this issue.

@IgorTodorovskiIBM Added. I think you may have been a member before? I have a distinct recollection of adding you and GH, instead of sending an invite, added you immediately.
@richardlau I've made you team maintainer.

Fixed by https://github.com/libuv/libuv/pull/3376 and setting an environment flag (https://github.com/libuv/libuv/pull/3376#issuecomment-985724894).


The implementation of 32.4-5 uses inbuilt library.

The implementation just calls the standard library function strstr, it does not actually implement any algorithms on its own.

haha. It is quite easy to use something like hash to finish in O(n). Why not implement it and pull request to me ^_^


static: trim slash before opening file

Describe the pull request
Fix #169
Link to the issue: https://github.com/flamego/flamego/issues/169
Checklist

[x] I agree to follow the Code of Conduct by submitting this pull request.
[x] I have read and acknowledge the Contributing guide.
[x] I have added test cases to cover the new code.

https://github.com/flamego/flamego/releases/tag/v1.9.3 has been created for this merge.


Issue Install Library On macOS

When following installation instruction and installing for macOS, got the below error.
macOS ARM64: Sonoma 14.3 (23D56)
$ pip install openexr-python
Collecting openexr-python
  Using cached openexr_python-2<IP_ADDRESS>.15.26-py3-none-any.whl.metadata (3.0 kB)
Collecting openexr==1.3.8 (from openexr-python)
  Using cached OpenEXR-1.3.8.tar.gz (11 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /Users/yk/Desktop/Project/Workspace/Python/pv310-ssca/lib/python3.10/site-packages (from openexr-python) (1.26.2)
Using cached openexr_python-2<IP_ADDRESS>.15.26-py3-none-any.whl (6.9 kB)
Building wheels for collected packages: openexr
  Building wheel for openexr (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for openexr (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [59 lines of output]
      OpenEXR.cpp:685:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
          sprintf(buf, "InputFile represented");
          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
      __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
              #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                            ^
      OpenEXR.cpp:931:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
          sprintf(buf, "OutputFile represented");
          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
      __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
              #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                            ^
      OpenEXR.cpp:1114:21: warning: code will never be executed [-Wunreachable-code]
                          printf("%s -> %s\n",
                          ^~~~~~
      OpenEXR.cpp:1113:21: note: silence by adding parentheses to mark code as explicitly dead
                      if (0)
                          ^
                          /* DISABLES CODE */ ( )
      3 warnings generated.
      OpenEXR.cpp:685:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
          sprintf(buf, "InputFile represented");
          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
      __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
              #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                            ^
      OpenEXR.cpp:931:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
          sprintf(buf, "OutputFile represented");
          ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
      __deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
      ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
              #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                            ^
      OpenEXR.cpp:1114:21: warning: code will never be executed [-Wunreachable-code]
                          printf("%s -> %s\n",
                          ^~~~~~
      OpenEXR.cpp:1113:21: note: silence by adding parentheses to mark code as explicitly dead
                      if (0)
                          ^
                          /* DISABLES CODE */ ( )
      3 warnings generated.
      ld: warning: search path '/opt/alg/xz-5.4.3-universal/lib' not found
      ld: warning: search path '/opt/local/lib' not found
      ld: warning: search path '/opt/alg/python-3.10.11-p2-universal/lib' not found
      ld: library 'Iex' not found
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      Looking for libOpenEXR...
      error: command '/usr/bin/clang++' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for openexr
Failed to build openexr
ERROR: Could not build wheels for openexr, which is required to install pyproject.toml-based projects

[openexr-python] internally uses a pip package called [openexr]. This error occurs because the [openexr] package does not support Mac. (The same error occurs on my Mac as well)
Therefore, if you want to use [openexr-python] on Mac, you must create a container using docker and use it inside it.
example)
docker run -it --rm python:3.10 /bin/bash -c "pip install openexr-python && python -c 'import openexr_python as exr;print(exr.__version__)'"

[openexr-python] internally uses a pip package called [openexr].
This error occurs because the [openexr] package does not support Mac. (The same error occurs on my Mac as well)
Therefore, if you want to use [openexr-python] on Mac, you must create a container using docker and use it inside it.
example)
docker run -it --rm python:3.10 /bin/bash -c "pip install openexr-python && python -c 'import openexr_python as exr;print(exr.__version__)'"

Got it, thank you! will try this


[Bug] [todo_app_sqlite_axum] [Firefox] Appstate was cache after update, navigating to new url and going back

Describe the bug
I found a weird behavior when trying todo_app_sqlite_axum: appstate was cache after update, navigate to new url and go back, I have to refresh the page to remove the cache
Leptos Dependencies
Please copy and paste the Leptos dependencies and features from your Cargo.toml.
[package]
name = "todo_app_sqlite_axum"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
console_log = "1.0.0"
console_error_panic_hook = "0.1.7"
futures = "0.3.25"
cfg-if = "1.0.0"
leptos = { path = "../../leptos", features = ["nightly"] }
leptos_axum = { path = "../../integrations/axum", optional = true }
leptos_meta = { path = "../../meta", features = ["nightly"] }
leptos_router = { path = "../../router", features = ["nightly"] }
log = "0.4.17"
simple_logger = "4.0.0"
serde = { version = "1", features = ["derive"] }
axum = { version = "0.6.1", optional = true }
tower = { version = "0.4.13", optional = true }
tower-http = { version = "0.4", features = ["fs"], optional = true }
tokio = { version = "1.22.0", features = ["full"], optional = true }
http = { version = "0.2.8" }
sqlx = { version = "0.6.2", features = [
	"runtime-tokio-rustls",
	"sqlite",
], optional = true }
thiserror = "1.0.38"
wasm-bindgen = "0.2"

[features]
hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"]
ssr = [
	"dep:axum",
	"dep:tower",
	"dep:tower-http",
	"dep:tokio",
	"dep:sqlx",
	"leptos/ssr",
	"leptos_meta/ssr",
	"leptos_router/ssr",
	"dep:leptos_axum",
]

[package.metadata.cargo-all-features]
denylist = ["axum", "tower", "tower-http", "tokio", "sqlx", "leptos_axum"]
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]

[package.metadata.leptos]
# The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name
output-name = "todo_app_sqlite_axum"
# The site root folder is where cargo-leptos generate all output. WARNING: all content of this folder will be erased on a rebuild. Use it in your server setup.
site-root = "target/site"
# The site-root relative folder where all compiled output (JS, WASM and CSS) is written
# Defaults to pkg
site-pkg-dir = "pkg"
# [Optional] The source CSS file. If it ends with .sass or .scss then it will be compiled by dart-sass into CSS. The CSS is optimized by Lightning CSS before being written to <site-root>/<site-pkg>/app.css
style-file = "./style.css"
# [Optional] Files in the asset-dir will be copied to the site-root directory
assets-dir = "public"
# The IP and port (ex: <IP_ADDRESS>:3000) where the server serves the content. Use it in your server setup.
site-addr = "<IP_ADDRESS>:3000"
# The port to use for automatic reload monitoring
reload-port = 3001
# [Optional] Command to use when running end2end tests. It will run in the end2end dir.
end2end-cmd = "npx playwright test"
#  The browserlist query used for optimizing the CSS.
browserquery = "defaults"
# Set by cargo-leptos watch when building with tha tool. Controls whether autoreload JS will be included in the head
watch = false
# The environment Leptos will run in, usually either "DEV" or "PROD"
env = "DEV"
# The features to use when compiling the bin target
#
# Optional. Can be over-ridden with the command line parameter --bin-features
bin-features = ["ssr"]

# If the --no-default-features flag should be used when compiling the bin target
#
# Optional. Defaults to false.
bin-default-features = false

# The features to use when compiling the lib target
#
# Optional. Can be over-ridden with the command line parameter --lib-features
lib-features = ["hydrate"]

# If the --no-default-features flag should be used when compiling the lib target
#
# Optional. Defaults to false.
lib-default-features = false

To Reproduce
Steps to reproduce the behavior:
I ran todo_app_sqlite_axum with
cargo leptos watch

next steps are recorded in the video. You can see that 123xx was created, then it disappeared after going back from localhost:3000/weird and then reappeared after I pressed refresh page
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
https://github.com/leptos-rs/leptos/assets/36273288/c5681471-2af3-4cb6-8276-34efa87a3608
Additional context
My rust version:
rustc --version
rustc 1.73.0-nightly (903e279f4 2023-07-18)

I'm pretty sure this is just because the <form> submit there is an actual page reload, and so the browser's "back" behavior was to load the initial HTML response from the previous page, so you got stale DB data. Because Leptos uses client-side routing for most things, you wouldn't normally encounter this unless you use something like a <form> rather than the <Form> component, etc.
(The fact that this <form> is in the example was actually an accident created while demoing some other behavior, and should be removed.)
I don't consider the behavior here to be a bug—rather, it's the default browser behavior for a full-page navigation like this, as far as I can tell, since the browser "history" is a "history of page states on load." But I understand why it's confusing and will edit the example.

@gbj Thanks for clarify.
Yes, the correct keyword is "stale data".
I just want to have a point that can help resolve this problem, if it make sense to you.
This is steps of my imaginary approach would work:
Step 1: When we first one loading pageX, we store the state is "state1" in local storage.
Step 2: When user change the state, the  state is "state2" in local storage.
Step 3: Then move to the pageY.
Step 4: Then back to pageX.
Step 5: For now the state of pageX is "state1", we can add a check to detect "state drift": because "state1" != "state2" so the application will try to fetch the data from backend and replace current UI in pageX with latest one.
If there is builtin in leptos for this feature, do you have any ideas if it is it possible to handle this manually.

Implementing it manually would basically be something like
create_effect(cx, move |_| {
  resource.refetch();
});

which would force a resource to refetch once WASM had loaded, guaranteeing it was not the "stale" version from the initial page load.
Alternatively, if you don't want to double-fetch you'd need to make sure those fetches only happen in the browser by using create_local_resource instead, so that the data is not part of the initial HTML response at all. This is a deoptimization for everything except this "back button" case.

Brilliant!
Let me try it out.


Crash when providing onSnap without id

The documentation says id is optional for snapPoints, however this code will crash if id is nil ("attempt to insert nil object from objects[1]").
Should be pretty easy to fix with RCTNullIfNil.

I couldn't reproduce this on master
I deleted the id field from this example:
https://github.com/wix/react-native-interactable/blob/master/example/src/IconDrawer.js#L62
But there were no crashes

Was this not fixed by #8 ?

Sorry, my bad! Was using the npm-published version of this package (0.0.4 at the time), seems like #8 fixed the issue. Thanks!


[hpc-cache] Bug fix, code refactoring and perfect test cases

Fix https://github.com/Azure/azure-cli/issues/13003: The command az hpc-cache update is modified to update only tags.
Fix #1997: Fix the bug when executing command az hpc-cache nfs-storage-target update without passing the parameter --junction.
Fix https://github.com/Azure/azure-cli/issues/14060: Improved the help description of parameter --junction.
The parameter storage_account supports passing in the name of storage account.
Code refactoring and perfect the test cases

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

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

hpc-cache


Error loading webview, not seeing jupyter notebook

I tried opening the image-classifier.ipynb in web based vscode - not seeing any jupyter cells , seems to be stuck on import.torch.nn
problems tab reports no problems detected in this workspace
jupyter:variables tab has the following error message:
Error loading webview: Error: Could not register service workers: NotSupportedError: Failed to register a ServiceWorker for scope ('https://05n296i6us9g11b1gudfhfurnfoito80qrnvi7spivi5l7v716bn.vscode-cdn.net/stable/97dec172d3256f8ca4bfb2143f3f76b503ca0534/out/vs/workbench/contrib/webview/browser/pre/') with script ('https://05n296i6us9g11b1gudfhfurnfoito80qrnvi7spivi5l7v716bn.vscode-cdn.net/stable/97dec172d3256f8ca4bfb2143f3f76b503ca0534/out/vs/workbench/contrib/webview/browser/pre/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority=codespaces+jreuben11-fuzzy-xylophone-r4gv7wg47qfp47v'): The user denied permission to use Service Worker..

Which browser and operating system are you using to access your codespace? I'm not able to reproduce your report in Edge 110.0.1587.49 on macOS.

I'm using Android plus a Linux 64...
On Fri, 17 Feb 2023, 07:01 JP Ungaretti, @.***> wrote:

Which browser and operating system are you using to access your codespace?
I'm not able to reproduce your report in Edge 110.0.1587.49 on macOS.
—
Reply to this email directly, view it on GitHub
https://github.com/github/codespaces-jupyter/issues/29#issuecomment-1433970479,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYGVWRNSUQVYA575IAIYHQDWX3IGFANCNFSM6AAAAAAUJUH2HU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

MacOS 11.6.9 + Chrome 109


Add a final review page when creating a Distribution #253

Resolves #253
Description
user  can preview Distribution before submit

Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?
model and features tests

Screenshots

Awesome!
Thanks, @IlinDmitry this is really great -- I like how you made this. Thanks for writing the tests for it too :)


Allow adjustment of a LocationAnnotationNode's Y screen coordinate.

Background
Existing codebase translates a LocationAnnotationNode's rendered label up by a
hardcoded factor of 1.1 * scaleFactor. This means labels are never drawn on the object
they're labeling, which is sometimes not the desired behavior.
Resolves #229.
Breaking Changes
None. New property's default value is the original 1.1 magic number.
Meta

Tied to Version Release(s):

PR Checklist

[ ] CI runs clean?
[ ] Appropriate label has been added to this PR (i.e., Bug, Enhancement, etc.).
[x] Documentation has been added to all open, and public scoped methods and properties.
[x] Changelog has been updated
[ ] Tests have have been added to all new features. (not a requirement, but helpful)
[ ] Image/GIFs have been added for all UI related changed.

Screenshots

Can you please resolve the merge conflicts?

Done and passing.


Error: Could not locate the bindings file. Tried:

Using latest Wordpress version, exported just the Posts (from Tools->Export) and when trying to convert to JSON got the following error (npm and node are installed):
    /home/test/wp2ghost-master/node_modules/bindings/bindings.js:91
      throw err
      ^

    Error: Could not locate the bindings file. Tried:
     → /home/test/wp2ghost-master/node_modules/node-expat/build/node_expat.node
 → /home/test/wp2ghost-master/node_modules/node-expat/build/Debug/node_expat.node
 → /home/test/wp2ghost-master/node_modules/node-expat/build/Release/node_expat.node
 → /home/test/wp2ghost-master/node_modules/node-expat/out/Debug/node_expat.node
 → /home/test/wp2ghost-master/node_modules/node-expat/Debug/node_expat.node
 → /home/test/wp2ghost-master/node_modules/node-expat/out/Release/node_expat.node
 → /home/test/wp2ghost-master/node_modules/node-expat/Release/node_expat.node
 → /home/test/wp2ghost-master/node_modules/node-expat/build/default/node_expat.node
 → /home/test/wp2ghost-master/node_modules/node-expat/compiled/4.2.6/linux/x64/node_expat.node
    at bindings (/home/test/wp2ghost-master/node_modules/bindings/bindings.js:88:9)
    at Object.<anonymous> (/home/test/wp2ghost-master/node_modules/node-expat/lib/node-expat.js:4:32)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/test/wp2ghost-master/node_modules/xml-stream/lib/xml-stream.js:2:22)
           at Module._compile (module.js:410:26)

Fixed the error by rebuilding (npm install) but for some reason the final output JSON file has duplicate posts (each post is 2 times in it)

I'm getting the same issue. I installed ghost 1.x in vagrant and then installed wp2ghost but npm install failed with:
gyp ERR! node -v v8.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN wp2ghost@ No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: node-gyp rebuild
npm ERR! Exit status 1
and running wp2ghost throws the same error as OP

That sounds like node can't build gyp. Perhaps you need to install Python?


header should be returned instead of remoteUser

We have an auth mechanism at the apache layer that takes care of authentication. We are looking to use the following trusted authentication handler config.
cas.authn.trusted.remotePrincipalHeader=OOO_REMOTE_USER
When kicking up the debug logs we can see that the username or credential is not being extracted from the header properly. Trusted auth works fine after making this code change, recompiling, and redeploying.
Here is some further detail that was posted on the mailing list.
https://groups.google.com/a/apereo.org/forum/?utm_medium=email&utm_source=footer#!msg/cas-user/eW0fO9kxgGM/nJSVjrSBAgAJ
Thanks,
Majeed

Meant to open a pull request with apereo/cas instead of my fork.


multiple network mining addresses

currently there is only one and one has to manually delete them to change networks on an appdir, there should be one for each network so it always finds the right ones or makes them

wallet password keeps the public key off disk, and mining controller requires wallet to get addresses for mining, there is still the old list in the config but this will be removed


fix: Another attempt to fix libcrypto.dylib loading issue

Which issue does this PR close?
Closes #76
Rationale for this change
The previous fix(#55) is not correct as it doesn't propagate DYLD_LIBRARY_PATH to the test phase: the export statement is executed in a bash shell, which is lost in the new shell command in the test phase.
Q: If the library path is not correctly set, how does most of the test instances are passed?
A: It turns out that Github's mac runners have inconsistent state of SIP enable status. See https://github.com/actions/runner-images/issues/9091 for related reports, and I also observed related output in my personal debug branch. When SIP is disabled, the X86 mac runners will try to find libcrypto.dylib in /usr/lib/local on macos-latest(a.k.a: macos-12), which are already linked by homebrew's openssl lib. Below is a screenshot that listing /usr/local/lib:

So all the tests passed are ran on Mac with SIP disabled.

In theory, even if SIP is turned on, the java binary from zulu distribution should also try to find libraries in /usr/local/lib if it's unrestricted[1].  I am not sure and didn't find a clue why it doesn't and fails the test.

Q: How does upgrade to macos-13 fix this problem?
A: macos-13's SIP is turned off, See: https://github.com/actions/runner-images/issues/8162. So it's possible to manipulate the DYLD_LIBARARY_PATH for our Java tests for now.
What changes are included in this PR?

upgrade X86 mac runners to macos-13
correctly setup DYLD_LIBRARY_PATH

How are these changes tested?
Manual verification
Notes:
1: you can look up related documentation with man dlopen on your Mac.

Merged, thanks!


Failed to send the command after 3 attempts (Status Fail) (ZW0202)

Hi
I have a problem for a few months, running Z-Wave JS to MQTT 0.32.1 and HA 2021.12.3.
Zwave Controller Aeotec Z-Stick 7 FW 7.15.
Have tested with extension cable and both USB-2 and USB-3.
The only solution is to restart Z-Wave JS to MQTT Add-on, then everything is ok, to the next crash.
it can happen 2-4 a day , here is the Zwave log:
2021-12-16 00:58:37.425 INFO ZWAVE: Node 12: value updated: 49-4-Air temperature 22.8 => 22.8
2021-12-16 00:58:41.480 INFO ZWAVE: Node 18: value updated: 67-0-setpoint-1 18 => 18
2021-12-16 00:58:45.573 INFO ZWAVE: Node 13: value updated: 67-1-setpoint-1 22 => 25.5
2021-12-16 00:58:47.817 INFO ZWAVE: Node 13 is now dead
2021-12-16 00:58:47.926 ERROR ZWAVE-SERVER: Failed to send the command after 3 attempts (Status Fail) (ZW0202)
ZWaveError: Failed to send the command after 3 attempts (Status Fail) (ZW0202)
at Driver.sendMessage (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:3345:23)
at Driver.sendCommand (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:3504:28)
at ThermostatSetpointCCAPI.set (/opt/node_modules/zwave-js/src/lib/commandclass/ThermostatSetpointCC.ts:260:21)
at Proxy.ThermostatSetpointCCAPI. (/opt/node_modules/zwave-js/src/lib/commandclass/ThermostatSetpointCC.ts:184:14)
at ZWaveNode.setValue (/opt/node_modules/zwave-js/src/lib/node/Node.ts:849:14)
at Function.handle (/opt/node_modules/@zwave-js/server/dist/lib/node/message_handler.js:20:44)
at Object.node (/opt/node_modules/@zwave-js/server/dist/lib/server.js:39:91)
at Client.receiveMessage (/opt/node_modules/@zwave-js/server/dist/lib/server.js:95:99)
at WebSocket. (/opt/node_modules/@zwave-js/server/dist/lib/server.js:48:45)
at WebSocket.emit (node:events:390:28)
2021-12-16 00:58:51.160 INFO ZWAVE: Node 13: has returned from the dead
2021-12-16 12:20:12.409 INFO ZWAVE: Node 7: value updated: 37-0-currentValue false => true
2021-12-16 12:20:12.410 INFO ZWAVE: Node 7: value updated: 37-0-targetValue false => true
2021-12-16 12:20:12.524 INFO ZWAVE: Node 7: value updated: 37-0-currentValue true => true
2021-12-16 12:20:13.892 INFO ZWAVE: Node 7: metadata updated: 49-0-Power
2021-12-16 12:20:13.893 INFO ZWAVE: Node 7: value updated: 49-0-Power 0 => 2.2
2021-12-16 12:20:14.241 INFO ZWAVE: Node 7: metadata updated: 49-0-Power
2021-12-16 12:20:14.242 INFO ZWAVE: Node 7: value updated: 49-0-Power 2.2 => 2.2
2021-12-16 12:20:14.348 INFO ZWAVE: Node 7: metadata updated: 49-0-Power
2021-12-16 12:20:14.348 INFO ZWAVE: Node 7: value updated: 49-0-Power 2.2 => 2.2
2021-12-16 12:20:15.475 INFO ZWAVE: Node 7 is now dead
2021-12-16 12:20:15.585 ERROR ZWAVE-SERVER: Failed to send the command after 3 attempts (Status Fail) (ZW0202)
ZWaveError: Failed to send the command after 3 attempts (Status Fail) (ZW0202)
at Driver.sendMessage (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:3345:23)
at Driver.sendCommand (/opt/node_modules/zwave-js/src/lib/driver/Driver.ts:3504:28)
at BinarySwitchCCAPI.set (/opt/node_modules/zwave-js/src/lib/commandclass/BinarySwitchCC.ts:114:21)
at Proxy.BinarySwitchCCAPI. (/opt/node_modules/zwave-js/src/lib/commandclass/BinarySwitchCC.ts:129:14)
at ZWaveNode.setValue (/opt/node_modules/zwave-js/src/lib/node/Node.ts:849:14)
at Function.handle (/opt/node_modules/@zwave-js/server/dist/lib/node/message_handler.js:20:44)
at Object.node (/opt/node_modules/@zwave-js/server/dist/lib/server.js:39:91)
at Client.receiveMessage (/opt/node_modules/@zwave-js/server/dist/lib/server.js:95:99)
at WebSocket. (/opt/node_modules/@zwave-js/server/dist/lib/server.js:48:45)
at WebSocket.emit (node:events:390:28)
2021-12-16 12:20:15.625 INFO ZWAVE: Node 7: metadata updated: 49-0-Power
2021-12-16 12:20:15.626 INFO ZWAVE: Node 7: value updated: 49-0-Power 2.2 => 2.2
2021-12-16 12:20:15.627 INFO ZWAVE: Node 7: has returned from the dead

I have the same problem

There are different nodes that fails, from time to time.
Today i installed an Aeotec Range Extender 7 and run a "Heal network", but it did not get any better. :-(

Have created a case here, because I think the problem is on zwavejs / zwavejs2mqtt and not in HA.
https://github.com/zwave-js/zwavejs2mqtt/issues/2082

Seeing this exact same issue on many devices. Most notably after a restart or when controlling multiple devices at the same time. For example, I have an automation when double tapping on a switch it will turn on 4 lights, 2 plugs and open a garage door. About 50% of the time when running this automation, I'll get this error on at least 1 of those devices which causes it to show as unavailable. I can either re-interview the node or restart the zwavejs2mqtt addon and all is well again.

I had the same issue a couple of times already. Restarting the addon solves it.
While in this state, no actions succeed.

This is a known bug with the 700-chip sticks. I have moved from Aeotec Z-Stick 7 to the Gen5+ which solves the issue until SiLabs succeeds with a new firmware fix for the 700-chips.
Please read and follow this thread for information https://github.com/zwave-js/node-zwave-js/issues/3906

@johanschelin thanks for mentioning this. I researched it a bit, but I'm curious as I have never had this issue in the past and I have a Z-Stick Gen5 all along.
As far as I know, the NVM (Non-Volatile Memory?) shouldn't update itself from a 500 to 700, is it?

Hi Wouter0100 - ok, if you are experiencing this with a Gen5 stick, it is something else - but the 7-sticks all seem to have this issue :)
The NVM cant update, as 500/700 are different hardware in the sticks

I updated the firmware in my zooz zst 700 and this issue has been significantly better. I've had 1 entity marked as unavailable over the past 2 weeks. Huge improvement over having 5+ unavailable daily.

I'm on the latest version and still having this issue from time to time.

Similar - I'm on the latest version and have this too. I'm on a Z-Stick 500 series, not 700 series.
Thanks in advance.

All, you should probably report this to the actual zwavejs2mqtt project.
https://github.com/zwave-js/zwavejs2mqtt
This repo is just the glue that brings zwavejs2mqtt into Home Assistant.  No actual work is done here.

Thanks @kdknigga.
If anyone is having this issue again, would you be able to create a dump using:
Home Assistant -> settings -> Integrations -> Z-Wave JS -> Configure -> Create dump -> zip the json file and post it here.
This is as asked by the issue form of the zwavejs2mqtt project. I will hopefully be able to reproduce it myself, as I had this issue again yesterday. After this dump is available, we should be able to move this issue to the zwavejs2mqtt project.

I was in the process of adding a fifth Kwikset Zwave lock to my new x86-64 HA OS system when HA started having trouble.  When I asked HA to re-interview the lock, the entire 30 device Zwave network went haywire and hasn't come back.  I'm using a Zooz ZST10 700 (firmware 7.17.2) on a six-foot extension. I've moved it to various locations, but I still can't control any Zwave device.
I've unplugged the Zooz dongle, powered off the x86-64 and restarted numerous times, but no luck.
I've used VeraPlus for almost 10 years and never had this kind of problem (it didn't make you jump through hoops--Keymaster-- to add a lock, either).
I'm using ZwaveJS2MQTT..at least I THINK I am.  I also see ZwaveJS on my integrations page.  The whole Zwave integration is very confusing.
Home Assistant -> settings -> Integrations -> Z-Wave JS -> Configure -> Create dump -> zip the json file.  I don't see a Create Dump file.


Problem doing npm install

(58,24): error TS2345: Argument of type 'History' is not assignable to parameter of type 'History'.   Types of property 'createLocation' are incompatible.     Type '{ (path?: LocationDescriptor, action?: string, key?: string): Location; (path?: string, state?: O...' is not assignable to type '(path?: LocationDescriptor, action?: Action, key?: string) => Location'.       Type 'Location' is not assignable to type 'Location'. Two different types with this name exist, but they are unrelated.         Types of property 'action' are incompatible.           Type 'string' is not assignable to type 'Action'.
Not sure if it's due to typings https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14575

If anyone is interested, I have solved the problem by adding the last version of @types/history to package.json then delete node_modules and re-install.

Hope it will work for you as it did for me. ❤

Nice! Thank you for sharing!
We have recommended using yarn for this reason.  It seems npm can sometimes drift, while yarn is deterministic in its approach.
If you get a chance, please feel free to submit a PR with the updated packages.
Thank you again!

I am going to close this because you were able to resolve it, but please feel free to keep the conversation going if needed.


Fix CMake Build

Description
Using CMake the configuration step gives a warning:

CMake Warning (dev) in CMakeLists.txt:
No project() command is present.  The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command.  Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers.  Use -Wno-dev to suppress it.

Other than that it configures successfully.
The build step, however, fails with:

Traceback (most recent call last):
File "/home/ryan/CMakePP/CMakeDoc/build/setup.py", line 4, in
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in
import apt
File "/usr/lib/python3/dist-packages/apt/init.py", line 23, in
import apt_pkg
ImportError: /home/ryan/spack/opt/spack/linux-ubuntu19.10-broadwell/gcc-9.2.1/gcc-8.3.0-y3pfafsmcq7k35yfrt5lgpgqn2ssbiru/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.90)
Original exception was:
Traceback (most recent call last):
File "/home/ryan/CMakePP/CMakeDoc/build/setup.py", line 4, in
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
make[2]: *** [CMakeFiles/target.dir/build.make:61: build/timestamp] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/target.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

The point of the configure step is to find all dependencies, so the configure step needs adjusted to ensure that all required Python modules are available (can be done by running the already found Python command and seeing if it can load the module).
Once I install the missing dependencies the build step works; however, the install step does not honor CMAKE_INSTALL_PREFIX (which is the CMake variable dictating where to install the project).
Tasks

[ ] Add project command to CMakeLists.txt
[ ] Look for required Python modules during configure
[ ] Honor CMAKE_INSTALL_PREFIX

For the installation prefix, there are two options:
The first and easiest is to use the built-in --prefix option to setup.py, but this requires the prefix location to include an entire python installation. Ex. prefix of ~/.python will require a subdirectory of ~/.python/lib/python3.7/site-packages that the package will actually be placed in.
The second option is to place the package in the prefix, and then also write a .pth file to the system include path, this will tell the interpreter where to find the package but will still require adding files outside of the prefix.
The third option is to create a virtual environment at the prefix, this will keep everything contained but also adds a layer of complexity.
Which would be preferred?

Your solutions seem heavy. Admittedly I have not worried about packaging a Python project to this extreme before. Ultimately the goal is to get the installed product to work as if it is a single executable. Looking around the internet I'm wondering if pyinstaller is the way to go. We then stick the resulting single file in ${CMAKE_INSTALL_PREFIX}/bin (on *nix OSes) and assume the user has added ${CMAKE_INSTALL_PREFIX}/bin to their path.

PyInstaller could work, there are a couple things to discuss though.
First, should we install PyInstaller automatically via a virtual environment in the CMake build directory, or should it just error out if it can't find it?
Second, a single-file executable will self-extract the python files to a temp directory. On Unix-like servers, /tmp will likely be mounted with the noexec bit enabled, which will cause this method to fail entirely. The extraction directory can be changed at build-time, but how should that be communicated to the user?

Worth noting that the directory will have to be made at install time since creating it may require root privileges.

To avoid having to meddle with the user installing packages to the system path, I've had CMake create a virtual environment in the build directory to install PyInstaller and other dependencies to automatically. This way the user only needs to preinstall setuptools and venv, both of which are almost always included in a standard installation anyways, and CMake will handle the rest. The build directory can still be safely deleted after CMake copies the resultant executable out in the install phase, so nothing external is ever modified. CMake will error out if setuptools or venv are not installed, and will error out if any of the other packages fail to install in the virtualenv.
If you'd like everything to be installed manually, I can easily remove the virtualenv commands and it will still function just fine.
The extraction directory is also set to %{CMAKE_INSTALL_PREFIX}/bin/.cmakedoc, and the required directories are created at install time.


Support process input

Codecov Report

Merging #3 into master will decrease coverage by 1.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master       #3      +/-   ##
==========================================
- Coverage     100%   98.94%   -1.06%
==========================================
  Files           2        2
  Lines         187      190       +3
==========================================
+ Hits          187      188       +1
- Misses          0        2       +2

Impacted Files
Coverage Δ

pytest_subprocess/core.py
98.91% <100%> (-1.09%)
:arrow_down:

pytest_subprocess/fixtures.py
100% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 793a650...939e145. Read the comment docs.


[DEVOPS-117] Fix a regression due to DEVOPS-10: restore installer build retry logic

My fault, sorry @domenkozar, @georgeee.


make:model command creating file outside the src folder

make:model command creating file outside the src folder. Aint it supposed to create it in the source folder like every controllers and middlewares

Solved by @morpheus7CS
This change will reflect on next release.


New player auto-start

Currently, when you load a channel in the new player, it requires the viewer to press the play button as well.
It should just start streaming automatically.

Closing as duplicate of #6


CRASM-362 Add 508 Unique Button Descriptions for Organizations, Users, and Vulnerability Details Tables

🗣 Description
Add 508 compliance aria-labels and descriptions for Organizations edit buttons and Users page edit and delete icons. Also updates the "DETAILS" links in the VulnerabilityCard on the landing page to include aria-labels noting that they link to the details page for each respective item in the list by vulnerability name.
Resolves:
-https://maestro.dhs.gov/jira/browse/CRASM-362
-https://maestro.dhs.gov/jira/browse/CRASM-361
-https://maestro.dhs.gov/jira/browse/CRASM-359
-https://maestro.dhs.gov/jira/browse/CRASM-364

💭 Motivation and context
Efforts to improve 508 compliance by adding accessibility features.

🧪 Testing
Use the ANDI tool in the Organizations page and Users page to confirm that the list of entries in the list have aria-labels and descriptions for each individual item.

✅ Pre-approval checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All future TODOs are captured in issues, which are referenced
in code comments.
[x] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow cisagov code standards.
[x] All relevant repo and/or project documentation has been updated
to reflect the changes in this PR.
[x] Tests have been added and/or modified to cover the changes in this PR.
[x] All new and existing tests pass.

This PR also addresses this ticket:
https://maestro.dhs.gov/jira/browse/CRASM-364
UI: (5.C) Manage Users Edit/Delete Button needs Unique Identifier


Lexer throws uncaught error when longer_alt token is not in mode

import { Lexer, createToken } from "chevrotain";

const Whitespace = createToken({ name: "Whitespace", pattern: /\s+/, group: Lexer.SKIPPED });
const Identifier = createToken({ name: "Identifier", pattern: /[a-zA-z]\w+/ });
const Item = createToken({ name: "Item", pattern: /\w+/ });
const Push = createToken({ name: "Push", pattern: /push/, longer_alt: Identifier, push_mode: "body" });
const Pop = createToken({ name: "Pop", pattern: /pop/, longer_alt: Identifier, pop_mode: true });

const lexer = new Lexer({
    modes: {
        default: [Whitespace, Push, Identifier],
        body: [Whitespace, Pop, Item],
    },
    defaultMode: "default",
});

console.log(lexer.tokenize(`push pushfoo bar pop`));

The example above throws the following error:
                            var longerAltPattern = longerAltConfig.pattern;
                                                                   ^

TypeError: Cannot read properties of undefined (reading 'pattern')
    at Lexer.tokenizeInternal (...\node_modules\chevrotain\src\scan\lexer_public.ts:576:56)
    at Lexer.tokenize (...\node_modules\chevrotain\src\scan\lexer_public.ts:392:17)
    ...

https://github.com/Chevrotain/chevrotain/blob/376d9fe6065fb1e0cf78d02a25f625bf03f3d7cb/packages/chevrotain/src/scan/lexer_public.ts#L576
This happens because Pop's longer_alt is Identifier (instead of Item), which isn't part of the body mode. So, instead failing internally, it should create a more descriptive error, eg.
Lexer Mode: ->body<- is missing the Token Type ->Identifier<- required by Token Type ->Pop<- as a longer alternative

Also, (not really important or related to this issue, but) it looks like many errors have a <- that doesn't have a space after it
https://github.com/Chevrotain/chevrotain/blob/376d9fe6065fb1e0cf78d02a25f625bf03f3d7cb/packages/chevrotain/src/scan/lexer.ts#L722-L723
And sometimes Token Type is just refered to as Token
https://github.com/Chevrotain/chevrotain/blob/376d9fe6065fb1e0cf78d02a25f625bf03f3d7cb/packages/chevrotain/src/scan/lexer.ts#L764

Funnily enough, I just noticed this issue as well last week, although the original contribution is already relatively old. I'm working on a fix for this right now.


[BUG] Otheruser joined event do not work

I am using Agora on the web using Agora_Unity_WebGL.
When I'm alone, the camera works fine, but when the other person joins the channel, the other person's camera video doesn't come out.
The message displayed in the browser console is:
"remote user id"
In Unity script I created OnUserJoined(uint uid, int elapsed) function but it doesn't work.
It works in Unity Editor, but please let me know what I need to fix.

Did you check the API-Examples code for a reference on how to handle OnUserJoined?

@icywind
Of course, I checked what was in the reference.
After checking, I found out that the other party's entry event comes in through subscribe_remoteuser, and that a message is sent to Unity through raiseOnRemoteUserJoined.
I received the raiseOnRemoteUserJoined message from Unity and processed it with the UserJoined function, but it does not work on the web.

Can you post your code snippet of the OnUseJoined handling?

@icywind
Yes.
The cs code is as follows.
internal IRtcEngine _RtcEngine = null;
private void InitEngine()
{
_RtcEngine = IRtcEngine.GetEngine(_appID);
_RtcEngine.OnUserJoined += OnUserJoined;
}
private void OnUserJoined(uint uid, int elapsed)
{
VideoSurface videoSurface = videoMng.MakeImageSurface(uid);    // video surface make function
videoSurface.SetForUser(uid);
videoSurface.SetEnable(true);
videoSurface.SetVideoSurfaceType(AgoraVideoSurfaceType.RawImage);
}

What about the MakeImageSurface method that you have above? What do you have in there? I also assume you have successfully joined the channel right?
Did you ever make the API-Example work on WebGL first?

@icywind
Solved.
The cause was that the channel profile and channel roll settings were not set.
_RtcEngine.SetChannelProfile(CHANNEL_PROFILE.CHANNEL_PROFILE_LIVE_BROADCASTING);
_RtcEngine.SetClientRole(CLIENT_ROLE_TYPE.CLIENT_ROLE_BROADCASTER);
I solved it with this phrase.
Thank you


Zuul integration

Closes: #10
Depends-On: https://github.com/opentelekomcloud-infra/otc-zuul-jobs/pull/6

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #9   +/-   ##
=======================================
  Coverage   68.95%   68.95%
=======================================
  Files           6        6
  Lines         699      699
=======================================
  Hits          482      482
  Misses        158      158
  Partials       59       59

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 701ca78...ddabe62. Read the comment docs.

recheck

recheck

recheck

recheck

recheck

recheck

@gtema support please with zuul


14## - longest-common-prefix

Description of the Problem
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.
If there is no common prefix, return an empty string "".
Example 1:
Input: ["flower","flow","flight"]
Output: "fl"
Example 2:
Input: ["dog","racecar","car"]
Output: ""
Explanation: There is no common prefix among the input strings.
Code
LeetCode/0014_longest_common_prefix.py
Link To The LeetCode Problem
LeetCode

please assign this to me, thanks

Not assigned to the linked issue - please consider Contributing Guidelines


Add ContentAfterSummary property to Page

Fixes #716 #2481
I'm not sure at all about rst markup, I just made pass existing tests without true comprehension. Please pay attention to that part during review

In case if anyone is interested in demo, I generated content of my blog (link in profile) with the code form this branch.