Break out jquery from jquery-ujs: How to use webpack complete managed javascript library

hello @justin808 , thanks for your work.
i dont want to use javascript library gem. e.g.
jquery-rails, bootstrap-sass in Gemfile.
follow you guide, i can import jquery from webpack's bundle file.
but when i remove bootstrap-sass, i can not @import 'bootstrap' in
app/assets/stylesheets, could you give me a example about this?

I'm using jquery-rails because of UJS integration. Possibly post this question at http://forum.railsonmaui.com. You can also submit a PR with an example of how to do this with Webpack. I did this before. While it's straightforward given the webpack docs.
I'd agree that we should breake out the jquery part from the ujs part: https://github.com/rails/jquery-ujs.
@dylangrafmyre if you want to try this, I can help you. Or if anybody else wants to make this PR...should be pretty simple.

I assume that you don't want to include jQuery in your bundle.js.
Add this to your WebPack configuration file:
externals: {
    // require("jquery") is external and available
    //  on the global var jQuery
    "jquery": "jQuery"
}

More info here: http://webpack.github.io/docs/library-and-externals.html

@urbanvikingr we'll put jquery in the package.json file, redo the gemfile, export jquery so rails can see it.
A very old version of the config files might still have this in the version history. I had experimented with this a bit.

@justin808 Export jQuery to Rails sounds interesting. Is this a manual process outside npm or Rails?

@urbanvikingr: Export jQuery to Rails just means that jQuery is exposed as a global variable. like window.jQuery or window.$
References:
http://www.codefornow.com/2015/05/18/webpack-exposing-jquery-as-a-global-variable/
https://github.com/webpack/expose-loader

My opinion on subject.
I think the most consistent way is to ask rails team to publish jquery_ujs to npm (they've already published it on bower btw) and move it to webpack's bundle, so all JS stuff can be manage from one place.
@geminiyellow
If you want to manage your JS via webpack, inevitably, you’ll end up with renunciation of assets pipeline, because it'll became useless.

@jbhatab, we were just discussing this today. Let's get a PR for this.

I agree with @alexfedoseev. Using jquery_ujs through npm is the cleanest and most consistent way to get jquery_ujs in the project but not make it feel different than all the other assets. I do feel since we have to use the jquery_ujs gem, it's irrelevant how we break out jquery until we solve both of them at once since jquery_ujs is already loading in jquery.
Just looked at the github though and it looks like they don't want to support npm, https://github.com/rails/jquery-ujs/issues/423.

What if we package jquery_ujs with the react-webpack-server-rendering gem? Feels a little weird, but its an idea.

@jbhatab I looked into this. It's super simple. We need to include only the ujs file in the application.js, and then have the webpack generate file expose jQuery.

I've outlined the issues here: http://forum.railsonmaui.com/t/considerations-for-jquery-with-rails-and-webpack/344


Change cookie Accepted column order #245

Description
This pull request moves the "Cookie Accepted" column earlier on the cookie data analysis table and removes a duplication of the tag span.
Relevant Technical Choices
This change was suggested by issue #245, the column "Cookie Accepted" is important information for the 3PCD debugging process.
Testing Instructions

Open the Chrome DevTools
Select the Privacy Sandbox tab
On the sidebar go to the Cookie Data Analysis Panel
Check the position for the "Cookie Accepted" Column.

Screenshot/Screencast
before:

after:

Fixes #245

@fellyph Can we also satisfy issue #259 in this PR?

This column will be replaced by the PR for issue #252, so I will close this one


I try the sample code, but error, System.Exception:“The IPFS_PASS environement variable is missing.”

My code:
private async void GetData()
{
var ipfs = new IpfsEngine();
        const string filename = "QmS4ustL54uo8FzR9455qaxZwuMiUhyvMcX9Ba8nUH4uVv/about";
        string text = await ipfs.FileSystem.ReadAllTextAsync(filename);
    }

when run at  var ipfs = new IpfsEngine();
the error throw,
System.Exception:“The IPFS_PASS environement variable is missing.”
How should I do?
Thank you very much.

This occurs when you instantiate the IPFS engine without any arguments. It would expect to read the pass phrase from the system environment in Advanced System Settings > Advanced > Environment Variables > System Variables (on Windows). You can add a pass phrase with a variable name "IPFS_PASS" or use the constructor supporting a SecureString() as shown below.
_engine = new IpfsEngine(new SecureString())
          {
              Options = options
          };

    var secureString = new SecureString();
    foreach (var c in Guid.NewGuid().ToString())
    {
        secureString.AppendChar(c);
    }
    ipfsEngine = new IpfsEngine(secureString)
    {
        Options = new IpfsEngineOptions()
    };

    System.TypeLoadException: "Method 'PingAsync' in type 'Ipfs.Engine.CoreApi.GenericApi' from assembly 'Ipfs.Engine, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' does not have an implementation."


[Epinio] Adapt the UI to the new manifest API

Summary
Fixes https://github.com/epinio/ui/issues/228
Fixes https://github.com/epinio/ui/issues/227

Occurred changes and/or fixed issues

Technical notes summary

Thanks @richard-cox , I updated the code with the requested changes.

will save that until after EPINIO_APP_DATA has been removed.
The EPINIO_APP_DATA is removed in this PR, so ti will resolve both issues in the PR description. Am I missing somenthing ?
The manifest however, when loaded in the create app process, thinks it's git instead of github
We have this bug also in epinio-dev, so could we open a new issue for this ?


Variable is not selected or do not match returned fields.

Hi, it seems like there is some bug when using Grafana v11.3 and business-variable v3.0+ together (I tested on 3.0 and 3.2). I have replicated this behavior across a couple of Grafana instances and using Postgresql, Influxql, and Flux type query variables.
It appears the variable panels cannot obtain the list of variable values returned from these queries. Custom and Textbox type variables do seem to work fine. Essentially, when a query type variable is selected under "Select variable to display" in the variable panel, it throws the error "Variable is not selected or do not match returned fields."
Screenshot of error:

Screenshot confirming variable values are returned by query:

@ihbidgroup Do you use Grafana Cloud or OSS? If OSS, do you use Scenes dashboards?

@mikhail-vl This is on Grafana Cloud and there are no Scenes dashboards implemented. Both instances were working and were automatically updated to the latest Grafana version v11.3.0-74868 (4a753dd2d5). I can't confirm which exact update broke the panels.

@ihbidgroup All Grafana Cloud instances has Scenes dashboard by default which introduced breaking changes for the dashboard events used in the Variable panel and other plugins.
It was resolved in https://github.com/grafana/grafana/issues/90538, but broken again in the latest releases.
We are working with the Grafana team to resolve it.

We identified the issue: https://github.com/grafana/grafana/pull/93327

Hi @mikhail-vl & @asimonok
We are in the process of building a Grafana Dashboard and aim to showcase downstream data using variables from different data sources.
However, we are encountering an issue where the configured variables in the dashboard are not reflecting as expected. Specifically, the Business Variable Plugin is unable to access these variables, although we can work with static variables that we create.
Could you please provide an ETA for resolving this issue broken again in the latest releases. ?
We are using the Grafana Latest version and as a SaaS.
Thank you in advance.
Warm regards,
Umesh Chandra P V

@Umesh2214906 Grafana team is working on fixing the breaking change in the latest SaaS release: https://github.com/grafana/grafana/pull/93327
There is no ETA. Please subscribe and watch the updates for the mentioned issue.

Can we re-enable dashboard scenes now with this being closed or do we still need to wait for https://github.com/VolkovLabs/business-variable/issues/212 to be released? Thanks!

@SamuelBoerlin If you are using multi-selects with All, then you need to wait for #212. We will release it later this week.


Docs: Wrong description within planner task set

Among the options, it is described that it is possible to change a task's plan.
`--planId [planId]`
: ID of the plan to move the task to. Specify either `planId` or `planName` but not both.

`--planName [planName]`
: Name of the plan to move the task to. Specify either `planId` or `planName` but not both.

However, this is not possible. These options are used if one is going to change the task's bucket by name.
Here we can best adapt the description to the following.
`--planId [planId]`
: ID of the plan to which the bucket belongs to. Specify either `planId` or `planName` when using `bucketName`.

`--planName [planName]`
: Name of the plan to which the bucket belongs to. Specify either `planId` or `planName` when using `bucketName`.

Good catch! Your suggestion is a good way to clarify it. Would you like to submit a PR or let others help?

Yeah, sure. I will create a PR for this shortly.

Thank you!


Fix/improve Maven build times

They are the bulk of our CI time, and for some reason caching ~/.m2/repository doesn't seem to prevent mvn from downloading all its dependencies again?
Investigate https://github.com/avodonosov/hashver-maven-plugin/ for local development.

I listed the files in ~/.m2/repository as restored from the cache, and it just seems like they are very out of date, so perhaps I'm configuring actions/cache incorrectly somehow.

I think I know what is happening. The "Build Cache" internal action runs on nearly all steps, and caches the Go cache and the Maven repository. If the pom.xml file is changed, and the first step to complete doesn't do a Maven build, there will be no changes to the m2 repository, and the previous cache will be persisted as the new version.
I think the fix could be to always do a mvn dependency:resolve --batch-mode and a go mod download


feat(Section): [FX-1985] Add block variant

FX-1985
Description
Add the block variant to the Section component.
How to test
Check the block variant on Storybook
Screenshots

Before.
After.

Insert screenshots or screen recordings
Insert screenshots or screen recordings

Review

[x] Read CONTRIBUTING.md and Component API principles
[x] Annotate all props in component with documentation
[x] Create examples for component
[x] Ensure that deployed demo has expected results and good examples
[x] Ensure that tests pass by running yarn test
[x] Ensure that visuals tests pass by running yarn test:visual. If not - check the documentation how to fix visual tests
[x] Ensure the changed/created components have not caused accessibility issues. How to use accessibility plugin in storybook.

PR commands

List of available commands:

@toptal-bot run all - Run whole pipeline
@toptal-bot run build - Check build
@toptal-bot run visual - Run visual tests
@toptal-bot run deploy:documentation - Deploy documentation
@toptal-bot run package:alpha-release - Release alpha version

Please address the comments above before the merge :)


Minimum node version is 16

I'm not clear why a minimum node version of 16 is specified in the package.json. It prevents installation on older versions of node.
"engines": {
    "node": ">=16"
  }

Causes a ENOTSUP error for me
ERR! notsup Unsupported engine for<EMAIL_ADDRESS>wanted: {"node":">=16"} (current: {"node":"14.21.3","npm":"6.14.18"})
The relevant commit test: simplify testing environments suggests this is related to test coverage rather than a hard requirement for a node version.
Can we have the required node version downgraded? thanks.

I can workaround the issue by using engine-strict=false in my .npmrc.

because older versions of node are no longer maintained.
https://github.com/nodejs/release#release-schedule


Character to left of cursor (i.e. last typed character) is invisible if there are already characters to the right of the cursor

I'm encountering a weird bug (?) in the editor since updating to 5.1.4. When I am editing at a position where there already exists text to the immediate right of the cursor (for example, if I am going back to edit an existing line in the editor), then the character position to the immediate left of the cursor (that is, the most recent character that I have just finished typing) will be invisible as I am typing. When there is no text to the right of the cursor, this bug does not arise.
As you can imagine, this is very disruptive, since one needs to look at this exact character position (to the immediate left of the cursor) in order to see whether one has made a typo or not! In fact, I didn't realize until encountering this bug that this position (the one immediately to the left of the cursor) is where one's eyes and attention are almost always fixed while typing!
I do use a custom color scheme with a dark background, but I don't think this is the cause of the problem, and I did not encounter this issue using the same theme settings in previous versions of dbeaver.
Thank you!
Mac 10.12.6, dbeaver 5.1.4 with Oracle

Can't reproduce (or maybe I didn't understand this well), please post a screenshot or video.

Hi, I'm still getting this on 5.1.5. I've tried to make a gif to demonstrate. Watch what happens when I go back to add a schema name before the table name.

This looks like a bug but I still can't reproduce it on my MacOS High Sierra (10.13.4).

Does this happen in classic theme?
Could you try to reset workspace (https://github.com/dbeaver/dbeaver/wiki/Reset-workspace) - maybe some UI settings were corrupted?

There is no update on the ticket for more than a year.
Ticket is closed.
If the issue is still reproducible for you - feel free to reopen the ticket and add some details that could help to reproduce the issue or create the new one.


SFTP Permission denied do not say what path failed, and sometimes error silently

Output of restic version
restic version
restic 0.7.2 (v0.7.2-0-g5b1e4df1)
compiled with go1.8.3 on linux/amd64
How did you run restic exactly?
restic backup -x /
What backend/server/service did you use?
sftp
Expected behavior
SSH Permission denied "/path/to/repo/file"
Actual behavior
SSH Permission denied [unknown file]
Steps to reproduce the behavior
I had mounted a disk with my repo on it remotely but with the wrong user ids..
I chowned a bunch of files to the right id when I found out my mistake, but some
got missed after it had been cancelled
Do you have any idea what may have caused this?
I was a bit silly.
Do you have an idea how to solve the issue?
Add the path to the file that caused the error message.
If the key files are unreadable it silently fails with no error at all (this was a little scary)

Good point, thanks for raising this issue! It somehow fell off and I haven't read it, but @armhold fixed it in #1398. :)

I should add that I was not able to repro the "if key files are unreadable it silently fails" bit... I always got an error msg from the sftp client code; it just did not include the path.
If you can give more detail on how to reproduce that problem I can revisit.


migrate to postgresql

Bug report: from discord.py TL;DR: MySQL is a bad database. Don't use it unless you have literally no other option.
Why shouldn't I use MySQL?

MySQL has no transactional DDL.
MySQL has a lot of security issues. New zero-day vulnerabilities are found regularly.
MySQL is owned by Oracle.
MySQL is slow. It beats Postgres etc at some things, but once you move beyond basic queries it begins to slog.
MySQL disconnects you randomly. Unless you setup your connection specially, it will break regularly.
MySQL allows all kinds of insane data to be inserted. '0000-00-00' is valid in MySQL.
MySQL is not ANSI compliant. You have to turn it on; even then it isn't fully compliant.
MySQL has no feature advantage over other databases; PostgreSQL has many more useful features (such as RETURNs).

There is no reason to use MySQL over PostgreSQL, or even sqlite3. See also:
https://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/
https://grimoire.ca/mysql/choose-something-else
Submitted by: mfcash
Server: mfDiscord

This would require some testing on current watchlist queries to ensure our syntax doesn't break for anything, still would like to see which database would be more performant, may consider using sqlite3 if I still decide to use Ignition for Dol-13

Closing, as it does not fit our needs at the moment, with validation queries and a connection pool MySQL is fine for now can be re-opened if we start to run into issues.

re-open for Dollar 2.0 as we are deprecating watchlist...


Enable PointInTimeRecovery for a single DynamoDB table by cloudFormation (not all in schema)

Which Category is your question related to?
I want to activate PointInTimeRecovery for just one single table in the schema by CloudFormation.
Amplify CLI Version
4.44.0
What AWS Services are you utilizing?
AWS Amplify, Amazon DynamoDB, AWS CloudFormation, AWS CDK
Provide additional details e.g. code snippets
I know to enable PITR by setting PointInTimeRecoveryEnabled in amplify/backend/api/<api-name>/parameters.json  to  true. But this enables PITR for all tables in the schema.
I know to activate it maually either in the AWS DynmoDB Console or by CLI:
aws dynamodb update-continuous-backups --table-name myTable --point-in-time-recovery-specification PointInTimeRecoveryEnabled=True
But I want to define it in the template, so it can be deliverd to multiple environments without manual interaction.
As there is no annotation for the type in the schema.graphql file, we thought there might be a way to set it via Cloudformation in amplify/backend/api/<myapi>/stacks/CustomResources.json
but we did not find out yet.

Not sure if the amplify version you're on already has the override feature. If so, I beliebe you should be able to add an override like explained here and enable PITR for a specific model.
// override.ts

import { AmplifyApiGraphQlResourceStackTemplate } from '@aws-amplify/cli-extensibility-helper';

export function override(resources: AmplifyApiGraphQlResourceStackTemplate) {
  resources.models['YourTable'].modelDDBTable.pointInTimeRecoverySpecification = {
    pointInTimeRecoveryEnabled: true,
  };
}

It's 2023 and this was very useful.  I needed a way to turn on PITR across all of my Tables in my project.  The issue is, I only want it "on" for staging and prod.  NOT dev or any of our feature branches.
The best way I can imagine doing this is through an Amplify hook that can switch modes around the environment variable.   I'll likely need to inject a change to PointInTimeRecoveryEnabled in amplify/backend/api/<api-name>/parameters.json.
I don't like doing this stuff because it's hard for future developers to track things down.  Aside from that, is there a reason "NOT" to rely on amplify hooks in this way?
For those who happen upon this thread, I would suggest an amplify hook to call the CLI to enable PITR on a given table.   Note: this will only work on build #s >1.

fyi the correct key name in paramaters.json is DynamoDBEnablePointInTimeRecovery


How to disable laravel 8 paginator links

Laravel Version: ^8.0
PHP Version: ^7

Description:
Steps To Reproduce:
<?php
Model::paginate();

returns
"links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "http://<IP_ADDRESS>:8000/api/messages?page=1",
            "label": 1,
            "active": true
        },
        {
            "url": "http://<IP_ADDRESS>:8000/api/messages?page=2",
            "label": 2,
            "active": false
        },
        ...
    ]

these links are useless for me and making my response size bigger.
i have been looking for ways to disable the links by default but i couldnt.
i tried
Model::simplePaginate()

but total property always returns same value as pageSize
SOS.
Someone rescue me.
thanks.

This repository is only for reporting bugs.

https://laravel.com/docs/8.x/contributions#support-questions
use Illuminate\Support\Arr;

Arr::except(Model::paginate()->toArray(), 'links')

Not possible to disable them at this time.

To return just a paginator's items from a JSON endpoint:
$records = Model::paginate();

return $records->items();

Or if you want to keep into the data key:
$records = Model::paginate();

return ['data' => $records->items()];

Instead of returning you can also assign it to a variable in both cases.

Thanks you all
I hope very soon laravel will implement the option to disable it.


Implement Matomo

Subject of the issue
MarketingDAO suggests to implement Matomo as a privacy-focused analytics platform.
Another suggestion is to turn on Vercel analytics

KIP refused


[type:fix]update the strategy of disruptor to #BlockingWaitStrategy.

// Describe your PR here; eg. Fixes #issueNo
[type:fix]update the strategy of disruptor to #BlockingWaitStrategy.

Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #2651 (6b2dd03) into master (10a838a) will decrease coverage by 0.60%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2651      +/-   ##
============================================
- Coverage     61.20%   60.60%   -0.61%
+ Complexity     4330     4298      -32
============================================
  Files           660      660
  Lines         18995    18992       -3
  Branches       1684     1683       -1
============================================
- Hits          11626    11510     -116
- Misses         6417     6537     +120
+ Partials        952      945       -7

Impacted Files
Coverage Δ

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
68.75% <0.00%> (-31.25%)
:arrow_down:

...n/alibaba/dubbo/cache/AlibabaDubboConfigCache.java
43.75% <0.00%> (-31.25%)
:arrow_down:

...gin/apache/dubbo/cache/ApacheDubboConfigCache.java
43.03% <0.00%> (-29.12%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
44.68% <0.00%> (-19.15%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
61.38% <0.00%> (-9.91%)
:arrow_down:

...apache/shenyu/admin/utils/ShenyuDictH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

...ache/shenyu/admin/utils/PluginHandleH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

.../apache/shenyu/admin/model/dto/BatchCommonDTO.java
50.00% <0.00%> (-7.15%)
:arrow_down:

...apache/shenyu/admin/model/dto/AuthPathWarpDTO.java
57.14% <0.00%> (-7.15%)
:arrow_down:

... and 28 more

Continue to review full report at Codecov.

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


merge from template-coveralls

package.json

chore(deps): add ^8.3.4 remove ^8.3.2 (devDependencies.npm-pkgbuild)

.github/workflows/ci.yml

chore: add<EMAIL_ADDRESS>(jobs.test.steps.uses)
chore: add<EMAIL_ADDRESS>(jobs.release.steps.uses)

.github/workflows/codeql_analysis.yml

chore: add<EMAIL_ADDRESS>(jobs.analyze.steps.uses)

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

npm package (@latest dist-tag)
GitHub release
v5.0.70

Your semantic-release bot :package::rocket:


How to implement FFT in loss function

I need to do 2D FFT for the images in loss function for training. However, I don't see any example for it.
Could you give me a hint? thx

Hello,
You probably want to use tensorflow and use tf.fft2d
In your custom loss fonction.

Warning : tf.fft2d is not supported for CPU

thx @unrealwill @Dref360
I will try later.


changed telegram version, added places adapter

Like talked to @Apollon77 in the afternoon, here's the PR.

It is because you already merged my fixes for the 1.1.4 without publishing it to NPM. And at the time I asked Ingo to publish it, you already merged the new polling interval configuration and published it (with version 1.2.0) to NPM.
PR for stable repo (1.2.0 for telegram) has been created.
If you like I can offer to hel taking care about this adapter (here and on NPM), so that you can concentrate on other issues? It's just an offer ;-)

I published the 1.1.4 yesterday, so it should be there!
@GermanBluefox it was in the afternoon ... I think you did 1.2.0 afterwards


Add attachments to telemetry

Addresses #1574
Logs attachments on outgoing activities in telemetry, if the LogPersonalInformation flag is set to true.

Pull Request Test Coverage Report for Build 120019

2 of 3 (66.67%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.003%) to 67.299%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

libraries/botbuilder-core/src/telemetryLoggerMiddleware.ts
1
2
50.0%

Totals

Change from base Build 119935:
-0.003%

Covered Lines:
10324

Relevant Lines:
14518

💛  - Coveralls


IPython: Blocking Cross Origin API request

Hi,
I am getting this error when starting IPython.
Running
0: C:\Programs\beaker\python\python
1: C:\Programs\beaker/config/plugins/eval/ipythonPlugins/ipython/ipythonPlugin
2: 8804
Done starting IPython
IPython-stderr>[I 18:47:02.325 NotebookApp] Writing notebook server cookie secret to C:\Users\chehun\.beaker\v1\nginx372547
IPython-stderr>[I 18:47:02.331 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
IPython-stderr>[I 18:47:02.361 NotebookApp] Serving notebooks from local directory: C:\Programs\beaker
IPython-stderr>[I 18:47:02.361 NotebookApp] 0 active kernels
IPython-stderr>[I 18:47:02.361 NotebookApp] The IPython Notebook is running at: http://<IP_ADDRESS>:8804/
IPython-stderr>[I 18:47:02.361 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip conf
IPython-stderr>[I 18:47:02.622 NotebookApp] 302 POST /login?next=%2F (<IP_ADDRESS>) 1.00ms
IPython-stderr>[W 18:47:02.644 NotebookApp] Blocking Cross Origin API request.  Origin: http://<IP_ADDRESS>:8801, Host: 127.0.
IPython-stderr>[W 18:47:02.651 NotebookApp] 404 POST /api/sessions (<IP_ADDRESS>) 8.00ms referer=http://<IP_ADDRESS>:8801/beaker/

I am running Windows 7. Is there a config file in beaker where I can set the settings for ipython to allow cross origin?

Hi @chehun thanks for raising this issue
I think this is related to #1955

@chehun what browser were you testing this on?

thanks for the bug report, what version of IPython are you using?
it should just work, no special configuration is required.

Hi @scottdraves and @samccone.
I am running ipython 3.2.1.The browsers I tried it with are Chrome and Firefox.
Thanks for looking into it.

@scottdraves and @samccone
Sorry I spoke to quickly. It does work on Firefox!
Cheers

Looks like this was really https://github.com/twosigma/beaker-notebook/issues/2003

any workaround exists ??? I'm just copying the link from canopy to firefox every time I want to open a notebook

Sorry not sure what you mean this was fixed a long time ago.

[W 09:46:18.809 NotebookApp] 404 GET /api/kernelspecs (<IP_ADDRESS>) 1.91ms referer=http://localhost:8888/tree [W 09:46:38.477 NotebookApp] Blocking Cross Origin API request.  Origin: , Host: localhost:8888 [W 09:46:38.482 NotebookApp] 404 GET /api/sessions?_=1475567178296 (<IP_ADDRESS>) 5.27ms referer=http://localhost:8888/tree [W 09:46:38.487 NotebookApp] Blocking Cross Origin API request.  Origin: , Host: localhost:8888 [W 09:46:38.490 NotebookApp] 404 GET /api/terminals?_=1475567178297 (<IP_ADDRESS>) 6.22ms referer=http://localhost:8888/tree
I used
 jupyter notebook
which opened automaticlly in chrome and gave me no view for my files then I ran on firefox and my notebooks appered and the kernel loaded when I opened the file
[I 09:50:20.173 NotebookApp] Kernel started: 24c93083-a605-4935-9382-5acec6bcffcb [W 09:50:20.376 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20161004094607 (<IP_ADDRESS>) 2.53ms referer=http://localhost:8888/notebooks/Python101.ipynb
the version I'm using is
hady@hady-Lenovo-Z580:~/Downloads$ jupyter --version   4.2.0

I am getting similar issues:
[W 10:03:32.105 NotebookApp] Blocking Cross Origin API request.  Origin: , Host: localhost:8889
[W 10:03:32.121 NotebookApp] 404 GET /api/config/tree?_=1475589811942 (::1) 16.22ms referer=http://localhost:8889/tree
Using fedora 24, jupyter 4.2.0, and chrom.

And I can confirm it works on firefox. Just as HandyRashwan has mentioned.

After trying each extension, the one that failed out jupyter from working was this extension: http://lab.ejci.net/Chrome-Audio-EQ/.

Are you even running Beaker?

@thompsonisaacb Thanks for the suggestion. This problem appeared out of nowhere, I removed Chrome EQ and the problem immediately disappeared. Could you explain what you think might have happened? Either way, thanks a million for figuring it out.

@scottdraves - I added this info to troubleshooting section of the wiki: https://github.com/twosigma/beaker-notebook/wiki
Hope that's ok.

Just for those who googled this: fill into your jupyter_notebook_config.py  this line:
c.NotebookApp.allow_origin = '*'

or paste your own origin.
(wiki page updated)

c.NotebookApp.allow_origin = '*'

(or pass --NotebookApp.allow_origin='*' as a command-line augment)


Not Compatible With Bedrock Players

Howdy!
Thanks for making this plugin. My players used to have to wait for staff members to whitelist them, but now they can verify themselves.
However, my server uses GeyserMC and Floodgate to allow Bedrock players on as well, and they get an error when they run the command to link their discord. Because we are using DiscordLink as a security feature, the config is set to require linking to play. Is there a way the plugin can allow Bedrock players to link their MC to discord? If not, is there a way to create a list of exceptions that moderators can manually add bedrock players to?
Thanks,
Ethansito

I think I can work on it later next month, let me know more information on what the behavior should be.


Write a C program to merge two strings

Description
Write a C program to merge two strings
Input  : ABC DEF
Output : ABCDEF

How to contribute

Save the solution in MergeTwoStrings.c file
Add MergeTwoStrings.c file in program/merge-two-strings folder

!assign


Added documention for core programming structure. Added test cases as we...

Same pull request as https://github.com/groovy/groovy-core/pull/477.

As you contributed to the documentation, @antoaravinth, could you please vote +1 on this issue?
https://issues.apache.org/jira/browse/GROOVY-7470


Listing modal showing success when it shouldn't

PR Type

[x] Bugfix
[ ] Feature
[ ] Refactoring

Context
Im not sure if it's the same issue as #10662 (cc @exezbcz ), but this one happens after you list once and then when you try again it shows the success modal for a couple of secs after you click list
edit: yep it's that issue
first listing: list -> loading -> success
second listing: list -> success -> loading -> success
https://github.com/user-attachments/assets/1d6229fd-5971-4af9-8abc-2104cc5d578e

[x] Closes #10662

Screenshot 📸

[x] My fix has changed something on UI;

https://github.com/user-attachments/assets/f4387503-95fa-496f-a2f0-ce5d9b61488d

probably similar to - #11060 ?

cc @exezbcz

cc @exezbcz

He did confirm that was the issue.


[BUG] load_UCR_UEA_dataset does not successfully import file

Describe the bug
Thank you very much for this amazing library! On my system, the load_UCR_UEA_dataset utility is unable to find the file after downloading it
To Reproduce
X_train, y_train = sktime.datasets.load_UCR_UEA_dataset("AbnormalHeartbeat", split="train", return_X_y=True)

FileNotFoundError: [Errno 2] No such file or directory: '/Users/williamgilpin/miniconda3/envs/dysts/lib/python3.8/site-packages/sktime/datasets/data/AbnormalHeartbeat/AbnormalHeartbeat_TRAIN.ts'

Expected behavior
This should import the data.
Additional context
There appear to be two issues here. First, if the data has not been downloaded before, sktime downloads an .arff file. However, the data loader utility looks for a .ts file. I tried manually downloading the UCR archive in .ts format, and then passing the location via the extract_path kwarg, but the path joins do not appear to be working---for example, if I pass a directory named resources, sktime will look for the file in resources/resources.
I very much recognize that this could be an issue with how I have things installed and how my Python path is set up---I did try a fresh virtual environment, but that didn't solve the issue for me. However, if others can't reproduce this bug, then it probably is a quirk on my system---in which case I apologize for any inconvenience. Thanks again for this amazing package.
Versions
sktime-0.6.1

My apologies, I realize now that my mistake is the specific dataset---sorry about that! Thanks again for this amazing resource.


Change the 'Saved' modal

If something is changed in the 'Saved' modal we see this:

It's kind of annoying that I need to manually close the modal every time. Instead, could we have something like this popup at the bottom of the window for 3 seconds and then fade out?

Ping @jjeffryes @morebrownies

Concur.

Done


experiment/resize-menu-1

Canvas Experiment
How to use it?
Try resizing the edge of any selected element, press SHIFT to cycle between options.
Dragging the corners is not changed by this experiment.


Move privileges resolution to Roles/RolesService

Use a Map<String, Role> instead of a list in RolesService. Keep the List in the Roles interface for easier testing but implement use a Map<String, Role> in RolesService internally and override the findUser() to do a fast map lookup instead of iterating over the list.
Move privileges resolution to Roles/RolesService, this is a preparation step to make recursive resolution based also on granted roles (hierarchy) easier.

Relates: #12109

retest this please


implement a way to get all solutions for a given predicate

so far, calling Z3's check method returns only one model for the given query. We should implement a way to generate all solutions for a given predicate. this method will probably be used often, so a helper class in the backend package might be useful.
Perhaps we should start with a test case computing all solutions to a simple query such as "1 < x & x < 5"

I implemented a basic version of a solution finder, inspired by two stackoverflow.com answers. It is basically a brute force approach with a max number of iterations.


[FLINK-10295] Add support of passing jar arguments as list of separate strings in REST API

What is the purpose of the change
This PR add one more option to specify jar program arguments in REST API calls (run and get plan). Users can specify arguments as one string or additionally mow as a list of a separate strings.
Brief change log

add JarRequestBody as a base for JarRunRequestBody and JarPlanRequestBody
add programArgsList to JarRequestBody
add JarHandlerUtils.getProgramArgs to resolve program args from programArgs and programArgsList from query path or json body in JarRunHandler or JarPlanHandler
user can use programArgs or programArgsList but not both, add test for it

Verifying this change
Unit tests
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (yes)
If yes, how is the feature documented? (docs)

cc @zentol


Mirror checksums

As hinted from #878, this adds mult-digest support to the mirroring script.
In its present form, it adds MD5 and SHA-512 support to the existing SHA-256 behavior. The md5 support is isolated to its own commit, so it can be dropped from this PR if desired. (It was added for completeness sake.)
I'm not really sure how to test this, so it hasn't really been tested :/ Other than the fact it's mostly aped from https://github.com/rbenv/ruby-build/blob/8dc4568ea9f02db55ddf26de9b48d01e0bdb1d05/bin/ruby-build#L267-L278

Kept the local var; I'm not a fan of using positional args without local names because it's not abundantly clear what the variable is. I went with digest_type instead since type is a keyword. And renamed the other use of $digest as well. I wasn't particularly happy with $digest before, anyway, since most people would assume digest to be the actual checksum itself.
Any comment on allowing the mirror to handle MD5?

I'm fine with handling MD5 since it doesn't cost us much.

Just realized I don't think I commented since I made the requested variable name change. I think this is ready to merge unless there is a way to test the mirror script.

If MD5 is not needed, best not to include it at all. It's a known-broken algorithm that has numerous problems (and known collisions). Best to stick to SHA-2 and other hash algorithms that are not yet broken.

@reedloden I'd agree for things that are producing md5. However, this script ought to be able to handle as wide a range of checksums as possible, IMO. That way it can consume the widest possible set of build definition files. Especially because this script operates on git history by taking in ranges of commits as input. Therefore, even though it exists in the repository (and is therefore kept in lockstep with the definition files it consumes), it operates on ranges of history so it rather exists outside of repo history as well. I think it makes sense to be able to operate on old commits that do contain md5 checksums.

@jasonkarns Can we find a way to share the checksum functions between these executables? Now that the checksum approach is more sophisticated, I'm not looking forward to maintaining different implementations in different executables.
I'm going to be away for 2 weeks from now, so I won't be around to review/accept PRs. To recognize your substantial contributions to the rbenv family of projects, I've invited you to the org, so you have write access. However, please be wary of merging larger changes (including your own) to either projects without approval of other people in the org.

@mislav bin/ruby-build already has the lib function which is used to share functions between bin/ruby-build and bin/rbenv-install. We could move the checksum function(s) into lib() so that the mirror script can use them.
However, this brings up another thought I've had for nodenv.
I've long thought that there should be some organizational distinction (probably just different files) between "private" functions that ruby-build uses internally and "public" functions that are intended to be used by build definitions. I was going to suggest making lib/internal.sh and lib/build.sh files to contain those functions (respectively) that would then be sourced by bin/ruby-build.
The current lib() function is crazy clever (nearly a quine!), but I'm not sure if it has any value over just having a separate file that's sourced. Thoughts? Simple solution is just to move the checksum functions into lib and then decide about potential extraction later.

Actually, I recognize that keeping ruby-build functional as a single file makes the install step trivial. So I'm still for moving the checksum functions into lib() soon and having a bigger conversation around lib extraction much later.

@jasonkarns I'm sorry I never got around to merging this, but I waited to see if ruby-build will need sha-512 support for anything specific, and since it hasn't, I will close this until actually needed.


Issues with JIRA SAML SSO add-on redirect

Hello,
If this isn't the correct place for this, apologies but it would be great if you can point me in that direction.
We installed this add-on on our Jira instance (as well as the Confluence equivalent). A majority of the time we don't have any issues, however one of our users has been getting weird behavior with it.
The basics of it is once the user clicks on the Login with Azure AD button, they're redirected to the following url (Note the https at the end) : https://jira.companyname.nethttps
Here's an excerpt from the user and their experience:

I got my "jira.company.nethttps refused to connect." error again
Steps slightly more clear:
I clicked a tab in Chrome that previously was at jira, it went to the login page due to an authentication problem, probably i was idle for 3+hours
it took longer than usual for the Azure/AD login button to show up, but it eventually did
I clicked the LOGIN /W AZURE button, and it took me to that url
Can't reproduce because I'm obviously logged in now, so hitting back takes me to the authenticated page, not the NEEDS authentication page.

In addition to that, another user noticed this on mobile (I don't really expect the add-on to work on mobile, but he was able to reproduce the redirect error 100% of the time):

Might help tracking this issue: Another way to recreate it is when using these JIRA links on a cellphone.
When I click on these JIRA links on a cellphone (and I'm not logged in) ... Logging in using Login with Azure AD  reroutes to the bad URL mentioned above. (so far 100% reproducible)

Our current Jira version is: 8.6.1
JIRA SAML SSO Plugin Version : 6.0
Let me know if there's anything else I can provide. Thanks!

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

ID: d38cad90-6574-38c2-3262-059a9f975064
Version Independent ID: dd08d5c5-65a4-c2cc-8b51-7a35268dde68
Content: Tutorial: Azure Active Directory single sign-on (SSO) integration with JIRA SAML SSO by Microsoft
Content Source: articles/active-directory/saas-apps/jiramicrosoft-tutorial.md
Service: active-directory
Sub-service: saas-app-tutorial
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@oeicramirez
Thanks for your feedback! We will investigate and update as appropriate.

@oeicramirez
Thank you for the detailed post. Since we will have to further troubleshoot this issue and it's not a doc related question/update. Please post your issue in detail with any screenshots to Microsoft Q&A, where myself and other engineers/community members can continue to work with you on this issue.
Thank you for your time and patience, I will now proceed to close this thread.

#please-open

@oeicramirez
I'll be re-opening your issue on GitHub since it's easier for @jeevansd to track. Jeevan will continue to work with our engineering teams and update as needed.
Thank you for your time!

@oeicramirez We have already notes this as a bug in our system. There is one more customer who reported us the issue. The team is working on the fix and we will let you know once the fix is ready.

@jeevansd
Any update on if this fix was pushed? I just wanted to check in so I can update the Q&A thread.

@JamesTran-MSFT @jeevansd any updates on this?

@oeicramirez and @JJ We have fixed this issue in the new plugin. Please download it from Microsoft Download Center.

#please-close


Support datasource ArrayCollection from Nextras/ORM

When I use custom sql query in NextrasORM and set result as datasource, datatgrid try call getQueryBuilder on ArrayCollection and it throws:
Nextras\Orm\MemberAccessException
Call to undefined method Nextras\Orm\Collection\ArrayCollection::getQueryBuilder().

@honzarac I don't really use Nextras ORM. Can you send a PR with your solution?


Search in all files with a regex with .* and a trailing space doesn't work

VSCode Version: 0.10.11 ( f291f4ad600767626b24a4b15816b04bee9a3049 )
OS Version: Mac OSX 10.10 Yosemite

Steps to Reproduce:

Search for ".* " in all files (with regex), only matches will be for literal dot-star-space sequences in text.
Search for ".* " in a single file (with regex), appears to work correctly.

More simply, it appears that including a trailing space turns off regex matching in all (?) cases.

@jrieken I traced this down to https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/search/browser/searchViewlet.ts#L1137
We seem to treat a regex pattern input by the user as non-regex-pattern if it has leading or trailing spaces. Do you remember why we do that?

No clue, not even sure if I wrote that code...


Overaggressive parsing of color space names in parseColorSpaceFromString()

If I feed the source filename /tmp/caraway-seeds.jpg into parseColorSpaceFromString() it returns raw as the source color space.  Perhaps the function should expect a non-alphanumeric character separator around the color space?
Tested in OCIO 1.1.1, though doing a cursory look at the HEAD code, it seems to still have this behaviuor.

The new File Rules feature introduced in OCIO v2 adds the ability to use Regular Expressions, so you could create patterns to use a delimiter character.


Invert Redstone Output

Describe the feature you'd like to have added
Add a toggle to the redstone card when in output mode to be able to invert the output signal.
Additional information
No response

Not within the scope of this project - use a redstone torch before the input :D


Getting KLayout Violation = -1 in OpenLane Flow.

I am getting KLayout Violations as -1 in OpenLane Flow
How to Overcome this issue?

@harshithsn
share openlane.log, cmds.log and config.tcl

There's no need. Klayout DRC is not currently available for the Sky130 PDK.

Apologies: Slight correction, it's disabled by default as it takes immense compute power. set ::env(RUN_KLAYOUT_DRC) {1} in your design config if you'd like it.

@donn  Thank You Sir


Update Widgelix logo path

Summary

...
Changes

...
...

Notes for Reviewers

...
Checklist

[x] Scope: The referenced issue is addressed, there are no unrelated changes.
[x] Compatibility: The changes are backwards compatible, they don't break existing deployments.
[x] Testing: The changes are tested.
[x] Documentation: Relevant documentation is added or updated.

@nejraselimovic could you please approve the PR? :)
Thanks!


[ImoocVideoIE] Add new extractor

[ImoocVideoIE] Add new extractor

Since #8497 landed, please move changes in youtube_dl/extractors/__init__.py to youtube_dl/extractors/extractors.py. Check step 5 of the new developer instructions for more information.


e2fsprogs 1.46.0 build fails

Hi @git-bruh
I've just tried to update e2fsprogs several times and it's failing every time:
        LD e2fsck
/usr/bin/ld: rehash.o: in function `e2fsck_rehash_dir':
rehash.c:(.text+0xebd): undefined reference to `qsort_r'
/usr/bin/ld: rehash.c:(.text+0x135c): undefined reference to `qsort_r'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:453: e2fsck] Error 1
make[2]: Leaving directory '/tmp/build-383859/e2fsprogs/e2fsck'
make[1]: *** [Makefile:443: all-progs-recursive] Error 1
make[1]: Leaving directory '/tmp/build-383859/e2fsprogs'
make: *** [Makefile:371: all] Error 2
-> e2fsprogs Build failed

Hmm this is glibc specific function which musl does not implement. I have run into some other project that used this qsort_r. You have to write a replacement, basically +one pretty big and nasty patch if there is no other way to disable it.

https://github.com/kiss-community/repo-community/issues/84#issuecomment-775647150


Predetion NasNet

Hi ,
How do I do the prediction (no Evaluation ) and speed of Nasnet?  i trained NasNet-a-large for my dataset. .

See tf.slim.

i see tf.slim , but i dont find such function .

https://stackoverflow.com/questions/47097978/how-to-print-predictions-in-tf-slims-eval-image-classifier-py
I have not got the prediction too, could you tell me  How to print every image's predictions in TF-Slim's eval_image_classifier.py?
I want to check every image's result, thanks

Inference demo feature added.


Build two new methods to reduce duplicated logic

Addressing "Similar Code" found by Code Climate

LGTM

@chrisarcand Updated based on your feedback


Onboard Sogorea 'Te

[x] add letter and provide template id
[x] deploy as a different standalone campaign page

[x] with google civic api version

[x] add the following to carousel
District 1: Rashi Kesarwani, up for re-election 2022,<PHONE_NUMBER><EMAIL_ADDRESS>District 2: Terry Taplin,<PHONE_NUMBER><EMAIL_ADDRESS>District 3: Ben Bartlett,<PHONE_NUMBER><EMAIL_ADDRESS>District 4: Kate Harrison, up for re-election 2022,<PHONE_NUMBER><EMAIL_ADDRESS>District 5: Sophie Hahn,<PHONE_NUMBER><EMAIL_ADDRESS>District 6: Susan Wengraf,<PHONE_NUMBER><EMAIL_ADDRESS>District 7: Rigel Robinson, up for re-election 2022,<PHONE_NUMBER><EMAIL_ADDRESS>District 8: Lori Droste, retiring 12/22,<PHONE_NUMBER><EMAIL_ADDRESS>

Template id: tmpl_7aaf42aada49f44

Figma file to copy text and styling out of. Added picture assets here.

let me know which branch and I'll have amplifyadvocacy.org point to it

[ ] add social links

[ ] twitter button: https://twitter.com/programequity
[ ] facebook button: https://www.facebook.com/savetheshellmound
[ ] linkedin button: www.linkedin.com/company/programequity/
[ ] instagram button: https://www.instagram.com/passthepolicy/

[ ] delete home page
[ ] replace shellmound logo image with aunty corinna
https://files.slack.com/files-pri/T014R9KDASE-F04C760NSP8/image.png
[ ] update copy in second page (replace reducing 50% emissions copy)
Indigenous communities steward more than 80% of the world's biodiversity. Returning Shellmounds means endangered species like the Condor and Salmon can return, trees like the Madrone and Mugwort can return. Our strongest strategy towards lowering carbon emissions is Indigenous led conservation of biodiversity
[ ] add email collection (api docs)

[ ] Add a hover-state for each City Council member - to indicate those are clickable, and that clicking on one of them is required to move to the next step
[ ] Change the subtext in Step 1 [ https://monosnap.com/file/JO6cHpW2lLJkXym6RNj2nGfj7zdJNp ] to "Let your representative know why this matters"


New datatables boolean filter for participant state 'present'

See also: #1347

We will implement this in 2.0 with angularjs (not datatables).

Already done in angularjs template.


xGov-61 / Chaintrail.io - Uncovering Algorand

Hereby the xGov submission for the next xGov voting session.

Hello.
Please update your proposal to match the template provided here.
https://github.com/algorandfoundation/ARCs/blob/main/assets/arc-0034/TemplateForm.md
Thanks.

@SudoWeezy Thanks! I've updated the proposal to the new format. Could you confirm if anything else is still necessary to do?
And I noticed that I needed to fill in a link for the discussion part about the proposal. I used this PR for now, but I assume that it's preferable to discuss all proposals using the same platform. Will that be the Algorand Forum or Github?

Hey, everything looks good, this PR will be merged before the voting session.


Added depends_on attribute

A Homebrew formula allows to specify one or multiple formulas that are
needed in order to build the current one.
This is done by the 'depends_on' attribute: https://docs.brew.sh/Formula-Cookbook#specifying-other-formulae-as-dependencies
In this pull request I've added this attribute.
I would be happy to have it merge as I need a dependency in my case ;-)
Thank you

Hi @Justintime50,
Are you interested by this addition?
Thank you

Hey @eko, thanks for the contribution! This looks pretty good and I'm interested in getting it included.
I've been out for the last few days. I will take another look at this over the next few days and get back to you about getting it merged.

Hi @Justintime50, thank you for your comments! I misunderstood what was done on the project, it's quite clear now.
I've fixed your comments, don't hesitate if it still some fixes to do.

Thanks, I just updated the PR with your latest comments

Tests look good now, thanks! You'll just want to revert the one line I left a comment on and this will be ready!

Cool, thank you for your time!

This was just released, feel free to give it a shot!


Import does not work

` [2023-05-22 16:51:33.069] error: [FATAL] Invalid schema changes detected during integrity checks (using the strict strategy). Please find a summary of the changes below:

admin::permission:

exists in destination schema but not in source schema

admin::user:

exists in destination schema but not in source schema

admin::role:

exists in destination schema but not in source schema

admin::api-token:

exists in destination schema but not in source schema

admin::api-token-permission:

exists in destination schema but not in source schema

admin::transfer-token:

exists in destination schema but not in source schema

admin::transfer-token-permission:

exists in destination schema but not in source schema

plugin::upload.file:

exists in destination schema but not in source schema

plugin::upload.folder:

exists in destination schema but not in source schema

plugin::i18n.locale:

exists in destination schema but not in source schema

plugin::users-permissions.permission:

exists in destination schema but not in source schema

plugin::users-permissions.role:

exists in destination schema but not in source schema

plugin::users-permissions.user:

exists in destination schema but not in source schema

api::article.article:

exists in destination schema but not in source schema

api::author.author:

exists in destination schema but not in source schema

api::category.category:

exists in destination schema but not in source schema

api::global.global:

exists in destination schema but not in source schema

api::lead-form-submission.lead-form-submission:

exists in destination schema but not in source schema

api::page.page:

exists in destination schema but not in source schema

api::product-feature.product-feature:

exists in destination schema but not in source schema

elements.feature-column:

exists in destination schema but not in source schema

elements.feature-row:

exists in destination schema but not in source schema

elements.feature:

exists in destination schema but not in source schema

elements.footer-section:

exists in destination schema but not in source schema

elements.logos:

exists in destination schema but not in source schema

elements.notification-banner:

exists in destination schema but not in source schema

elements.plan:

exists in destination schema but not in source schema

elements.testimonial:

exists in destination schema but not in source schema

layout.footer:

exists in destination schema but not in source schema

layout.logo:

exists in destination schema but not in source schema

layout.navbar:

exists in destination schema but not in source schema

links.button-link:

exists in destination schema but not in source schema

links.button:

exists in destination schema but not in source schema

links.link:

exists in destination schema but not in source schema

links.social-link:

exists in destination schema but not in source schema

meta.metadata:

exists in destination schema but not in source schema

sections.bottom-actions:

exists in destination schema but not in source schema

sections.feature-columns-group:

exists in destination schema but not in source schema

sections.feature-rows-group:

exists in destination schema but not in source schema

sections.features:

exists in destination schema but not in source schema

sections.heading:

exists in destination schema but not in source schema

sections.hero:

exists in destination schema but not in source schema

sections.large-video:

exists in destination schema but not in source schema

sections.lead-form:

exists in destination schema but not in source schema

sections.pricing:

exists in destination schema but not in source schema

sections.rich-text:

exists in destination schema but not in source schema

sections.testimonials-group:

exists in destination schema but not in source schema

shared.media:

exists in destination schema but not in source schema

shared.quote:

exists in destination schema but not in source schema

shared.rich-text:

exists in destination schema but not in source schema

shared.seo:

exists in destination schema but not in source schema

shared.slider:

exists in destination schema but not in source schema

shared.video-embed:

exists in destination schema but not in source schema
Import process failed.
error Command failed with exit code 1. `

@KennyAtCodin I just recently tested this from the most current update and I could not replicate the issue.
Which version of Strapi are you using, also if possible can you add the steps to reproduce the issue.
It would be very helpful, thank you.

@PaulBratslavsky: I was using 4.9.2. The version that I cloned, the starter. Manually updated to 4.10.5, then the import went through, but all the media files were missing in the demo content. Therefore the frontend didn't work.

Still no images, maybe it has something to do with windows... will try it on wsl later

Still no images, maybe it has something to do with windows... will try it on wsl later

Thank you, let me know if that works for you.  I will also test in windows and see if I can reproduce the issue.

@PaulBratslavsky: in wsl (ubuntu 22.04) it works. I think it's something windows specific.

Tested again on Windows. Works as well.


triage: window controls aren't in the corner of the window on KDE

Using quickgui from tip of git.
If I build using flutter 3.3.8 on Ubuntu 22.10 (Kubuntu) and run, the X window close button is offset from the corner of the window. I don't know if this is a flutter or quickgui issue.

I'd expect the close icon to be in a similar location to other applications.

Interesting. I would say it's a Window Manager thing, but more investigation is required.

Tested on KDE Neon (22.04 / Plasma 6) and Kubuntu (24.04 / Plasma 5).
This issue is present on Plasma 5, but not on Plasma 6. So, as @ymauray suspected it does look to be a window manager related issue that has been addressed in Plasma 6.
Closing this as it is not a Quickgui issue :slightly_smiling_face:


npm run hot-dev-server

when I run
npm run hot-dev-server
i get

<EMAIL_ADDRESS>hot-dev-server /home/duma/Projects/Personal/koa-react-full-example
webpack-dev-server --content-base public -ds --config webpack.config.js --hot --progress --colors --port 2992 --inline

70% 1/1 build moduleshttp://localhost:2992/
webpack result is served from //localhost:2992/_assets/
content is served from /home/duma/Projects/Personal/koa-react-full-example/public
/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/node/NodeWatchFileSystem.js:29
throw new Error("Invalid arguments: 'delay'");
^
Error: Invalid arguments: 'delay'
at NodeWatchFileSystem.watch (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/node/NodeWatchFileSystem.js:29:9)
at Watching.watch (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:78:47)
at Watching._done (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:74:8)
at Watching. (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:52:18)
at Tapable.emitRecords (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:271:37)
at Watching. (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:49:19)
at /home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:264:11
at Tapable.applyPluginsAsync (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)
at Tapable.afterEmit (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:261:8)
at Tapable. (/home/duma/Projects/Personal/koa-react-full-example/node_modules/webpack/lib/Compiler.js:256:14)

I'll try to test that out asap! Must be related to some dependency that did a patch and introduced a bug.

I'm having the same issue, any solution yet?

+1 :+1:

@rickyduck I really haven't had time to check it out yet... sorry I'll try to look at it asap.

@rickyduck @debonair should be fixed as of 0.5.2.
It seemed to be an issue with webpack 1.8.11

@dozoisch Thanks for the swift response. I can confirm this is all working now for me

@dozoisch thanks works great!

@dozoisch Thanks for fixing! :dancers:


config: add admin endpoint for serving the Config struct

Codecov Report

Merging #490 into master will decrease coverage by 7.19%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##           master     #490      +/-   ##
==========================================
- Coverage   56.29%   49.09%   -7.20%
==========================================
  Files          70       71       +1
  Lines        2645     2654       +9
==========================================
- Hits         1489     1303     -186
- Misses        905     1141     +236
+ Partials      251      210      -41

Impacted Files
Coverage Δ

pkg/config/admin/routes.go
77.77% <77.77%> (ø)

pkg/upload/sftp.go
15.05% <0.00%> (-51.62%)
:arrow_down:

pkg/database/mysql.go
11.11% <0.00%> (-51.12%)
:arrow_down:

pkg/customers/client.go
8.00% <0.00%> (-51.00%)
:arrow_down:

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 306e2fe...a6accc7. Read the comment docs.


Add client status to the API

Is your feature request related to a problem? Please describe.
The webhook event is already detecting the status of each client ,(connected / disconnected) would love to see this also via API
The reason am asking for this is to be able to filter the ones that are disconnected for long period of time and be able to assign these clients to different devices if needed.
I have created a UI to see all my clients so having this feature will make sense to everything related to WG

Describe the solution you'd like
I want to be able to see client status within API. ideally another field called status with values connected / disconnected
Describe alternatives you've considered
Am using the webhook events but wanna see everything in my API/UI

@magixus Why can't you filter users who have been disconnected for a long time by the last_online field?

I am planning to do that in addition to status
`Status should give quick overview of the peers that are offline/online.
I thought the event handler is already doing that, and it's already adding details  to wg0_events.json thus instead of adding another computation layer in the frontend I was thinking maybe having this in the API would make sense  isn't it?

@magixus Yes, but the thing is that these events do not reflect the current status of the client, they simply indicate the fact of the event. Therefore, it seems to me that reusing them would not be entirely correct. Unfortunately, WireGuard does not provide information on the current connection status of the client. All that is available is the volume of transmitted traffic and the time of the last handshake. All this is already in the API. By the way, webhook events work based on this information.

great @leonovk and thanks for the explanation. I'll work on the frontend part to compute status based on last online.


Implement the commands with patterns

[Enter feedback here]
In "What is new in C# -> Tutorials -> explore pattern in objects -> Implement the commands with patterns",
according to the table(row 4)
New setting = Closed
Gate state = Open
Water Level = High
Result = Open
well, Result should be Closed.

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

ID: afb14275-1810-ff4d-783f-733e8ea3d858
Version Independent ID: 071e85e4-6fc9-8aff-bbf5-778d5e499f88
Content: Use patterns in objects - C# tutorial
Content Source: docs/csharp/whats-new/tutorials/patterns-objects.md
Product: dotnet-csharp
Technology: csharp-whats-new
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks for pointing this out @wangw-git
I've opened a PR to fix this issue.


punycode deprecation warning when generating project

➜  /tmp offckb create ckb-hello
(node:45665) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

FYI: https://nodejs.org/api/punycode.html

please use LTS node

resolved, thanks.


[Bug] relationship field and morphTo - 2nd select is not showing labels

Bug report
What I did
I have a table 'movements' with fields coinable_id and coinable_type
I have a activities table with an id and a  name column (and some populated records )
In the Movement model class I added the following morphTo
public function coinable(): MorphTo
    {
        return $this->morphTo();
    }

In the MovementCrudController, in the setupCreateOperation I added the relationship field
    CRUD::field([
        'type' => 'relationship',
        'name' => 'coinable',
    ])
        ->addMorphOption(Activity::class, 'Attività');
    ;

What I expected to happen
I expected to see a select for the type
Then choosing the activity type, I expected to see in the 2nd select all the records from activities table.
To be precise, I expected to see 'names' showed as label
I also expected to have some documented option to select which field of activities is shown for option labels
What happened
I see the 2 selects.
First select works
The problem is the 2nd select: it has really 3 options inside it [because there are 3 records in activites], but no label is shown

What I've already tried to fix it
No idea, I will jump to ajax if needed
Is it a bug in the latest version of Backpack?
After I run composer update backpack/crud the bug... is it still there?
yes
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:
### PHP VERSION:
PHP 8.2.8 (cli) (built: Jul  4 2023 15:53:15) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.8, Copyright (c) Zend Technologies

### LARAVEL VERSION:
<IP_ADDRESS>

### BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.1.1
backpack/crud: 6.1.12
backpack/generators: v4.0.2
backpack/pro: 2.0.11
backpack/theme-tabler: 1.0.12

Hmm usually with such a simple table like your Activities, Backpack would figure out to show the “text” yes.
You can choose the attribute shown using the third parameter in addMorphOption - https://backpackforlaravel.com/docs/6.x/crud-how-to
For example:
// ->addMorphOption(string $model/$morphMapName, string $labelInSelect, array $options)
CRUD::field('commentable')
    ->addMorphOption('App\Models\Video')
    ->addMorphOption('App\Models\Post', 'Posts', [
        [
            'data_source'          => backpack_url('comment/fetch/post'),
            'minimum_input_length' => 2,
            'placeholder'          => 'select an amazing post',
            'method'               => 'POST',
            'attribute'            => 'title',
        ]
    ]);

does that make it work for you?

@tabacitu thanks for reply.
Using ajax it worked and still works.
the problem is when not using ajax. for example the case
 ->addMorphOption('App\Models\Video')

I have this situation, where the model actually has the 'name' field, so I was expected it to be shown automatically.
but not


Improving the contact page

Describe the feature
Hii @Suchitra-Sahoo
I want to improve the UI of contact page, i will change the color combination to make it more attractive.
can you please assign this issue to me under gssoc24.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

hey @Suchitra-Sahoo plz assign this issue to me I'll make updation in contact us page and make it more attractive

I want to improve the colors to make it more aesthetically appealing . A well-designed "Contact Us" page can significantly enhance user experience &  build trust . I want to work on this project so please assign this issue to me.
contact us improved


Add commands for packaging and local install/uninstall

This PR adds two scripts adapted from CeTZ (Apache 2.0): https://github.com/johannes-wolf/cetz/blob/35c0868378cea5ad323cc0d9c2f76de8ed9ba5bd/scripts/package
# copies a selected set of files into the `out` directory
just package out

# locally installs under the name `@local/package`
just install
just uninstall

# locally installs under the name `@preview/package` (i.e. lets you test code that contains imports of the published package)
just install-preview
just uninstall-preview

The files that are included in packaging are those that are either necessary for the package, or are likely to be linked in the README, meaning links to them on Universe should work:

src/
typst.toml
README.md
LICENSE
docs/manual.pdf
CHANGELOG.md

I think storing the list of directories and files in the script itself may unnecessarily complicate the process of adding more should the package author need to. Would it be possible to move it into a dot file with a format like .gitignore?

I was a bit hasty with submitting; now there's a bit more context in the original PR message.
The two factors that influenced my reasoning:

I don't really like shell scripting, so I kept close to how CeTZ did it (which of course didn't have the goal to be applicable to a template - I'm not saying that's a good reason)
The packaging only needs to include the files necessary for Universe, which is a slightly larger set than what an actual Typst package needs (i.e. the stuff not excluded in typst.toml): if you want to link the manual, it needs to be packaged. So the question is: are there a lot of new things that could fall into that category?

a dot file would probably be better, but I don't really look forward to implementing the filtering in bash...

I'll give it a go tomorrow when I have a moment, but yeah the reasoning behind my request was relating to some packages possibly needing to also ship a gallery folder (or whatever)

I'll try it out!

some preliminary playing around indicates that that script doesn't work as intended; using -name for matching only uses the basename (last name in the path), so ignoring something like docs/*.typ wouldn't work. replacing with -path also doesn't just work because ignoring .github doesn't ignore the files in there. Also, -path can match foo/bar with f*, i.e. * also matches / which is not intuitive.
I'll try some more.

ok, I managed to do something. I called the ignore file .typstignore, not sure if that's a good name. The file contains a short description what is supported. I tested the script superficially; the negated patterns seem to work and file names/patterns with spaces don't seem to make problems. Even file names with asterisks, and patterns with escaped asterisks seem to work!
A second pair of eyes that properly looks at the code would definitely be a good idea, though.

<3


Doc request: please document a strategy to handle migrations without console access

A lot of use, included myself, one day or other must develop a webapp in a shared host situatio.
We're good enough to install every thing,the code, but, what is the preferred strategy to create migrations in development environment (whre you have console access and can simply apply them in classic way) and then deploy into a server where you cannot access via console / ssh?
I'm trying since one whole week to use \yii\console\controllers\MigrationController from inside a standard webapp action (advanced template). I'm of course not able to do this.
Help we all, please, add someting to the official doc or at least a step-by-step newbie-ready post into the wiki.
Note: i cannot run exec and similar from php, them has been disabled from server admin.

You could try doing something like this: https://github.com/yiisoft/yii2/issues/6853

I'm gently requesting a working example. I'm really not able to understand what must I try. You've linked me an issue, so, if it's not working, why moust I try it?
Also, the user is trying to run a commabd action inside a command action, or something of similar.
I need to invocke a standard web action and execute the full migration code, up or down.
 Help us giving us a working example. Please !

About this: https://github.com/stepanselyuk
I'm asking to @stepanselyuk  how to use his helper in a web controller action

@realtebo please see https://gist.github.com/stepanselyuk/c7b3ca03755eb5788ce5 - ConsoleAppHelper::runActionOld this method without using exec, but as I've figured out, it work only cgi-like modes, ex. fcgid. But not working with in systems where is php as Apache module (don't know why). So I use ConsoleAppHelper::runAction with exec.

@realtebo it is currently not supported but I linked that issue because there something similar has been tried. By defining the missing constants it may already work but you have to try yourself. We'll look into this when we find the time for it.

when running a console application in web context at least the following things have to be considered:

keep the web app instance as creating the console app will overwrite Yii::$app.
the console application will register its own errror handler and overwrite the previously registered one
if a logger is enabled in console application, this may affect what Yii::getLogger() refers to
the @app, and @runtime alias will be overwritten
same for @vendor, @bower, @npm but these are usually equal.
date_default_timezone_set() will be called if console app has timezone configured.

Is it fine to mention https://github.com/samdark/yii2-webshell in the guide? (given that it's not under yiisoft/)

Yes. That's OK.

Proven extensions could be mentioned freely. Mine is considered to be OK despite having some issues.


[SPARK-14540][BUILD] Support Scala 2.12 closures and Java 8 lambdas in ClosureCleaner (step 0)

What changes were proposed in this pull request?
Preliminary changes to get ClosureCleaner to work with Scala 2.12. Makes many usages just work, but not all. This does not resolve the JIRA.
How was this patch tested?
Existing tests

Test build #83496 has started for PR 19675 at commit b27a9fe.

Test build #83496 has finished for PR 19675 at commit b27a9fe.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/83496/
Test FAILed.

Test build #83498 has started for PR 19675 at commit bf393ae.

Test build #83498 has finished for PR 19675 at commit bf393ae.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class StateObject(var counter: Int = 0, var expireCounter: Int = 0) extends Serializable

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/83498/
Test PASSed.

Merged to master

Is this issue partially or finally fixed? I could try to get this to the finish line for a nice start of the year.

It is partially fixed. If you switch to the 2.12 build you should find it compiles and runs, and 99% of tests pass. However it is definitely not complete.

Is there any ticket that describes what needs to be done? Otherwise, could you elaborate on it a that I have a clearer idea of what you need to have a 100% working 2.12-compatible Spark? Is the 1% of test failures the only thing preventing a release?

Did you have a look at the JIRA? lots more detail there. https://issues.apache.org/jira/browse/SPARK-14540

The JIRA story has been unassigned for a while (since November 2017). Is anyone thinking of picking it up? With the first Scala 2.13 release coming soon it would be great to get this moving.
@srowen do you think it's possible for a somebody with no prior Spark development experience to pick this up or does it require an expert?

@fedeoasi I got just about everything but the core issue fixed. I think someone with a lot of understanding of the JVM and Scala would be well positioned to work on this; not a lot of Spark needed. But it's fairly subtle.

@srowen Can you concretize when the next Apache spark version will be released? I guess that the whole Scala 2.12 support will require a new major version bump, and I don't know how often you cut these releases.

No, 2.11 would still have to be supported. Next minor release is probably 6 months out

Does that mean no chance of 2.12 support for ~6 months?

@srowen Are you needing expertise to get the last issues fixed? It would sure be nice to see this completed and released. Java 8/Scala 2.12 was a hard upgrade for Scala too and it has taken the point releases to solve some problems needed for Spark. Scala 2.12.0 was released on 3 Nov 2016 and 2.13 is on the horizon so it would be great to see Spark support 2.12 very soon.

I am not working on this and am not aware of anyone working on it. Yes, it will only be resolved when someone picks up the last piece of work and finishes it. It should be down to handling how closures are serialized as lambdas now; all the other updates should be in place.

Thank-you for the clarification.

Ideally we would get someone from Scala or Scala Center to pick this up. Anyone knows how to get in touch with them?

I just posted the info on https://gitter.im/scala/contributors but there is also scala/center and scala/scala or the forum at https://contributors.scala-lang.org/ . Maybe Lightbend too.

@fedeoasi Be a sponsor

I'm happy to help, but I would appreciate if someone could pose the question you have about the lambda encoding / SerializedLambda in a standalone fashion.
In the meantime, here are some details that might help.
To find the captured fields of a Scala 2.12+ (or Java 8+ lambda), you can use:
scala> :paste -raw
// Entering paste mode (ctrl-D to finish)

package p1;
class C { val x = "foo"; def test1 = () => this.x; def test2 = () => C.this; def test3 = () => "" }

// Exiting paste mode, now interpreting.

scala> def inspect(closure: Object) = { val writeReplace = closure.getClass.getDeclaredMethod("writeReplace"); writeReplace.setAccessible(true); val sl = writeReplace.invoke(closure).asInstanceOf[java.lang.invoke.SerializedLambda]; println(closure); println(sl); println(List.tabulate(sl.getCapturedArgCount)(sl.getCapturedArg))}
inspect: (closure: Object)Unit

scala> inspect(new p1.C().test1)
p1.C$$Lambda$1072/2133998394@79b37277
SerializedLambda[capturingClass=class p1.C, functionalInterfaceMethod=scala/Function0.apply:()Ljava/lang/Object;, implementation=invokeStatic p1/C.$anonfun$test1$1:(Lp1/C;)Ljava/lang/String;, instantiatedMethodType=()Ljava/lang/String;, numCaptured=1]
List(p1.C@107f5239)

scala> inspect(new p1.C().test2)
p1.C$$Lambda$1412/2049133976@1215aae8
SerializedLambda[capturingClass=class p1.C, functionalInterfaceMethod=scala/Function0.apply:()Ljava/lang/Object;, implementation=invokeStatic p1/C.$anonfun$test2$1:(Lp1/C;)Lp1/C;, instantiatedMethodType=()Lp1/C;, numCaptured=1]
List(p1.C@21378791)

scala> inspect(new p1.C().test3)
p1.C$$Lambda$1413/399039406@7643ae41
SerializedLambda[capturingClass=class p1.C, functionalInterfaceMethod=scala/Function0.apply:()Ljava/lang/Object;, implementation=invokeStatic p1/C.$anonfun$test3$1:()Ljava/lang/String;, instantiatedMethodType=()Ljava/lang/String;, numCaptured=0]
List()

If you need to access the bytecode of such a lambda to try to find unused fields, things get harder. The nuclear option is the have your users compile with -Ydelambdafy:inline, which avoids the use of LambdaMetafactory and spins up the lambda anonymous classes ahead-of-time in scalac.
But I would imagine you have the same problems for Java or for Scala, unless there is a problem in Scala's lambda translation where we still capture more, potentially non-serializable or huge, than the equivalent Java code. So it would be good to discuss a concrete problematic example, to see if we can fix something in the compiler.

Another, semi-nuclear option is to use an unsupported option of LambdaMetafactory to dump generated classfiles to disk.
⚡ mkdir /tmp/dump

~/code/compiler-benchmark/target/profile-basic on master*
⚡ scala -J-Djdk.internal.lambda.dumpProxyClasses=/tmp/dump
Welcome to Scala 2.12.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_162).
Type in expressions for evaluation. Or try :help.

scala> :paste -raw
// Entering paste mode (ctrl-D to finish)

package p1
class C { val x = "foo"; def test1 = () => this.x; def test2 = () => C.this; def test3 = () => "" }

// Exiting paste mode, now interpreting.

scala> new p1.C().test1
res1: () => String = p1.C$$Lambda$1071/1940783703@6fc1020a

scala> :quit

⚡ find /tmp/dump/p1
/tmp/dump/p1
/tmp/dump/p1/C$$Lambda$1071.class

@retronym thanks for joining this thread -- good to see you here.
In short, as you probably know, Spark needs to serialize lambdas to execute them remotely. Sometimes, the lambda transitively refers to some value somewhere that isn't needed and isn't serializable either -- I think this mostly arises because the inner class implementing the closure refers to the outer class, containing lots of things like a SparkContext.
The existing code has a pretty good process for finding out what fields the actual byte code references, and then nulling out references that aren't required.
That implementation changes in Scala 2.12 of course to use the Java 8 lambda mechanism. Yes, it's not specific to Scala. It's just a matter of being able to modify the implementation of the closure at runtime, in the same way it was done with anonymous classes before.
Would -Ydelambdafy:inline basically go back to implementing closures as anonymous classes? That is probably, at least, a workaround, though one that requires specific behavior on the user end.
I didn't get too far investigating what the equivalent implementation is in Java 8 lambdas. I believe it involves working with MethodHandles et al but I had punted when I looked at it, as I don't yet know much about how this works.
The good news was that, well, everything else worked with Scala 2.12. And, almost all tests pass in Scala 2.12 even without a 'fix' for the above. It kind of made sense to me as the original problem arose, almost entirely, from an artifact of how non-anonymous inner classes work. And they're not inner classes anymore. There may be a narrow, simple, different thing that would resolve the remaining test failures.
One can try it by just setting up the build for 2.12 with ./dev/change-scala-version 2.12 and building and testing with -Pscala-2.12. Unless something else has re-broken since then, one ought to find it compiles and passes most tests. The few that are left are either testing the old closure-cleaning mechanism, or seem to be the corner cases that are still issues.
That's where I left it after I finished fixing up the rest for 2.3.0 and hadn't been back since.

@srowen If I try with /dev/change-scala-version 2.12 and -Pscala-2.12 two tests still fail right?

Total number of tests run: 2096
Suites: completed 212, aborted 0
Tests: succeeded 2079, failed 17, canceled 4, ignored 8, pending 0
*** 17 TESTS FAILED ***
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM 2.4.0-SNAPSHOT ............ SUCCESS [ 24.719 s]
[INFO] Spark Project Tags ................................. SUCCESS [ 31.125 s]
[INFO] Spark Project Sketch ............................... SUCCESS [ 14.175 s]
[INFO] Spark Project Local DB ............................. SUCCESS [  5.103 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 40.177 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [  5.344 s]
[INFO] Spark Project Unsafe ............................... SUCCESS [  7.984 s]
[INFO] Spark Project Launcher ............................. SUCCESS [  6.129 s]
[INFO] Spark Project Core ................................. FAILURE [17:17 min]