SFB-216: Remove static paths from dispatcher

Issue
SFB-216
Description
When creating a new route in our frontend /forms all specific uri's are not available when going directly to them. Backend returns a 404. We found out that there is a static path defined named /forms in the dispatcher. This path is never used just as all the static routes.
All static paths are removed.
Test

See if the frontend application is using any of the removed paths in the dispatcher file.

@JonasVanHoof
The apps you checked are using fastboot. A SSR solution for emberjs. The routes you removed are needed for our app since we serve those files statically. I tried removing the /forms/ route only but still this does not work as there are files served statically from that directory.
Go with second proposed solution: Rename test file route in the frontend


usage summary in handcode opt

usage:
147.50 ms: ['conv2d bw'] (114 times)
126.90 ms: ['conv2d'] (53 times)
24.79 ms: ['relu bw', 'conv2d bw'] (16 times)
23.58 ms: ['relu bw', 'conv2d bw', '__add__'] (14 times)
17.34 ms: ['relu bw', 'batchnorm bw'] (26 times)
15.36 ms: ['__sub__', '__mul__ bw', '__add__', 'relu bw', 'batchnorm bw'] (17 times)
14.83 ms: ['__sub__', '__mul__ bw', '__add__', 'batchnorm bw'] (35 times)
14.40 ms: ['__sub__', 'batchnorm bw'] (35 times)
11.82 ms: ['__sub__', 'batchnorm', 'batchnorm bw'] (16 times)
11.72 ms: ['__sub__', 'relu bw', 'batchnorm bw'] (17 times)

we should unify these files.


crash for on ios for missing resource

this is the exeption
Uncaught Kotlin exception: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: drawable/splash_bg.xml
it runs on android very well but on ios side it just not regonize the "drawable/splash_bg.xml" and crash

There is a middle path of "/compose-resources/" in  UIKitResourceImpl for iOS, You can add this  path to your resource path.

What Compose Multiplatform version do you use? Can you provide a reproducible sample?

Try a solution described here. You don't need to create compose-resources manually.
Let us know, if it helps. If it doesn't help, please provide a sample with the issue.

What Compose Multiplatform version do you use? Can you provide a reproducible sample?

kotlin.version=1.9.0
agp.version=8.0.2
compose.version=1.5.0

Can you share a project (better a minimal version of it) where the issue is reproducible?

The problem get fixed automatically

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


super slow in iPad 3 Retina iOS 9

The draw is super slow, and the undo/redo it's impossible use. Very laggy. Do you know why this happens ?

not sure - I haven't had any reports of this until now. Is this when you build from source, from the app store, or both?

From the source. It's unusable. I can make a video if you want.

yeah, a video would be great. Also using the Profiler and seeing where all that time is being spent. Unfortunately I sold my iPad 3 a while ago so I won't be able to repro myself.

I'll upload it later 👍

Here's a quick example, it starts lagging up when I undo.
If I have photos or crops, it stays as the end of the video, super laggy :/
IMG_0244-1.mp4.zip

I'd be interested in what the Profiler instrument says is going on. I wonder if its maxing out the CPU and lagging b/c of that, or if CPU is relatively low throughout and it's the GPU getting slammed.
If the Profiler doesn't show anything obvious as the bottleneck, the only option might be to swizzle the [scale] method on UIScreen to return 1 instead of 2. That'd lower the pixels used to 1/4 what it's trying to process now, which I suspect would speed things up considerably. That should be an easy way to get performance up without digging deeper into the root cause. Without access to an iPad 3 I think that's the best advice I can give :/

I deleted
dispatch_release(sema1);
and so one, because xcode says it's ARC forbids, can be from it ?

That wouldn't cause it - it's fine to remove those lines. it's something w/ OpenGL, but i can't put my finger on it. i saw something similar ~ a year ago when I was working on iPad Pro support. It's very possibly related to #1551


The official document address is invalid！！

The official document address is invalid

You can raise an issue on the official repo: https://github.com/uidotdev/usehooks


Updating FAQ pages

I opened a fork and made a new branch so that I could update a few of the variant co-occurrence FAQ pages. While I have a few other changes to make, this commit is simply changing the preprint link in one of the FAQs to the publication link.
Other changes will be added as I update other FAQ/help topic pages.

This should be all of the changes that I plan to make at this point.

Thanks for doing this Kaitlin and for the review KC :)
I just added a smol commit to update a snapshot to appease the CI, and since it seems like activity is complete on the changes front will merge this into main.


Sidebar refuses to resize, shrinks, and gets stuck when resizing (Linux Mint 19)

Description and Reproduction Steps
When I try to resize the sidebar from the default size:

It fails to resize to the specified dimension (if anything, it just grows by a few pixels):

When I click again to try again, the sidebar hides itself:

However, when I try to resize from here it either a) does nothing or b) opens the sidebar to a very small, unmanageable size:

Sometimes, and I'm not sure when and when not, there is a small tab poking out (not sure if this is intended or not) like so:

I encountered this error on my first-ever install of Brackets within 30 seconds of use. See Attempted Fixes for more information.
TL;DR
Expected behavior: For the sidebar's width to follow my cursor and stop resizing when the mouse button was lifted.
Actual behavior: The sidebar does not move with the mouse, and when the mouse button is lifted, the <-> resizing cursor remains visible wherever I put the mouse on the window. Then, clicking again on the sidebar border, the sidebar hides itself. After repeating some number of times, the sidebar, when opening, only opens by about 10-30 pixels and will not grow much more (size seems arbitrary when dragging open).
Attempted Fixes
Restarting Brackets does not fix the problem -- the sidebar stays in its same position.
Running with extensions disabled does not fix the problem.
Changing from my NVidia card to the integrated Intel graphics does not fix the problem.
However, deleting ~/.config/Brackets/cef-data, state.json, and brackets.json does solve the problem until I try to resize the sidebar again.
Versions
OS: Linux Mint 19 Tara
Linux Kernel: Linux 4.15.0-24-generic
Brackets: 1.13.0-17696 (Installed from snap)

If there's anything I can do to fix the bug and someone can explain the work to be done, I'd be happy to.

Check for the libcurl3 and libpango1.0-0 dependencies.
I tried to reinstall brackets and got these missing dependency errors. After installing the required dependencies Brackets is working fine

I just noticed that if I run Brackets through the console, I get the following errors:
[0921/113742:ERROR:browser_main_loop.cc(261)] Gtk: Locale not supported by C library. 	Using the fallback 'C' locale. [0921/113743:ERROR:browser_main_loop.cc(261)] <unknown>: Pixbuf theme: Cannot load pixmap file /usr/share/themes/Mint-Y-Dark/gtk-2.0/menubar-toolbar/menubar-dark.png: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: /snap/core/current/lib/x86_64-linux-gnu/libz.so.1: version ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)
(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
[0921/113743:ERROR:browser_main_loop.cc(239)] GTK theme error: Invalid borders specified for theme pixmap:
/usr/share/themes/Mint-Y-Dark/gtk-2.0/menubar-toolbar/menubar-dark.png,
borders don't fit within the image
(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_n_channels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels_with_length: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_n_channels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels_with_length: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
`
I'm just a casual user -- I'm not very well versed on GTK and Linux libraries and stuff, but I hope this helps in some way.

I got the same issue here under Ubuntu 18.04

Just install brackets from the main repo

sudo add-apt-repository ppa:webupd8team/brackets
sudo apt update
sudo install brackets

[0921/113742:ERROR:browser_main_loop.cc(261)] Gtk: Locale not supported by C library.
Using the fallback 'C' locale.

It seems like this issue is related to #14581 (comment), which can be fixed by installing the language pack in Ubuntu.
See my comment here: #14581 (comment)

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.

vim  ~/.config/Brackets/state.json +1569
change the size from whatever it is to 300 and open brackets again..
"healthDataNotificationShown": true,
"sidebar": {
"visible": true,
"size": 300
},

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.
This should surely work.
happy coding

Omg thank you so much man

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.
This should surely work.
happy coding

Thanks So Much! That Saved My Life ^^

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.
This should surely work.
happy coding

LOVE YOU

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly.
This should surely work.
happy coding

Worked for me. Thanks a lot !


Add LTREE Path in Groups

We should have Postgres LTREE for groups https://www.postgresql.org/docs/current/ltree.html, which can use to query the group in hierarchy.
Implmentation

[x] Create Extension LTREE in postgres
[x] Add a column with name path and type as LTREE
[x] While inserting new row

If the inserting new row have no parent . path column should have value of id
If the inserting new row have parent, Get the path column should have parent path  + . + id

[x] Retrieve Ancestors / Parents  and Descendants / Children by using the below given examples as reference
[x] If groups retrieve type is tree, then use nlevel to retrieve with level (depth) and let the max level be 5 or 10

Need to think about limits and offest if group retrieve type is tree , May be we can refer Magsitrala v0.12 implementation
Ideas / Approaches :

By default we can show level 1 with pagination limit and offset. Stop support for view multiple level in retrieve. ( For this we already have get parent and children endpoints)
Retrieve groups with type tree supports only level and not support offset and limit

[ ] Use subpath to change parent. https://www.postgresql.org/docs/current/ltree.html#LTREE-FUNC-TABLE https://patshaughnessy.net/2017/12/14/manipulating-trees-using-sql-and-the-postgres-ltree-extension
[ ] Handle parent delete case. When parent is removed, in all path we should remove parent id

Example Group table

id
parent_id
domain_id
name
description
metadata
created_at
updated_at
updated_by
status
path

327b7cb1-15cc-4676-97a1-eebf42160e05

5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_1

{}
2024-04-03 15:41:20.425

0
327b7cb1-15cc-4676-97a1-eebf42160e05

ef5afb1b-942d-48a7-86c7-52fb00f2fb80
327b7cb1-15cc-4676-97a1-eebf42160e05
5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_2

{}
2024-04-26 11:32:06.402

0
327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80

c8893978-74e2-49c1-bb3d-3678fc0cad2d
327b7cb1-15cc-4676-97a1-eebf42160e05
5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_2.1

2024-04-26 11:32:25.219

0
327b7cb1-15cc-4676-97a1-eebf42160e05.c8893978-74e2-49c1-bb3d-3678fc0cad2d

5c6de392-6dc4-46fc-8e2c-e6f4ce4fffab
ef5afb1b-942d-48a7-86c7-52fb00f2fb80
5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_3

{}
2024-04-26 11:32:25.219

0
327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80.5c6de392-6dc4-46fc-8e2c-e6f4ce4fffab

72e43862-86bb-4d01-9328-75734be53a3b
ef5afb1b-942d-48a7-86c7-52fb00f2fb80
5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_4

{}
2024-04-26 11:32:29.941

0
327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80.72e43862-86bb-4d01-9328-75734be53a3b

Above table in SQL
INSERT INTO public."groups" (id,parent_id,domain_id,"name",description,metadata,created_at,updated_at,updated_by,status,"path") VALUES
	 ('327b7cb1-15cc-4676-97a1-eebf42160e05',NULL,'5a4faa5e-603d-4091-b0ec-5b7c3c894add','group_1','','{}','2024-04-03 15:41:20.425',NULL,NULL,0,'327b7cb1-15cc-4676-97a1-eebf42160e05'::ltree),
	 ('ef5afb1b-942d-48a7-86c7-52fb00f2fb80','327b7cb1-15cc-4676-97a1-eebf42160e05','5a4faa5e-603d-4091-b0ec-5b7c3c894add','group_2','','{}','2024-04-26 11:32:06.402',NULL,NULL,0,'327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80'::ltree),
	 ('c8893978-74e2-49c1-bb3d-3678fc0cad2d','327b7cb1-15cc-4676-97a1-eebf42160e05','5a4faa5e-603d-4091-b0ec-5b7c3c894add','group_2.1',NULL,NULL,'2024-04-26 11:32:25.219',NULL,NULL,0,'327b7cb1-15cc-4676-97a1-eebf42160e05.c8893978-74e2-49c1-bb3d-3678fc0cad2d'::ltree),
	 ('5c6de392-6dc4-46fc-8e2c-e6f4ce4fffab','ef5afb1b-942d-48a7-86c7-52fb00f2fb80','5a4faa5e-603d-4091-b0ec-5b7c3c894add','group_3','','{}','2024-04-26 11:32:25.219',NULL,NULL,0,'327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80.5c6de392-6dc4-46fc-8e2c-e6f4ce4fffab'::ltree),
	 ('72e43862-86bb-4d01-9328-75734be53a3b','ef5afb1b-942d-48a7-86c7-52fb00f2fb80','5a4faa5e-603d-4091-b0ec-5b7c3c894add','group_4','','{}','2024-04-26 11:32:29.941',NULL,NULL,0,'327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80.72e43862-86bb-4d01-9328-75734be53a3b'::ltree);

Get Parents (Ancestors)
select *, nlevel(path) from "groups"   where '327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80' <@ path;

or
select *, nlevel(path) from "groups"   where ( select path from "groups" where id = 'ef5afb1b-942d-48a7-86c7-52fb00f2fb80') <@ path;

Output

id
parent_id
domain_id
name
description
metadata
created_at
updated_at
updated_by
status
path
nlevel

ef5afb1b-942d-48a7-86c7-52fb00f2fb80
327b7cb1-15cc-4676-97a1-eebf42160e05
5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_2

{}
2024-04-26 11:32:06.402

0
327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80
2

327b7cb1-15cc-4676-97a1-eebf42160e05

5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_1

{}
2024-04-03 15:41:20.425

0
327b7cb1-15cc-4676-97a1-eebf42160e05
1

Get Parents Count
select count(*) from "groups"  where  '327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80' <@ path;

or
select count(*) from "groups"  where  ( select path from "groups" where id = 'ef5afb1b-942d-48a7-86c7-52fb00f2fb80') <@ path;

Output

count

2

Get Children (Descendants)
select *, nlevel(path)from "groups"   where '327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80' @> path;

or
select *, nlevel(path)from "groups"   where ( select path from "groups" where id = 'ef5afb1b-942d-48a7-86c7-52fb00f2fb80') @> path;

id
parent_id
domain_id
name
description
metadata
created_at
updated_at
updated_by
status
path
nlevel

ef5afb1b-942d-48a7-86c7-52fb00f2fb80
327b7cb1-15cc-4676-97a1-eebf42160e05
5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_2

{}
2024-04-26 11:32:06.402

0
327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80
2

5c6de392-6dc4-46fc-8e2c-e6f4ce4fffab
ef5afb1b-942d-48a7-86c7-52fb00f2fb80
5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_3

{}
2024-04-26 11:32:25.219

0
327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80.5c6de392-6dc4-46fc-8e2c-e6f4ce4fffab
3

72e43862-86bb-4d01-9328-75734be53a3b
ef5afb1b-942d-48a7-86c7-52fb00f2fb80
5a4faa5e-603d-4091-b0ec-5b7c3c894add
group_4

{}
2024-04-26 11:32:29.941

0
327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80.72e43862-86bb-4d01-9328-75734be53a3b
3

Get Children count
select count(*) from "groups"  where  '327b7cb1-15cc-4676-97a1-eebf42160e05.ef5afb1b-942d-48a7-86c7-52fb00f2fb80' @> path;

or
select count(*) from "groups"  where ( select path from "groups" where id = 'ef5afb1b-942d-48a7-86c7-52fb00f2fb80') @> path;

count

3

@rodneyosodo and @arvindh123
Using LTREE to fetch groups as compared to using Recursion offers better performance.
I used retrieve all parents as an example, retrieving up to level 20 of the groups and here are the results.
Operation: Fetch Parents:
10 groups

Metrics
LTREE
Recursion

Time
0.386ms
1.03ms

30 groups

Metrics
LTREE
Recursion

Time
0.703ms
0.986ms

45 groups

Metrics
LTREE
Recursion

Time
0.832ms
1.96ms

Can you send the branch you used for testing?

It is on this PR: https://github.com/absmach/magistrala/pull/2223https://github.com/absmach/magistrala/pull/2223

Additional remarks on this:
Using LTREE has a limitation since the trigger that creates the path in the db causes a significant use of the stack memory. This implies that creating more than 50 groups in a single family tree, i.e., descendants up to the 200th + level, which is possible with the current Recursive implementation.


Implement msg macro to simplify configuring serialization

Closes #1307 by implementing this suggestion.
Builds on top of #1339

I'm just wondering if msg is a great name for both messages and query responses … But I don't have a good answer or better idea right now.

Yeah, and I think this will also be used for arbitrary other types that happen to be included in any messages/responses. Other ideas: cw_serde, cw_serialize, send, sendable?

Added a MIGRATING.md entry!


Patch of Calendar Event From All Day to Start Time Date can't be set to Null

If you try to change a CalendarEvent from an All Day to Non All Day Event you will receive an error Invalid startdatetime.  This is because in order to set DateTime Date must be null but setting date to nothing in the dotnet api causes the date to not be serilized.  Same issue in java api see https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3110.
Work around was to create my own EventDateTime inherit from Google.APIS.Calendar.v3.Data.EventDateTime and set the JSONProperty NullValueHandling.Include on the date property so it is serialized as null. Now when I need to patch I use my EventDateTime class and not the google EventDateTime  class so date goes as null. Same needs to be done to DateTime field so going the other way works as well.
myEvent.Start = New CTMEventDateTime() ' Had to Overload to send Date as null on patch 'New GoogleAPI.Calendar.v3.Data.EventDateTime
Imports Newtonsoft.Json
Imports Newtonsoft.Json.Linq
Public Class CTMEventDateTime
    Inherits Global.Google.Apis.Calendar.v3.Data.EventDateTime

    <JsonProperty("date", NullValueHandling:=NullValueHandling.Include)> _
    Public Overrides Property [Date] As String
        Get
            Return MyBase.[Date]
        End Get
        Set(value As String)
            MyBase.[Date] = value
        End Set
    End Property
 <JsonProperty("dateTime", NullValueHandling:=NullValueHandling.Include)> _
    Public Overrides Property DateTimeRaw As String
        Get
            Return MyBase.DateTimeRaw
        End Get
        Set(value As String)
            MyBase.DateTimeRaw = value
        End Set
    End Property
End Class

Hope this helps someone else
Since these field are mutual exclusive one must be null if the other is set Source needs to be patched to add NullValueHandling.Include to the JsonProperty so null is always sent

Closing as stale, and because a work-around is possible.  Please re-open if this is not the case.


Fix broken UE 5.2 build on Clang platforms (Linux, Android, macOS, iOS)

ue5-main broke on UE5.2 / Clang platforms with commit https://github.com/CesiumGS/cesium-unreal/commit/205edbbd4f00a46f62c64ea97f557aac36364003, but it's really not clear why. I can't see anything wrong with the commit itself. I was able to fix it by adding some missing includes. Perhaps the addition of a new (test) source file just made the Unreal Built Tool reorganize how it grouped various source files together for the unity build process, exposing the missing include.
Also some formatting changes here to make clang-format happy.

Thanks for the pull request @kring!

:heavy_check_mark: Signed CLA found.

Reviewers, don't forget to make sure that:

[ ] Cesium for Unreal Samples works.

I'm merging this because it unbreaks main.


[Tests-Only] Updated core commit id to the latest up to 2020/04/21

With this PR:

core commit ID as testrunner is updated to the latest up to the date of PR creation.
part of https://github.com/owncloud/QA/issues/662

CI had some strange errors in docker-arm... pipelines like https://drone.owncloud.com/owncloud/ocis/4616/77/5
I rebased to get up-to-date CI.


Code generation assumes Notifiers have a public unnamed no-parameter constructor

Describe the bug
Code generation expects Notifiers to have a public unnamed no-parameter constructor as a call to it is included in the generated code.
I don't want to have a public constructor as I don't even want to make it possible to instantiate them outside of the library they are defined in. I often do it like this:
@riverpod
class ExampleNotifier extends _$ExampleNotifier {
    ExampleNotifier._();
    // ...
}

The code generates fine but the app doesn't compile as Riverpod generator generates this:
final exampleNotifierProvider =
    NotifierProvider<ExampleNotifier, ExampleState>.internal(
  ExampleNotifier.new,
  ...

Expected behavior
The generator is more flexible with constructors and doesn't force me to write code the way I don't to.

Not a bug. That's part of the protocol.
At best, the generator should throw a custom error. But an error is expected.

Not really clear to me what 'protocol' and why this is necessary. Everything works just fine when I edit the generated code myself (just for the sake of testing). Or is it impossible to make it more flexible?
I any case, the library is very opinionated, that's fine, but it also kind of forces me to write code in a specific way, that's pretty invasive.

The generator currently expects an empty default constructor.
Sounds like you want something else. Rather than a bug report, you should make a feature request and explain why you want such a flexibility.
At the moment, there's nothing wrong going on.

Well, the generator did generate invalid code that didn't compile, and it neither warned about it, nor failed, it just blindly generated broken code. I think this is a bug, I'll create another ticket.
The documentation doesn't mention explicitly that a public constructor is a requirement, either (if it does, I'm sorry, I must have missed it).

I've already made an issue about improving the error handling. But this is still part of the specs.


use thiserror to derive std::error::Error, bump version number

I've read your changes, and adding error compatibility with the std library is a great idea. Thank you for the pull request!


Fixes gazebo gripper action bug

This pull request fixes a bug that was introduced by #147. In #147 the finger collision geometries were replaced by more accurate meshes. These more accurate messages however broke the gripper_action action. This commit migrates back to using geometries for the finger collision geometries. The action server works fine when geometries are used.

@gollth I verified 936ef8ed5d7eee7499fe5a11d6233f84e3d4eaf8 and the problems are gone. The simulated gripper now works perfectly with the franka_gripper/move action. I however noticed that the franka_gripper/gripper_action still doesn't give the desired behaviour (see gif below and https://github.com/frankaemika/franka_ros/pull/173#issuecomment-966255718). I will therefore keep #172 open but close #180 and #179.

I think the behaviour that was pointed out by @rhaschke in https://github.com/frankaemika/franka_ros/pull/173#issuecomment-966255718 would be the desired behaviour.

IMO, the gripper action should realize position-control as long as measured efforts are smaller than max_effort. Otherwise, it should switch to force-control and maintain the given (grasp) force.


Added a JOptionPane to input semiPrimes

Added a JOptionPane to input semiprimes and checks for invalid input exceptions.

Can you provide a screenshot for your work?

not sure what you mean.

Screenshot the GUI I meant 😂

Haha sorry

Ill hack at it tomorrow. Give me more info on what you would life it to look like?


Update chart coroot to 0.13.6

This PR contains the following updates:

Package
Update
Change

coroot
patch
0.13.5 -> 0.13.6

Release Notes

coroot/helm-charts (coroot)
v0.13.6
Compare Source
A monitoring and troubleshooting tool for microservice architectures.

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.


Improper rendering of LaTeX inside markdown cells.

Environment data

VS Code version: 1.58.0-insider
Jupyter Extension version (available under the Extensions sidebar):  2021.7.928000153
Python Extension version (available under the Extensions sidebar): 2021.5.926500501
OS (Windows | Mac | Linux distro) and version: Ubuntu Linux 20.04
Python and/or Anaconda version: 4.10.1
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Conda
Jupyter server running: Local

Expected behaviour
The following is expected when a latex equation is entered in a markdown cell.

Actual behaviour
In a markdown cell, enclosing an equation with '$$' produces the following output, instead of the expected LaTeX output.

Sometimes the equations become difficult to read depending on their complexity.

Steps to reproduce:

Create a markdown cell in VScode insiders, in a jupyter notebook.
Enter the following:$$
\Gamma(a) = \int_0^{\infty} x^{a-1}e^{-x}dx
$$

Run the cell

Unfortunately I'm unable to reproduce this behavior:

Does this match the interface you're seeing?

Unfortunately I'm unable to reproduce this behavior:

Does this match the interface you're seeing?

Yes, it matches exactly.

VS Code is actually handling rendering of LaTeX now.


maxLength for text-input box

Hi I was wondering if there is a property to set the max length of the text-input so that when the user enters a certain amount of letters they will not be able to enter any more?
thanks a lot!

Hey @xuansehyun , you should just be able to set the attribute maxLength on your TextField element like so:
<TextField
    style={styles.textfield}
    hintText="Hint Text (MultiLine)"
    multiLine={true}
    maxLength="2" />

Let me know if that doesn't work.

It works for me, you can close this I think :)

@otroboe I agree.

<textarea class="MuiInput-input-113 SendAnnouncementFormComponent-textFieldTextInput-92 MuiInput-inputMultiline-117" id="announcementText" name="text" placeholder="Update Text" type="text" rows="10" aria-required="false" aria-invalid="false"></textarea>

I tried this and it didn't work.  The maxLength ended up on a div, not the textarea.  Here's my code that generated the above HTML.
<TextField
              InputProps={{
                id: 'announcementText',
                disableUnderline: true,
                multiline: true,
                rows: 10,
                classes: {
                  root: textFieldTextRoot,
                  input: textFieldTextInput,
                },
              }}
              maxLength="2"
              name="text"
              type="text"
              value={this.state.text}
              onChange={this.handleInputChange}
              placeholder="Update Text"
              style={{ display: 'block' }}
            />

I am also having trouble getting this working with the betas, and it definitely seems like it should be a property directly on the component API.

JarLowrey answered it here: https://github.com/mui-org/material-ui/issues/5309
For the reference I mention it here too.
To limit the number of input length 'e.g. 10' in TextField in material-ui@next , try this code
<TextField   inputProps={{     maxLength: 0,   }} />

Note that InputProps and inputProps are two different properties of TextField. This fact wasted a few hours of my life.
<TextField
  InputProps={{
    disableUnderline: true
  }}
  inputProps={{
    maxLength: 10
  }}
/>

Note that InputProps and inputProps are two different properties of TextField. This fact wasted a few hours of my life.
<TextField
  InputProps={{
    disableUnderline: true
  }}
  inputProps={{
    maxLength: 10
  }}
/>

In the same way min length property  also works right?

@skirankumar7 thanks for the post, i just spent an hour trying to figure out what i was doing wrong.

@kenecaswell You just saved a life 👍 Thanks bro !!

If there is type='number', maxLength won't work
<TextField
type='number'
inputProps={{
maxLength: 10,
}}
/>
It should be:
<TextField
inputProps={{
maxLength: 10,
}}
/>

A better solution without any attribute (in case they does not work).
In your TextField's onChange(), update your state only if the length of the value is equal to <YOUR_MAX_LENGTH>.
onChange = (event) => {
      // Check if the textfield's that
      // you're getting has a name attribute which has a value of <YOUR_UNIQUE_IDENTIFIER>
if (event.target.name === <YOUR_UNIQUE_IDENTIFIER>
            && event.target.value !== <YOUR_MAX_LENGTH>) {
            // Update your state here
      }
}

OnChange is never a better solution as it will still fire the event even after the limit has reached, it might seem like nothing with modern CPU but we should design our systems to enforce restrictions at the HTML level if we can. maxLength is HTML attribute and cross browser compatible even without JavaScript

inputProps={{ maxLength: 365 }} works for me.

I want to use type='number', so the only solution for me is to use substring at setState part.
Example:
  const [deposit, setDeposit] = React.useState<number | null>(null);
  const disabled = deposit == null || deposit < 0 || deposit === 0;

  return (
      <TextField
        variant='outlined'
        color='primary'
        fullWidth
        type='number'
        value={deposit}
        onChange={(e) => setDeposit(Number(e.target.value.substring(0, 6)))} // This line to limit the length!
        label='Deposit'
        InputProps={{
          endAdornment: (
            <InputAdornment position='end'>
              <Button
                variant='text'
                disabled={disabled}
                color={'primary'}
                onClick={(_) => onSend(deposit!)}>
                <Typography color='primary'>{'送出'}</Typography>
              </Button>
            </InputAdornment>
          )
        }}
      />


Ensure block moves don't invalidate eligibility predicates

Description
When a block is moved verify that it doesn't invalidate eligibility predicates needing to access questions before or on its block.
Release notes
The title of the pull request will be used as the default release notes description. If more detail is needed to communicate to partners the scope of the PR's changes, use this release notes section.
Checklist
General

[x] Added the correct label: < feature | bug | dependencies | infrastructure | ignore-for-release >
[x] Created tests which fail without the change (if possible)
[ ] Extended the README / documentation, if necessary

User visible changes

[ ] Wrote browser tests using the validateAccessibility method
[ ] Manually tested at 200% size
[ ] Manually evaluated tab order

New Features

[ ] Add new FeatureFlag env vars to server/conf/application.conf
[ ] Conditioned new functionality on a FeatureFlag
[ ] Wrote browser tests with the feature flag off and on, etc.

Issue(s) this completes
Fixes #3744

Codecov Report

Merging #3990 (a4427d9) into main (637cc4c) will increase coverage by 0.01%.
The diff coverage is 97.22%.

@@             Coverage Diff              @@
##               main    #3990      +/-   ##
============================================
+ Coverage     80.03%   80.05%   +0.01%
- Complexity     2450     2452       +2
============================================
  Files           298      298
  Lines          9787     9796       +9
  Branches        663      665       +2
============================================
+ Hits           7833     7842       +9
  Misses         1698     1698
  Partials        256      256

Impacted Files
Coverage Δ

...erver/app/services/program/ProgramServiceImpl.java
89.10% <ø> (ø)

server/app/services/program/ProgramDefinition.java
88.99% <97.22%> (+0.47%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Can you add unit or browser test for this new check?

Good catch!!  The test got lost somehow and I didn't realize it.  Added!

Do we have similar check when a question that is used in predicate gets removed?

Ah yeah, when the block the predicates question is deleted.  Added that test too, those are the only (indirect) public callers of the method I updated.


⚠ SkipTheCommericals has degraded performance

In 560db39, SkipTheCommericals ($STC) experienced degraded performance:

HTTP code: 200
Response time: 1503 ms

Resolved: SkipTheCommericals performance has improved in 7c58560.


1.12-1.5.8 Workbench Crash

NOTE: I will be out of town this weekend until July 3rd *

Minecraft version:
1.12
Mod Version:
1.5.8
Single player or Server:
Single Player
Describe problem (what you were doing / what happened):
Crash when opening Workbench GUI.
Crash log (if any):
https://gist.github.com/sdaddy/aa7736ee3e4c719524c423b6ce77177c

Same Bug Occured for Me Loth
https://pastebin.com/QaKJrcBR

This should fix it https://minecraft.curseforge.com/projects/cyclic/files/2445567


Apollo Sandbox Self-Hosted Option

Apollo Sandbox now allows you to embed Apollo Sandbox on your own website and localhost.  This could be a nice option to add support for this and it may prevent needing to make CORS changes.  I would imagine it would be a similar process to how GraphiQL and the localhost version of BananaCakePop are hosted.
https://www.apollographql.com/blog/tooling/graphql-ide/how-to-use-apollo-sandbox-on-your-localhost/

I was thinking of implementing this as well. I was aware that embeddable Apollo Studio Explorer is a thing, but the regular Apollo Studio Explorer require an account, so I didn't do anything about it. I wasn't aware that the Sandbox version is also embeddable.
I'll definitely look into it.

I tried the embedded sandbox and it does work well (no account needed), but you can't run subscription operations as it is unsupported on embedded sandbox, which is a big downside compared to the other IDE.

Oh I didn't realize that.  That's a big downside.  Maybe this is something better for the future?  I'm sure they'll add support eventually.

I'll probably going to still add it in, but it won't replace the redirect option until they add support for subscriptions in embedded sandbox.

Sounds like a plan.

The option for embedded sandbox should be available in v0.7.1


Dataset.to_dataframe() loses datetime64 timezone localization

Not sure if feature or bug, but definitely made me look twice.
>>> ds = xray.Dataset({'time': (['time'], [np.datetime64('2014-04-26T05:00:00-0700')])})
>>> ds.time.values[0]
numpy.datetime64('2014-04-26T05:00:00.000000000-0700')

>>> ds.to_dataframe().index[0]
Timestamp('2014-04-26 12:00:00')

I'd expected to see the DataFrame index maintaining its local timezone info:
Timestamp('2014-04-26 05:00:00-0700', tz='America/Los_Angeles')

That said, the UTC that I actually get back is the same time so math should still work.  I'm opening this issue mostly as a matter for discussion -- feel free to close if you think xray should be pushing users towards UTC.

Is this just the pandas repr behavior?

Xray relies on numpy's datetime64 dtype, which for better or worse does not store timezone. Pandas creates its own array type (wrapping numpy) to make timezone localization work properly, but I don't want to go to those lengths in xray. So I'm happy to push users to UTC for now, and wait until upstream improvements make it easier to customize array dtypes (for things like datetime types with timezones).


API Doc being rendered but not able to click anything

Describe the bug
Following the basic example to use just element, and nothing else:
import React from 'react';

import { API } from '@stoplight/elements';
import<EMAIL_ADDRESS>

function App() {
  return (
    <div className="App">
      <API
        apiDescriptionUrl="https://raw.githubusercontent.com/stoplightio/Public-APIs/master/reference/zoom/openapi.yaml"
      />
    </div>
  );
}

export default App;

To Reproduce
Node version: v16.13.1
yarn start
The page is not able to click, looks like an image, the lonely message in the log is:
Failed to load config "@stoplight" to extend from.
Referenced from: /..... /api/elements/.eslintrc.js
Expected behavior
A clear and concise description of what you expected to happen.
Environment (remove any that are not applicable):

Library version: [cloned from github]
OS: [MacOS]
Browser: [Chrome 61]
Platform: [web]

Marked urgent unless its a user mistake (Which i highly doubt)

@mnaumanali94 : I'm not able to reproduce

@edgars can you help us reproduce please?

Yeah, it all works for me too. I propose to close it for now.
@edgars if you have more details to help us reproduce, feel free to reopen the issue.


Add GigSalad (partially remote company)

@johnbacon Thanks for adding GigSalad! :) There are some merge conflicts - do you mind resolving? It would also be awesome if you could please fill out a company profile and link to it.

Apologies on the typo – ack!. Will resolve, create a company profile, and re-submit.

Thank you so much for taking the time to do that!

Should be good to go! Let me know if I'm missing anything.

Awesome! Thanks! :sparkles:


Create a 'Yelp' style tool for refugees to rank their service experience

This feedback tool should enable refugees to:

provide a rating based on a 5 star system
make comments about the experience
submit comments publicly and/ or privately
file a complaint
rank that complain on a 5-point ranking for severity

Refugees searching for services should be able to view the rankings and search based on that additional filter

this is a pretty big feature! I can start some initial designs for this

Is there an engineer who wants to take this on? We should discuss complexity because this feature will require a backend to deal with the rating and comment data. Potentially a log-in or at the very least guest login.

Would like to see a plan for this before it's jumped into:

what db are we going to use to store this data
do we have confirmation that we can run a db with our partners (unhcr)
are we going to have login and accounts

There are some initial mocks for this which I am attaching  - Appnovation REALLY wanted to work on this during the hackathon - so it happened a little more quickly than it normally would have. The team made some headway on some of the fundamentals discussed, but we all agree that we need a proper plan for this. I am meeting with Murad on Tuesday to discuss further and to get his input on the mocks. Would love your feedback. Amy, Myles will be working on these mocks this week, but my guess is that we won't have him again, so it would be great to have you in on this early so you can take over if Myles is not available, and to weigh in with your ideas based on your experience so far. This is a substantive chunk of work and we would be targeting 2016 for a 1.x release that would include this functionality.

Not a bad start. A few thoughts

I don't thinkg we should prioritize a login/signup as the first user experience
we're mixing ActivityInfo info with ratings info. Just a note for backend
the redesign for the map - I like that if gives direction to the place. We did this for Routific and it works very well.

This also requires a bit of redesign of the map which might be a priority for after the filters are done.

I like the redesign of the settings. Good place to put sign-in
We'll need a flow for how people look at the ratings before log-in and how they can create an account or log in at that moment
The heart-ing (fav) and ratings will require a "my-ratings" type page. We'll need to find a place for that. Probably in the "My Account" page or higher level within the settings


Icon has wrong label in template list

Describe the bug
pcc:bf2:Monograph:Work (and all other templates when listed in the template list) in stage.
In the template list under the tab "resource template", there are icons to the right of the template description (number depends on permissions). The icon for copying the template has a hover label that says "view". It should say "copy" or "clone"
This is misleading, since, though you do view the template, you are actually duplicating it--if you save a new URI is created.

thanks for catching this. yes it also says "View" on the "eye" icon, so this one should definitely not be "View". I think it should say "Copy" (vs "Clone")

It should say "Copy".

Are we meant to have something for just viewing as well?

There isn't a "View" for templates. If it is something that would be useful, feel free to ticket separately.

There is a "View" for templates on the Dashboard under Recent Resources, if one of the things you recently edited was a template. But there isn't a "Create" icon there, like there is on Recent Templates in the Dashboard or on the Resource Templates tab. Nancy would it be helpful to have a View for templates everywhere? We could also ask Astrid for a review of icons to make things consistent (or purposefully inconsistent)


fix(redis): add default port for standardized Redis config

Summary
The default port should be 6379. This was how rate-limiting and response-ratelimiting worked before Redis config standardization. The bug was introduced because acme Redis configuration was used as reference which did not have default for Redis port.
Checklist

[x] The Pull Request has tests
[x] N/A (new feature) A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
[x] N/A There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference
KAG-3618

approved granted an additional manual deck sync/dump test is successful.

@nowNick made the tests and they passed 🚀


Expanding to more services

Hello @rajeabh
This is a fantastic idea, thank you for making this! Indeed, with vanilla boto3 you end up writing hundreds of lines just to put some data in the correct format.
I'm interested to know your opinion on the feasibility of expanding this library to a use case I have with Appflow.
Now, I use boto3 to list_flows, then for every one of those flows I describe_flow_execution_rows.
With this library, would I just follow the same approach to first list_flows and only add the formatting decorator to describe_flow_execution_rows, or is there a way that I get all execution records of all Appflow flows directly?
Best regards,
Robbert

Tried to make it work on this fork https://github.com/RobbertDM/boto-formatter

Hi Robbert,
Thank you for the feedback, I appreciate it. I am currently working on expanding the library to include 90-95% of AWS services. While there is no definite timeline yet, I estimate that the additional services will be added by the second or third quarter.
With this library, would I just follow the same approach to first list_flows and only add the formatting decorator to describe_flow_execution_rows, or is there a way that I get all execution records of all Appflow flows directly?.
Answer : Yes that the approach you to follow first list_flows and only add formatting decorator to describe_flow_execution_rows. Since library is generic level it’s not possible to get all execution records of AppFlow flows directly

Thanks for the update. Can you use my help to get to this 90-95% or would you rather work alone? Are you doing a full refactor or only adding the required jsons?

Hi Robbert,
Appreciated offering support. Sure, will count on you. I am doing two changes , will let you know once finalized .
Change #1 : Adding additional decorator to simplify further so user of the library doesn’t require to worry about pagination etc.
@boto_magic_formatter(format_type="csv", output_to="file")
def list_resources(_session,service_name,function_name,result,attributes):
return result
if name == "main":
_session = boto3.session.Session()
#Generate response in file
list_resources_to_file(_session,"s3","list_buckets","")
Change #2 :  Making config files synch with Resource Lister library so once config files are updated both the libraries work seamlessly .


0.11.0 - operator-sdk test fails due to redefined flags

Bug Report

What did you do?
Ran operator-sdk test local ./test/e2e/ --no-setup --namespace sdktest to test operator locally
What did you expect to see?
Tests to run and pass
What did you see instead? Under which circumstances?

Go

Hi @patelajayp,
Note that the v0.11.0 is not supporting the go version 1.13+. Could you try to use the latest release of the SDK(0.12) and let us know if you still facing any issue with?

I upgraded my operator-sdk version to:
"v0.12.0", commit: "2445fcda834ca4b7cf0d6c38fba6317fb219b469", go version: "go1.13.3 darwin/amd64"
and am still having the same issue.

Hi @patelajayp,
Following some tips that I hope that help you to solve it.

Use ./test/e2e  instead of ./test/e2e/. See the error  "./test/e2e//..."
Use --namespace=${NAMESPACE} intead of --namespace X
Ensure that the k8s cluster is up and running
Ensure that all is applied in the cluster  since you are using --no-setup

If you still facing the issue try to use --debug and --verbose to get further information and add the error here.
@AlexNPavel you have more knowledge over the test-framework. Could you give a hand here?

@camilamacedo86 - As Ajay mentioned, we've updated our project to 0.12.0 and are still hitting the same issue. It looks like two dependencies are declaring the same flag, but I'm unsure how to tell which ones they both are. We've also validated and/or tried all of your tips. Here's the output with --debug and --verbose
$ operator-sdk test local ./test/e2e --go-test-flags "-timeout=0" --no-setup --namespace operator-sdk-0-12-0 --debug --verbose
DEBU[0000] Debug logging is set
INFO[0000] Testing operator locally.
DEBU[0000] Running []string{"go", "test", "./test/e2e/...", "-namespacedMan", "deploy/test/empty.yaml", "-globalMan", "deploy/test/empty.yaml", "-root", "/Users/robbie.demuth/repo/my-operator", "-timeout=0", "-singleNamespace", "-parallel=1"}
/var/folders/j5/774djqhj6v9_6v_s5g3_v0zw4mwwjp/T/go-build074198978/b001/e2e.test flag redefined: kubeconfig
panic: /var/folders/j5/774djqhj6v9_6v_s5g3_v0zw4mwwjp/T/go-build074198978/b001/e2e.test flag redefined: kubeconfig

goroutine 1 [running]:
flag.(*FlagSet).Var(0xc0000ec060, 0x24b7180, 0xc00015d970, 0x2297ac7, 0xa, 0x22af22d, 0x12)
	/usr/local/Cellar/go/1.13.1/libexec/src/flag/flag.go:848 +0x4ae
flag.(*FlagSet).StringVar(...)
	/usr/local/Cellar/go/1.13.1/libexec/src/flag/flag.go:751
flag.(*FlagSet).String(0xc0000ec060, 0x2297ac7, 0xa, 0x0, 0x0, 0x22af22d, 0x12, 0xc00015d960)
	/usr/local/Cellar/go/1.13.1/libexec/src/flag/flag.go:764 +0xa0
flag.String(...)
	/usr/local/Cellar/go/1.13.1/libexec/src/flag/flag.go:771
github.com/operator-framework/operator-sdk/pkg/test.MainEntry(0xc00061b880)
	/Users/robbie.demuth/go/pkg/mod/github.com/operator-framework/operator-sdk@v0.12.0/pkg/test/main_entry.go:51 +0xc4
gitlab.com/my-operator/test/e2e.TestMain(...)
	/Users/robbie.demuth/repo/my-operator/test/e2e/main_test.go:10
main.main()
	_testmain.go:42 +0x136
FAIL	gitlab.com/my-operator/test/e2e	0.042s
FAIL
Error: failed to build test binary: (failed to exec []string{"go", "test", "./test/e2e/...", "-namespacedMan", "deploy/test/empty.yaml", "-globalMan", "deploy/test/empty.yaml", "-root", "/Users/robbie.demuth/repo/my-operator", "-timeout=0", "-singleNamespace", "-parallel=1"}: exit status 1)
Usage:
  operator-sdk test local <path to tests directory> [flags]

Flags:
      --debug                         Enable debug-level logging
      --global-manifest string        Path to manifest for Global resources (e.g. CRD manifests)
      --go-test-flags string          Additional flags to pass to go test
  -h, --help                          help for local
      --image string                  Use a different operator image from the one specified in the namespaced manifest
      --kubeconfig string             Kubeconfig path
      --local-operator-flags string   The flags that the operator needs (while using --up-local). Example: "--flag1 value1 --flag2=value2"
      --molecule-test-flags string    Additional flags to pass to molecule test
      --namespace string              If non-empty, single namespace to run tests in
      --namespaced-manifest string    Path to manifest for per-test, namespaced resources (e.g. RBAC and Operator manifest)
      --no-setup                      Disable test resource creation
      --up-local                      Enable running operator locally with go run instead of as an image in the cluster

Global Flags:
      --verbose   Enable verbose logging

@camilamacedo86 - So I did a bit more digging and was finally able to debug the end-to-end tests in Goland. It looks like there's a package in controller-runtime that defines the kubeconfig flag in its init function, which conflicts with the similarly named flag in the Operator SDK
controller-runtime
https://github.com/kubernetes-sigs/controller-runtime/blob/v0.3.0/pkg/client/config/config.go#L38-L40
operator-sdk
https://github.com/operator-framework/operator-sdk/blob/v0.12.0/pkg/test/main_entry.go#L51

Hmm. We have e2e tests in our CI system that run the e2e framework and those tests are still passing. So something funky is going on here. Thanks for raising this issue! I'll dig into this.

/remove-lifecycle stale

I have run into this as well.
tgates@tgu19:~/gopath/src/github.com/nuodb/nuodb-operator$ operator-sdk test local ./ntest/e2e --namespace $OPERATOR_NAMESPACE --verbose --kubeconfig ~/.kube/config --image $NUODB_OP_IMAGE --debug --verbose
DEBU[0000] Debug logging is set
INFO[0000] Testing operator locally.
DEBU[0000] Running []string{"go", "test", "./ntest/e2e/...", "-namespacedMan", "/tmp/namespaced-manifest.yaml320222523", "-globalMan", "/tmp/global-manifest.yaml917165918", "-root", "/home/tgates/gopath/src/github.com/nuodb/nuodb-operator", "-kubeconfig", "/home/tgates/.kube/config", "-singleNamespace", "-parallel=1"}
/tmp/go-build637475276/b001/e2e.test flag redefined: kubeconfig
panic: /tmp/go-build637475276/b001/e2e.test flag redefined: kubeconfig

goroutine 1 [running]:
flag.(*FlagSet).Var(0xc0000521e0, 0x1cc2ba0, 0xc0002f5f00, 0x1a65c0a, 0xa, 0x1a7e830, 0x12)
	/usr/local/go/src/flag/flag.go:848 +0x4ae
flag.(*FlagSet).StringVar(...)
	/usr/local/go/src/flag/flag.go:751
flag.(*FlagSet).String(0xc0000521e0, 0x1a65c0a, 0xa, 0x0, 0x0, 0x1a7e830, 0x12, 0xc0002f5ed0)
	/usr/local/go/src/flag/flag.go:764 +0xa0
flag.String(...)
	/usr/local/go/src/flag/flag.go:771
github.com/operator-framework/operator-sdk/pkg/test.MainEntry(0xc000671d00)
	/home/tgates/gopath/pkg/mod/github.com/operator-framework/operator-sdk@v0.9.0/pkg/test/main_entry.go:51 +0xc4
nuodb/nuodb-operator/ntest/e2e.TestMain(...)
	/home/tgates/gopath/src/github.com/nuodb/nuodb-operator/ntest/e2e/main_test.go:10
main.main()
	_testmain.go:50 +0x136
FAIL	nuodb/nuodb-operator/ntest/e2e	0.029s
?   	nuodb/nuodb-operator/ntest/e2e/util	[no test files]
FAIL
Error: failed to build test binary: (failed to exec []string{"go", "test", "./ntest/e2e/...", "-namespacedMan", "/tmp/namespaced-manifest.yaml320222523", "-globalMan", "/tmp/global-manifest.yaml917165918", "-root", "/home/tgates/gopath/src/github.com/nuodb/nuodb-operator", "-kubeconfig", "/home/tgates/.kube/config", "-singleNamespace", "-parallel=1"}: exit status 1)
Usage:
  operator-sdk test local <path to tests directory> [flags]

Flags:
      --debug                         Enable debug-level logging
      --global-manifest string        Path to manifest for Global resources (e.g. CRD manifests)
      --go-test-flags string          Additional flags to pass to go test
  -h, --help                          help for local
      --image string                  Use a different operator image from the one specified in the namespaced manifest
      --kubeconfig string             Kubeconfig path
      --local-operator-flags string   The flags that the operator needs (while using --up-local). Example: "--flag1 value1 --flag2=value2"
      --molecule-test-flags string    Additional flags to pass to molecule test
      --namespace string              If non-empty, single namespace to run tests in
      --namespaced-manifest string    Path to manifest for per-test, namespaced resources (e.g. RBAC and Operator manifest)
      --no-setup                      Disable test resource creation
      --up-local                      Enable running operator locally with go run instead of as an image in the cluster

Global Flags:
      --verbose   Enable verbose logging

Hi @thebithead,
Note that the version 0.9.0 is not compatible with the Go 1.13+. Could you please check it with the latest version of SDK.

If this is still an issue, please reopen.

Hi @thebithead,
Just to let you know we discussed it in the bug triaged and we decide to close since shows that the same will no be faced if you are using the 1.13+ go version and the latest version of SDK. However, if you still facing this issue please let us know for we are able to re-open this one and please provide the data regards your latest test/check as well.

I was able to replicate the problem using Go version 1.12.  But I wanted to
go forward, not backwards.
On Mon, Mar 9, 2020 at 3:04 PM Camila Macedo<EMAIL_ADDRESS>wrote:

Hi @thebithead https://github.com/thebithead,
Just to let you know we discussed it in the bug triaged and we decide to
close since shows that the same will no be faced if you are using the 1.13+
go version and the latest version of SDK. However, if you still facing this
issue please let us know for we are able to re-open this one and please
provide the data regards your latest test/check as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/operator-framework/operator-sdk/issues/2167?email_source=notifications&email_token=AAKUNZYGHYVPLIRNRKE3DHTRGU4SNA5CNFSM4JJ6MO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOIU33Q#issuecomment-596725230,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKUNZ3LWSX3XZQ23K42LN3RGU4SNANCNFSM4JJ6MO7A
.

--
Tom Gates
Software Engineer
www.nuodb.com http://www.nuodb.com/
c:<PHONE_NUMBER>
t: @nuodb https://twitter.com/nuodb
f: facebook.com/NUODB https://www.facebook.com/NUODB
The information contained in this email is confidential and proprietary and
intended for the sole use of the intended recipient. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this email in error, please notify the
sender and delete all copies.

Hi @thebithead the Go version 1.12. is not supportable with the latest version. Then, issue can really occur with if you are using Go version 1.12. So, I understand that all is fine when you are using the go 1.13+ and the latest,  Am I right?

No.  I was able to replicate the problem using SDK version 0.9.0 and Go
version 1.12.
I did not (yet) try using the latest SDK version.
On Mon, Mar 9, 2020 at 4:10 PM Camila Macedo<EMAIL_ADDRESS>wrote:

Hi @thebithead https://github.com/thebithead the Go version 1.12. is
not supportable with the latest version. Then, issue can really occur with
if you are using Go version 1.12. So, I understand that all is fine when
you are using the go 1.13+ and the latest, Am I right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/operator-framework/operator-sdk/issues/2167?email_source=notifications&email_token=AAKUNZ67BVNIOPXPZSXGD3TRGVEMRA5CNFSM4JJ6MO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOI4FQY#issuecomment-596755139,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKUNZYONDPLHTPMGONJ34TRGVEMRANCNFSM4JJ6MO7A
.

--
Tom Gates
Software Engineer
www.nuodb.com http://www.nuodb.com/
c:<PHONE_NUMBER>
t: @nuodb https://twitter.com/nuodb
f: facebook.com/NUODB https://www.facebook.com/NUODB
The information contained in this email is confidential and proprietary and
intended for the sole use of the intended recipient. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this email in error, please notify the
sender and delete all copies.

FWIW, I think this is now solved by https://github.com/operator-framework/operator-sdk/pull/2731


Footer section

Referring to #6, I have created a new branch for the footer.

Overview of what I have done for the footer:

Installed particles library in order to use particle background for the footer.
Installed react-icons for social media icons.
Made the column using grid.
Add responsiveness to it.


Add test case for my sql

Fixes #{add some test case for the Mysql}
Changes proposed in this pull request:

I add some test case for MySQLServices and MySQLManagement
Improve the test method coverage of both class to 100%

Thank you for this pull request!
It looks like you have duplicated the testExecuteQuery test case. I am not sure why we should do that?

Hi Wetneb:
From my perspective, the old one is test method is testExecuteQuery. But actually test the testQuery method. The name of it makes me confused for a while. Then I separate them, to write 'testExecuteQuery' and 'testTestQuery' for both 'executeQuery' and 'testQuery' in the 'MySQLDatabaseServices'. Besides, I also write a test case for 'getType' method in the 'MySQLConnectionManager'. Now whole MySQL part's method coverage is 100%. I think this explanation can help
Duke


pytorch2onnx gives "RuntimeError: expected scalar type Long but found Float" with DETR model

Hi,
I'm following https://mmdetection.readthedocs.io/en/latest/tutorials/pytorch2onnx.html#list-of-supported-models-exportable-to-onnx in order to export a trained DETR model to onnx format. I run:
python /path/to/mmdetection/tools/deployment/pytorch2onnx.py /path/to/detr_r50_8x2_150e_coco_4_classes.py /path/to/checkpoint.pth --input-img /path/to/my_img.png --output-file /path/to/epoch_6.onnx
According to the tutorial, DETR should be supported by pytorch2onnx.py, but it doesn't actually work. After a very long TraceBack, it gives this error:
Traceback (most recent call last):
  File "<some_path>/mmdetection/tools/deployment/pytorch2onnx.py", line 333, in <module>
    pytorch2onnx(
  File "<some_path>/mmdetection/tools/deployment/pytorch2onnx.py", line 89, in pytorch2onnx
    torch.onnx.export(
  File "<some_path>/miniconda3/envs/<my-env>/lib/python3.8/site-packages/torch/onnx/__init__.py", line 275, in export
    return utils.export(model, args, f, export_params, verbose, training,
  File "<some_path>/miniconda3/envs/<my-env>/lib/python3.8/site-packages/torch/onnx/utils.py", line 88, in export
    _export(model, args, f, export_params, verbose, training, input_names, output_names,
  File "<some_path>/miniconda3/envs/<my-env>/lib/python3.8/site-packages/torch/onnx/utils.py", line 689, in _export
    _model_to_graph(model, args, verbose, input_names,
  File "<some_path>/miniconda3/envs/<my-env>/lib/python3.8/site-packages/torch/onnx/utils.py", line 501, in _model_to_graph
    params_dict = torch._C._jit_pass_onnx_constant_fold(graph, params_dict,
RuntimeError: expected scalar type Long but found Float

Note that the only difference between the standard config file and the one I'm using is in the number of output classes (4 instead of 80). With this config, the model trained well and works well at inference.
Any ideas?
Many thanks in advance.

it actually works with PyTorch 1.10. Doesn't work with PyTorch 1.9. Maybe it should be written somewhere?

it actually works with PyTorch 1.10. Doesn't work with PyTorch 1.9. Maybe it should be written somewhere?

i met the same problem with you, in pytorch1.9(cuda 11.1) :
params_dict = torch._C._jit_pass_onnx_constant_fold(graph, params_dict,
RuntimeError: expected scalar type Long but found Float;
but when i change pytorch 1.10(cuda 11.3),it shows another error:
Traceback (most recent call last):
File "deploy/export_model00.py", line 227, in
exported_model = export_tracing(torch_model, sample_inputs)
File "deploy/export_model00.py", line 132, in export_tracing
torch.onnx.export(traceable_model, image, f, input_names=['input'], output_names=['output'], opset_version=11,dynamic_axes={'input':[1,2],'output':[1,2]})
File "/root/miniconda3/envs/deepsolo/lib/python3.8/site-packages/torch/onnx/init.py", line 316, in export
return utils.export(model, args, f, export_params, verbose, training,
File "/root/miniconda3/envs/deepsolo/lib/python3.8/site-packages/torch/onnx/utils.py", line 107, in export
_export(model, args, f, export_params, verbose, training, input_names, output_names,
File "/root/miniconda3/envs/deepsolo/lib/python3.8/site-packages/torch/onnx/utils.py", line 724, in _export
_model_to_graph(model, args, verbose, input_names,
File "/root/miniconda3/envs/deepsolo/lib/python3.8/site-packages/torch/onnx/utils.py", line 493, in _model_to_graph
graph, params, torch_out, module = _create_jit_graph(model, args)
File "/root/miniconda3/envs/deepsolo/lib/python3.8/site-packages/torch/onnx/utils.py", line 437, in _create_jit_graph
graph, torch_out = _trace_and_get_graph_from_model(model, args)
File "/root/miniconda3/envs/deepsolo/lib/python3.8/site-packages/torch/onnx/utils.py", line 388, in _trace_and_get_graph_from_model
torch.jit._get_trace_graph(model, args, strict=False, _force_outplace=False, _return_inputs_states=True)
File "/root/miniconda3/envs/deepsolo/lib/python3.8/site-packages/torch/jit/_trace.py", line 1166, in _get_trace_graph
outs = ONNXTracedModule(f, strict, _force_outplace, return_inputs, _return_inputs_states)(*args, **kwargs)
File "/root/miniconda3/envs/deepsolo/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/root/miniconda3/envs/deepsolo/lib/python3.8/site-packages/torch/jit/_trace.py", line 127, in forward
graph, out = torch._C.create_graph_by_tracing(
RuntimeError: 0INTERNAL ASSERT FAILED at "../torch/csrc/jit/ir/alias_analysis.cpp":584, please report a bug to PyTorch. We don't have an op for aten::fill but it isn't a special case.  Argument types: Tensor, bool,
do you encountered this problem? @mdcaio  looking forward to your reply


i can't download my setting from gist

Visual Studio Code Version : [ 1.11.2 ]
Code Settings Sync Version : [ 2.6.2]
Operating System : [ windows 7]
Occurs On: [Download ]
Proxy Enabled: [ No ]
GIst Id: [ 6276d286e7b1cccd99ffec329cff8aa5 ]
i can't download my setting from gist, i just get that Error Logged In Console (Help menu > Toggle Developer Tools). You may open an issue using 'Sync : Open Issue' from advance setting command.

Post your details there with the image of developer console.
https://github.com/shanalikhan/code-settings-sync/issues/293


Add Warden into Tools list

When this PR is merged, will...

add Warden CLI docker tool into the Tools list.

Coll thing. Thx


python311Packages.gradio: disable flaky tests on darwin

Description of changes
OSError: Cannot find empty port in range: 7860-7959. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the `server_port` parameter to `launch()`.

It does sometimes pass, but often fails, especially when ran within nixpkgs-review.
cc @pbsds
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

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

16 packages built:

private-gpt
private-gpt.dist
python311Packages.gradio
python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python311Packages.gradio.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist
python312Packages.gradio
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist
python312Packages.gradio.dist

Result of nixpkgs-review pr 318485 run on aarch64-darwin 1

4 packages marked as broken and skipped:

private-gpt
private-gpt.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist

4 packages failed to build:

python311Packages.gradio
python311Packages.gradio.dist
python312Packages.gradio
python312Packages.gradio.dist

8 packages built:

python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist

Result of nixpkgs-review pr 318485 run on aarch64-darwin 1

4 packages marked as broken and skipped:

private-gpt
private-gpt.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist

4 packages failed to build:

python311Packages.gradio
python311Packages.gradio.dist
python312Packages.gradio
python312Packages.gradio.dist

8 packages built:

python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist

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

16 packages built:

private-gpt
private-gpt.dist
python311Packages.gradio
python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python311Packages.gradio.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist
python312Packages.gradio
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist
python312Packages.gradio.dist

Result of nixpkgs-review pr 318485 run on aarch64-linux 1

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

Result of nixpkgs-review pr 318485 run on aarch64-darwin 1

4 packages marked as broken and skipped:

private-gpt
private-gpt.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist

4 packages failed to build:

python311Packages.gradio
python311Packages.gradio.dist
python312Packages.gradio
python312Packages.gradio.dist

8 packages built:

python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist

Result of nixpkgs-review pr 318485 run on aarch64-darwin 1

4 packages marked as broken and skipped:

private-gpt
private-gpt.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist

4 packages failed to build:

python311Packages.gradio
python311Packages.gradio.dist
python312Packages.gradio
python312Packages.gradio.dist

8 packages built:

python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist

Result of nixpkgs-review pr 318485 run on x86_64-darwin 1

4 packages marked as broken and skipped:

private-gpt
private-gpt.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist

2 packages failed to build:

python311Packages.gradio
python311Packages.gradio.dist

10 packages built:

python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python312Packages.gradio
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist
python312Packages.gradio.dist

Result of nixpkgs-review pr 318485 run on aarch64-darwin 1

4 packages marked as broken and skipped:

private-gpt
private-gpt.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist

2 packages failed to build:

python312Packages.gradio
python312Packages.gradio.dist

10 packages built:

python311Packages.gradio
python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python311Packages.gradio.dist
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist

Result of nixpkgs-review pr 318485 run on x86_64-darwin 1

4 packages marked as broken and skipped:

private-gpt
private-gpt.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist

12 packages failed to build:

python311Packages.gradio
python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python311Packages.gradio.dist
python312Packages.gradio
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist
python312Packages.gradio.dist

Result of nixpkgs-review pr 318485 run on aarch64-darwin 1

4 packages marked as broken and skipped:

private-gpt
private-gpt.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist

12 packages built:

python311Packages.gradio
python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python311Packages.gradio.dist
python312Packages.gradio
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist
python312Packages.gradio.dist

Result of nixpkgs-review pr 318485 run on aarch64-linux 1

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

Result of nixpkgs-review pr 318485 run on x86_64-darwin 1

4 packages marked as broken and skipped:

private-gpt
private-gpt.dist
python311Packages.private-gpt
python311Packages.private-gpt.dist

12 packages built:

python311Packages.gradio
python311Packages.gradio-client
python311Packages.gradio-client.dist
python311Packages.gradio-pdf
python311Packages.gradio-pdf.dist
python311Packages.gradio.dist
python312Packages.gradio
python312Packages.gradio-client
python312Packages.gradio-client.dist
python312Packages.gradio-pdf
python312Packages.gradio-pdf.dist
python312Packages.gradio.dist


How to do analyais with hg38?

Hi, I would like to ask if you can provide the data of hg38 reference genome, including exclusion lists and files used to call CNV. Or, can you tell me how to builld theses files of hg38 . It will be helpful because I'm trying to analyse loss of Y but I only have WGS bim file aligned to hg38.

Hi, if you would like to analyze hg19, just change the genome assembly from "hg19_Y" to "hg38_Y". In previous anaysis, I also created an extrusion list for hg19. I don't have that file for hg38, you can use liftover to convert extrusion list from hg19 to hg38, or use the regions provided by GATK (https://storage.googleapis.com/genomics-public-data/resources/broad/hg38/v0/wgs_calling_regions.hg38.interval_list). Hope this can help you!


Update preposition handling

What does this change?
Before this PR, the reminderDateAsString field is always prepended with the preposition "in", e.g. "Remind me in May". However, we want to use reminderDateAsString="on Giving Tuesday". This then leads to the unfortunate "Remind me in on Giving Tuesday". To tackle this for now, we only add "in" if the string doesn't already start with "in" or "on".
Images
reminderDateAsString="May"

reminderDateAsString="on Giving Tuesday"

One possible solution is for the component url returned in the POST request to be unique per build, to ensure the component used by a browser is always correct. E.g. /epic.<hash>.js

I think this could be really nice if we figure out a good way to generate those hashes.


Add formatException method in Formatter

Adds formatException method in Formatter according to the standard library.

Codecov Report

Merging #68 (8676300) into main (16f49d3) will decrease coverage by 0.24%.
The diff coverage is 68.75%.

@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
- Coverage   85.55%   85.30%   -0.25%
==========================================
  Files          11       11
  Lines        2125     2157      +32
==========================================
+ Hits         1818     1840      +22
- Misses        307      317      +10

Impacted Files
Coverage Δ

src/picologging/formatter.cxx
85.39% <68.75%> (-3.65%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Great stuff.
👍🏻  I'll run this through memray to check for leaks before merging

No leaks detected


SQL servers and SQL databases Azure resource type of Types List API

I am developing a custom VSTS task which would like to populate the SQL servers and SQL databases in an Azure subscription in a drop down list.
From the API https://{accountName}.visualstudio.com/_apis/serviceendpoint/types?api-version=5.0-preview.1, I cannot find the endpoint type of SQL servers and SQL databases.
Is there any doc list the Azure resource type we can use to build the custom VSTS task? If SQL servers and SQL databases are not supported now, will it be any enhancement later?

From what I understood from issue description it looks like you want to add an new endpoint type for “Sql servers” and use that in a custom task.
It is possible for users to add a custom endpoint, Refer: https://github.com/Microsoft/vsts-rm-extensions/tree/master/docs/authoring/endpoints
Let me know if I misunderstood your requirements.

It is not about adding new endpoint type but I would like to get the SQL servers and SQL databases from the existing Azure subscription endpoint.
For example in the below pic, I can get all app service names (App1 to App9) from a drop down list after selecting the Azure subscription endpoint (Azure subscription 1). I believe it is because now VSTS API now supports getting app service name from an existing Azure subscription, by adding        {             "target": "WebAppName",             "endpointId": "$(ConnectedServiceName)",             "dataSourceName": "AzureRMWebAppNames"         } to dataSourceBindings object in task.json when developing the custom task.

My custom task requires both SQL server name and SQL database name, and I would like to achieve the same by setting up only an Azure subscription endpoint and all server names and database names in that subscription can be shown in a drop down list.

@william726 If there are APIs in azure that provide list of SQL servers and SQL databases, the you can directly use those urls in the dataSourceBindings instead of depending on a DataSource. Have a look at
https://github.com/Microsoft/vsts-tasks/blob/dabc382bcc98750676c3f1a79c17f39c7fe47e26/Tasks/AzureMonitorV0/task.json#L91

@william726 Let's use vsts-tasks issue for follow up. https://github.com/Microsoft/vsts-tasks/issues/7252


Kubo deployment failed with 0.13.0 kubo-release and kubo-deployment on vsphere

Refer : https://github.com/cloudfoundry-incubator/kubo-deployment/issues/257
For issue which is raised initially.
i have downloaded the latest 0.13.0 kubo-release and kubo-deployment, still i am not able to deploy kubernetes cluster. Below is the error which i am facing and below is deployment manifest file.
Task 20 | 07:17:44 | Preparing deployment: Preparing deployment
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Warning: DNS address not available for the link provider instance: master/b58c5611-b89c-464a-9773-9f616b56b7af
Task 20 | 07:17:55 | Preparing deployment: Preparing deployment (00:00:11)
Task 20 | 07:17:59 | Error: Unable to render instance groups for deployment. Errors are:
Unable to render jobs for instance group 'master'. Errors are:
Unable to render templates for job 'kubernetes-system-specs'. Errors are:
Error filling in template 'rbac_policy.yml.erb' (line 15: Can't find property '["cloud-provider.type"]')
Task 20 Started Wed Feb 7 07:17:44 UTC 2018
Task 20 Finished Wed Feb 7 07:17:59 UTC 2018
Task 20 Duration 00:00:15
Task 20 error
Updating deployment:
Expected task '20' to succeed but state is 'error'
Exit code 1
cfcr.yml:
name: cfcr
releases:
name: kubo-etcd
version: 8
url: https://github.com/pivotal-cf-experimental/kubo-etcd/releases/download/v8/kubo-etcd.8.tgz
sha1: 267bf72c9f4680b6e1cf542283c653abc74469e2
name: kubo
version: latest
name: docker
version: 30.1.4
url: https://github.com/cloudfoundry-community/docker-boshrelease/releases/download/v30.1.4/docker-30.1.4.tgz
sha1: f79a70452b3ddae52f5ac78dd37ff8d9e6ec19e2
name: bosh-dns
sha1: e38d3e5edd16ce2dca778440b636ab1ea61f892f
url: https://bosh.io/d/github.com/cloudfoundry/bosh-dns-release?v=0.0.11
version: 0.0.11
stemcells:
alias: trusty
os: ubuntu-trusty
version: "3468.20"
addons:
name: bosh-dns
include:
stemcells:
os: ubuntu-trusty
jobs:
name: bosh-dns
release: bosh-dns
properties:
cache:
enabled: true
health:
enabled: true
server:
tls: ((/dns_healthcheck_server_tls))
client:
tls: ((/dns_healthcheck_client_tls))
name: bosh-dns-aliases
jobs:
name: kubo-dns-aliases
release: kubo
instance_groups:
name: master
instances: 1
networks:
name: default
azs: [z1,z2,z3]
jobs:
name: secure-var-vcap
release: kubo
name: cloud-provider
release: kubo
properties: {}
provides:
cloud-provider: {as: master}
name: flanneld
release: kubo
name: kube-apiserver
release: kubo
properties:
admin-username: admin
admin-password: ((kubo-admin-password))
kubelet-password: ((kubelet-password))
kube-proxy-password: ((kube-proxy-password))
kube-controller-manager-password: ((kube-controller-manager-password))
kube-scheduler-password: ((kube-scheduler-password))
route-sync-password: ((route-sync-password))
backend_port: 8443 # Bosh links hack
port: 8443
authorization-mode: rbac
service-account-public-key: ((service-account-key.public_key))
tls:
kubernetes:
ca: ((tls-kubernetes.ca))
certificate: ((tls-kubernetes.certificate))
private_key: ((tls-kubernetes.private_key))
name: kube-controller-manager
release: kubo
properties:
api-token: ((kube-controller-manager-password))
service-account-private-key: ((service-account-key.private_key))
tls:
kubernetes: ((tls-kubernetes))
name: kube-scheduler
release: kubo
properties:
api-token: ((kube-scheduler-password))
tls:
kubernetes: ((tls-kubernetes))
name: kubernetes-system-specs
release: kubo
properties:
api-token: ((kubelet-password))
admin-username: admin
admin-password: ((kubo-admin-password))
authorization-mode: rbac
tls:
kubernetes: ((tls-kubernetes))
heapster: ((tls-heapster))
influxdb: ((tls-influxdb))
kubernetes-dashboard: ((tls-kubernetes-dashboard))
consumes:
cloud-provider: {from: master}
name: etcd
release: kubo-etcd
properties:
etcd:
dns_health_check_host: <IP_ADDRESS> # this is the default BOSH DNS nameserver
advertise_urls_dns_suffix: etcd.cfcr.internal
require_ssl: true
peer_require_ssl: true
delete_data_dir_on_stop: false
ca_cert: ((tls-etcd-server.ca))
server_cert: ((tls-etcd-server.certificate))
server_key: ((tls-etcd-server.private_key))
client_cert: ((tls-etcd-client.certificate))
client_key: ((tls-etcd-client.private_key))
peer_ca_cert: ((tls-etcd-peer.ca))
peer_cert: ((tls-etcd-peer.certificate))
peer_key: ((tls-etcd-peer.private_key))
stemcell: trusty
vm_type: default
persistent_disk: 5120
name: worker
instances: 1
networks:
name: default
azs: [z1,z2,z3]
jobs:
name: secure-var-vcap
release: kubo
name: flanneld
release: kubo
name: docker
release: docker
properties:
bip: <IP_ADDRESS>/24
flannel: true
iptables: false
ip_masq: false
log_level: error
store_dir: /var/vcap/data
storage_driver: overlay
default_ulimits: [ "nofile=65536" ]
tls_cacert: ((tls-docker.ca))
tls_cert: ((tls-docker.certificate))
tls_key: ((tls-docker.private_key))
env: {}
name: cloud-provider
release: kubo
properties: {}
provides:
cloud-provider: {as: worker}
name: kubelet
release: kubo
properties:
api-token: ((kubelet-password))
tls:
kubernetes: ((tls-kubernetes))
kubelet: ((tls-kubelet))
name: kube-proxy
release: kubo
properties:
tls:
kubernetes: ((tls-kubernetes))
api-token: ((kube-proxy-password))
stemcell: trusty
vm_type: large
persistent_disk: 10240
update:
canaries: 1
max_in_flight: 1
canary_watch_time: 10000-300000
update_watch_time: 10000-300000
variables:
name: kubo-admin-password
type: password
name: kubelet-password
type: password
name: kube-proxy-password
type: password
name: kube-controller-manager-password
type: password
name: kube-scheduler-password
type: password
name: route-sync-password
type: password
name: kubo_ca
type: certificate
options:
is_ca: true
common_name: ca
name: tls-kubelet
type: certificate
options:
ca: kubo_ca
organization: "system:nodes"
common_name: kubelet.cfcr.internal
alternative_names: []
name: tls-kubernetes
type: certificate
options:
ca: kubo_ca
organization: "system:masters"
common_name: master.cfcr.internal
alternative_names:
<IP_ADDRESS>
kubernetes
kubernetes.default
kubernetes.default.svc
kubernetes.default.svc.cluster.local
master.cfcr.internal
name: service-account-key
type: rsa
name: tls-docker
type: certificate
options:
ca: kubo_ca
common_name: docker.cfcr.internal
name: tls-etcd-server
type: certificate
options:
ca: kubo_ca
common_name: etcd.cfcr.internal
alternative_names:
etcd.cfcr.internal
"*.etcd.cfcr.internal"
name: tls-etcd-client
type: certificate
options:
ca: kubo_ca
common_name: etcdClient
name: tls-etcd-peer
type: certificate
options:
ca: kubo_ca
common_name: etcd.cfcr.internal
alternative_names:
"*.etcd.cfcr.internal"
name: tls-heapster
type: certificate
options:
ca: kubo_ca
common_name: heapster
alternative_names:
"heapster.kube-system.svc.cluster.local"
name: tls-influxdb
type: certificate
options:
ca: kubo_ca
common_name: monitoring-influxdb
alternative_names: []
name: kubernetes-dashboard-ca
type: certificate
options:
is_ca: true
common_name: ca
name: tls-kubernetes-dashboard
type: certificate
options:
ca: kubernetes-dashboard-ca
common_name: kubernetesdashboard.cfcr.internal
alternative_names: []
name: /dns_healthcheck_tls_ca
opsname: global_dns_healthcheck_tls_ca
type: certificate
options:
is_ca: true
common_name: dns-healthcheck-tls-ca
name: /dns_healthcheck_server_tls
opsname: global_dns_healthcheck_server_tls
type: certificate
options:
ca: /dns_healthcheck_tls_ca
common_name: health.bosh-dns
extended_key_usage:
server_auth
name: /dns_healthcheck_client_tls
opsname: global_dns_healthcheck_client_tls
type: certificate
options:
ca: /dns_healthcheck_tls_ca
common_name: health.bosh-dns
extended_key_usage:
client_auth
features:
use_dns_addresses: true
And i am using vsphere environment.
Along with public ip address which is reachable within org for kubernetes master/worker nodes

Refer to comments in issue #255


3.0.1 is unreleased

Any ETA on when a 3.0.1 might be released? We'd really like to use this, and we'd prefer to use an official release.

+1

+1

+1

+1


fix: make the request-response mutex apply to all AtLookupImpl instances

- What I did
fix: make the mutex around request-response apply to all AtLookupImpl instances, not just a single instance
Note: This is a workaround for a problem we suspect might exist in SecureSocket multiplexing
- How I did it
Made the requestResponseMutex variable static; and renamed it to globalRequestResponseMutex
- How to verify it
Should have no unexpected side-effects in application
- Description for the changelog
fix: make the mutex around request-response apply to all AtLookupImpl instances, not just a single instance

Not required


Feature request: Detailed network configuration during INIT phase

Copied issue over from: https://github.com/lxc/lxc/issues/2718
Hello there,
I've confirmed myself for number of times to be sure that I'm doing everything right, so I commited my self to post this feature request to possibly propagate a potentinal new feature to be implemented.
Please let me know if there is an interest in this feature to be implemented and also - other users can make this feature request more visible by giving it 👍  - thank you all 👏
And now there goes what I've already posted on LXC discuss webapp.
I've spent quite a few hours attempting to properly configure networking of container in "init" phase. (Including googling here and there ... :wink: )
I want to have the configuration as simple as possible, so I do not want to use profiles or configure device after the container is initiated.
I am using lxc & lxd setup on Bionic within OpenStack instance with multiple virtual network interfaces and I want to bind that virtual NICs directly to lxc containers as nictype=physical.
Name of NIC is chosen randomly, therefore, the profile would have to be reconfigured every time.
OpenStack's Neutron gives network configuration upon DHCP request and it is working fine.
Problem is that container initiated by command shown below has correct everything but nictype=macvlan.

lxc init ubuntu:18.10 c2 --no-profiles --storage default --network ens7

The output of request send to LXD:
DBUG[10-31|11:13:39]
        {
                "architecture": "",
                "devices": {
                        "ens7": {
                                "nictype": "macvlan",
                                "parent": "ens7",
                                "type": "nic"
                        },
                        "root": {
                                "path": "/",
                                "pool": "default",
                                "type": "disk"
                        }
                },
                "ephemeral": false,
                "profiles": [],
                "stateful": false,
                "description": "",
                "name": "c2",
                "source": {
                        "type": "image",
                        "certificate": "",
                        "alias": "18.10",
                        "server": "https://cloud-images.ubuntu.com/releases",
                        "protocol": "simplestreams",
                        "mode": "pull"
                },
                "instance_type": ""
        }

I have tried these variants but every single one ended neighter with error or unwanted outcome like nictype still macvlan.
lxc init ubuntu:18.10 c2 --no-profiles --storage default --config nictype=physical --network ens7
lxc init ubuntu:18.10 c2 --no-profiles --storage default --config device.nictype=physical --network ens7
lxc init ubuntu:18.10 c2 --no-profiles --storage default --config=nictype=physical --network ens7
lxc init ubuntu:18.10 c2 --no-profiles --storage default --config device.eth0.nictype=physical --network ens7
lxc init ubuntu:18.10 c2 --no-profiles --storage default --config devices.eth0.nictype=physical --network ens7
lxc init ubuntu:18.10 c2 --no-profiles --storage default --config devices.ens7.nictype=physical --network ens7
lxc init ubuntu:18.10 c2 --no-profiles --storage default --config user.network-config.type=physical --network ens7
lxc init ubuntu:18.10 c2 --no-profiles --storage default --config user.network-config.ens7.type=physical --network ens7
lxc init ubuntu:18.10 c2 --no-profiles --storage default --config lxc.net.0.type=physical --network ens7

What am I doing wrong or is there no such configuration possibility at all? Therefore I can write an issue on github to request this feature or os ...
Thank you a lot :wink:
Environment: :computer:
# lxc --version
3.0.1
# lxd --version
3.0.1
# uname -a
Linux test-lxc1 4.15.0-30-generic #32-Ubuntu SMP Thu Jul 26 17:42:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Because of the way device configuration is structured, it's not very practical for the CLI to let you override this stuff at init time. Instead, it's much easier and fast to just do it as two steps:
lxc init ubuntu:18.10 c2 --no-profiles --storage default
lxc config device add c2 eth0 nic nictype=physical parent=ens7 name=eth0

The -n convenience option will either use bridged if the interface that was passed is a bridge or macvlan otherwise, we certainly don't want this to ever use physical as that'd be sure to confuse and likely break a good chunk of our users :)
nictype=physical tends to be used for more complex, specialized cases where running multiple commands isn't likely to be an issue or where a custom API client is in use anyway (in which case you can totally do it in a single REST API call).

@stgraber thank you a lot for your answer. You are 100% correct, these two commands work OK and therefore there is no need for that what I've requested. Thank you.


Metrics: Wrong timestamps in metric points

Please include https://github.com/CachetHQ/Cachet/pull/3807 into your fork.
The "hourly" view of a metric nothing is shown, because the timezone stamps are wrong. For more details see referenced pull request.

@brknkfr will have a look, thanks for raising.


Add seq_len attribute to SeqView class

Currently, SeqView can only provide a view of a string, which is assigned to self.seq.
We require the ability to have a reference to a string rather than the string itself (i.e. positions in the parent seq). This will be later used for the WIP SeqDataView class, which will contain theseq data and provide a mechanism to return only a segment of the sequence.
At present, SeqView uses len(self.seq) in multiple places -- limiting the use of this class to cases where .seq is a Python iterable.
We can most easily remove this constraint by adding a seq_len argument (and corresponding self.seq_len attribute) to the SeqView class.
For the current case of SeqView.seq as a string , seq_len should default to None. If None, assign len(self.seq) to self.seq_len  in __init__().
Then, replace all uses within SeqView code of len(self.seq) with self.seq_len.
Note: because we use slots, we need to add "seq_len" to the slots variable too.

Should seq_len be added to the outputs of special methods (i.e. repr) and when self is returned?

Should seq_len be added to the outputs of special methods (i.e. repr)

yes

and when self is returned?

I don't understand, can you give a specific example?

So in those cases, add the seq_len=self.seq_len argument for sure. Since we are planning for the case where subclasses cannot infer that from the value of self.seq