Disk size <1TB is incorrect

Under "Common Issues", it says that disks should be less than 1 TB in size. According to the ASR FAQ and other announcements, disks up to 4 TB are supported within ASR. I believe this page to be out-of-date.

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

ID: 101f1927-9428-20c5-06d0-ccc48bad912c
Version Independent ID: 6c23efba-9fab-8161-7885-dbddb7e737b2
Content: Enable replication of VMware VMs for VMware disaster recovery to Azure with Azure Site Recovery
Content Source: articles/site-recovery/vmware-azure-enable-replication.md
Service: site-recovery
GitHub Login: @asgang
Microsoft Alias: asgang

@robertdolney Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

the document is updated " Each disk should be smaller than 4 TB."

#sign-off

#please-close


Positional parameter mismatch: warning inconsistency

This is an inconsistency with the warning that I noticed when compiling a real crystal program.
abstract class Foo
  abstract def ===(value)
end

abstract class Bar < Foo
end

In src/object.cr:49:11

 49 | def ===(other)
              ^----
Warning: positional parameter 'other' corresponds to parameter 'value' of the overridden method Foo#===(value), which has a different name and may affect named argument passing

A total of 1 warnings were found.

In the example, the warning goes away if either

value is changed to other, as in the Object class (matches my expectation)
Bar is marked as concrete and #===(value) is added (doesn't match my expectation)

The warning message also seems to be inverted, suggesting that Object's definition is incorrect rather than Foo's.
This is present in master.

Reduced:
class Foo
  def foo(x); end # Warning: positional parameter 'x' corresponds to parameter 'y' of the overridden method Bar#foo(y), which has a different name and may affect named argument passing
end

abstract class Bar < Foo
  abstract def foo(y)
end

abstract class Baz < Bar
end

module Foo
  def foo(x); end # Warning: positional parameter 'x' corresponds to parameter 'y' of the overridden method Bar#foo(y), which has a different name and may affect named argument passing
end

module Bar
  include Foo
  abstract def foo(y)
end

module Baz
  include Bar
end

If one duplicates the definition of Baz then the same error shows up once per duplication.
There probably shouldn't be any warnings at all in these cases if the type being considered (Baz) is an abstract class or a module. Note that Foo#foo should never implement Bar#foo because Foo is an ancestor of Bar.


bump STS <IP_ADDRESS>

This PR fixes #
Changes since last version<EMAIL_ADDRESS>

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.002%) to 42.053%

Files with Coverage Reduction
New Missed Lines
%

extensions/sql-bindings/src/common/azureFunctionsUtils.ts
1
80.65%

Totals

Change from base Build<PHONE_NUMBER>:
-0.002%

Covered Lines:
28597

Relevant Lines:
63159

💛  - Coveralls


Cannot move to another machine with error: Permission denied

Required information

Distribution: Ubuntu
Distribution version: 16.04
The output of "lxc info" or if that fails:

Kernel version: 4.13.0-41-generic
LXC version: 2.0.11
LXD version: 2.0.11
Storage backend in use:

Issue description
Live migration for a container first (ubuntu:16.04) from one PC (edge1) to another PC(name: edge2) is failed with the following command
lxc move first edge2:firstMoveTo2

Error messages (complete log is attached lxd_migration.log):
error: Failed container creation:

 - https://<IP_ADDRESS>:8443: migration dump failed
(01.080421) Error (compel/src/lib/infect.c:633): Unable to connect a transport socket: Permission denied
(01.080437) Error (compel/src/lib/infect.c:559): Can't inject syscall blob (pid: 18280)
(01.080439) Error (compel/src/lib/infect.c:1313): munmap for remote map 0x7f5ec3e57000, 110592 returned 11
(01.080440) Error (criu/cr-dump.c:1283): Can't infect (pid: 18280) with parasite
(01.098423) Error (compel/src/lib/infect.c:341): Unable to detach from 18280: No such process
(01.098595) Error (criu/cr-dump.c:1709): Dumping FAILED.

The suspected error is CRIU at either the source or the destination node required root to checkpoint/restore a checkpointed container.
I try to run lxc command with sudo, the same fault still occurs.
The CRIU version: 3.8.1 in both nodes.
Please tell me how to fix this issue?
Thank you.
Steps to reproduce

Step one: add remote host via lxc remote add
Step two: create a container at the source node via lxc launch
Step three: migration with command lxc move

Information to attach

[ ] Any relevant kernel output (dmesg)

[yes] Container log (lxc info NAME --show-log)
lxc_info.log

[ ] Container configuration (lxc config show NAME --expanded)

[ ] Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log)

[ ] Output of the client with --debug

[ ] Output of the daemon with --debug (alternatively output of lxc monitor while reproducing the issue)

@adrianreber, if you have a second, ever seen anything like this? You don't need to spend a lot of time. Just in case you've seen this before.

LXD always runs CRIU as root so that's not the problem.
It'd be good to know what PID 18280 is in this case. It guess it could be something like no-new-privs getting in the way or something like that.
Closing the issue as there's nothing actionable for LXD itself, this is a CRIU/kernel issue, but I'm still interested in hearing from @adrianreber about potential causes.

And another one https://github.com/checkpoint-restore/criu/issues/439

It may be worth trying a newer CRIU just to make reporting issues upstream easier.
The LXD version won't matter, we've not changed the way we interact with CRIU much at all in the past two years, all the dump/restore logic is in CRIU.

CRIU cannot dump raw sockets and I am pretty sure dhclient opens a raw socket. So please try to disable dhclient in your container.


Bytes code

Are #13 and #14 that you pull requested the same changes?

I deeply appreciate your contributions.
How does the user fill in the byte array in the message field?
I can't think of an intuitive way for users to enter byte array values.
The message type "Base64 encoded binary" is already provided for the purpose of inputting byte array values.
Wouldn't it serve the purpose to use this and fill in the message field with the value of the base64-encoded byte array?
Perhaps you are expecting only a variable of type byte array to be entered in the message field?
If so, I would like to know of other common Samplers that have a field where only variables can be entered.
If there is such a Sampler, I would like to merge a pull request from you.
If there is no such Sampler, I would like to enter a message as "Base64 encoded binary" with a variable already Base64 encoded in a JSR223 Script such as BeanShell or Groovy, or a byte array variable given to the base64Encode function(https://jmeter-plugins.org/wiki/Functions/#base64Encodesupfont-color-gray-size-1-since-1-2-0-font-sup).

We need the message needs to changed to bytes. It's different from Base64 encode. I am following the same approach as your, you can provide the value in the messaetype files as string, then the sampler convert into bytes during its execution an
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg

From: Kuniteru Asami @.>
Sent: Saturday, April 1, 2023 9:05:38 AM
To: pnopjp/jmeter-plugins @.>
Cc: Srikanth Mohan @.>; Author @.>
Subject: Re: [pnopjp/jmeter-plugins] Bytes code (PR #13)
I deeply appreciate your contributions.
How does the user fill in the byte array in the message field?
I can't think of an intuitive way for users to enter byte array values.
The message type "Base64 encoded binary" is already provided for the purpose of inputting byte array values.
Wouldn't it serve the purpose to use this and fill in the message field with the value of the base64-encoded byte array?
Perhaps you are expecting only a variable of type byte array to be entered in the message field?
If so, I would like to know of other common Samplers that have a field where only variables can be entered.
If there is such a Sampler, I would like to merge a pull request from you.
If there is no such Sampler, I would like to enter a message as "Base64 encoded binary" with a variable already Base64 encoded in a JSR223 Script such as BeanShell or Groovy, or a byte array variable given to the base64Encode function(https://jmeter-plugins.org/wiki/Functions/#base64Encodesupfont-color-gray-size-1-since-1-2-0-font-suphttps://urldefense.com/v3/__https://jmeter-plugins.org/wiki/Functions/*base64Encodesupfont-color-gray-size-1-since-1-2-0-font-sup__;Iw!!GF_29dbcQIUBPA!yuElFxTRk6lAwpTMy0eQIfbrn7l491XLjeiahPjNRIuRr-V3CJM1h-0n3A_ZVrdCV7BvMYmxBhuxE_ViFeskhfMqDLw$).
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/pnopjp/jmeter-plugins/pull/13*issuecomment-1492816650__;Iw!!GF_29dbcQIUBPA!yuElFxTRk6lAwpTMy0eQIfbrn7l491XLjeiahPjNRIuRr-V3CJM1h-0n3A_ZVrdCV7BvMYmxBhuxE_ViFeskavZ2Asg$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/A6RVNOR4TTP6JAGQYOTES5DW66PAVANCNFSM6AAAAAAWLRFK7Q__;!!GF_29dbcQIUBPA!yuElFxTRk6lAwpTMy0eQIfbrn7l491XLjeiahPjNRIuRr-V3CJM1h-0n3A_ZVrdCV7BvMYmxBhuxE_ViFeskI1XxPBo$.
You are receiving this because you authored the thread.Message ID: @.***>

Perhaps your message just before was interrupted in the middle?
I now realize that there may be a bug in the "Base64 encoded binary" code.
If this is a glitch, and if it can be fixed so that it works correctly, then your goal may have been achieved with "base64 encoded binary".
In that case, please let me investigate further, since you would end up with two types for the same purpose.

Hi ,
I am converting the string message to bytes . I don’t need it to be converted to Base64 encode binary. The input I provide is in string datatype and the conversion of the string to bytes happens in the code.  Having Base64 encode binary wont solve my purpose and also creates confusion for the users .
Pls do let me know if we need more discussion .
Regards,
Srikanth
Perhaps your message just before was interrupted in the middle?
I now realize that there may be a bug in the "Base64 encoded binary" code.
If this is a glitch, and if it can be fixed so that it works correctly, then your goal may have been achieved with "base64 encoded binary".
In that case, please let me investigate further, since you would end up with two types for the same purpose.
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/pnopjp/jmeter-plugins/pull/13*issuecomment-1492835828__;Iw!!GF_29dbcQIUBPA!wPn9eYG7NAzFFMmDKpLWuzQ_Ss1eZGv2RR2TtW_SNgebk2jhi7vymn1yQBVCtZBFTchbb_PiLQtZLP7J9bpn5prRzZY$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A6RVNOUIYROFR36HVKSUQ73W662EDANCNFSM6AAAAAAWLRFK7Q__;!!GF_29dbcQIUBPA!wPn9eYG7NAzFFMmDKpLWuzQ_Ss1eZGv2RR2TtW_SNgebk2jhi7vymn1yQBVCtZBFTchbb_PiLQtZLP7J9bpn2lMILns$.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Hi,
Thank you for your patience.
I have finally completed the verification of a possible problem with "Base64 encoded binary" and found no problem with it.
You mentioned that you are converting string message to byte, why is that?
The "String" message type provided does not meet your requirements?
Or, instead of adding a "Bytes" message type, why not modify the already provided "String" message type as you have written?

I had written in a previous comment, "Or, instead of adding a "Bytes" message type, why not modify the already provided "String" message type as you have written?", but this was not possible.

Yes , you are correct. If we change it , it will change the functionality of string message .
Regards,
Srikanth
From: Kuniteru Asami @.>
Sent: 12 April 2023 12:42
To: pnopjp/jmeter-plugins @.>
Cc: Srikanth Mohan @.>; Author @.>
Subject: Re: [pnopjp/jmeter-plugins] Bytes code (PR #13)
I had written in a previous comment, "Or, instead of adding a "Bytes" message type, why not modify the already provided "String" message type as you have written?", but this was not possible.
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/pnopjp/jmeter-plugins/pull/13*issuecomment-1504780090__;Iw!!GF_29dbcQIUBPA!2QCISOsolGp47DIVmObflkq7fLzFRdMsnAWDF1AYjdE7cGGvI72xQg-6SpjVTzMaPv5iROMj41id90K-UdYgqUDofIg$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A6RVNOQK36N55X2W7OJRPVLXAZIVBANCNFSM6AAAAAAWLRFK7Q__;!!GF_29dbcQIUBPA!2QCISOsolGp47DIVmObflkq7fLzFRdMsnAWDF1AYjdE7cGGvI72xQg-6SpjVTzMaPv5iROMj41id90K-UdYgQcCMFpA$.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>


devtools custom tab ignores app baseURL

Describe the bug
When opening the tab on an app that uses a baseURL, the devtools <iframe> loads the incorrect URL
The DEVTOOLS_UI_ROUTE is set to '/__nuxt-i18n-micro' but should support '/prefix/__nuxt-i18n-micro' when a baseURL is defined
To reproduce
Set up your nuxt config with
      app: {
        baseURL: '/prefix/',
      },

You will see the <iframe src> is lacking the baseURL. This is most noticeable when your app is served via a proxy
Additional context
I have seen other libraries join nuxt.options.app.baseURL to fix
nuxt.hook('devtools:customTabs', (tabs) => {
  tabs.push({
    view: {
      type: 'iframe',
      src: joinURL(nuxt.options.app?.baseURL, '/__nuxt-i18n-micro'),

I will try to submit a PR with a fix but wanted to open this issue first

Unfortunately, I haven’t seen a single library that does it the way you described. For example, here: https://github.com/sudongyuer/unocss/blob/339f2b2c9be41a5505e7f4509eea1cf00a87a8d1/packages/nuxt/src/index.ts#L93
There are many similar examples. If you could point me to a working example, I’d try to implement it. On my own, I couldn’t figure out how to do it—only by running it entirely on a separate port, but I’d prefer not to do that for now.

Thanks for giving it a shot; I will try to take a stab at this soon too and open a PR.
I think my root cause is that I am running nuxt via a proxy, so the typical localhost/__nuxt-i18n-micro url is not available, but it does load at my-proxy-server/baseURL/__nuxt-i18n-micro. It definitely looks like an edge case, so I really do appreciate the time spent investigating it today
Here's tailwind as an example repo using the baseURL to generate its src url:
https://github.com/nuxt-modules/tailwindcss/blob/f47e093472557d0c9caeb64c0d8612701c8855f9/src/viewer.ts#L10

Yes, I saw that implementation, but unfortunately, it doesn't suit the purpose at all. They simply took an already assembled module and inserted it onto the page. Essentially, they don’t have a dev mode at all; everything works the same everywhere. On the other hand, I wrote the entire module myself, occasionally looking at other examples. As a result, I have two operating modes—dev and prod—which lead to various issues. So far, I haven't found a way to make the prefix work properly with this approach.
I looked for examples on GitHub, but unfortunately, I didn’t find any.

Hello. Try version v1.37.0, it should work.

It's working perfectly! Thank you so much


Add support for sql variable inside query in snowflake and mysql dialect

see :
https://docs.snowflake.com/en/sql-reference/session-variables.html
https://dev.mysql.com/doc/refman/8.0/en/user-variables.html

Pull Request Test Coverage Report for Build 210968265

47 of 47 (100.0%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.08%) to 92.02%

Totals

Change from base Build 205645794:
0.08%

Covered Lines:
4601

Relevant Lines:
5000

💛  - Coveralls

Sorry for the long delay.
This was previously discussed in #48, where using a custom dialect, in which $ can start an identifier, was deemed a good enough solution.
@alex-dukhno recently noted that a custom dialect would fail all the dialect_of! checks we've started to add, so perhaps it is time to reconsider.
Doing this in the parser results in accepting $ var as a variable, which is weird. I guess you did that to support MySQL's  @"quoted identifier" notation, but still it seems like this logic belongs in the tokenizer.
I'd appreciate it if the PR included the logic we're trying to implement, instead of simply a link to the docs. For snowflake it seems that the relevant bits are the following, and we're focused on implementing the first two only?

all variables must be prefixed with a $ sign (the documentation does not explain what can follow the dollar sign though..)
can be used in Snowflake anywhere a literal constant is allowed
Variables can also contain identifier names, such as table names (e.g. SELECT * FROM IDENTIFIER($MY_VARIABLE))

About the custom dialect i thinked about 2 options  :

Maybe it's would be better to use the dialect_of macro only in the parser - and if we need  a specific  behaviour in the Tokeniser  , maybe it will be better to add another function to trait
Maybe we could add to the trait some kind of "follow_dialect" function - and change the "dialect_of" macro to return true if it is the current dialect or dialect that following  the current dialect .

About the general points you raised:

"use the dialect_of macro [... or ...] add another function to the "Dialect" trait." -- I believe we should use dialect_of! by default to handle differences between the dialects we support directly, and consider other solutions when there's a problem with dialect_of.
I agree tokenizer will probably end up not using dialect_of! much, but designing an alternative compatible with all the dialects requires more upfront research (that's why I was OK with merging #264, which used dialect_of in the tokenizer)

The follow_dialect idea is somewhat off-topic for this issue, unless you brought it up as another workaround for us not supporting bind variables. If you or someone else need something like follow_dialect specifically, I'd like to discuss this in a separate issue.

About the current PR - Do you think it's will be better if we take the whole variable as a single token ?

This seems more appropriate, yes, given the $ var (with the space between the dollar sign and the variable name) issue I brought up. But again, I'd like us to start with defining the problem we're trying to solve.
For instance implementing the "can be used in Snowflake anywhere a literal constant is allowed" requirement will require rather invasive changes to the parser. Considering other dialects will require more research.
If you want to implement a subset of the Snowflake dialect that recognizes $vars in expression context only for now, that can be achieved relatively easily. This is how I would do it:

Define what characters can follow $ in a variable name, and use dialect_of! to conditionally parse it into a Variable token.
Parse the Variable token in parse_value to a new Value variant
Match on the Variable token along with Number and others unconditionally in parse_prefix.

Hi @nickolay
developing PostgreSQL protocol compatible database I collect some knowledge around $var for Postgres

$ can follow only by a numbers, starting from 1. Query examples using official doc:

prepare n (int2) as insert into numbers values ($abc); gives you ERROR:  syntax error at or near "$"
after query prepare n (int2) as insert into numbers values ($2);

if you try to execute execute n(1); you will see ERROR:  wrong number of parameters for prepared statement "n" DETAIL:  Expected 2 parameters but got 1.
however, if you execute execute n(1, 10); 10 will be inserted into a table

By intuition, it should follow $[parameter_index] pattern where parameter_index is index in values from query like execute n(1, 10);
It can be used in insert queries as variable values e.g. insert into <table_name> values ($1, $2);
It can be used in update queries in SET <column_name>=$1 expressions
It can be used in where, join and having predicates.
I've checked select $1 it also works
It doesn't work with SET <param_name> = e.g. prepare set_stmt as SET extra_float_digits = $1; results into ERROR:  syntax error at or near "SET"

I am wondering if based on above info your suggestion:

If you want to implement a subset of the Snowflake dialect that recognizes $vars in expression context only for now, that can be achieved relatively easily. This is how I would do it:

Define what characters can follow $ in a variable name, and use dialect_of! to conditionally parse it into a Variable token.
Parse the Variable token in parse_value to a new Value variant
Match on the Variable token along with Number and others unconditionally in parse_prefix.

could be applied to PostgreSqlDialect?

@eyalleshem Could you rebase please so I can merge this?

Hi @eyalleshem  -- sorry for the delay in review. I am going to help out now with this repo and we are working to clear the backlog. Is this PR still something you would like to work on to help contribute?

I am closing what look like stale PRs in this repo; I apologize in advance if this is a mistake -- please feel free to reopen if you want to keep working on this issue.


[stable/jenkins] extracted "jenkins.url" into template

What this PR does / why we need it:
This way we can re-use the logic when configuring the URL via JCasC or when we need the URL somewhere else.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @maorfr

/lgtm
I love it.

@maorfr adjusted Chart.yaml to fix merge issues

/lgtm

/retest


Stop explicitly disabling CGO

Addresses CVE-2023-3089

/override "KinD / Tests (latest, false, hosted)"


Add manual installation directions for Linux, Modify API a bit to avoid UTF-8 issues, various updates

There don't seem to be any pre-built xxHash libraries around. Made up a quick step by step guide. Also, update how it handles  files Bufs and IO candidates to simplify use. Updates test, README. META6, add an example script.

Thanks for your PR. I like the changes you made to the module source. That being said, there's a lot here that I'd rather you add to the wiki.
Regarding the Debian installation procedure, the only way that's going into the codebase is if someone hosts an unofficial libxxhash apt repo, which I can then link to from README.md under the Dependencies section. I'm not going to add an INSTALL file to this repo, as it's not in keeping with Arch/Mac dependency installation instructions, which are a simple URL pointer to something that can be easily downloaded.
Could you add your debian installation instructions to the wiki and trim them from this PR?
For your code example, I really like how @junegunn handles code examples in fzf. I'd rather your code example also be trimmed from this PR and instead placed in a wiki examples page kind of like the fzf examples wiki page.

Sure, all good suggestions. I didn't even realize you had a wiki for the module, sorry for not checking that first. I wasn't sure how open you may be to pull requests so didn't invest a lot of energy. We will likely both be best served by me closing this pull request and opening another with the changes you suggest to avoid a bunch of alternate history.


Nuxt Sitemap does not include the images even though the Nuxt content pages contain many images.

I am developing a Nuxt content website for documentation purposes and using the Nuxt Sitemap in it.
I have created a similar repo as my original project on CodeSandBox. Can someone please have a look and provide some solutions on the automatic generation of sitemap for images in the Nuxt Content project?
I am adding the sitemap information to my /content/docs with all the markdown or .md files such as:
/content/docs/introduction/index.md:
---
title: "Introduction"
description: My Introduction to content website
sitemap:
  loc: /docs/introduction
  lastmod: 2024-08-30
  changefreq: quaterly
  priority: 0.9
___

I can generate the sitemap.xml file during the npm run generate but this generates the url only for the routes that are present in /content/docs where I have added the sitemap information to my index.md files such as this in:
<url>
    <loc>https://example.io/docs/introduction</loc>
    <lastmod>2024-08-30</lastmod>
    <changefreq>quaterly</changefreq>
    <priority>0.9</priority>
    <xhtml:link rel="alternate" href="https://example.io/docs/introduction" hreflang="x-default" />
    <xhtml:link rel="alternate" href="https://example.io/docs/introduction" hreflang="en" />
</url>

I have many images within this index.md file but these images are for some reason not included in the sitemap.xml file. I don't want to specify each image in my all .md files rather want a dynamic approach where Nuxt Content/Sitemap can automatically scan and include all images in my /content/docs so it's all included in sitemap.xml file.
I added the following:
sitemap: {
  urls: [
    {
      loc: '/docs',
      images: [
        {
          loc: 'https://example.io/docs/introduction/image1.png',
          caption: 'My image caption',
          geoLocation: 'My image geo location',
          title: 'My image title',
          license: 'My image license',
        }
      ]
    }
  ]
},

This will add only the specified image here to my sitemap.xml file. However, I have a lot of images in different .md files within my Nuxt content /content/docs. How to include all dynamically and directly without specifying each of them here in nuxt.config.js file?

I added the following by looking into the Nuxt Content Documentation

//To support and display the .md files from /content using @nuxt/content
content: {
  documentDriven: true,
  sitemap: true,
  //To get the reading time for each .md file in /content
  markdown: {
    remarkPlugins: ["remark-reading-time"],
  },
  //To build the sitemap for SEO automatically using @nuxt/sitemap
  strictNuxtContentPaths: true
},

sitemap: {
  sources: [
    '/api/__sitemap__/urls'
  ]
},

And a file in /server/api/__sitemap__/urls.ts but this also does not make any difference and I do not get my images or videos in sitemap.xml file:
import { defineEventHandler } from 'h3'
import type { ParsedContent } from '@nuxt/content/dist/runtime/types'
import { serverQueryContent } from '#content/server'
import { asSitemapUrl, defineSitemapEventHandler } from '#imports'

export default defineSitemapEventHandler(async (e) => {
  const contentList = (await serverQueryContent(e).find()) as ParsedContent[]
  return contentList
    .filter(c => c._path.startsWith('docs'))
    .map((c) => {
      return asSitemapUrl({
        loc: `/blog/${c._path.replace('docs', '')}`,
        lastmod: updatedAt
      })
    })
})

As per mentioned in the Nuxt SiteMap Automatic Image Discovery i wrapped my layouts/default.vue with  something like this:

    <slot />

Previously I was just using the  <slot />. Even after adding the  when I generate the .output I don't see image-related things in sitmap.xml.
References:

Nuxt Sitemap
Nuxt Sitemap images
CodeSandBox Reproduction of the issue

Is there any way to achieve this?

Did you try following Automatic Image Discovery?

@harlan-zw
Thanks a lot for the response. As per mentioned in the document i wrapped my layouts/default.vue with  something like this:

    <slot />

Previously I was just using the  <slot />. Even after adding the  when I generate the .output I don't see image related things in sitmap.xml. Do I need to do anything else as well? I have following in my nuxt.config.js:
 modules: [
    "@nuxtjs/tailwindcss",
    "unplugin-fonts/nuxt",
    "@nuxtjs/i18n",
    "@nuxt/content",
    "@nuxtjs/color-mode",
    "@nuxt/image",
    "@nuxtjs/sitemap"
  ],

  //To support and display the .md files from /content using @nuxt/content
  content: {
    documentDriven: true,
    sitemap: true,
    //To get the reading time for each .md file in /content
    markdown: {
      remarkPlugins: ["remark-reading-time"],
    },
    //To build the sitemap for SEO automatically using @nuxt/sitemap
    strictNuxtContentPaths: true
  },

Do I need to add anything for the sitemap to include automatically everything?

Did you try following Automatic Image Discovery?

@harlan-zw I tried the approach you mentioned but seems like its not working. Any suggestion, please?

Sorry looks like I missed that part. The quickest and easiest way for me to help you is by providing a reproduction, there's even already a Nuxt Content starter for you https://stackblitz.com/edit/nuxt-starter-a5qk3s?file=nuxt.config.ts

@harlan-zw
Thanks a lot for the response. Sorry, I should have given you the code sample. I have created a similar repo as my original project on CodeSandBox. Can you please have a look and provide some solutions on the automatic generation of sitemap for images in the Nuxt Content project?
I have my contents/images in /docs/introduction and /docs/basics and I have 3 images in my public/img repo but for some reason I do not see anything within my sitemap.xml when I run npm run generate

Sorry looks like I missed that part.
The quickest and easiest way for me to help you is by providing a reproduction, there's even already a Nuxt Content starter for you https://stackblitz.com/edit/nuxt-starter-a5qk3s?file=nuxt.config.ts
You've given me a lot of information but not a lot I can do without replicating the issue, this feature works as far as I know, there are tests in place for it.

As per your request I have added my reproduction code here CodeSandBox if you get a chance can you please have a look and provide some solution?

Sorry looks like I missed that part.
The quickest and easiest way for me to help you is by providing a reproduction, there's even already a Nuxt Content starter for you https://stackblitz.com/edit/nuxt-starter-a5qk3s?file=nuxt.config.ts
You've given me a lot of information but not a lot I can do without replicating the issue, this feature works as far as I know, there are tests in place for it.

@harlan-zw
As per your request I have added my reproduction code here CodeSandBox if you get a chance can you please have a look and provide some solution?

Sorry looks like I missed that part.
The quickest and easiest way for me to help you is by providing a reproduction, there's even already a Nuxt Content starter for you https://stackblitz.com/edit/nuxt-starter-a5qk3s?file=nuxt.config.ts
You've given me a lot of information but not a lot I can do without replicating the issue, this feature works as far as I know, there are tests in place for it.

@harlan-zw As per your request I have added my reproduction code here CodeSandBox if you get a chance can you please have a look and provide some solution?

I had a look at this and it seems like the regex parsing was broken for the NuxtImg output.
I've pushed up a fix which is in v6.0.0-beta.4 of the sitmeap module, you can upgrade to it by deleting your lock file + node_modules and re-installing.
If you still have issues please use this as a reproduction https://stackblitz.com/edit/nuxt-starter-a5qk3s?file=app.vue, the codesandbox has issues running.

I had a look at this and it seems like the regex parsing was broken for the NuxtImg output.
I've pushed up a fix which is in v6.0.0-beta.4 of the sitmeap module, you can upgrade to it by deleting your lock file + node_modules and re-installing.
If you still have issues please use this as a reproduction https://stackblitz.com/edit/nuxt-starter-a5qk3s?file=app.vue, the codesandbox has issues running.

@harlan-zw
Thanks a lot for the response and quick fix. As per you suggestion I did the following in my project:

Remove all the things: rm -Rf .output .nuxt node_modules package-lock.json.

Update the version: "@nuxtjs/sitemap": "^6.0.0-beta.4",

Ran the: npm install

Run: npm run generate

Observe the .output/public/__sitemap__/en.xml for all the images using automatic discovery.

For some reason I am still unable to get any images in my sitmap.xml file when using Nuxt Content and Nuxt Sitemap. I tried in my original project as well as on CodeSandBox. It did not work in both places.
As requested by you I tried on Stackblitz but for some reason unable to upload dummy images there and it suddenly breaks for some reason not sure why. I am facing some issues on Stackblitz.
I have updated code in both CodeSandBox and on Stackblitz.
Can you please have a look and let me know how to get the images in Sitemap.xml using the Automatic Image Discovery
Thanks a lot in advance.

@harlan-zw
I also tried using the components/content/ProseImg.vue to force the images to be rendered as NuxtImg and passed the images in .md files as:
![Image1.](/img/Image1.png)

Then I ran the npm run generate even then I do not get the images in my Sitemap.xml file. I tried in my original project as well as in the CodeSandBox did not work on either of them.

@harlan-zw
Just wanted to confirm if I can try something to fix the issue. Anything is required from my side for you to fix the issue?

@harlan-zw
Is there any alternative way or work-around to fix the issue for now until the final fix has been added to @nuxt/sitemap? Looking forward to some approach or fix.

The issue seems to be quite simple, you have disabled ssr which means that when Nuxt prerenders the site, it won't prerender using the server. This means that none of the page content is available to the Sitemap module.
If you're using nuxt generate, there's no harm in having ssr enabled as it will always produce an output that doesn't rely on a server.
Saying that I did do some testing with your setup and noticed some duplicate loc and alternative entries which I've pushed up a fix for in the latest RC.

@harlan-zw
Thanks a lot for the response, with ssr:true, I am able to get some routes but I run into various errors during the process. Also, I have few tags in my .md files and if the tags have spaces then the spaces are retained in the generated URL within the sitemap.xml file.  Can you please let me know how to fix this?
Please once let me know how to fix the issue. Because with ssr:false I do not get any of the issues during nuxt generate. Following is my code in the CodeSandBox. Generated SiteMap.xml
Following are the errors that I get during the generation:

Sitemap.xml Errors during the ssr:true

[9:20:40 PM]  WARN  Export "useNitroApp" of module "node_modules/nitropack/dist/runtime/app.mjs" was reexported through module "node_modules/nitropack/dist/runtime/index.mjs" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in<EMAIL_ADDRESS>to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

ℹ Prerendering 6 initial routes with crawler                                                                                nitro 9:20:41 PM
  ├─ /__sitemap__/style.xsl (18ms)                                                                                nitro 9:20:41 PM
  ├─ /404.html (143ms)                                                                                nitro 9:20:41 PM
  ├─ /200.html (144ms)                                                                                nitro 9:20:41 PM
  ├─ /api/_content/cache.1725052821479.json (190ms)                                                                                nitro 9:20:41 PM
  ├─ /ui/ (256ms)                                                                                nitro 9:20:41 PM
  │ └── Error: [404]
  ├─ / (254ms)                                                                                nitro 9:20:41 PM
  ├─ /_payload.json?b08843fd-bd7e-4fa8-9d0c-5eb443ea2da1 (15ms) (skipped)                                                                                nitro 9:20:41 PM
  ├─ /api/_content/query/0CgxMh2nDn.1725052821479.json (7ms)                                                                                nitro 9:20:41 PM
  │ ├── Error: [404] Document not found!
  │ └── Linked from /
  ├─ /en-sitemap.xml (10ms)                                                                                nitro 9:20:41 PM
  ├─ /index-sitemap.xml (9ms)                                                                                nitro 9:20:41 PM
  ├─ /api/_content/query/oWHhTkscLk.1725052821479.json (6ms)                                                                                nitro 9:20:41 PM
  ├─ /sitemap.xml (9ms)                                                                                nitro 9:20:41 PM
  ├─ /_payload.json (2ms)                                                                                nitro 9:20:41 PM
  ├─ /api/_content/navigation/i5pZc4XEtQ.1725052821479.json (15ms)                                                                                nitro 9:20:41 PM

 ERROR  [nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'getSSRProps')                                                                                9:20:41 PM
  at ssrGetDirectiveProps (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:229:40)
  at ./.nuxt/prerender/chunks/build/DrawflowTest-sjbpp6tp.mjs:47:216
  at renderComponentSubTree (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:442:9)
  at renderComponentVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:386:12)
  at renderVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:502:14)
  at renderComponentSubTree (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:457:7)
  at renderComponentVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:386:12)
  at renderVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:502:14)
  at renderVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:506:9)
  at renderComponentSubTree (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:457:7)
  at renderComponentVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:386:12)
  at renderVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:502:14)
  at renderComponentSubTree (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:457:7)
  at renderComponentVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:386:12)
  at ssrRenderComponent (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:84:10)
  at ./.nuxt/prerender/chunks/build/server.mjs:8712:16
  at renderFnWithContext (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:308:13)
  at ssrRenderSlotInner (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:112:17)
  at ssrRenderSlot (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:94:3)
  at ./.nuxt/prerender/chunks/build/default-Cy_3hxgS.mjs:10:7
  at renderComponentSubTree (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:442:9)
  at renderComponentVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:386:12)
  at renderVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:502:14)
  at renderComponentSubTree (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:457:7)
  at ./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:384:25
  at async renderToString (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:673:18)
  at async Object.renderToString$1 [as renderToString] (./.nuxt/prerender/chunks/_/renderer.mjs:154:18)
  at async Object.renderToString (./node_modules/vue-bundle-renderer/dist/runtime.mjs:174:20)
  at async ./.nuxt/prerender/chunks/_/renderer.mjs:254:21
  at async Object.handler (./.nuxt/prerender/chunks/_/renderer.mjs:21:22)
  at async Object.handler (./node_modules/h3/dist/index.mjs:1975:19)
  at async toNodeHandle (./node_modules/h3/dist/index.mjs:2266:7)
  at async ufetch (./node_modules/unenv/runtime/fetch/index.mjs:9:17)
  at async generateRoute (./node_modules/nitropack/dist/chunks/prerender.mjs:116:17)
  at async Promise.all (index 1)
  at async Promise.all (index 2)
  at async runParallel (./node_modules/nitropack/dist/chunks/prerender.mjs:253:3)
  at async prerender (./node_modules/nitropack/dist/chunks/prerender.mjs:202:3)
  at async ./node_modules/nuxt/dist/index.mjs:3615:7
  at async build (./node_modules/nuxt/dist/index.mjs:5479:5)
  at async Object.run (./node_modules/nuxi/dist/chunks/build.mjs:94:5)
  at async Object.run (./node_modules/nuxi/dist/chunks/generate.mjs:55:5)
  at async runCommand$1 (./node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
  at async runCommand$1 (./node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
  at async runMain$1 (./node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)

  ├─ /DrawflowTest (99ms)                                                                                nitro 9:20:41 PM
  │ ├── Error: [500]
  │ └── Linked from /

[9:20:47 PM]  WARN  Export "useNitroApp" of module "node_modules/nitropack/dist/runtime/app.mjs" was reexported through module "node_modules/nitropack/dist/runtime/index.mjs" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in<EMAIL_ADDRESS>to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

  ├─ /sitemap_index.xml (8ms)                                                                                nitro 9:20:48 PM
  ├─ /__sitemap__/en.xml (27ms)                                                                                nitro 9:20:48 PM
                                                                                nitro 9:20:48 PM
Errors prerendering:
  ├─ /ui/ (256ms)                                                                                nitro 9:20:48 PM
  │ └── Error: [404]
  ├─ /api/_content/query/0CgxMh2nDn.1725052821479.json (7ms)                                                                                nitro 9:20:48 PM
  │ ├── Error: [404] Document not found!
  │ └── Linked from /
  ├─ /DrawflowTest (99ms)                                                                                nitro 9:20:48 PM
  │ ├── Error: [500]
  │ └── Linked from /
                                                                                nitro 9:20:48 PM

 ERROR  Exiting due to prerender errors.                                                                                9:20:48 PM

  at prerender (node_modules/nitropack/dist/chunks/prerender.mjs:220:11)
  at async node_modules/nuxt/dist/index.mjs:3615:7
  at async build (node_modules/nuxt/dist/index.mjs:5479:5)
  at async Object.run (node_modules/nuxi/dist/chunks/build.mjs:94:5)
  at async Object.run (node_modules/nuxi/dist/chunks/generate.mjs:55:5)
  at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1648:16)
  at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1639:11)
  at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.6aad497e.mjs:1777:7)

 ERROR  Exiting due to prerender errors.

The issue seems to be quite simple, you have disabled ssr which means that when Nuxt prerenders the site, it won't prerender using the server. This means that none of the page content is available to the Sitemap module.
If you're using nuxt generate, there's no harm in having ssr enabled as it will always produce an output that doesn't rely on a server.
Saying that I did do some testing with your setup and noticed some duplicate loc and alternative entries which I've pushed up a fix for in the latest RC.

@harlan-zw
Thanks a lot its working fine now with ssr:true and able to get the images in sitemap.xml file. But I am facing one small issue:
I have a few tags in my .md files; if the tags have spaces, then the spaces are retained in the generated URL within the sitemap.xml  file. Can you please let me know how to fix this?
I have a Nuxt content website with some of the markdown files in /content/index.md with tags such as:
  navigation:
  linkTitle: "Introduction"
  tags : ["Testing tools", "performance tests", "process automation", "supply chain management", "load tests"]

I am generating the sitemap.xml  using the nuxtjs/sitemap with ssr:true  during the generation of the sitemap it generates the URL with spaces such as:
 <url>
    <loc>http://localhost:3000/tags/performance tests</loc>
    <xhtml:link rel="alternate" href="http://localhost:3000/tags/performance tests" hreflang="x-default" />
    <xhtml:link rel="alternate" href="http://localhost:3000/tags/performance tests" hreflang="en" />
</url>

Since it generates the URL with spaces they are invalid but URLs are valid when I navigate to them then they are present with spaces:
http://localhost:3000/tags/performance%20tests

How to ensure the sitemap adds appropriate spaces and checks for valid URLs before generating the sitemap.xml  using Nuxt Sitemap and replacing the spaces with URL-safe characters.


rule: fix query addr parsing

[x] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes

Fixes issue #2281 bug in ruler with parsing query addr with path prefix
Note: Right now querySDFiles will be added as new element to query.Config slice as suggested in https://github.com/thanos-io/thanos/issues/2281#issuecomment-600546052.

Verification

I have added unit test for parsing config, however I haven't tested it live. Is there and easy way of doing it?

@bwplotka is this image automatically built on docker somehow? Or how can I test it live?

No, you can build on your own: make docker && make docker-push DOCKER_IMAGE_REPO=<your-repo> DOCKER_IMAGE_TAG=<wanted tag>
We build only for releases and once you merge to master.


add least squares regression cookbook

I'm not sure if i should add the shogun-data subproject thing in this commit.
@karlnapf Please review.

The above build automatically generates this

I will review this soon, gotta run now

Good page!
Sorry about all the change requests ... I am still making up my mind about how to do this best. But I think we are almost there.
BTW, also please add a test file in data/testsuite/meta/regression/least_squares_regression.dat in the data repository

OK one more thing. This class is just a wrapper for linear ridge regression with 0 regulariser.
Could you just write a page for the ridge regression, and then mention that there is a wrapper class called LeastSquaresRegression which just sets the regulariser to 0?

@karlnapf Updated the commit.

Sweet, this is starting to look good.
I wrote some more comments, mostly minor -- but I really want to get the first few pages right so that people have an easier time writing the next ones.
Most importantly, make this an example for ridge regression. No need to have one for least squares. You can just mention this in the text. Ah I just realise that the data file then also has to be renamed and re-calculated -- I should not have merged it

@karlnapf sorry i didn't pay attention to the mse-accuracy thing. Everything has been corrected now.

All comments are minor. The data file does not have to be touched anymore. Ill merge data and wait for the final update on this one.
NICE! :)

@karlnapf updated but the one travis build got terminated.

@sanuj there's something else with this because i've re-ran the gcc task and it's still timing out.

no idea what is wrong with travis?

the knn example times out ...

I just tried this locally and it did work. No idea :(
Just compiling locally with the same cmake options

Very weird. travis passed after a few restarts....I'll merge for now
@vigsterkr any ideas?

Something cheesy is going on there. The merged build failed.
I then managed to reproduce this freeze locally, running cmake with only -DENABLE_TESTING=ON
@sanuj can you investigate this a bit? I will also tomorrow

This has high priority as the develop build is broken

i told you not to merge this....

All tests pass with -DENABLE_TESTING=ON:
.
.
.
        Start 275: generated_cpp-kernel_ridge_regression
275/275 Test #275: generated_cpp-kernel_ridge_regression ..............................   Passed    0.01 sec

100% tests passed, 0 tests failed out of 275

Total Test time (real) =  15.84 sec

With -DENABLE_TESTING=ON and -DPythonModular=ON a total of 209 tests fail (python modular and generated python) on my local. This has happened before and got fixed automatically but it's happening again (I don't know why).
In both the cases, sometimes the build gets stuck on Unit-LaRank.
@karlnapf do you think updating the data dir with new commits can fix it?

@sanuj @vigsterkr the timeout has nothing to do with this cookbook page here -- it happened before and it is the knn that times out. @sanuj It also has nothing to do with modular tests failing.


Auto 1min refresh messes with alert settings user is just about to configure

If user is adjusting alert levels (popup), and the page auto refreshes from the cloud at the same time before user approves the new settings, the changes are lost and the fields are updated with original values from the cloud.
Seems that when adjusting a custom alert message, this problem doesn't occur.

This problem is still there with offset calibration. See the video (00.14):
https://user-images.githubusercontent.com/1311912/151193937-f4d697ad-0759-4802-9b03-cabfcc91bf9e.mov


Complete solution for HttpClientFactory usage in a .NET 6 Service.

FYI, my team is using this from our fork and it's working well.


redis backend supports subscribe to task results

Added support to subscribe to results (no need to poll) when using redis backend, also sets expiritaion on tasks in redis backend as well.
Moreover added a docker-compose.yml to make testing easier, running two celery instances, one for amqp and one for redis backend/broker testing.
$ docker-compose up -d
$ npm test

Please hold this PR. I've just found a bug with my redis backend subscription if the broker is the same as the backend. Will be afk mostly during the weekend, but I will fix it early next week. Thanks!

I like it :+1:

Are there any updates on this PR? It'd be great to see it merged in to master.

@mher could you please publish the latest to npm?

@speier published

I just got upgraded to 0.2.8, and this PR seems to break backwards compatibility. Previously you had to pass in CELERY_RESULT_BACKEND: 'amqp', to enable results through amqp. Now it expects it to be a URL, and passing in just amqp makes it fail trying to read the protocol from that.
The documentation is now also wrong, as it still says to use CELERY_RESULT_BACKEND: 'amqp' everywhere.

@holm yes, that's true. not sure what would be the best option here. if the goal is to use the same (broker url for result backend), then you can simply leave out the CELERY_RESULT_BACKEND at all, simply specify the CELERY_BROKER_URL onyl, see tests. @mher what do you think about this?

Yeah, that is what I changed. However just using the examples as are will give an exception. I suggest to fix the documentation, and then making it backwards compatible by checking for CELERY_RESULT_BACKEND to equal amqp, and just substituting the CELERY_BROKER_URL.

please see #69


[photos-sharing]: Add web target?

Hey JF, does the Photos API have CORS headers that would enable a Flutter for Web target?

CORS support for the Google Photos Library API is somewhat limited. I'm not sure if the current configuration is sufficient for a Flutter for Web target. What would be the expected or needed configuration?
There is a feature request on the issue tracker here: https://issuetracker.google.com/118662029

I'll try adding a web target and see what happens. It's probably worth thinking about desktop as well

Photos sharing codelab was deprecated


fix osx x86_64 build

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
PR #6 unpinned the version of the Eigen library
Since then, one of the tests fails on OSX
Installed packages
...

Environment info
...

let's continue to track this in https://github.com/lsmo-epfl/zeopp-lsmo, as it is not really an issue with the conda recipe


odo init: Add new --run-port flag to set ports into initial Devfile

/kind user-story
/area init
User Story
As an odo user, I want to be able to set the ports when calling odo init non-interactively So that I can have my Devfile initialized right away with the right ports without having to edit it later on.
#5863 added the ability to automatically detect my application ports from the source code and use that as ports when initializing a Devfile interactively. Still, as a user, I also want to be able to specify such port(s) non-interactively.
This is mainly useful to support the port detection feature in the IDE extensions: https://github.com/redhat-developer/vscode-openshift-tools/issues/2781. The IDE extensions workflow would be:

Run odo analyze to detect things from the source code, like the Devfile, the component name, and application ports
Pass this information to odo init to (non-interactively) initialize a Devfile with the ports set in the right container component

As discussed in https://github.com/redhat-developer/odo/issues/6211#issuecomment-1293075852, there might be issues with Devfiles with more than one container component.
Acceptance Criteria

[ ] It should expose a repeatable --run-port int flag, which would look for any default run command (or the single non-default run command if any) and find the container component in which this run command runs.
[ ] It should error out if the run command is not an exec command
[ ] It should overwrite the container endpoints definition with the ones coming from this new flag
[ ] It should clearly document the limitations of this flag:

[ ] only supporting single exec run command

Examples:
$ odo init --run-port 8080 --run-port 8081

Links

Related Epic (mandatory):
Feature request: #4448

/kind user-story

@rm3l Change the description

/unassign
Description updated and issue ready to be planned into the upcoming sprint.


Fix PHP 5.3 error

Fixing the PHP 5.3 bug in Creole, needed to upgrade the software on extreme-legacy sites.
Without this change the models can no longer be generated.

I cannot do anything about this. First, because symfony 1.0 is not maintained anymore, then because the patch is for Creole, which is just a vendor.

Understood - it's in the system however, so others who are unfortunate enough to use symfony 1.0 still will have easy access to it.


Push registration as anonymous only

Users are registered as anonymous only. The email field is not populated although the device field is set correctly.  Am I missing something?

yes that is normal. There is no option to let users share their email address.


Mailing list correction to Still Have Questions? document

Mailing list address to ask questions has changed and is no longer what it is as shown and hence needs fixing. The changed address is verified to be correct and I used this changed/mew address successfully. Thank you.
URL to JIRA item FAB-17562 is: https://jira.hyperledger.org/browse/FAB-17562
I tested the changed/new mailing list by sending a mail to this address that got delivered successfully.
Signed-off-by: pvrbharg<EMAIL_ADDRESS>

Type of change

Bug fix
New feature
Improvement (improvement to code, performance, etc)
Test update
Documentation update

Description

Additional details

Related issues

Mailing list address correction to Still Have Questions? document

Thanks for the contribution!

@Mergifyio backport release-2.0


Support dateutil dateFirst parameter

https://dateutil.readthedocs.org/en/latest/parser.html#dateutil.parser.parserinfo

Hi @kiryam. Thank you for your interest in dateparser. Can you please implement your changes according to this issue: https://github.com/scrapinghub/dateparser/issues/52?

Hello @Allactaga, I can add yearfirst parameter for language, But I believe this is depend from situation, not only from language (For example in Russia we use 2015-02-10 and 10-02-2015). Parameter yearfirst must be set directly in get_date_data. For example: ddp.get_date_data('13 Agosto 2014', yearfirst=True)

We are closing this PR in favor #73. Thank you @kiryam, we look forward to your continuous interest in the project.


feature: Upgrade the wasm demo developed by rust(#255)

What this PR does:
Upgrade the wasm demo developed by rust(#255)
Special notes for your reviewer:
the Rust version  should not less than 1.56.0.

@seeflood

Thanks for your contribution!
Please sign the cla first

Thanks for your contribution! Please sign the cla first

already signed

@zhenjunMa @zu1k Please help review this PR, thx

LGTM

@nanjingboy the review is blocked

@seeflood the review is blocked

Waiting for @zhenjunMa 's review
@nanjingboy Besides, since we are going to release v0.4, this PR will be merged after v0.4 released


Config Generator link Broken

Hey
All links from the documentation/github issues which point to the Config Generator seem to be down. Could someone please point me to the correct link?

bump

Duplicate of #1196


Add linux ci job

Once https://github.com/dotnet/runtimelab/pull/2592 is released in a package we can build and run on linux

fixed with #40


data directory missing in 0.2.4 installations

While updating graphmb in Bioconda to 0.2.4 we're seeing the following error during testing with python -c "import graphmb":
21:28:42 BIOCONDA INFO (OUT) Traceback (most recent call last):
21:28:42 BIOCONDA INFO (OUT)   File "/opt/conda/conda-bld/graphmb_1684876932372/test_tmp/run_test.py", line 2, in <module>
21:28:42 BIOCONDA INFO (OUT)     import graphmb
21:28:42 BIOCONDA INFO (OUT)   File "/opt/conda/conda-bld/graphmb_1684876932372/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/site-packages/graphmb/__init__.py", line 2, in <module>
21:28:42 BIOCONDA INFO (OUT)     from . import contigsdataset
21:28:42 BIOCONDA INFO (OUT)   File "/opt/conda/conda-bld/graphmb_1684876932372/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/site-packages/graphmb/contigsdataset.py", line 25, in <module>
21:28:42 BIOCONDA INFO (OUT)     BACTERIA_MARKERS = files('graphmb.data').joinpath('Bacteria.ms')
21:28:42 BIOCONDA INFO (OUT)   File "/opt/conda/conda-bld/graphmb_1684876932372/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/site-packages/importlib_resources/_common.py", line 46, in wrapper
21:28:42 BIOCONDA INFO (OUT)     return func(anchor)
21:28:42 BIOCONDA INFO (OUT)   File "/opt/conda/conda-bld/graphmb_1684876932372/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/site-packages/importlib_resources/_common.py", line 56, in files
21:28:42 BIOCONDA INFO (OUT)     return from_package(resolve(anchor))
21:28:42 BIOCONDA INFO (OUT)   File "/opt/conda/conda-bld/graphmb_1684876932372/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/functools.py", line 889, in wrapper
21:28:42 BIOCONDA INFO (OUT)     return dispatch(args[0].__class__)(*args, **kw)
21:28:42 BIOCONDA INFO (OUT)   File "/opt/conda/conda-bld/graphmb_1684876932372/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/site-packages/importlib_resources/_common.py", line 82, in _
21:28:42 BIOCONDA INFO (OUT)     return importlib.import_module(cand)
21:28:42 BIOCONDA INFO (OUT)   File "/opt/conda/conda-bld/graphmb_1684876932372/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.10/importlib/__init__.py", line 126, in import_module
21:28:42 BIOCONDA INFO (OUT)     return _bootstrap._gcd_import(name[level:], package, level)
21:28:42 BIOCONDA INFO (OUT) ModuleNotFoundError: No module named 'graphmb.data'

Looking at the setup.py

will be fixed in 0.2.5


[Wallet] Add daily limit to CELO withdrawals

Description
Added a limit to CELO withdrawals. They contribute to and use the same limit that cUSD transfers do.
Other changes

Limited the limit error message to 2 decimal places since it was very long otherwise because of exchange rates.
Added a $500 limit to requests as well, since they would never be able to be completed otherwise.

Tested
In the simulator sending/withdrawing different amount of funds.
Related issues

Fixes #4895

Need fund to verify this task


fix typo (idomatic -> idiomatic)

** READ THIS FIRST! **
Are you implementing a new feature?
Requests for new features should first be discussed on the developer forum.
This allows the community to gather feedback and assess whether or not there is
an existing way to achieve the desired functionality.
If it is determined that a new feature needs to be implemented, include a link
to the relevant discussion along with the pull request.
Is this a security patch?
Do not open pull requests that might have security implications.  Potential
security vulnerabilities should be reported privately to<EMAIL_ADDRESS>Once any vulnerabilities have been repaired, the details will be disclosed
publicly in a responsible manner.  This also allows time for coordinating with
affected parties in order to mitigate negative consequences.
If neither of the above two scenarios apply to your situation, you should open
a pull request.  Delete this paragraph and the text above, and fill in the
information requested below.

Checklist

[ ] I have read the CONTRIBUTING guidelines.
[ ] I have added test cases which verify the correct operation of this feature or patch.
[ ] I have added documentation pertaining to this feature or patch.
[ ] The automated test suite ($ make test) executes successfully.
[ ] The automated code linting ($ make lint) executes successfully.

Coverage remained the same at 99.79% when pulling 74b34cfcbfbb37c163e0ef5c5b6e8a3f071d327c on Maisy:master into 1105760de472c25e2641b8c2b4058189556fb2e2 on jaredhanson:master.


Create a components class

In order to fetch additional event information the components could be fetched and the resulting HTML can be parsed since the webserver returns some information in json in the html page.

Parse the json data via html (Json data is in https://schema.org/MusicEvent)
Parse the next page and note for developers to limit dates. (up to 10 pages as this is the max of returned pages.)

Refactored code to be more modular and type safe.


Clarifying how Safe links works

Hello team;
Based on this documentation, it is not clear if Safe Links uses a sandbox to evaluate the URLs received thru email, in an Office document or Teams chat, I may assume that yes based on the fact that any time the user clicks a URL, Microsoft open it and analyze it (in real-time) but not really sure if it works like that, could be good to clarify it in this documentation based on the fact that some customers are asking us about it. Thanks in advance!
Vianey

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

ID: 8112b7a9-8f21-18b3-03da-f8c02b05f239
Version Independent ID: a441f1d1-5844-ecb9-ba44-95b94714e4e8
Content: Complete Safe Links overview for Microsoft Defender for Office 365 - Office 365
Content Source: microsoft-365/security/office-365-security/safe-links.md
Product: m365-security
Technology: mdo
GitHub Login: @chrisda
Microsoft Alias: chrisda

@vianeyhm, both Safe Links and Safe Attachments use a hypervisor/sandbox environment to detonate the links/attachments to see what happens.
So what's the question?


The performance of the NNShot in the experiment which is from ontonotes to wnut

I can’t meet the targets mentioned in the paper.

This is what I measured. I only got 17.73%, but the paper reached 23.9%

I got the same result as you on the conll 03 to wnut experiment.
But the model trained on the ontonotes dataset can’t achieve the values in this paper. Whether the target dataset is wnut or conll03.

I get the same score from the model trained on the ontonotes with IO labels, instead of BIO labels. Thans for your share!


Allow for alternate sound_definitions.json file format

Currently, the schema for rp/sounds/sound_definitions.json requires using the sound_definitions object. However, omitting format_version and simply objects (example below) also works.
{
  "guns.sniper.fire": {
    "category": "neutral",
    "sounds": [
      "sounds/sniper_sound"
    ]
  }
}

Perhaps prevent schema from showing errors by allowing this file format.

I know this is supported, because this is how Minecraft started with it, they want to move over to the format version. So that if there are heavy changes it properly formatted :)
For that I am closing this issue, as I believe that using a format version is the way forward


bg-colors and links

On current beta2, with this HTML piece:

        This is a sample paragraph.

        And here, a link.

        And another one with color class.

We have this:

So in order to not have issue with links, we have to specified text-light on each of them. This will going to be cumbersome when having multiple links like this.
IMHO, we should find a way to apply a color globally from the div containing the bg-* class.
#23570 was closed, but it should be re-considered, it's not a bad idea. cc @mdo @justindocanto
Or maybe another solution? In any case, something should be proposed for this case.
Regards.

My comment there still stands: https://github.com/twbs/bootstrap/issues/23570#issuecomment-323601774. Utilities are used for very specific situations; they don't always work for every situation.

@mdo What would you recommend for this case? An entry on the cookbook would be appreciated. :+1:

@mdo May I have any answer? Even short? Thanks.


Fix L2 label status

Current dependencies on/for this PR:

main

PR #145   👈

This stack of pull requests is managed by Graphite.


Add more flexibility to accumulate and aggregate functions in formula.

Accumulate will have access to the previous accumulated time window.
Aggregate will have access to the previous aggregated time window and the incoming accumulated usage.
Add cellfn in timewindow. Given a timewindow, the time the timewindow was created, and the usage's event time, it will returns a function that takes in a timewindow dimension(s, m, h, D, M) and returns the timewindow[dimension][event time].

Coverage increased (+0.02%) to 86.537% when pulling 9a116ea590ba5f21add8504ac3f39bfa966c60e7 on KRuelY:cellfn into e4cd76050399cbc196d0bf8c33b765761637c787 on cloudfoundry-incubator:master.


⚠ Bofrost.at has degraded performance

In f650e1a, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1034 ms

Resolved: Bofrost.at performance has improved in 8694bea.


Refactor Legend Implementation for V4

The v3 legend implementation is largely carried over from v2 and needs a refactor to match the scriptable options introduced in v3 while at the same time resolving long standing pain points in the code. This ticket is to track that refactor, but since this will be a breaking change it will not be possible to introduce this until v4.
State Changes

The legend items & hitboxes state should be combined into a single object

Option Changes

generateLabels should not be responsible for determining the item styles. Should consider renaming to generate
A legend context should be created for scriptable options
Disabled styling should be a property of the scriptable context

Code Changes

All of the RTL handling should be moved from the draw method to the fit method
The drawing should be a simple loop over the items to draw based on pre-computed properties

Related #5564, #4438

This is exactly how I do that in the iOS Charts framework. Compute everything upfront, including multiline handling, rotations etc.


Release universal binaries to support Arm Macs natively

I noticed that my Save to Pocket (Safari) process had Intel architecture in Activity Monitor.
Opening the project with Xcode the build settings show Standard Architectures (Apple Silicon, Intel), so perhaps all that is required is a rebuild with the current version of Xcode and rerelease?
I'd try this locally but am unable to figure out the correct Xcode code signing settings to build successfully...

It becomes the last few Intel processes on my Mac as well. Does it require a simple rebuild or additional code changes instead?

Years later, we still need an Apple Silicon build


Process Fail

Hello,

New ADFS tool exist, print screens do not match your procedure
Got an error at the end:
adfs set service communications certificate The specified directory service attribute or value does not exist
So have to run steps for manual update.
Please update this doc!

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

ID: d87b17f9-38de-1acf-e18f-96bba2ae77ea
Version Independent ID: 20c9770c-2c11-e172-e66c-76c9632fafce
Content: Azure AD Connect - Update the TLS/SSL certificate for an AD FS farm
Content Source: articles/active-directory/hybrid/how-to-connect-fed-ssl-update.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

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

@lightupdifire  Thanks for your feedback; we appreciate it. To make sure we have all the information needed to triage your issue, please let us know which topic you’re referencing, or provide more context around the general task.
#please-close


[ENHANCEMENT] Settings für Settings-Dialog

Ripple Cut: ultraschall-settings.ini:
[ultraschall_settings_ripplecut]
review_edit_toggle=true -- after ripple-cut during playback, always jump back to the edit and replay the edit with pre-roll-time applied
review_edit_toggle=false -- after ripple-cut during playback, retain playposition for seamless playback(pre 5.1 standard behavior)

obey_locked_toggle=true -- don't ripple cut locked tracks
obey_locked_toggle=false -- also ripple cut locked tracks(pre 5.1 standard behavior)

obey_crossfade_toggle=true -- use crossfade for the edits
obey_crossfade_toggle=false -- use fadeout-fadein for the edits

ZoomLimiter: ultraschall-settings.ini
[ultraschall_settings_Zoom_Sensitivity]
Value=5 -- sets the sensitivity for the zoomout of the zoomlimiter for higher zoomouts; 0.4-5

gelöst durch #467


icon_definitions home-circle-outline not showing on android

from kivy.uix.boxlayout import BoxLayout

from kivymd.app import MDApp
from kivy.lang import Builder
from kivy.properties import StringProperty

from kivymd.uix.list import OneLineAvatarListItem

KV = '''
#:import IconLeftWidget kivymd.uix.list.IconLeftWidget
#:import images_path kivymd.images_path

<NavigationItem>
    theme_text_color: 'Custom'
    divider: None

    IconLeftWidget:
        icon: root.icon

<ContentNavigationDrawer>

    BoxLayout:
        orientation: 'vertical'

        FloatLayout:
            size_hint_y: None
            height: "200dp"

            canvas:
                Color:
                    rgba: app.theme_cls.primary_color
                Rectangle:
                    pos: self.pos
                    size: self.size

            BoxLayout:
                id: top_box
                size_hint_y: None
                height: "200dp"
                #padding: "10dp"
                x: root.parent.x
                pos_hint: {"top": 1}

                FitImage:
                    source: f"{images_path}kivymd_alpha.png"

            MDIconButton:
                icon: "close"
                x: root.parent.x + dp(10)
                pos_hint: {"top": 1}
                on_release: root.parent.toggle_nav_drawer()

            MDLabel:
                markup: True
                text: "[b]KivyMD[/b]\\nVersion: 0.102.1"
                #pos_hint: {'center_y': .5}
                x: root.parent.x + dp(10)
                y: root.height - top_box.height + dp(10)
                size_hint_y: None
                height: self.texture_size[1]

        ScrollView:
            pos_hint: {"top": 1}

            GridLayout:
                id: box_item
                cols: 1
                size_hint_y: None
                height: self.minimum_height

Screen:

    NavigationLayout:

        ScreenManager:

            Screen:

                BoxLayout:
                    orientation: 'vertical'

                    MDToolbar:
                        title: "Navigation Drawer"
                        md_bg_color: app.theme_cls.primary_color
                        elevation: 10
                        left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]]

                    Widget:

        MDNavigationDrawer:
            id: nav_drawer

            ContentNavigationDrawer:
                id: content_drawer

'''

class ContentNavigationDrawer(BoxLayout):
    pass

class NavigationItem(OneLineAvatarListItem):
    icon = StringProperty()

class TestNavigationDrawer(MDApp):
    def build(self):
        return Builder.load_string(KV)

    def on_start(self):
        for items in {
            "update": "Home",
            "home-circle-outline": "Check for Update",
            "settings-outline": "Settings",
            "exit-to-app": "Exit",
        }.items():
            self.root.ids.content_drawer.ids.box_item.add_widget(
                NavigationItem(
                    text=items[1],
                    icon=items[0],
                )
            )

TestNavigationDrawer().run()

I compile this for android

Seems that all icons with 32-bit code don't work. Test it with "radio-off" which code is "\U000F0247". It gives blank icon too

I have used kivymd for some time and am tring to create an application. With the new version the changer how to draw navigation drawer. I have alreadiy implemented it in my app but I don’t know how to open deferent screen when I press an item on the navigation.
This is my code
def on_enter(self):
    icons_item = {
        "leaf": "My profile",
        "message": "Messages",
        "check": "Likes",
        "eye": "Views",
        "settings": "Settings",
        "close": "Exit"

    }
    for icon_name in icons_item.keys():
        self.ids.content_drawer.ids.md_list.add_widget(
            NavigationItem(icon=icon_name, text=icons_item[icon_name],
            on_press=lambda x, y=icons_item: self.callback(x, y))
        )
        for item in icons_item:
            if item == "My profile":
                screen_manager = "login"

def callback(self, instance, value):
    toast("Pressed item menu %d" %value)

how do I switch to the settings screen the I press on settings. I have already created the screen in my kv file
Any help will be appreciated

@allanmarigi Full code, please...

This is the code in the .py class
class Main_Screen(Screen):
def on_enter(self):
    icons_item = {
        "leaf": "My profile",
        "message": "Messages",
        "check": "Likes",
        "eye": "Views",
        "settings": "Settings",
        "close": "Exit"

    }
    for icon_name in icons_item.keys():
        self.ids.content_drawer.ids.md_list.add_widget(
            NavigationItem(icon=icon_name, text=icons_item[icon_name],
            on_press=lambda x, y=icons_item: self.callback(x, y))

        )
        for item in icons_item:
            if item == "My profile":
                screen_manager = "login"

def callback(self, instance, value):
    toast("Pressed item menu %d" %value)

And this is the code in my .kv file
<Main_Screen>:
name : "main"

NavigationLayout:

    ScreenManager:

        Screen:

            BoxLayout:
                orientation: 'vertical'

                MDToolbar:
                    id: toolbar
                    title: 'Menu'
                    size_hint: 1.0,0.05
                    background_color: [0.0, 0.0, 0.0, 0.4]
                    elevation: 10
                    left_action_items: [['menu', lambda

x: nav_drawer.toggle_nav_drawer()]]
                Widget:

MDNavigationDrawer:
    id: nav_drawer

    ContentNavigationDrawer:
        id: content_drawer

    theme_text_color: "Custom"
    on_release: self.parent.set_color_item(self)
    divider: None
IconLeftWidget:
    id : Icon_Left_Widget
    icon: root.icon
    theme_text_color: "Custom"
    text_color: root.text_color

id: content_drawer

BoxLayout:
    orientation: 'vertical'

    FloatLayout:
        size_hint_y: None
        height: "200dp"

        BoxLayout:
            id: top_box
            size_hint_y: None
            height: "200dp"
            x: root.parent.x
            pos_hint: {"top": 1}
            FitImage:
                source:  f

'E:/New folder/super_girl-wallpaper-11343919.jpg'
        MDLabel:
            markup: True
            font_size: 25
            text: "[color=1565C0] profile name [/color]"
            x: root.parent.x + dp(10)
            y: root.height - top_box.height + dp(10)
            size_hint_y: None
            height: self.texture_size[1]

    MDSeparator:

    ScrollView:
        pos_hint: {"top": 1}

        DrawerList:
            id: md_list

I have other screen in the app like the settings screen. how do i switch to
the settings screen after i press on settings on the navigation drawer?
you can modify my code
On Wed, 19 Feb 2020 at 14:07, KivyMD<EMAIL_ADDRESS>wrote:

@allanmarigi https://github.com/allanmarigi Full code, please...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/HeaTTheatR/KivyMD/issues/177?email_source=notifications&email_token=ALW5M3JCHG5TJI3ZCQVO2QTRDUHIBA5CNFSM4KQTS3MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMHLFAA#issuecomment-588165760,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALW5M3MXK4WFYBMWQDACGDTRDUHIBANCNFSM4KQTS3MA
.

@allanmarigi
from kivy.lang import Builder
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty

from kivymd.app import MDApp

KV = '''
<ContentNavigationDrawer>:

    ScrollView:

        MDList:
            id: md_list

            OneLineListItem:
                text: "Screen 1"
                on_press:
                    root.nav_drawer.set_state("close")
                    root.screen_manager.current = "scr 1"

            OneLineListItem:
                text: "Screen 2"
                on_press:
                    root.nav_drawer.set_state("close")
                    root.screen_manager.current = "scr 2"

Screen:

    NavigationLayout:

        ScreenManager:
            id: screen_manager

            Screen:
                name: "scr 1"

                MDLabel:
                    text: "Screen 1"
                    halign: "center"

            Screen:
                name: "scr 2"

                MDLabel:
                    text: "Screen 2"
                    halign: "center"

        MDNavigationDrawer:
            id: nav_drawer

            ContentNavigationDrawer:
                id: content_drawer
                screen_manager: screen_manager
                nav_drawer: nav_drawer
'''

class ContentNavigationDrawer(BoxLayout):
    screen_manager = ObjectProperty()
    nav_drawer = ObjectProperty()

class TestNavigationDrawer(MDApp):
    def build(self):
        return Builder.load_string(KV)

TestNavigationDrawer().run()

Thank you, i have changed to the format given and managed to implement it
On Wed, 19 Feb 2020 at 14:28, KivyMD<EMAIL_ADDRESS>wrote:

@allanmarigi https://github.com/allanmarigi
from kivy.lang import Builderfrom kivy.uix.boxlayout import BoxLayoutfrom kivy.properties import ObjectProperty
from kivymd.app import MDApp
KV = ''':    ScrollView:        MDList:            id: md_list            OneLineListItem:                text: "Screen 1"                on_press:                    root.nav_drawer.set_state("close")                    root.screen_manager.current = "scr 1"            OneLineListItem:                text: "Screen 2"                on_press:                    root.nav_drawer.set_state("close")                    root.screen_manager.current = "scr 2"Screen:    NavigationLayout:        ScreenManager:            id: screen_manager            Screen:                name: "scr 1"                MDLabel:                    text: "Screen 1"                    halign: "center"            Screen:                name: "scr 2"                                MDLabel:                    text: "Screen 2"                    halign: "center"        MDNavigationDrawer:            id: nav_drawer            ContentNavigationDrawer:                id: content_drawer                screen_manager: screen_manager                nav_drawer: nav_drawer'''
class ContentNavigationDrawer(BoxLayout):
screen_manager = ObjectProperty()
nav_drawer = ObjectProperty()
class TestNavigationDrawer(MDApp):
def build(self):
return Builder.load_string(KV)
TestNavigationDrawer().run()
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/HeaTTheatR/KivyMD/issues/177?email_source=notifications&email_token=ALW5M3PPWYF5R4ACG64OEZDRDUJVPA5CNFSM4KQTS3MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMHNDXI#issuecomment-588173789,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALW5M3PDJ7CJKLKKBJIZXBLRDUJVPANCNFSM4KQTS3MA
.

@HeaTTheatR
This seems to be related to my issue (i.e. #257)
I guess you can consider closing it too?

Solution: https://github.com/HeaTTheatR/KivyMD/issues/257#issuecomment-665599554


Added 5.1.30 and 5.2.0

Hi there, I need a repo for some work so I cloned yours and added the newest versions. I thought you might be interested in pulling them into yours.

Awesome, thanks! I'll take a closer look next week and then merge.


[PHPStanRules] Add RequireStringArgumentInConstructorRule

This can be used in Rector to prevent issues with prefixing.
See https://github.com/rectorphp/rector/issues/5596 and https://github.com/rectorphp/rector/pull/5597

  - '#Content of method "shouldSkipArg\(\)" is duplicated with method "shouldSkipArg\(\)" in "Symplify\\PHPStanRules\\Rules\\RequireStringArgumentInConstructorRule" class\. Use unique content or abstract service instead#'

Hmm, I don't really think this is worth it to be honest.

Hmm, I don't really think this is worth it to be honest.

How would you refactor it?

Could you update the PR title to include the package?
The code itself looks very good :+1:

Hmm, I don't really think this is worth it to be honest.

PHPStan is hard at first use, but very addictive in time :)
How would you refactor it?

I don't agree that moving this single function to a new service that we use in both this rule and RequireStringArgumentInMethodCallRule will make it better or easier to understand.

@ruudk I see. If you're able to put that in code, feel free to update the PHPStan rule

@TomasVotruba It's ready.

Applied feedback, ✅  green

This one is also ready for review ☺
After this I will create a PR to enable it for Rector.
It probably needs to wait before Symplify is tagged again?

It seems 2 comments are not displaying: https://github.com/symplify/symplify/pull/2968#discussion_r578431407

Should I also update the docs or is this done automatically?

@ruudk doc auto re-generated weekly https://github.com/symplify/symplify/blob/893fee82ec571ae840f235ebac1ebcbff3e340ba/.github/workflows/weekly_pull_requests.yaml

@TomasVotruba Ready ✅

Thank you :+1:


🐞 History Inspector is empty if the git repo doesn't have a remote defined

Description
If I open a folder in CodeEdit that is under version control with Git, but which doesn't have a remote, the History Inspector view for any file is empty.
To Reproduce

Create a local test repo:mkdir test && cd test
git init .
echo Hello world > test.txt
git commit -am "First commit"

Open the folder you created in CodeEdit
Open test.txt
Open the Inspector view and select the History Inspector tab

Expected Behavior
I should see a single commit for test.txt in the History Inspector
Version Information
CodeEdit: 0.1.0-dev (38)
macOS: 14.5
Xcode: 15.4
Additional Context
I'm pretty sure it's because this line is causing getCommitHistory to throw if there's no remote defined.
Screenshots
No response

Is this issue what you are referring to here?


Ability to add tags sitewide

Tagging required in both GCI and VCI... parallel implementation.
Tag use cases:

Alerts (e.g. new publication, new ClinVar entry, time for re-evaluation, etc) Auto-tags added by VCI

New ClinVar entry

Triggered by: new ClinVar entry for the variant that is a different (3-level: B/VUS/P) pathogenicity than the approved and submitted to ClinVar curation by the VCEP.

Re-evaluation:

Triggered by: 2 years from approval date for Likely Path/VUS interpretations. (Steven to check details)

Bulk-tagging (e.g. VP added, ClinVar reports)

Added in bulk by system - triggered by curator action
Need two layers: 1: Action and 2: Additional info like ClinVar data, date submitted etc.
Need to be able to sort on both layers.
High priority but dependent on these features,

Free text options  (use case: workflow items)

ex:  denote all variants that use data from a single paper, reviewed pending approval, awaiting patient data from lab.
Pre-populated set of options: Pilot Variant, Conflict Resolution, Re-curation

See for scoping:  https://broadinstitute.atlassian.net/browse/CSP-102
See for mockups: https://docs.google.com/presentation/d/1bhhzm8ZlkwNHGc2WI-UlcZC5m-TwDQMa5NSteG3sKwQ/edit#slide=id.g9ffe19a625_0_11

From https://github.com/ClinGen/clincoded/issues/2145
Approved VCEPs need to be able to mark an entry as "Under Review". This new status would be manually added by the curator, and should be able to be manually deleted...but otherwise by default it would be removed when a Publishing event occurs.
Note: making an interpretation status "Under Review" may need to trigger a status update message to the ERepo


Nice to be able to override the default tooltip color.

Sometimes it is desirable to have color of tooltip different from the color of marker.
See Out[12] here: https://nbviewer.jupyter.org/github/JetBrains/lets-plot/blob/master/docs/examples/jupyter-notebooks/geopandas_naturalearth.ipynb

Done: https://github.com/JetBrains/lets-plot/pull/277


feat(ui): passes field props to custom components

Description
Currently, there is no way to read field props from within a custom field component, i.e. admin.components.Description.  For example, if you set maxLength: 100 on your field, your custom description component cannot read it from props.maxLength or any other methods. Because these components are rendered on the server, there is also no way of using admin.component.Field to inject custom props yourself. Instead, we can simply pass the base component props into these components on the server, as expected.

[x] I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] I have added tests that prove my fix is effective or that my feature works
[x] Existing test suite passes locally with my changes

@jacobsfletch nice! Does this mean on custom select fields I will be able to get options?

@jacobsfletch nice! Does this mean on custom select fields I will be able to get options?

You got it 👍 field props will now be provided to all admin.components automatically

Looks like we neeed to get a few tests ironed out on this one yet, right?

Looks like we neeed to get a few tests ironed out on this one yet, right?

I've written a few tests for this already, do you mean more tests, or passing tests?


#1461 default_to_pandas 'by' type fixed

Signed-off-by: Dmitry Chigarev<EMAIL_ADDRESS>
What do these changes do?

[x] passes flake8 modin
[x] passes black --check modin
[x] signed commit with git commit -s
[x] Resolves #1461
[x] tests added and passing

I left a comment on the issue #1461, I think the fix for this is a bit simpler than this because we already have a self._drop property that is supposed to track the same thing.

@devin-petersohn drop or not to drop by column from the result of _default_to_pandas also depends from self._as_index value. For example first:
if __name__ == "__main__":
    import pandas

    data = {
        "col1": [0, 1, 2, 3],
        "col2": [4, 5, 6, 7],
    }

    pd_df = pandas.DataFrame(data)

    print("as_index=True", pd_df.groupby("col1", as_index=True).first(), sep="\n")
    print("as_index=False", pd_df.groupby("col1", as_index=False).first(), sep="\n")

Output:
as_index=True
      col2
col1
0        4
1        5
2        6
3        7
as_index=False
   col1  col2
0     0     4
1     1     5
2     2     6
3     3     7

But, some operations seems to ignore as_index value and constantly drops by column if it comes from the same DataFrame.
For example ffill and bfill:
as_index=True
   col2
0     4
1     5
2     6
3     7
as_index=False
   col2
0     4
1     5
2     6
3     7

So it's not that simple just to drop self._idx_name from _default_to_pandas result if self._drop and self._as_index
Well, it seems that we actually depend on the by type, but yeah, it could be fixed using information only from self._drop.
At the last commit, I've refactored the fix, is that applicable approach?


fix tpcds-tools: report benchmark result before cleanup

Proposed changes
cleanup may failed, and blocks printing hot/cold run summary
Issue Number: close #xxx

run buildall

run buildall

run buildall

run performance


[Improvement] Reduce Iceberg's test class files

What would you like to be improved?
There are 3 test classes (IcebergRESTHiveCatalogIT, IcebergRESTJdbcCatalogIT , IcebergRESTServiceBaseIT) in Gravitino Iceberg IT Test Cases, and only the catalogType value is initialization is different.
@FANNG1  Can we use the ParameterizedTest annotation to combine them into one test case using different initialization parameters?
How should we improve?
In JUnit, if you want to test class variables with different parameters, you can use the @ParameterizedTest annotation combined with annotations such as @CsvSource, @ValueSource, @EnumSource, etc.
Here is an example demonstrating how to test class variables with different parameters:
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
import static org.junit.jupiter.api.Assertions.assertEquals;

public class ParameterizedTestExample {

    private int value;

    public ParameterizedTestExample(int value) {
        this.value = value;
    }

    @ParameterizedTest
    @CsvSource({"1", "2", "3"})
    void testWithCsvSource(int argument) {
        assertEquals(value + argument, value + argument);
    }
}

In this example, we define a ParameterizedTestExample class and receive a value parameter in the constructor. Then, we use the @ParameterizedTest annotation and the @CsvSource annotation to specify parameterized testing, where the @CsvSource annotation provides multiple parameters.
When you run this test, JUnit will execute the testWithCsvSource method multiple times with different parameter values for each test.
Using this approach, you can test class variables with different parameters to validate the behavior of the class under different parameter values.

I prefer to close this issue, because:

junit5 doesn't support class level ParameterizedTest,  https://github.com/junit-team/junit5/issues/878 .  There'are some other ways to implement it, like https://github.com/apache/iceberg/pull/9161,  it's complicated and not worth for us for now.
Hive and Jdbc catalog test should tagged with gravitino-docker-it while memorycatalog should run without the tag.

@xunliu  what do you think?


[ci skip] small grammar fix in json/mapping.cr

Was changed to "an union", but "a union" is standard.
See e.g. http://english.stackexchange.com/questions/266309/why-is-union-an-exception-to-the-a-an-rule

Will keep that in mind, thanks.


whenever command is not working

On my development VM and on the server, running whenever command $ bundle exec whenever is not working. I get back the following:
$ bundle exec whenever
bundler: failed to load command: whenever (/home/cgarndt/.rbenv/versions/3.0.0/bin/whenever)
config/schedule.rb:35:in `initialize': uninitialized constant #<Class:#<Whenever::JobList:0x0000555d07619838>>::Rails (NameError)
    from /home/cgarndt/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/whenever-1.0.0/lib/whenever/job_list.rb:25:in `instance_eval'
    ... ... ...

On my development machine I am running:
Ubuntu 22.04 LTS
rbenv
Ruby 3.0
Rails 7.0.4
whenever (1.0.0)
I have ran $ bundle exec wheneverize . which ran successfully and created schedule.rb file.
Any help would be appreciated.
Thank you
Chris

The issue was in my schedule.rb file. I was trying to have different times set for staging vs production using Rails.env which doesn't work. I removed Rails.env blocks and this fixed the error.