Change event on drag start (if delayed dragging, it should fire when the delay is elapsed)

Feature Description
Currently the started event on CdkDrag fires when the user starts to press on the element. Now with the dragStartDelay, it should fire after the delay if it hasn't been cancelled.
Use Case
I would like to trigger a vibration or a haptic feedback when the the dragged element starts to drag after the cdkDragStartDelay. Currently it's not possible to synchronize both of them accuratly without doing some hacks.

Related: https://github.com/angular/components/pull/16537

Any news with that feature? Id like to have the same behavior

The same happens to me. It would be a very interesting functionality to warn the user that they can already move the card.

Is there any workaround for the moment?

I came up with something very quickly (not the cleanest):
private _dragtimer: Subscription;
  startDragTimer(ref: HTMLElement): void{
    this._dragtimer?.unsubscribe();
    this._dragtimer = of(null).pipe(delay(500)).subscribe(() => {
      const ev = new TouchEvent("touchmove", {
        bubbles: true,
        cancelable: true,
        view: window
      });
      ref.dispatchEvent(ev);
    });
  }

  stopDragTimer():void{
    this._dragtimer?.unsubscribe();
    this._dragtimer = null;
  }

<div
            #taskView
            cdkDrag
            [cdkDragData]="task"
            cdkDragLockAxis="y"
            cdkDragBoundary=".task-list"
            [cdkDragStartDelay]="500"
            (mousedown)="startDragTimer(taskView)"
            (mouseup)="stopDragTimer()"
            (drag)="stopDragTimer()"
           >...</div>

I used rxjs because I was too lazy to use setTimeout (I would have to run it outside zone, etc.) but it gets the point across I hope.
I just basically trigger the touchmove event (the one used by cdkDrag as seen below) after the time has passed. I guess if you want to be on the safe side, you could set the delay of rxjs to be a bit longer to avoid any case where that might get triggered before the actual cdkDelay is done. I then cancel the timer if the user lifts or moves the mouse at all.
https://github.com/angular/components/blob/0d499a3322a3df1145084d0b34c73687fdb1c4a9/src/cdk/drag-drop/drag-drop-registry.ts#L255-L266
If you see any problems or have any suggestions, let me know


Add Django 1.10 support

This just opens up installation and testing for 1.10.  No tests fail so I assume it's usable.  I drop Django 1.7 testing, there is one site in the code that has a <= 1.7 fallback that I didn't remove.

I was a tiny bit late with the same changes :)

Django 1.10 is failing for me:
AttributeError: 'Settings' object has no attribute 'TEMPLATE_DIRS'

In overextends_tags.py, TEMPLATE_DIRS no longer exists.

:+1:

Django 1.10 seems to work on master, but not the 0.4.1 release for me.

Thanks @dwaynebailey

Just pushed latest 0.4.2 to PyPI.


fix haaseduk1 failed connnect network occasional when multi task connect at the same time #1752

感谢提交 Pull Requests！
Thanks for submitting a pull request.

Security Check : ad987dfeb2e0eba1aa2fb24630065c87bbccb4a0

auto build fail,number:181

start build

手动触发！
感谢 Pull Requests！
Thanks for submitting a pull request.

Security Check : ad987dfeb2e0eba1aa2fb24630065c87bbccb4a0

auto build fail,number:184

start build

手动触发！
感谢 Pull Requests！
Thanks for submitting a pull request.

auto build success,number:185


catch bad input params to prefect API

currently if a bad parameter is sent to workflow, API responds with 200 and "silently" fails.
Ideally we'll send back a fail.

The request does not even reach the workflows. We will need to explore more on where the request can be interfered with.

One possible option is to disable parameters validation:
https://docs.prefect.io/latest/concepts/flows/#flow-settings
Afterwards, adding a custom param validation step at the start of every flow.


Write developer's documents for Minerva

What should these be specifically @aashish24 ?  Say you had to pick 3 specific topics to start with...

How to add new analysis to Minerva
How to add new data sources and datasets in Minerva

Would be good starting point.

These are both open topics related to developing use-cases for how to separate project specific requirements from Minerva as a product.

@kotfic sure. Just to be clear,I am not suggesting we go after this task but wanted to make sure that we have this in the backlog.

Adding new sources is done.
Additional topics

how to create an analysis
how to create and run a new job
how to create endpoints

Additional topics
how to create an analysis
how to create and run a new job
how to create endpoints

Also,

how to add new view


Completely and utterly lost.

I'm sorry for this but i'm stuck at installing Pip and i'm lost on what to do after installing python

I can help. What's your OS?

windows 10

Ok. go to https://pip.pypa.io/en/stable/installing/ and download the file at get-pip.py. Then hit the start button and search for command prompt. Using the command prompt  type  cd /path/to/the/downloaded/file  then python get-pip.py . This will install pip, happy hunting!

the href of the above link is broken, copy and paste it into your url bar instead of clicking on it

you still have to install protobuf, let me know if you are still struggling with the bot.

Shift and Right click in the folder where get-pip.py is located will open up the command prompt in that location, skipping the need to cd.

Okay still getting nothing, I downloaded python and extracted everything into my portable Hard Drive. Which is E, into a folder named Pokemon GO into another folder named Python. The whole pip.py thing just isn't clicking to me.

Open a command prompt and type python. Paste here the results please

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\Melvin>Python
'Python' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Melvin>

small p python not Python.

same thing

hit start button, search for power shell and paste the following [Environment]::SetEnvironmentVariable("Path", "$env:Path;E:\Python\;E:\Python\Scripts\", "User")
this assumes that the Python installation folder is located at E:\ and is named Python. Afterwards open a new command prompt and type python and paste the results here

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\Melvin>python
'python' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Melvin>

Where is your python installation folder located?

is E:\Python the installation folder or a folder which includes the installation folder? by installation folder I mean the one resulted from running the python installer

Could check it manually by going to Control Panel –> System Properties –> Environment Variables and select PATH in the bottom list and click edit.
It should be E:\Python;E:\Python\Scripts at the end.

it should be called something like python27 or python35

Good job, it is working now! close this command prompt. as @Orrielel said, Shift right-click in the folder where you downloaded get-pip.py and the type python get-pip.py

That was my whole issue I couldn't figure out how to download it. The link took me to this page with a whole bunch of data but I wasn't sure what to do with it

right-click save link as

name it get-pip.py into the python folder?

save it to E:\

Saved it to E. But shift right click just does a normal right click action

It wont work if you have any folders or files selected.

still not working

Ok, right click on the get-pip.py then click properties then copy the its path or location on disk then open a new command prompty and type cd paste the path you just copied and then type python get-pip.py

just type cd E:\ and press enter then type python get-pip.py

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\Melvin>cd E:\python get-pip.py
The system cannot find the path specified.
C:\Users\Melvin>cd E:\
C:\Users\Melvin>python get-pip.py
python: can't open file 'get-pip.py': [Errno 2] No such file or directory
C:\Users\Melvin>

okay, remember my python is in a folder could that be it?

just type e: and then type python get-pip.py

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\Melvin>cd E:\python get-pip.py
The system cannot find the path specified.
C:\Users\Melvin>cd E:\
C:\Users\Melvin>python get-pip.py
python: can't open file 'get-pip.py': [Errno 2] No such file or directory
C:\Users\Melvin>E:
E:>python get-pip.py
Collecting pip
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
100% |################################| 1.2MB 673kB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |################################| 71kB 1.4MB/s
Installing collected packages: pip, wheel
Found existing installation: pip 7.0.1
Uninstalling pip-7.0.1:
Successfully uninstalled pip-7.0.1
Successfully installed pip-8.1.2 wheel-0.29.0
E:>

horray!

okay so, the installation instructions did NOT say it that simply. or maybe i'm bad at instructions. Either way thanks for not showing your frustration with my inability to breeze through this lol

lol no problem. next you have to install protobuf

is git not necessary?

it is necessary. but i think installing git is straightforward just google it and you will be ok.

follow the instructions here

installed everything, how do I change from master to dev?

No it is probably not. For now, place protoc.exe in your python installation folder

Okay did that.  Now for the Git.
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\Melvin>E
'E' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Melvin>E:
E:>git checkout dev
fatal: Not a git repository (or any of the parent directories): .git
E:>
my git things are in a folder named Git. so do I E:\Git?

No. Did you run the git clone command?

In the instructions the last part

Damnit I did but i accidentally put it in C. Is that okay?

Yea it is. Open new command prompt and type c: and then cd PokemonGoBot and then type the commands i mentioned above to change to dev

but everything is in E and the go bot is within like 3 subfolders should I bring it up? also PyYAML isn't installing because it can't find Python

If you want to move it to E, you can. But you do not have to. I am not sure what is the problem with PyYAML, maybe it is looking for python in the c: but I am not sure

all it says is Python version 2.7 required. which was not found in the registry

fixed that never mind

Okay. i think everything was done...now i don't know how to start it

go to the slack chatroom then in #help someone will help you setup the bot correctly
closed: NOT A BUG


Adds "aad administrativeunit member list" command

Closes #5640

Nice work @MartinM85, we'll review asap!

Merged manually, thanks! 🥳


How Can I Get Keypoints?

First of all, thanks for this model and project.
I am using a photo as source image. In generated video, character doesn't close it's eyes. So i need to see keypoints of source image on image for understand where is the error. How can i get keypoints of source image?

There is no stand-alone key-point visualization script.
You can use part of the code from animate.py.
Replace make_animation (https://github.com/AliaksandrSiarohin/first-order-model/blob/902f83a4217c75c842e1f536b3331c5032b703a2/demo.py#L57) with this (https://github.com/AliaksandrSiarohin/first-order-model/blob/902f83a4217c75c842e1f536b3331c5032b703a2/animate.py#L73).

Visualization is not important for me. I only need x and y of keypoints, but i can't find the codes that gives me this points.

Here https://github.com/AliaksandrSiarohin/first-order-model/blob/902f83a4217c75c842e1f536b3331c5032b703a2/demo.py#L64
print (kp_source['value'])
And here https://github.com/AliaksandrSiarohin/first-order-model/blob/902f83a4217c75c842e1f536b3331c5032b703a2/demo.py#L71
print  (kp_driving['value']

I am training a model of the upper body, and in the test results, the eyes of the characters do not blink. Have you solved this problem


Added Theme by to the footer of the Docs

For #19

I don't see any logic for not showing this for mobile layout

Can you please make sure that, the theme statement doesn't show up on mobile layout. Thx

Fixed that

Thanks @m-aditya

Will add you as a contributor in the next release


[OpenAI] Add companion library

WIP

API change check
APIView has identified API level changes in this PR and created following API reviews.
@azure/openai

Failures are known and specific to Search. /cc @dgetu

/check-enforcer override

/check-enforcer override


[docs] Add functions-debug file for Pulsar Functions(new)

Fixes #4554
Motivation
Add debug tutorial for new Pulsar Functions structure.
Modifications

To avoid conflicts with the original "functions-debugging" file, duplicate this file, rename it as "functions-debug".
Refine the content based on the duplicated file.

When you review this file, review it throughout, including tech, language, links and so on.

@wolfstudy Could you please help review?


Support working paths with spaces

Resolves this issue.
Changes:

Added a new function for parsing out the working path from the tree strings that are output by 'git worktree list'.
Used the new function to set the working directory instead of relying on positional parameters set by 'git worktree list'.
Configured 'awk' calls to use tabs instead of spaces as field separators for a line.
Distinguished the console message that is printed when switching to the main worktree.

This can possibly be programmed more elegantly, so feel free to make improvements or suggestions if you have any.

@Koolstr thank you for the PR.
About the spaces in the path to worktrees, the solution should be really simple.
Instead of parsing through the list, we can isolate the path to worktree and wrap it with double-quotes.
This is what I purpose.

We can modify the last command to use regex to grab everything after worktree<space>
git worktree list --porcelain  | awk '$1=="worktree" {print}'

Or with similar strategy, we can use git worktree list and grab all columns except the last two to get the full path.

I like that idea, it's certainly more clean and efficient. However, what you've suggested doesn't work when you have more than one worktree. In such a case, it will print/return multiple retrieved 'worktree' lines. Having awk stop after finding the first match prevents that, so I've added the 'exit' keyword to accomplish that.
For parsing the path without 'worktree ' at the start of the string, we could use something like  | cut -d ' ' -f 2-, but I chose to settle with using substr() directly within awk. Let me know if you disagree with that choice.
I've adapted the implementation according to your suggestion, removing the now unnecessary function related to my old approach. It seems to work as expected. Please review the updated approach.


[FEATURE]Improve test coverage for HttpJsonConnectorExecutor.java

We need to improve test coverage in our repo.
This issue will target only to improve test coverage for HttpJsonConnectorExecutor.java
From this url we can see where test coverage is missing for this class: https://app.codecov.io/gh/opensearch-project/ml-commons/blob/2.x/ml-algorithms%2Fsrc%2Fmain%2Fjava%2Forg%2Fopensearch%2Fml%2Fengine%2Falgorithms%2Fremote%2FHttpJsonConnectorExecutor.java

Sure, assigned the issue to you


[minor] Upgrade to 0.2?

https://github.com/jeppeman/mockposable/blame/f002661268a554f847aa439a86a51b95f83ac7c1/mockposable/gradle.properties#L1
I cloned your repo and noticed its resolving to
@file:JvmName("Version")

package com.jeppeman.mockposable.gradle

internal const val PROJECT_VERSION = "0.2-SNAPSHOT"
internal const val COMPOSE_COMPILER_COORDINATES = "androidx.compose.compiler:compiler:1.3.2"
internal const val COMPOSE_RUNTIME_COORDINATES = "org.jetbrains.compose.runtime:runtime:1.3.0"
internal val MOCKITO_JVM_DEPENDENCIES = listOf("org.mockito.kotlin:mockito-kotlin:4.0.0", "com.jeppeman.mockposable:mockposable-runtime-mockito:0.2-SNAPSHOT")
internal val MOCKITO_ANDROID_DEPENDENCIES = listOf("org.mockito.kotlin:mockito-kotlin:4.0.0", "org.mockito:mockito-android:4.8.1", "com.jeppeman.mockposable:mockposable-runtime-mockito:0.2-SNAPSHOT")
internal val MOCKK_JVM_DEPENDENCIES = listOf("io.mockk:mockk:1.13.2", "com.jeppeman.mockposable:mockposable-runtime-mockk:0.2-SNAPSHOT")
internal val MOCKK_ANDROID_DEPENDENCIES = listOf("io.mockk:mockk-android:1.13.2", "com.jeppeman.mockposable:mockposable-runtime-mockk:0.2-SNAPSHOT")
internal val COMPOSE_UI_JVM_DEPENDENCIES = listOf("com.jeppeman.mockposable:mockposable-runtime-composeui:0.2-SNAPSHOT")
internal val COMPOSE_UI_ANDROID_DEPENDENCIES = listOf("com.jeppeman.mockposable:mockposable-runtime-composeui:0.2-SNAPSHOT")

Thanks 👍 updated now.


"You need to use Hyper.app to run this command"

When I type hyperlayout all I'm getting is this line: "You need to use Hyper.app to run this command"

Are you using Hyper.app 1.0?

Indeed

Is 'TERM_PROGRAM' set in your environment? (Hyper should do this automatically)

Doesn't look like it is...

@timolins I set TERM_PROGRAM to Hyper as it's supposed to be. Now what I'm getting back is just the layout config json as in #8

Is hyperlayout installed in Hyper.app? hpm install hyperlayout

Yes. It's both in hyper.js and installed globally via npm install -g as well as in the .hyper_plugins directory.


general: webui package

Packaging the Web UI in this pull request.

This attempt failed. Closing and removing the branch.


DOI / Subscription at order success

At the moment the DOI / subscription is done when saving the billing address.
So if a customer goes back to change something or similar the customer maybe would get multiple mails.
It would be better to move this to the success event.

Hello.
Thanks for letting me know.
From what I can remember, the form data from the billing address section cannot be accessed from the success event. Having said that, I have added in functionality to stop multiple confirmation emails from being sent to the customer.


Corrected Class comment link reference from 'Export' to Spring 'Exporter...

Hi,
When performing a 'mvn clean install' the build was failing with the error below. I've changed the incorrect comment 'link' reference to fix the issue :-)
Feel free to shout if you have any questions
Best wishes,
Daniel
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar (attach-javadocs) on project spring-boot-starter-batch-web: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - /Users/danielbryant/Documents/dev/daniel-bryant-uk/spring-boot-starter-batch-web/src/main/java/de/codecentric/batch/configuration/MetricsExporterConfiguration.java:39: error: reference not found
[ERROR] * supported. To add a new implementation just implement the generic {@link Export}

Thanks for contributing!


Update .gitignore to manage changes to skiplang directory

Good catch. I suggest to move the subdirectory-specific ignore directives in their own .gitignore file, i.e. create a .gitignore in skiplang/compiler with contents
bootstrap/*.a
bootstrap/*.ll
stage*/
tests/**/*.bin
tests/**/*.bin.ll

amd similar for skiplang/prelude.
That way, we won't be bothered if we ever move directories again.


Fix the navbar

I want to fix the navbar in mobile view @BamaCharanChhandogi please assign this task to me under hactoberfest and gsoc-extd tags

Already working, you can work on another issue.


Incorrect redirection in Raw database access links for executeRaw, queryRaw, runCommandRaw

In this section of Prisma Client API reference, Raw database access links doesn't redirect to correct section and instead jumps to end of the page.
The issue is in the casing of the links due to which appropriate section is not found on page.
Example - Clicking on Raw Database Access link in executeRaw redirects to
https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeRaw
but actually it should redirect to
https://www.prisma.io/docs/concepts/components/prisma-client/raw-database-access#executeraw
(capitalised R needs to be replaced with smallercase r)
Similar issue is in queryRaw and runCommandRaw.

This one was fixed by #2894


Detection of same switch cases

Invalid detection of same switch cases when non-enum value is used.

I'm not sure if this bug is present still...


Change the administrator binding label to something more appropriate

Description
I used reconciler.kyma-project.io/managed-by=reconciler as suggested in the original Issue (#1912).
I kept the type=admin, so we don't remove some other reconciler managed resources.
For now all Cluster Role Bindings with type=admin will still be removed, this has to change after clusters are upgraded.
Changes proposed in this pull request:

Add reconciler.kyma-project.io/managed-by=reconciler to Cluster Role Bindings for admins
Add filter to remove Cluster Role Bindings with new label

Related issue(s)

#1912

/test pull-provisioner-build

/retest

/retest

/uncc

/unassign @piotrmiskiewicz

Moved to #2209


GH action for deploying on npm

The last publish on npm was 3 months ago, what about a workflow for automate the deployment.

I just realized that there is a workflow,

It was never tested though.


mvc core 2.2 + react 4.0 +webpack4

I created mvc core 2.2 project and added React.AspNet 4.0.0 nuget package. Also i installed those npm packages to project:
   devDependencies": {     "babel-core": "^6.9.1",     "babel-loader": "^7.1.5",     "babel-preset-es2015": "^6.9.0",     "babel-preset-react": "^6.5.0-1",     "clean-webpack-plugin": "^1.0.1",     "css-loader": "^2.1.0",     "json-loader": "^0.5.7",     "jsx-loader": "^0.13.2",     "remarkable": "^1.7.1",     "style-loader": "^0.23.1",     "ts-loader": "^5.3.3",     "webpack": "^4.29.0",     "webpack-cli": "^3.2.1"   },   "dependencies": {     "bootstrap": "^4.2.1",     "jquery": "^3.3.1",     "jquery-validation": "^1.19.0",     "jquery-validation-unobtrusive": "^3.2.9",     "popper.js": "^1.9.9",     "react": "^16.7.0",     "react-dom": "^16.7.0",     "typescript": "^3.2.4"   }
All that dependencies was builded with webpack without errors.
Then I wrote simple react component:
import "../../node_modules/bootstrap/dist/css/bootstrap.css";
import "../css/site.css";
import "../../node_modules/popper.js/dist/popper.js";
import "../../node_modules/jquery/dist/jquery.js";
import "../../node_modules/jquery-validation/dist/jquery.validate.js";
import "../../node_modules/jquery-validation-unobtrusive/dist/jquery.validate.unobtrusive.js"
import "../../node_modules/bootstrap/dist/js/bootstrap.js";
import React from "../../node_modules/react/umd/react.development.js";
import ReactDOM  from "../../node_modules/react-dom/umd/react-dom.development.js";
import ReactModal from"../../node_modules/react-modal/dist/react-modal.js";
global.React = React; class Hello extends React.Component { render() { return (
TEST React.JS
 );   } }
In the _Layout.cshtml i added:
 @RenderSection("Scripts", required: false)
and in the Contacts.cshtml:
@Html.React("Hello", new { name = "TestModa" }) @Html.ReactInitJavaScript()
But after project starts "Contacts" page with react component couldn't load "bundle/index.js" and bootstrap/jquery doesn't work - there are no tag

Hi there 👋
Imports from node modules won’t work without using webpack, please give the webpack sample project a look for supported use cases.

But i'm using webpack with babel... That is part of my webpack.config.js:
entry: './wwwroot/scripts/index.jsx',
module: {
rules: [
{
test: /.js$/,
exclude: [/node_modules/],
loader: "babel-loader"
},
{
test: /.jsx$/,
exclude: [/node_modules/],
loader: "babel-loader"
}
.babelrc:           {  "presets": [  "es2015", "react" ] }
And all stuff (bootstrap, jquery and other imports) were packed without errors.
Can I execute some react components from bundle "index.js" without @Html.React ?


introduce script to package whole package

Let's create a script for packaging the whole package with just one line

let's utilize Makefile for this


emptyDir sizeLimit configuration option

Is your feature request related to a problem? Please describe.

The K8s cluster operated by my institution requires resource and size limits for many objects via kyverno policies.
The mariadb operator utilizes corev1:EmptyDirVolumeSource{} in several places, e.g. S3 (scheduled-) backup and restore.
There does not appear to be spec setting to define a sizeLimit for the emptyDir{}
Describe the solution you'd like

a spec.emptyDirVolumesSizeLimit option or similar could address this issue.
Describe alternatives you've considered

Environment details:

Kubernetes version: 1.29
Kubernetes distribution: Vanilla
mariadb-operator version: 0.29.0
Install method: static manifests
Install flavor: recommended

Additional context

Hey there @tsgit !
Thanks for bringing this up! It makes total sense, we are lacking some configurability here that might impact the compliance of some users.
Here a list of resources where we use EmptyDirVolumeSource and how I suggest we change the CRs to provide a EmptyDirVolumeSource field. For all these cases, we could replace the current corev1.EmptyDirVolumeSource{}  with the EmptyDirVolumeSource provided by the user via the CR.
Backup
apiVersion: k8s.mariadb.com/v1alpha1
kind: Backup
metadata:
  name: backup
spec:
  storage:
    emptyDir:
      medium: Memory
      sizeLimit: 300Mi
    s3:
      bucket: backups
      prefix: mariadb
      endpoint: minio.minio.svc.cluster.local:9000
      region:  us-east-1

https://github.com/mariadb-operator/mariadb-operator/blob/46ef148a2a8bb69b337dd93fccda50cffb6dddd7/api/v1alpha1/backup_types.go#L177
Restore
apiVersion: k8s.mariadb.com/v1alpha1
kind: Restore
metadata:
  name: restore
spec:
  emptyDir:
    medium: Memory
    sizeLimit: 300Mi
  s3:
    bucket: backups
    prefix: mariadb
    endpoint: minio.minio.svc.cluster.local:9000
    region:  us-east-1

https://github.com/mariadb-operator/mariadb-operator/blob/46ef148a2a8bb69b337dd93fccda50cffb6dddd7/api/v1alpha1/base_types.go#L612
MariaDB
apiVersion: k8s.mariadb.com/v1alpha1
kind: MariaDB
metadata:
  name: mariadb
spec:
  storage:
    ephemeral: true
    emptyDir:
      medium: Memory
      sizeLimit: 300Mi

https://github.com/mariadb-operator/mariadb-operator/blob/46ef148a2a8bb69b337dd93fccda50cffb6dddd7/pkg/builder/pod_builder.go#L294
MaxScale
apiVersion: k8s.mariadb.com/v1alpha1
kind: MaxScale
metadata:
  name: maxscale
spec:
  config:
    emptyDir:
      medium: Memory
      sizeLimit: 300Mi

https://github.com/mariadb-operator/mariadb-operator/blob/46ef148a2a8bb69b337dd93fccda50cffb6dddd7/pkg/builder/pod_builder.go#L362
https://github.com/mariadb-operator/mariadb-operator/blob/46ef148a2a8bb69b337dd93fccda50cffb6dddd7/pkg/builder/pod_builder.go#L368
https://github.com/mariadb-operator/mariadb-operator/blob/46ef148a2a8bb69b337dd93fccda50cffb6dddd7/pkg/builder/pod_builder.go#L374
It seems like there are quite a few changes, but this could be a straightforward contribution since the user-specified field can be directly mapped. Contributions are welcomed!

thanks for the quick response. yes, this would address my request.
I would caution about using medium: Memory by default, though. At least for the scheduled backup to s3 the initcontainer creates the mariadb-dump in emptyDir and the mariadb-operator container then copies the completed dump file to S3.
The dump file can easily be tens of GB, which is more readily supported by local storage. I guess any arbitrary default limit would have to be adjusted by the user to match the individual requirements. Thus it becomes part of required configuration adjustments.

I would suggest to consider the option of configuring a temporary PVC/volume where to store data before sending them to S3 server.

This has been partially addressed by https://github.com/mariadb-operator/mariadb-operator/pull/946. Stay tuned for the next release! 🚀
In particular, Backup and Restore CR are now able to override the emptyDir by using the new stagingStorage field:
apiVersion: k8s.mariadb.com/v1alpha1
kind: Backup
metadata:
  name: backup
spec:
  mariaDbRef:
    name: mariadb
  schedule:
    cron: "*/1 * * * *"
    suspend: false
  maxRetention: 720h # 30 days
  # ignoreGlobalPriv: true
  compression: gzip
  storage:
    s3:
      bucket: backups
      prefix: mariadb
      endpoint: minio.minio.svc.cluster.local:9000
      region:  us-east-1
      accessKeyIdSecretKeyRef:
        name: minio
        key: access-key-id
      secretAccessKeySecretKeyRef:
        name: minio
        key: secret-access-key
      tls:
        enabled: true
        caSecretKeyRef:
          name: minio-ca
          key: ca.crt
  stagingStorage:
    emptyDir:
      sizeLimit: 300Mi

You can also use an staging area to restore S3 backups via the Restore CR:
apiVersion: k8s.mariadb.com/v1alpha1
kind: Restore
metadata:
  name: restore
spec:
  mariaDbRef:
    name: mariadb
  targetRecoveryTime: 2023-12-19T09:00:00Z
  s3:
    bucket: backups
    prefix: mariadb
    endpoint: minio.minio.svc.cluster.local:9000
    region:  us-east-1
    accessKeyIdSecretKeyRef:
      name: minio
      key: access-key-id
    secretAccessKeySecretKeyRef:
      name: minio
      key: secret-access-key
    tls:
      enabled: true
      caSecretKeyRef:
        name: minio-ca
        key: ca.crt
  stagingStorage:
    emptyDir:
      sizeLimit: 300Mi

As discussed in https://github.com/mariadb-operator/mariadb-operator/issues/745#issuecomment-2252887665, we are still missing some emptyDir fields in the MariaDB and MaxScale resources. Contributions are welcome!


faster ObjectId.toHexString method

I found that the ObjectId.toHexString method was taking up a significant amount of time in profiling. This version seems to be about 30x faster.

Hi Steven,
org.bson.types.ObjectIdTest#testHexStringConstructor is failing with this patch

Sorry about that - This updated version is 4x faster than the previous and passes that test.

Hi @stevenbenjamin looks like its still failing on travis, this time it looks like its the check style rules.
Or you ok to fix? It'll probably be worth squashing and rebasing into a single commit.
Thanks Ross.


[bug] logging functions (log.info, log.warning, etc) silently ignored entries

in Log.assignSeverityToEntries_, this line
var entriesClone = [].slice.call(entries);
will result in an empty array if "entries" is a single entry, while all the logging functions like Log.info, Log.warning etc depends on its ability to process single entry objects. only Log.write can successfully write single entry objects at this time.

Thanks for reporting! I'm working on a PR.

PR sent: #1292 - feel free to try it out:
$ npm install --save stephenplusplus/gcloud-node#spp--1290


Update to provider v2.5.0

Supersedes #139 and #137.

Looks like this is failing in a very similar way to how @lukehoban saw. I wonder if the test framework has added new assertions that have been pulled in somehow. I'll see what I can reproduce locally.

Updating pulumi-terraform and pulling in v2.5.1 has fixed this.


Schedule of change request - documentation format issue

Were using:
ServiceNow: New York release - patch7-02-25-2020_03-02-2020_2243!
DevOps plugin: 4.161.0
per Integrate with ServiceNow change management - Configure a Release Pipeline
We believe from trial and error and SN variable configuration options the supported format are:

note: no z option it seem for the last format set
We can only get MM-dd-yyyy hh-mm-ss to work.
The documented format of yyyy-MM-ddTHH:mm:ssZ fails with a ServiceNow, error as do other formats per above.
As an aside we set these dynamically (with Powershell):
$planned_start_time = (get-date).AddHours(4)
$planned_end_time = $planned_start_time.AddHours(1)
$requested_time = (get-date)

$time_format = "MM-dd-yyyy HH:mm:ss"

Write-Host "##vso[task.setvariable variable=planned_start_time] $($planned_start_time.ToString($time_format))"
Write-Host "##vso[task.setvariable variable=planned_end_time] $($planned_end_time.ToString($time_format))"
Write-Host "##vso[task.setvariable variable=requested_time] $($requested_time.ToString($time_format))"

We're also using the REST api to update the release so it's picked up in other stages, given the issue #4729

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

ID: d07f29c5-affb-47bb-5f68-fc49e691c741
Version Independent ID: 661d3781-8784-868d-261f-1e994a154a35
Content: Control deployments by using ServiceNow - Azure Pipelines
Content Source: docs/pipelines/release/approvals/servicenow.md
Product: devops
Technology: devops-cicd-release
GitHub Login: @azooinmyluggage
Microsoft Alias: shashban

Please see comment here https://github.com/MicrosoftDocs/azure-devops-docs/issues/4729

@azooinmyluggage Can you take a look?


Kestrel doesn't run when Webpack-dev-server is used with the Task Runner

So I'm trying to get webpack to load up the dev-server (to get Hot module loading / etc going), and once that Task is "running" it basically stops the rest of the process.
Not until that Task is stopped (pushing the X), then Kestrel web server finally opens up.

The long details:
I have it loading up StaticFiles & DefaultFiles, all of that is working fine.
app.UseDefaultFiles();
app.UseStaticFiles();

Now the problem happens here, let's say I add the npm script server:dev:hmr to run After Build.
When running web (F5 / whatever), it starts running the script, loads up the webpack devServer, loads the modules, and then STAYS running. In which it never fires up the actual Kestrel server.

Now at this point if I load up localhost:5000 everything works, HMR, you name it. But of course Kestrel didn't boot up so the API or anything else doesn't.
If push that X in the corner and stop it, then... kestrel finally opens up, but at that point it's too late everything else is lost.
Any idea what could be causing this?

Are you using https://github.com/webpack/webpack-dev-server?

Can you share more details on how you're trying to run Kestrel via webpack?

Well right now I have the project opening web / kestrel instead of IIS Express.
Then in the Task Runner, I have it connected to an npm script "after build" that executes webpack:
webpack --config config/webpack.dev.js --profile --hot

Which in turn fires up webpacks devServer
  devServer: {
    port: 3000, // doesn't matter if I change this to 5000 or anything
    host: 'localhost',
    historyApiFallback: true,
    watchOptions: {
      aggregateTimeout: 300,
      poll: 1000
    }
  }

Basically it gets stuck right here ^.
In Task Runner it'll stay at "running" state, Kestrel never ends up Firing up. Once I close & stop this Task, then all of a sudden it fires up.

Are you running web.cmd produced by dnu publish? Does everything work as expected if you manually run web.cmd manually?

@halter73 Yes when I run dnx web from command line it's fine, or if I just remove the npm script that starts up webpack & dev-server. It's strange that the script stalls the entire process, almost as if it's hijacking it. Ideally I just want webpack's devServer (for the client-side) to run simultaneously with Kestrel (for the REST Web API).
Have you guys had any luck with this at all?

I haven't tried the webpack dev server so I have no experience with this, but it seems unlikely to me that this is an issue with Kestrel given you description.
Are you sure that dnx is even running at all? If you replace dnx web with some other command, does that run?

Putting this in 1.0.0 for further discussion.

@MarkPieszak try this solution
dnx web & webpack --config config/webpack.dev.js --profile --hot

I have a dotnet cli static server for Angular and run / live reload using nodemon see here
https://github.com/spboyer/ng2-kestrel-appserver/blob/master/package.json

@spboyer I'll give it a shot tomorrow morning! Thanks

@spboyer So what I have so far is that I've tried putting the repo Angular2 Webpack starter into a blank .NET Core project.
I renamed wwwroot into what I needed / etc.
I have it loading up StaticFiles & DefaultFiles, all of that is working fine.
app.UseDefaultFiles();
app.UseStaticFiles();

Now the problem happens here, let's say I add the npm script server:dev:hmr to run After Build.
When running web (F5 / whatever), it starts running the script, loads up the webpack devServer, loads the modules, and then STAYS running. In which it never fires up the actual Kestrel server.

Now at this point if I load up localhost:5000 everything works, HMR, you name it. But of course Kestrel didn't boot up so the API or anything else doesn't.
If push that X in the corner and stop it, then... kestrel finally opens up, but at that point it's too late everything else is lost.
Am I missing something?

@MarkPieszak Do you have a github repo for this so I/we can see the code? Would be easier to assist

So the issue is that DNX is waiting for your script to complete, but it never does because dev-server is blocking? Not sure if there's much to do about that.

@khellang Is there anyway to let it just open up Kestrel right away instead of waiting for the script to "finish"? Right now I basically am trying to get the script to run on Project open, that way Kestrel can open up on it's own.
@spboyer Making a github repo now, great idea

@MarkPieszak What do you mean you want to open up Kestrel right away? I think you're "abusing" the post-build script in order to do this. Those scripts are meant to do some work and finish in a timely manner, not start a HTTP server and block. I think you'd be better off just starting the dev-server from a separate console and keep the build scripts to... well, build stuff :wink:

@MarkPieszak This is basically why Kestrel (or the dnx web command) isn't executing; https://github.com/aspnet/dnx/blob/9de4ce9f45564621a432b4728a8787c0b53a0f03/src/Microsoft.Dnx.Tooling/Scripts/ScriptExecutor.cs#L120. DNX is shelling out to run the scripts you've specified, but since the dev-server is before dnx web, it's blocking and won't return an exit code. The same would be a problem if you switched the order of the commands. Then Kestrel would block and the dev-server wouldn't launch.

@khellang  Ahh there it is! That's the one doing it ;)
Is there a possibility to add a possibility to opt-out of that for certain tasks in the task-runner?
Yes it works if I do it separately I think I'll just have to stay with that path. Thank you though I guess that solves the problem since Kestrel is working as designed :(

@MarkPieszak Yeah, this certainly isn't a Kestrel issue. If anything, it's a DNX/DNU issue, but I don't think it matters much, since it's dead anyway :wink:
To be honest, I really don't think this is a "problem" you want to solve. As I said; this is really abusing the script hooks of DNU.
The script hooks are there so you can do a piece of work before or after some event and then exit; "move some files", "restore NPM modules", "run gulp", whatever. They're not designed to fire up stuff that'll never exit. What if the script failed? Has it finished yet? When do you go ahead with the next step in the build/pack/publish pipeline? You simply need the exit code in order to know whether it's "safe" to go ahead with the next step.
Also, say that you had fire-and-forget within scripts - would you want to? You realize that would mean that for each build, you would try to start a new dev-server, where each one but the first would fail to bind to the port because it's already in use?

Very very true. I'll have to rework my whole logic when trying to attach all of these processes with Kestrel and such. You're right at least now we know it's not a Kestrel issue I'll close out for now. Thanks for all the input and clarification though.
After literally spending the past few days smashing my head against the desk trying to get all of this working I've realized that I definitely need to re-think it all. Haha
Thanks everyone for the feedback, I'll create a Repo of webpack / dev-server and everything working somewhat together once I do figure out some other solution. Just incase you all ever need a template project for it!
Cheers. :beers:


Travis CI: Simplify using ${SUDO} and ${USER_FLAG}

Simplify by creating ${SUDO}  and ${USER_FLAG} environment variables
Use the pip associated to the current python

I see.
Should be easier to install a Python on the Go image or a Go on the Python image?
Anyway, thanks for tackling this.


function(s) to plot organisations

In principle best practice is to simply use tidygraph functionality for this but it may be useful to provide a very basic function for new users and/or the shiny app to use.  See blog post here - https://www.data-imaginist.com/2017/announcing-ggraph/

Added in #11 i.e. version 0.1.0