Remove global wiremock dependency exlcusion from maven BOM

I am using spring cloud and followed the instructions on http://projects.spring.io/spring-cloud/ including the following in my build.gradle:
dependencyManagement {
  imports {
    mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR2'
  }
}

Unfortunately, this had the effect of breaking all of my unit tests that use wiremock. Doing a little research I discovered that spring-cloud-dependencies imports spring-cloud-contract-dependencies which in turn has exclusions for all (or most) of the dependencies needed by wiremock. I am not using spring-cloud-contract so I should not have to deal with exclusions needed by spring-cloud-contract. If spring-cloud-contract needs those exclusions in place it should place them in a place where it does not interfere with those who are not using spring-cloud-contract.
Thank you.

That's a little irritating, I agree. We can have a think, but I'm pretty sure the outcome will be that if you want to use spring cloud dependency management with wiremock then you will need to use spring-cloud-contract-wiremock to locate the dependencies, or else add back all those exclusions manually. I suppose we could make it more palatable by packaging them up in some way. I expect the best solution might involve changes in wiremock to make it less opinionated, but I'm not sure how easy that would be for non-spring wiremockers.

You can use wiremock-standalone instead of wiremock and everything will work correctly.

@jkubrynski Thanks for the suggestion. That does work, although I don't think it was intended to be used in that manner. wiremock-standalone is basically a shadow jar that incorporates and relocates the wiremock dependencies.

In fact that was the original intention as there were issues with for example Jetty versioning:
https://github.com/tomakehurst/wiremock/issues/296

Yes but it doesn't play well with Spring Boot. I don't recommend using the standalone jar unless you want to use the same version of Jetty.


Change the icon inside the AboutDroidKaigiDetailSummaryCard to Outlined.

Describe the bug
The icon for the location inside the AboutDroidKaigiDetailSummaryCard is set to Filled. It would be nice to be changed to Outlined to match Figma.
To Reproduce
Steps to reproduce the behavior:

Go to About Page

Expected behavior
outlined place icon is used
Screenshots

Figma

Actual

Sounds valid point! Thank you for finding this!

Please let me handle this as it is!🙋♂

Sure! Go ahead!


CommonMark 0.6.0 compatibility

Update to CommonMark 0.6.0 changes to make it compatible:

HTMLRenderer has been renamed to HtmlRenderer.

DocParser has been renamed to Parser.

The changes involved with Commonmark 0.6 are larger than just the renames. We'll need to re-think how it's implemented based on the refactor of commonmark, as you can see from the test failure.


Revert "Remove default_branch config for new repos"

This reverts commit 585adba979bd97457295950536e7b0978adcfa49.
The repositories have been moved as mentioned. We can activate the default branch configuration now.
FYI: @gberche-orange https://github.com/cloudfoundry/prometheus-boshrelease and https://github.com/cloudfoundry/node-exporter-boshrelease don't have any default branch configured. With this pr the master branch will be configured as you requested during the move.

Merging this because it was a temporary fix for the failing sync action and the move change was already approved by the TOC


ASN1ParseError on iOS

[x] I have read the README
[x] I have already searched for the same problem
[x] I have read and done the setup for Android: IMPORTANT Note for Android and iOS and IMPORTANT Note for Android
[x] I have read and done the setup for iOS: IMPORTANT Note for Android and iOS and IMPORTANT Note for iOS
[x] I have ran the sample app and it does not work there

Environment

Technology
Version

Flutter version
1.22.4

Plugin version
4.0.0+4

Android version

iOS version
12.

Xcode version
11.4.1

Device information:
Description
When asset is loaded an error is thrown on ios only. The asset being loaded is on YouTube and has a valid SSL cert. The code that seems to be throwing the error is:
X509Certificate x509certificate = X509Certificate.fromData(                   data: sslCertificateMap["x509Certificate"]);
Expected behavior:
Asset should load without error
I saw a similar issue referenced here but the issue is closed.
https://github.com/pichillilorenzo/flutter_inappwebview/issues/524
Current behavior:
Steps to reproduce

Images
Stacktrace/Logcat
flutter: Instance of 'ASN1ParseError'
flutter: #0      X509Certificate.fromDerData
package:flutter_inappwebview/…/X509Certificate/x509_certificate.dart:58
#1      X509Certificate.fromData
package:flutter_inappwebview/…/X509Certificate/x509_certificate.dart:42
#2      InAppWebViewController.handleMethod
package:flutter_inappwebview/src/in_app_webview_controller.dart:476
#3      MethodChannel._handleAsMethodCall
package:flutter/…/services/platform_channel.dart:430
#4      MethodChannel.setMethodCallHandler.<anonymous closure>
package:flutter/…/services/platform_channel.dart:383
#5      _DefaultBinaryMessenger.handlePlatformMessage
package:flutter/…/services/binding.dart:283
#6      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280:15)
#7      _rootRun (dart:async/zone.dart:1190:13)
#8      _CustomZone.run (dart:async/zone.dart:1093:19)
#9      _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#10     _invoke3 (dart:ui/hooks.dart:279:10)
#11     _dispatchPlatformMessage (dart:ui/hooks.dart:154:5)

We are also facing this issue, is there any workaround?
2021-01-21 16:54:23.540156+0530 Runner[252:5749] flutter: Instance of 'ASN1ParseError' 2021-01-21 16:54:23.541198+0530 Runner[252:5749] flutter: #0      X509Certificate.fromDerData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:58) #1      X509Certificate.fromData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:42) #2      InAppWebViewController.handleMethod (package:flutter_inappwebview/src/in_app_webview_controller.dart:476) #3      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:430) #4      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:383) #5      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283) #6      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280) #7      _rootRun (dart:async/zone.dart:1190) #8      _CustomZone.run (dart:async/zone.dart:1093) #9      _CustomZone.runGuarded (dart:async/zone.dart:997) #10     _invoke3 (dart:ui/hooks.dart:279) #11     _dispatchPlatformMessage (dart:ui/hooks.dart:154) 2021-01-21 16:54:23.730865+0530 Runner[252:5749] flutter: Instance of 'ASN1ParseError' 2021-01-21 16:54:23.731303+0530 Runner[252:5749] flutter: #0      X509Certificate.fromDerData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:58) #1      X509Certificate.fromData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:42) #2      InAppWebViewController.handleMethod (package:flutter_inappwebview/src/in_app_webview_controller.dart:476) #3      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:430) #4      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:383) #5      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283) #6      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280) #7      _rootRun (dart:async/zone.dart:1190) #8      _CustomZone.run (dart:async/zone.dart:1093) #9      _CustomZone.runGuarded (dart:async/zone.dart:997) #10     _invoke3 (dart:ui/hooks.dart:279) #11     _dispatchPlatformMessage (dart:ui/hooks.dart:154) 2021-01-21 16:54:26.425382+0530 Runner[252:5749] flutter: Instance of 'ASN1ParseError' 2021-01-21 16:54:26.425917+0530 Runner[252:5749] flutter: #0      X509Certificate.fromDerData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:58) #1      X509Certificate.fromData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:42) #2      InAppWebViewController.handleMethod (package:flutter_inappwebview/src/in_app_webview_controller.dart:476) #3      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:430) #4      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:383) #5      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283) #6      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280) #7      _rootRun (dart:async/zone.dart:1190) #8      _CustomZone.run (dart:async/zone.dart:1093) #9      _CustomZone.runGuarded (dart:async/zone.dart:997) #10     _invoke3 (dart:ui/hooks.dart:279) #11     _dispatchPlatformMessage (dart:ui/hooks.dart:154) 2021-01-21 16:54:27.393411+0530 Runner[252:5749] flutter: Instance of 'ASN1ParseError' 2021-01-21 16:54:27.393839+0530 Runner[252:5749] flutter: #0      X509Certificate.fromDerData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:58) #1      X509Certificate.fromData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:42) #2      InAppWebViewController.handleMethod (package:flutter_inappwebview/src/in_app_webview_controller.dart:476) #3      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:430) #4      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:383) #5      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283) #6      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280) #7      _rootRun (dart:async/zone.dart:1190) #8      _CustomZone.run (dart:async/zone.dart:1093) #9      _CustomZone.runGuarded (dart:async/zone.dart:997) #10     _invoke3 (dart:ui/hooks.dart:279) #11     _dispatchPlatformMessage (dart:ui/hooks.dart:154) InAppWebView - dealloc

We are also facing this issue, is there any workaround?
2021-01-21 16:54:23.540156+0530 Runner[252:5749] flutter: Instance of 'ASN1ParseError' 2021-01-21 16:54:23.541198+0530 Runner[252:5749] flutter: #0      X509Certificate.fromDerData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:58) #1      X509Certificate.fromData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:42) #2      InAppWebViewController.handleMethod (package:flutter_inappwebview/src/in_app_webview_controller.dart:476) #3      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:430) #4      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:383) #5      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283) #6      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280) #7      _rootRun (dart:async/zone.dart:1190) #8      _CustomZone.run (dart:async/zone.dart:1093) #9      _CustomZone.runGuarded (dart:async/zone.dart:997) #10     _invoke3 (dart:ui/hooks.dart:279) #11     _dispatchPlatformMessage (dart:ui/hooks.dart:154) 2021-01-21 16:54:23.730865+0530 Runner[252:5749] flutter: Instance of 'ASN1ParseError' 2021-01-21 16:54:23.731303+0530 Runner[252:5749] flutter: #0      X509Certificate.fromDerData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:58) #1      X509Certificate.fromData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:42) #2      InAppWebViewController.handleMethod (package:flutter_inappwebview/src/in_app_webview_controller.dart:476) #3      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:430) #4      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:383) #5      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283) #6      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280) #7      _rootRun (dart:async/zone.dart:1190) #8      _CustomZone.run (dart:async/zone.dart:1093) #9      _CustomZone.runGuarded (dart:async/zone.dart:997) #10     _invoke3 (dart:ui/hooks.dart:279) #11     _dispatchPlatformMessage (dart:ui/hooks.dart:154) 2021-01-21 16:54:26.425382+0530 Runner[252:5749] flutter: Instance of 'ASN1ParseError' 2021-01-21 16:54:26.425917+0530 Runner[252:5749] flutter: #0      X509Certificate.fromDerData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:58) #1      X509Certificate.fromData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:42) #2      InAppWebViewController.handleMethod (package:flutter_inappwebview/src/in_app_webview_controller.dart:476) #3      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:430) #4      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:383) #5      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283) #6      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280) #7      _rootRun (dart:async/zone.dart:1190) #8      _CustomZone.run (dart:async/zone.dart:1093) #9      _CustomZone.runGuarded (dart:async/zone.dart:997) #10     _invoke3 (dart:ui/hooks.dart:279) #11     _dispatchPlatformMessage (dart:ui/hooks.dart:154) 2021-01-21 16:54:27.393411+0530 Runner[252:5749] flutter: Instance of 'ASN1ParseError' 2021-01-21 16:54:27.393839+0530 Runner[252:5749] flutter: #0      X509Certificate.fromDerData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:58) #1      X509Certificate.fromData (package:flutter_inappwebview/src/X509Certificate/x509_certificate.dart:42) #2      InAppWebViewController.handleMethod (package:flutter_inappwebview/src/in_app_webview_controller.dart:476) #3      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:430) #4      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:383) #5      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283) #6      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280) #7      _rootRun (dart:async/zone.dart:1190) #8      _CustomZone.run (dart:async/zone.dart:1093) #9      _CustomZone.runGuarded (dart:async/zone.dart:997) #10     _invoke3 (dart:ui/hooks.dart:279) #11     _dispatchPlatformMessage (dart:ui/hooks.dart:154) InAppWebView - dealloc

Please, post some examples with a reproducible error, otherwise, I cannot test it and try to fix the problem. Thanks!

Please, post some examples with a reproducible error, otherwise, I cannot test it and try to fix the problem. Thanks!

why this issues closed?
im facing same issue.
lutter: Instance of 'ASN1ParseError'
flutter: #0      X509Certificate.fromDerData (package:flutter_inappwebview/src/x509_certificate/x509_certificate.dart:57:5)
#1      X509Certificate.fromData (package:flutter_inappwebview/src/x509_certificate/x509_certificate.dart:41:30)
#2      SslCertificate.fromMap (package:flutter_inappwebview/src/types.dart:5293:41)
#3      URLProtectionSpace.fromMap (package:flutter_inappwebview/src/types.dart:1647:38)
#4      ServerTrustChallenge.fromMap (package:flutter_inappwebview/src/types.dart:1365:43)
#5      InAppWebViewController.handleMethod (package:flutter_inappwebview/src/in_app_webview/in_app_webview_controller.dart:523:36)
#6      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:435:55)
#7      MethodChannel.setMethodCallHandler. (package:flutter/src/services/platform_channel.dart:382:34)
#8      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:284:33)
#9      _invoke3. (dart:ui/hooks.dart:223:15)
#10     _rootRun (dart:async/zone.dart:1354:13)
#11     _CustomZone.run (dart:async/zone.dart:1258:19)
#12     _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
#13     _invoke3 (dart:ui/hooks.dart:222:10)
#14     PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:520:7)
#15     _dispatchPlatformMessage (dart:ui/hooks.dart:90:31)
flutter: Page finished loading: {protectionSpace: {host: uat-bpi-proxy.tellybayad.com, protocol: null, realm: null, port: 443, sslCertificate: null, sslError: {androidError: null, iosError: 5, message: Indicates a trust policy failure which can be overridden by the user.}, iosAuthenticationMethod: NSURLAuthenticationMethodServerTrust, iosDistinguishedNames: null, iosReceivesCredentialSecurely: true, iosIsProxy: false, iosProxyType: null}}


[SQL] Add Server Trust Group commands

Description

This PR adds Server Trust Group commands
Testing Guide

Create a Server Trust Group with specified resource ids of its members.
 az sql stg create -g resourcegroup -l location -server-trust-group-name stg-name --trust-scope GlobalTransactions -gm $mi1-id $mi2-id
Retrieve a Server Trust Group.
az sql stg get -g resourcegroup -l location -server-trust-group-name stg-name
Delete a Server Trust Group.
az sql stg delete -g resourcegroup -l location -server-trust-group-name stg-name
Retrieve a list of Server Trust Groups by instance.
az sql stg list -g resourcegroup --instance-name mi1-name
Retrieve a list of Server Trust Groups by location.
az sql stg list -g resourcegroup -l location
This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

SQL

Hi @bojovicmatija, could you fix CI failure with azdev linter sql and azdev style sql first?

Hi @bojovicmatija, could you fix CI failure with azdev linter sql and azdev style sql first?

fixed


[BUG]:  Search bar not taking input

[ x] Would you like to take up this task?
[ x] Are you from GSSoC'23?

The searchbar is not taking input. Please assign it to me under gssoc'23 @akashgreninja

Please assign it to me under gssoc'23 @akashgreninja


FTP links are highlighted wrongly and not openable

Ref: #21021

VSCode Version: 10.0.1-insiders
OS Version: Windows 10 / Ubuntu

Steps to Reproduce:

Go to terminal, type echo<EMAIL_ADDRESS>and enter it.
Hover over it.

Only part starting from // is highlighted, and when clicked it does not open a link.
Not sure if we go for all protocol links support (would be good though), however it definitely should not mislead the user by highlighting the link.

What do you expect to happen when the link is clicked?
Link validation is captured in https://github.com/Microsoft/vscode/issues/21226

@Tyriar I would expect it to be navigable, so that the local agent that's configured for opening such links would be used to open it.

@michelkaporin I'm not sure if we handle opening ftp links anywhere yet though?

@Tyriar I am not aware of that. More important would be not to highlight something that we do not handle for open (e.g. FTP links).

Might close this off in favor of #21226 then as handling FTP links would probably be tricky cross platform.


Hidden size initialization

@Leavingseason could this be an error in the initialization?

Sounds good, thank you  @Micheallei  I'm closing this PR since I saw that you have done this one https://github.com/microsoft/UniRec/pull/13


Adding appliesToMaterial property

Added appliesToMaterial property, deleted void elements, deleted blank node, changed version.  All in property definitions.

✔ checked diff for RDF/XML edits
# removed triples
<55.d.3> void:classPartition _:bnode .
_:bnode void:class rdf:Property .
<> void:feature <http://www.w3.org/ns/formats/N-Triples> ,
   <http://www.w3.org/ns/formats/RDF_XML> ,
   <http://www.w3.org/ns/formats/RDFa> ,
   <http://www.w3.org/ns/formats/Turtle> .

# added triples
<55.d.3#appliesToMaterial> a rdf:Property ;
   [... comment, historyNote, isDefinedBy, label ]

✔ five files reserialized
university_of_washington_libraries_rdfproperty_definitions/university_of_washington_libraries_rdfproperty_definitions.html
university_of_washington_libraries_rdfproperty_definitions/university_of_washington_libraries_rdfproperty_definitions.jsonld
university_of_washington_libraries_rdfproperty_definitions/university_of_washington_libraries_rdfproperty_definitions.nt
university_of_washington_libraries_rdfproperty_definitions/university_of_washington_libraries_rdfproperty_definitions.rdf
university_of_washington_libraries_rdfproperty_definitions/university_of_washington_libraries_rdfproperty_definitions.ttl

✔ version number incremented
✔ looks good to me

@dkreisstomkins @gerontakos @cspayne
🏁 merged 🏁 , be sure to:

switch back to main
pull
delete local branch new_section (I deleted new section on the remote)

@dkreisstomkins @gerontakos @cspayne
Following up re: above to-dos, pasting the commands I used, including an additional step which I believe is needed on each local computer, as I think each of our local copies includes 'refs' which must be 'pruned'*
See abbreviated commands and output below with # comments
# switch back to main branch
uwlswd_vocabs> git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.

# pull - that is, get main following the PR merge
uwlswd_vocabs> git pull
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (1/1), 929 bytes | 116.00 KiB/s, done.
From https://github.com/uwlib-cams/uwlswd_vocabs
   0577860..c373678  main       -> origin/main
Updating 0577860..c373678
Fast-forward
 ...[details here]...
 5 files changed, 265 insertions(+), 715 deletions(-)

# do I still have my local copy of the new_section branch?
uwlswd_vocabs> git branch
* main
  new_section

# get rid of that
uwlswd_vocabs> git branch -d new_section
Deleted branch new_section (was eee0278).
PS C:\Users\Benjamin\od\uwlswd\uwlswd_vocabs> git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean

# look at all the branch references (fuzzy understanding of this) in my working folder
uwlswd_vocabs> git branch -v -a
* main                         c373678 Merge pull request #35 from uwlib-cams/new_section
  remotes/origin/HEAD          -> origin/main
  remotes/origin/bcp_lang_tags 072684e fixes for remaining target resource for cleanup issue https://github.com/uwlib-cams/uwlswd/issues/65 following main.py fix from https://github.com/uwlib-cams/uwlswd/issues/74
  remotes/origin/main          c373678 Merge pull request #35 from uwlib-cams/new_section
  remotes/origin/new_section   eee0278 Merge branch 'main' into new_section

# I have references to two branches that no longer exist on the remote!
# PRUNING the references to branches which no longer exist on remote!
PS C:\Users\Benjamin\od\uwlswd\uwlswd_vocabs> git remote prune origin
Pruning origin
URL: https://github.com/uwlib-cams/uwlswd_vocabs.git
 * [pruned] origin/bcp_lang_tags
 * [pruned] origin/new_section

# look again - and the obsolete references are gone!
PS C:\Users\Benjamin\od\uwlswd\uwlswd_vocabs> git branch -v -a
* main                c373678 Merge pull request #35 from uwlib-cams/new_section
  remotes/origin/HEAD -> origin/main
  remotes/origin/main c373678 Merge pull request #35 from uwlib-cams/new_section
PS C:\Users\Benjamin\od\uwlswd\uwlswd_vocabs>

* here's a summary of git remote prune origin which makes sense to me:

The Git prune command is much like an internal housekeeping utility that cleans up unreachable Git objects. It is useful when there are a lot many files or commits in our working directory that we don't want to keep. If an object or commit is no more reachable from the current branch, git prune will delete that object or commit from the working directory. It is a way to make the directory lighter and easier to track the progress of the project.


feat(v2): blog tags

Motivation
Allow adding of tags to pages and dedicated pages for

Displaying those tags
Displaying a list of posts belonging to that tag

Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
See Netlify preview. Go to /blog/tags.
Related PRs
NA.

Good point. I'll slugify the tag name and make it such that some tag and Some Tag are considered the same tag and the page to access them will be blog/tags/some-tag.


chore(workspace): version bumping

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Closes #244

Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Type of change. This type of change is the main reason for the PR.

[ ] FIX - a PR of this type patches a bug.
[ ] FEATURE - a PR of this type introduces a new feature.
[ ] BUILD - a PR of this type introduces build changes.
[ ] CI - a PR of this type introduces CI changes.
[ ] DOCS - a PR of this type introduces DOCS improvement.
[ ] STYLE - a PR of this type introduces style changes.
[ ] REFACTOR - a PR of this type introduces refactoring.
[ ] PERFORMANCE - a PR of this type introduces performance changes.
[ ] TEST - a PR of this type adds more tests.
[x] CHORE - a PR introduces other changes than the specified above.

Breaking changes

[ ] BREAKING CHANGE - SPECIFY: _______
[x] NO BREAKING CHANGE - this PR doesn't contain any breaking changes and it's backwards compatible

We need a full review on this whenever we push it to main. A lot can happen and we need to remove the --dryRun and --dry-run tags. Please review this carefully.


Add more functionalities to Bistamp and Coinbase API

Add the possibility to send market orders with Bitstamp
Add limit = 1000 to retrieve more BitstampTransaction
Add a way to retrieve Coinbase Fills

Please don't add synchronous end points, you can simply append .Sync() to an Async end point to do that.
I performed some other cleanup.
Thanks for sharing.

Thanks for your corrections and for merging.


Add example how to use this package with static html

Added example how to consume this without build step just plain old HTML with sprinkle of javascript.

Thank you!


website: Update badges documentation & demos

Add badge demos for the different kind of visual styles.
Update documentation, include adding hyperlinks to other mentioned components.

Test comment, please ignore.

Testing, please ignore. 3


Use different calendar type

Is there anyway to use different calendar type such as Iranian Calendar ?

Nope, sorry.


fix(header): added box-shadow and border-radius (bottom left and righ…

fix(header): added box-shadow and border-radius (bottom left and right) to the dropdown-menu
Added box-shadow and border-radius (bottom left and right) to the dropdown-menu of the header component. The box-shadow was the original issue but I also noticed that the dropdown was missing a border-radius so added that fix to this commit.
Describe pull-request
This PR adds the correct styling to the dropdown-menu in the header component.
Solving issue
Fixes: AB#2270
How to test
Add description how to test if possible

Go to the storybook page below.
Check in Header -> Inline Menu, Toolbar Menu, Searchbar Menu, All Menus and compare the styling of the dropdown to that in Figma.

Screenshots

@charlottelorensson or @matyldamc  - Please check design changes and approve if looks OK :)

Look good to me. I tried to reproduce the issue Matylda was facing but failed, it looks fixed now. Maybe it was a glitch between PR builds.

Nice, the issue was that the actual  seem to have some styling attached to it which also needed to border-radius specified.


Avoid rewriting package.json, it's unnecessary. Set a user setting instead

It seems to work the same if I set this logging setting in the user settings.json. Is this ok @DonJayamanne or is there something I'm missing?

As soon as I sent this @DonJayamanne I realized that maybe this is needed for web tests? I don't know how to set user settings for web tests, seems like there is probably a way but I don't know what it is. So we can leave it alone for web tests but I'd like to do this for desktop tests if that's ok with you.

Codecov Report

Merging #11278 (ab8872d) into main (3c62393) will increase coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff           @@
##            main   #11278   +/-   ##
======================================
  Coverage     63%      63%
======================================
  Files        476      476
  Lines      33877    33877
  Branches    5488     5488
======================================
+ Hits       21357    21358    +1
  Misses     10472    10472
+ Partials    2048     2047    -1

Impacted Files
Coverage Δ

src/kernels/helpers.ts
65% <0%> (-2%)
:arrow_down:

src/notebooks/controllers/kernelRanking/helpers.ts
58% <0%> (-1%)
:arrow_down:

.../notebooks/controllers/vscodeNotebookController.ts
82% <0%> (+1%)
:arrow_up:

src/kernels/installer/productInstaller.node.ts
80% <0%> (+1%)
:arrow_up:

src/notebooks/outputs/tracebackFormatter.ts
100% <0%> (+6%)
:arrow_up:


Unexpected behavior with intersect()

Describe the bug
Intersects doesn't behave as expected
https://github.com/RoaringBitmap/RoaringBitmap/blob/RoaringBitmap-0.9.0/RoaringBitmap/src/main/java/org/roaringbitmap/RoaringBitmap.java#L633
To Reproduce
Run the following minimal reproducible code (Scala)
  val (start1, end1) = (71711701L, 71719778L)
  val (start2, end2) = (71396920L, 71815947L)
  val ror = new RoaringBitmap()
  ror.add(start1, end1)
  println("intersects? " + ror.intersects(start2, end2))
  // returns false (not expected)

  val ror2 = new RoaringBitmap()
  ror2.add(start1, end1)
  val ror3 = new RoaringBitmap()
  ror3.add(start2, end2)
  println("intersects? " + !RoaringBitmap.and(ror2, ror3).isEmpty())
  // returns true (as expected)

RoaringBitmap version:
0.9.0
Please report bugs after testing the latest version of the library. If you are using an older version of the library, please explain.
Using as part of Spark 3.1.3 dependency
Make sure to compare your version against the latest available version at https://mvnrepository.com/artifact/org.roaringbitmap/RoaringBitmap
Java version:
1.8

I think this was fixed recently. Can you try the latest release (0.9.36) please?

Thanks for the quick response. That's right 0.9.36 doesn't exhibit this behavior


ci: enable spell-check-partial for common

Description
Enable spell-check-partial for common directory

Related links
blocked by https://github.com/autowarefoundation/autoware.universe/pull/4396

Tests performed
N/A

Notes for reviewers
N/A

Interface changes
N/A

Effects on system behavior
N/A

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.
[ ] The PR has been properly tested.
[ ] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.
[ ] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

Blocker (#4396 ) is merged!


Remove Flow

It's an overkill for this starter kit. Note, that introducing strong type checker in your project comes at a cost, there are prons AND cons. It's not something that is beneficial to all typical web application projects. If you're sure that a type checker would be advantageous for your particular project, there shouldn't be a problem to bring it in. Also, I would highly recommend considering TypeScript instead of Flow because of better overall development experience (given that it better integrates with @vscode).

@koistya JFYI there're some flow types still in the code here and there
https://github.com/kriasoft/react-firebase-starter/blob/master/src/common/ErrorPage.js#L77
https://github.com/kriasoft/react-firebase-starter/blob/master/src/common/Link.js#L22

@apsavin thanks! Fixed in 3bad2f2


[SPARK-9319][SPARKR] Add support for setting column names, types

Add support for for colnames, colnames<-, coltypes<-
Also added tests for names, names<- which have no test previously.
I will merge with PR 8984 (coltypes) once it is in, possibly looking into mapping R type names.
@shivaram @sun-rui

Merged build triggered.

Merged build started.

Test build #44137 has started for PR 9218 at commit 071f29f.

Test build #44137 has finished for PR 9218 at commit 071f29f.

This patch fails some tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

could we support both names() and colnames()?

cc @olarayej

@sun-rui names and names<- are already there, this is to add colnames.

I am not clear that for both coltypes() and coltypes<-(), how to represent complex types in R types? do you have idea?

@sun-rui That's a great point, coltypes() as its signature is defined, would only return a list of simple types.
But how would one create a DataFrame with complex type from R? I tried a bit and couldn't get it to work. Either I get Unsupported type for DataFrame: factor or unexpected type: environment

@felixcheung, type inferring works for complex types in createDataFrame(). You can refer to the test case for "create DataFrame with complex types" in test_sparkSQL.R.

Any more thought on this and #8984? It looks like we are cutting the 1.6.0 release very soon.

My take is that its even fine if we only support basic types through coltypes<- for now and throw a complex types not supported error message for now. That way the API gets established and we can make it richer across releases.
@sun-rui @olarayej What are your thoughts on getting the API in time for 1.6 ?

yes, I agree:  throw a complex types not supported error message

Merged build triggered.

Merged build started.

Test build #44767 has started for PR 9218 at commit fae9bba.

Test build #44767 has finished for PR 9218 at commit fae9bba.

This patch fails some tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Error : /home/jenkins/workspace/SparkPullRequestBuilder/R/pkg/man/colnames.Rd: Sections \title, and \name must exist and be unique in Rd files
ERROR: installing Rd objects failed for package 'SparkR'

This is odd, there shouldn't be a Rd file for colnames, I haven't changed this and it worked before
#' @rdname columns
#' @name colnames
setMethod("colnames",

Merged build triggered.

Merged build started.

Test build #44769 has started for PR 9218 at commit 49f7117.

Test build #44769 has finished for PR 9218 at commit 49f7117.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

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

Merged build triggered.

Merged build started.

Test build #44783 has started for PR 9218 at commit 8d3f043.

Test build #44783 has finished for PR 9218 at commit 8d3f043.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

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

Merged build triggered.

Merged build started.

Test build #45718 has started for PR 9218 at commit 8730a37.

Test build #45718 has finished for PR 9218 at commit 8730a37.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

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


about the version with electron

hello master,
when I use npm-pre-gyp to build the binary module,
the command usually is node-pre-gyp install --fallback-to-build  --runtime=electron --target=1.3.3,
1.3.3 is later than electron-rebuild release version,
so, I can't use<EMAIL_ADDRESS>and just the version before 1.2.0 can be used?

electron-rebuild and electron version are independent.  Electron rebuild works with all electron versions

thanks


INCLUDE clause on indexes

Problem
Postgres has the ability to INCLUDE non-key columns in an index which allows the columns to be returned by the index scan without having to lookup on the table.
https://www.postgresql.org/docs/11/sql-createindex.html
https://www.postgresql.org/docs/11/sql-createindex.html#:~:text=EXISTS is specified.-,INCLUDE,-The optional INCLUDE

INCLUDE
The optional INCLUDE clause specifies a list of columns which will be included in the index as non-key columns. A non-key column cannot be used in an index scan search qualification, and it is disregarded for purposes of any uniqueness or exclusion constraint enforced by the index. However, an index-only scan can return the contents of non-key columns without having to visit the index's table, since they are available directly from the index entry. Thus, addition of non-key columns allows index-only scans to be used for queries that otherwise could not use them.
It's wise to be conservative about adding non-key columns to an index, especially wide columns. If an index tuple exceeds the maximum size allowed for the index type, data insertion will fail. In any case, non-key columns duplicate data from the index's table and bloat the size of the index, thus potentially slowing searches.
Columns listed in the INCLUDE clause don't need appropriate operator classes; the clause can include columns whose data types don't have operator classes defined for a given access method.
Expressions are not supported as included columns since they cannot be used in index-only scans.
Currently, only the B-tree index access method supports this feature. In B-tree indexes, the values of columns listed in the INCLUDE clause are included in leaf tuples which correspond to heap tuples, but are not included in upper-level index entries used for tree navigation.
[...]
To create a unique B-tree index on the column title with included columns director and rating in the table films:
CREATE UNIQUE INDEX title_idx ON films (title) INCLUDE (director, rating);

Currently, prisma migrate dev (or introspection) thinks the non-key columns in the INCLUDE clause are key columns that are part of the index. Instead it should exclude non-key columns when checking for schema drift
Suggested solution
Adding support for INCLUDE clauses in indexes would allow use of this postgres feature. Potential syntax:
@@index([email], include: [id])
Alternatives
Alternative is to omit INCLUDE clauses from the database indexes. Since it affects only db performance, it's not critical for most applications.
Additional context
Original reported as a bug in https://github.com/prisma/prisma/issues/8547 which has a minimal repro to test this functionality https://github.com/awinograd/prisma-include-clause-bug

Merging this issue with https://github.com/prisma/prisma/issues/14699 which is the same, but on MS SQL Server.

CockroachDB has its own variant with COVERING and STORING: https://www.cockroachlabs.com/docs/stable/indexes.html#storing-columns (Per https://www.cockroachlabs.com/docs/v22.1/create-index INCLUDE works as well though)

Hello I have been trying to implement this with the above solution
@@index([email], include: [id])
but I get receiving errors as the include is not a defined property in Prisma!!
how to solve this !?

Hello, this is a very unfortunate issue. We have to write a custom index for performance and now it tries to drop it every migration. Can anyone help us understand what to do next here? We don't really know what else to do here other than like delete that line out of every migration? Does anyone have a hack or workaround for this?

A hint: If you add 'WHERE something IS NOT NULL' to the index, prisma leaves it alone during migration diffing.

Any update on this? +1


RC Spot-Check Test: Magnets and Electromagnets 1.1.0-rc.1

RC Spot-Check Test
Mentions: @arouinfar @ariel-phet @kathy-phet @KatieWoe @Nancy-Salpepi
Simulation links

github repository for issues - Please create issues in faradays-electromagnetic-lab.
phet top-level directory
sim: all_phet.html
phet-io wrapper index
link to phet-io zip file

Test Matrices
General Test:

[x] Tester = JD, Platform = Firefox, win 11 , Time = .75
[x] Tester = MM, Platform = Chrome, Win 10 Time = 1

PhET-iO Test:

[x] Tester = JD , Platform =  Chrome, Win 11, Time = 1
[x] Tester =MM, Platform = Chrome, Win 10, Time = .75

Additional Features Test:

[ ] Tester = , Platform = , Time =
[ ] Tester = , Platform = , Time =

Features included

PhET-iO
Dynamic Locale
Alternative Input
UI Sound
Sonification
Description
Voicing

Focus and Special Instructions
This sim is part of a suite of 4 sims, all being released and tested at the same time. Faraday's Electromagnetic Lab is the full sim and is getting a full RC test.  This sims requires only an RC spot-check.  It consists of the "Bar Magnet" and "Electromagnet" screens from the full sim, with the only difference being that the "Earth" checkbox is visible by default in the "Bar Magnet" screen.
The QA issues for the other sims in this suite are:

https://github.com/phetsims/qa/issues/1116
https://github.com/phetsims/qa/issues/1117
https://github.com/phetsims/qa/issues/1119

Issues to Verify
These issues have the "status:ready-for-review" label. Unless an issue says to close after verifying, assign the
issue back to the developer.

[ ] https://github.com/phetsims/faradays-electromagnetic-lab/issues/2

For QA...

General features

What to Test

Click every single button.
Test all possible forms of input.

Test all mouse/trackpad inputs.
Test all touchscreen inputs.

If there is sound, make sure it works.
Make sure you can't lose anything.
Play with the sim normally.
Try to break the sim.
Test some query parameters. (See QA Book for a
list of query parameters.)
When making an issue, check to see if it was in a previously published version.
Try to include version numbers for browsers.
If there is a console available, check for errors and include them in the Problem Description.
As an RC begins and ends, check the sim repo. If there is a maintenance issue, check it and notify developers if there
is a problem.
As the RC ends, notify the developer of any new QA credits that need to be added.

PhET-iO features

What to Test

Make sure that public files do not have password protection. Use a private browser for this.
Make sure that private files do have password protection. Use a private browser for this.
Make sure standalone sim is working properly.
Make sure the wrapper index is working properly.
Make sure each wrapper is working properly.
Launch the simulation in Studio with ?stringTest=xss and make sure the sim doesn't navigate to youtube
For newer PhET-iO wrapper indices, save the "basic example of a functional wrapper" as a .html file and open it. Make
sure the simulation loads without crashing or throwing errors.
Load the login wrapper just to make sure it works. Do so by adding this link from the sim deployed root:/wrappers/login/?wrapper=record&validationRule=validateDigits&&numberOfDigits=5&promptText=ENTER_A_5_DIGIT_NUMBER

Further instructions in QA Book
Conduct a recording test to Metacog, further instructions in the QA Book. Do this for iPadOS + Safari and one other
random platform.
Conduct a memory test on the stand alone sim wrapper (rc.1).
Test one platform combination with ?phetioDebug=true on the Studio and State wrapper.
If Pan/Zoom is supported, make sure that it works when set with PhET-iO State.
Test that the sim works offline:

Click the link to the phet-io zip file (at top of issue) to download the zip file.
Unzip it to a spot locally.
Open index.html by double clicking it on your desktop or in a Finder-view.
It should look like the standalone version of the sim in PhET-iO brand.

Accessibility features

What to Test

Specific instructions can be found above.

Make sure the accessibility (a11y) feature that is being tested doesn't negatively affect the sim in any way. Here is
a list of features that may be supported in this test:

Alternative Input
Interactive Description
Sound and Sonification
Pan and Zoom
Mobile Description
Voicing

Test all possible forms of input.

Test all mouse/trackpad inputs.
Test all touchscreen inputs.
Test all keyboard navigation inputs (if applicable).
Test all forms of input with a screen reader (if applicable).

If this sim is not in this list or up to date there, make an
issue in website to ask if PhET research page links need updating. Please
assign to @terracoda and @emily-phet.

Screen Readers
This sim may support screen readers. If you are unfamiliar with screen readers, please ask Katie to introduce you to
screen readers. If you simply need a refresher on screen readers, please consult the
QA Book, which should have all of the information
you need as well as a link to a screen reader tutorial made by Jesse. Otherwise, look over the a11y view before opening
the simulation. Once you've done that, open the simulation and make sure alerts and descriptions work as intended.

Platforms and Screen Readers to Be Tested

Windows 10 + Latest Chrome + Latest JAWS
Windows 10 + Latest Firefox + Latest NVDA
macOS + Safari + VoiceOver
iOS + Safari + VoiceOver (only if specified in testing issue)

Critical Screen Reader Information
We are tracking known screen reader bugs in
here. If you find a screen reader bug,
please check it against this list.

Keyboard Navigation
This sim supports keyboard navigation. Please make sure it works as intended on all platforms by itself and with a
screen reader.
Magnification
This sim supports magnification with pinch and drag gestures on touch screens, keyboard shortcuts, and mouse/wheel
controls. Please test magnfication and make sure it is working as intended and well with the use cases of the
simulation. Due to the way screen readers handle user input, magnification is NOT expected to work while using a screen
reader so there is no need to test this case.

FAQs for QA Members

There are multiple tests in this issue... Which test should I do first?
Test in order! Test the first thing first, the second thing second, and so on.

How should I format my issue?

We typically assign the developer who opened the issue in the QA repository.

My question isn't in here... What should I do?
You should:

Consult the QA Book.
Google it.
Ask Katie.
Ask a developer.
Google it again.
Cry.

QA is done

Thanks QA! All issues have been addressed, so proceeding with 1.0.0-rc.2 spot check.


Title: Implementing Plant Disease Prediction using ResNet Model

Description:
I am working on implementing a plant disease prediction system using the ResNet model. I plan to use the HAGGLE dataset for training the model. The goal is to train the model on a cloud platform to leverage its computing power and scalability.
Tasks:

[x] Download the KAGGLE dataset.
[x] Preprocess the dataset for training.
[x] Implement the ResNet model architecture.
[x] Train the model on a cloud platform.
[x] Evaluate the model's performance.
[ ] Deploy the trained model for inference.

Additional Features:

[x] Import necessary libraries:

import os for working with files
import numpy as np for numerical computations
import pandas as pd for working with dataframes
import torch for PyTorch module
import matplotlib.pyplot as plt for plotting information on graphs and images using tensors
import torch.nn as nn for creating neural networks
from torch.utils.data import DataLoader for dataloaders
from PIL import Image for checking images
import torch.nn.functional as F for functions for calculating loss
import torchvision.transforms as transforms for transforming images into tensors
from torchvision.utils import make_grid for data checking
from torchvision.datasets import ImageFolder for working with classes and images
from torchsummary import summary for getting the summary of our model

Labels: machine learning, cloud computing, enhancement, big project
Note: This will be the biggest project in this repository.

The repo is of finance not, machine learning

@Akshat111111 is it necessary to work on finance related tasks?

yes, this repo is directly or indirectly related to finance.


WIP: systemd: add 2nd firstboot-complete service for UEFI

We need a second firstboot-complete service to delete
the ignition.firstboot file that may be under /boot/efi
rather than /boot.
This is a bit of a hack workaround for now until we get a
better solution.
See https://github.com/coreos/coreos-assembler/issues/383

If we do go this route I think it'd be simpler to just change the rm in the unit we have to rm -f /boot{,/efi}/ignition.firstboot or so rather than duplicating the unit code.

If we do go this route I think it'd be simpler to just change the rm in the unit we have to rm -f /boot{,/efi}/ignition.firstboot or so rather than duplicating the unit code.

that would be easy, but would negate
https://github.com/coreos/ignition-dracut/blob/e3bd9c9e585176ef7906353886f94b897cca62ed/systemd/ignition-firstboot-complete.service#L16-L18
I'll play around with grub2 search to see if we can get around with not having to do this at all.

We should be always using /boot for the ignition files regardless of whether /boot/efi exists or not.

I'll play around with grub2 search to see if we can get around with not having to do this at all.

figured out something a bit better.. closing in favor of https://github.com/coreos/ignition-dracut/pull/52


"Cannot get password" on MacOS

Issue Type: Bug
Signing in to sync settings doesn't retain the sign-in between restarts of VS Code. Each time I start VS Code I get the blue circle by the profile icon, asking me to sign in again. Rebooting doesn't help, I've also restarted many times.
Sign-in isn't retained for any extensions (Github PRs and Gitlens extensions) either, they ask to sign-in again as well.
VS Code version: Code - Insiders 1.56.0-insider (Universal) (ce791d27dc9889a392f4d29abefe9c53eb0b5129, 2021-04-16T11:23:31.851Z)
OS version: Darwin x64 20.3.0
Remote OS version: Linux x64 5.11.0-14-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz (4 x 2900)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
29, 26, 16

Memory (System)
8.00GB (0.04GB free)

Process Argv
--crash-reporter-id f7079402-1532-4e90-b1b1-da579b0a67cb

Screen Reader
no

VM
0%

Item
Value

Remote
SSH: pk

OS
Linux x64 5.11.0-14-generic

CPUs
AMD Opteron(tm) X3216 APU (2 x 2965)

Memory (System)
7.24GB (0.17GB free)

VM
0%

Extensions (22)

Extension
Author (truncated)
Version

better-comments
aar
2.1.0

gotemplate
cas
0.4.0

bracket-pair-colorizer-2
Coe
0.2.0

dotenv
mik
1.0.1

remote-containers
ms-
0.168.0

remote-ssh
ms-
0.65.3

remote-ssh-edit
ms-
0.65.3

remote-wsl
ms-
0.56.0

vim
vsc
1.20.0

gitignore
cod
0.6.0

vscode-eslint
dba
2.1.20

gitlens
eam
11.4.1

vscode-pull-request-github
Git
0.25.1

go
gol
0.24.1

rest-client
hum
0.24.5

python
ms-
2021.3.680753044

jupyter
ms-
2021.6.755784270

cpptools
ms-
1.3.0

indent-rainbow
ode
7.5.0

vscode-yaml
red
0.18.0

bash-beautify
sha
0.1.1

vscode-import-cost
wix
2.15.0

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry914:30244316
pythonvsdeb440:30224570
pythonvsded773:30223139
pythonvspyt875:30259475
pythonvsnew554:30265444
pythontb:30258533
wslfolderdoc:30278405
vspre833:30267464
pythonptprofiler:30281269
vscnewfiletextcf:30288478
vshan820:30276952
vscorecescf:30285484
pythondataviewer:30285072
vscus158cf:30286554
vscgsv2:30286872

Here's the Log for Settings Sync:
[2021-04-18 22:07:28.666] [settingssync] [info] Using settings sync service https://vscode-sync-insiders.trafficmanager.net/
[2021-04-18 22:07:28.666] [settingssync] [info] Auto Sync is enabled.
[2021-04-18 22:07:28.666] [settingssync] [info] Auto Sync: Suspended until auth token is available.
[2021-04-18 22:59:57.008] [settingssync] [info] Auto Sync: Started
[2021-04-18 22:59:57.009] [settingssync] [info] Auto Sync: Triggered by Interval
[2021-04-18 22:59:58.576] [settingssync] [info] Settings: No changes found during synchronizing settings.
[2021-04-18 22:59:58.678] [settingssync] [info] Keybindings: No changes found during synchronizing keybindings.
[2021-04-18 22:59:58.794] [settingssync] [info] Snippets: No changes found during synchronizing snippets.
[2021-04-18 22:59:59.334] [settingssync] [info] GlobalState: Updated remote ui state
[2021-04-18 22:59:59.353] [settingssync] [info] GlobalState: Updated last synchronized ui state
[2021-04-18 22:59:59.547] [settingssync] [info] Extensions: No changes found during synchronizing extensions.
[2021-04-18 22:59:59.552] [settingssync] [info] Sync done. Took 1090ms
[2021-04-18 23:00:13.928] [settingssync] [info] Auto Sync: Triggered by Activity
[2021-04-18 23:00:14.022] [settingssync] [info] Settings: No changes found during synchronizing settings.
[2021-04-18 23:00:14.040] [settingssync] [info] Keybindings: No changes found during synchronizing keybindings.
[2021-04-18 23:00:14.043] [settingssync] [info] Snippets: No changes found during synchronizing snippets.
[2021-04-18 23:00:14.086] [settingssync] [info] GlobalState: No changes found during synchronizing ui state.
[2021-04-18 23:00:14.184] [settingssync] [info] Extensions: No changes found during synchronizing extensions.
[2021-04-18 23:00:14.187] [settingssync] [info] Sync done. Took 201ms

Do you have gnome-keyring installed? Is there any error notification when you complete the sign in?
If you could get the log for "GitHub Authentication" in the output panel, that would be very useful

I'm running on macOS, I reported the issue when I had a remote SSH open but the issue persists in local development. So no, I don't have gnome-keyring.
No errors when I login. Everything seems to be fine.
Here's the Github auth log:
[Error  - 07:07:18.878] Getting token failed: Error: Cannot get password
[Info  - 07:08:00.568] Logging in...
[Info  - 07:08:49.626] Exchanging code for token...
[Info  - 07:08:50.332] Token exchange success!
[Info  - 07:08:50.334] Getting user info...
[Info  - 07:08:50.731] Got account info!
[Info  - 07:08:50.911] Login success!

This issue persists after doing a complete reinstall of my macOS operating system from scratch and reinstalling VS Code Insiders on it.

Hello this stuff has changed quiet a bit in 2 years... are you still having trouble?

Not really! Sitting a couple of years on a bug does wonders!


1913 Add sender ID and test kit info to metadata table

This PR adds sender ID and test kit info to metadata table.
Test steps:

Update your database by running ./gradlew package to make sure you have the already merged database changes for 1913.  This will update the DB and regenerate the Java database files.
Run ReportStream
Run the smoke tests to generate data - ./gradlew testsmoke
Inspect any new data in the covid_result_metadata table and verify the data has a sender_id, test_kit_name_id and/or test_performed_loinc_code.  Note that not all data has all this fields, hence it will be empty for some of it.

Changes

Added the sender_id, test_kit_name_id and test_performed_loinc_code to the covid_result_metadata table
Make sure generateJooq in gradle runs after a change to a migration script.
Minor tweaks and cleanup of the gradle build file
Minor cleanup of klint issues

Checklist
Testing

[x] Tested locally?
[x] Ran quickTest all?
[x] Ran ./prime test against local Docker ReportStream container?
[ ] Downloaded a file from http://localhost:7071/api/download?
[ ] Added tests?

Process

[ ] Are there licensing issues with any new dependencies introduced?
[x] Includes a summary of what a code reviewer should verify?
[ ] Updated the release notes?
[ ] Database changes are submitted as a separate PR?
[ ] DevOps team has been notified if PR requires ops support?

Fixes

#1913

To Be Done

One minor change needed related to actionHistory.queueMessages(workflowEngine)
Otherwise, good to go; and thank-you.

Fixed


Initial usage is being answered with default welcome message

Hi,
when I invoke the service the first time, I'm being prompted with the welcome message instead of an answer to my question. I've published the service, but it got rejected by Amazon, as initially the welcome message is being played.

I'm having the same issue, don't know how I should solve it.

Hi,
Were you able to solve this problem?  I have the same thing where no matter what I use for utterance, the welcome message comes up.

Hi, no, I have not been able to solve it. Hence, I've stopped looking into Alexa Skill development ...

Even, I am so., with these templates, they just put over here for name sake and later on ,. just wondering how many requests are yet to be answered...

looks like this issue was resolved with a PR, but the issue was not closed.  @repath if you have a question, please feel free to open a new issue.


allow-related is not working for  reply flow

ovn v22.12.3
ovs 3.1.5
subnet1 <IP_ADDRESS>/24
vm1  <IP_ADDRESS>
vm2  <IP_ADDRESS>
subnet ACL configure as:
from-lport  1900 (ip4.src == <IP_ADDRESS>/24 && ip4.dst == <IP_ADDRESS>/24) allow-related
from-lport  1598 (ip4.src==<IP_ADDRESS> && ip4.dst==<IP_ADDRESS> && icmp) drop
to-lport  1597 (ip4.src==<IP_ADDRESS> && ip4.dst==<IP_ADDRESS> && icmp) drop
vm2 ping vm1 is unreachable
ovn trace  is in the picture below

In the above description, when pinging VM1 from VM2, it is allowed by rule 1, but dropped by rule 3 in the inbound direction of VM1. This is because the above three rules do not specify an inport value, so they should be applied to all VMs in the subnet, which causes the aforementioned issue.
The scenario in which allow-related takes effect is the handling logic for reply packets. In the current situation, VM1 should not have received the request packet, so there is no communication. Can you please confirm this?


[BUG] [Fix-Suggested] ZeRO Stage 3 Overwrites Module ID Attribute Causing Incorrect Expert Placement on GPUs

Description
We experienced wrong GPU placement when doing MoE with ZeRO Stage 3. We use module.id to control which expert to be loaded onto which GPU for finegrained controlm and we find out that module.id got corrupted after deepspeed.initialize.
Suspected Root Cause
DeepSpeed uses .id in ZeRO Stage 3 optimization to manage states, as seen in runtime/zero/parameter_offload.py:L271.
This practice is very brittle in that:

id is an overly generic attribute name, might get easilly collided with some user-defined attributes.
There's no special check on .id attribute before setting it, this allows for accidental overwrites of the attribute, causing hard-to-diagnose problems.

In the specific bug we've encountered (bug.py provided below), each expert module is identified by the .id attribute, but during initialization, the .id is overwritten by the _register_hooks_recursively function in deepspeed/runtime/zero/stage3.py, leading to a mess on expert-GPU placement.
To reproduce
The following code in ZeRO Stage 3 is responsible for overwriting the .id attribute:

Install deepspeed 0.15.4

run bug.py using deepspeed --num_gpus=2 bug.py (num_gpus argument here doesn't matter, use 1 if you don't have multigpu nodes.)

import torch
import deepspeed
from torch.nn import Module, Linear

# Define a simple expert module
class Expert(Module):
    def __init__(self, id):
        super().__init__()
        self.id = id  # ID for custom GPU placement
        self.fc = Linear(128, 128)

    def forward(self, x):
        return self.fc(x)

# Create a model with 60 experts
class MoEModel(Module):
    def __init__(self):
        super().__init__()
        self.experts = torch.nn.ModuleList([Expert(i) for i in range(60)])
    def forward(self, x, expert_id):
        return self.experts[expert_id](x)

# Helper function to log expert ids
def log_expert_ids(model, rank):
    loaded_experts = [e.id for e in model.experts]

def main():
    deepspeed.init_distributed()
    rank = torch.distributed.get_rank()

    # Create model
    model = MoEModel()
    log_expert_ids(model, rank)  # prints 0, 1, 2, .., 59

    # Configure DeepSpeed
    model_engine, optimizer, _, _ = deepspeed.initialize(
        model=model,
        optimizer=torch.optim.Adam(model.parameters(), lr=3e-5),
        config={
            "train_micro_batch_size_per_gpu": 1,
            "gradient_accumulation_steps": 1,
            "steps_per_print": 1,
            "zero_optimization": {"stage": 3,}
        }
    )

    # print model ids again after deepspeed.initialize
    log_expert_ids(model, rank)  # prints 0, 2, 4, 6, ...

    # if you do a deepspeed.intialize here again, you will see the id itself completely messed up.

    dummy_input = torch.randn(1, 128).cuda(rank)
    for expert_id in range(60):
        model_engine(dummy_input, expert_id=expert_id)

if __name__ == "__main__":
    main()

We print ids of all experts twice, one before deepspeed.initialize and one after that. Observe that the first print gives 0, 1, 2, ..., 59 while the second one gives 2, 4, 6, 8, .., 120

In this code, module.id is set to a value based on a counter (my_count), which conflicts with user-defined .id attributes used for expert placement.
Bug Significance
This bug can significantly affect model behavior when expert modules are incorrectly placed across GPUs, leading to incorrect training outcomes or potential crashes. Ensuring that internal DeepSpeed modifications do not overwrite user-defined attributes is crucial for stability and expected functionality.
Even if user-side conflicts are not in your scope, deepspeed itself can accidently modify these attributes as well. For example, you can reproduce the same problem by calling deepspeed.initialize multiple times.
Thus, we argue for two fixes / engineering practices for this issue.
Expected Behavior / Suggested Fix

Use a Specific Attribute for Internal IDs: Instead of overwriting .id, use a more specific attribute name such as _deepspeed_id to avoid conflicts with user-defined attributes.
Restrict Attribute Modification: Modify the __setattr__ method to only allow setting fields that have not been previously set, preventing unintentional overwrites of user-defined attributes.
**Forbid Duplicated deepspeed.initialize: We observe a lot of issue with accidental duplicate calls to deepspeed.initialize. Thus we suggest to forbid duplicate calls by recording the models / optimizers that have already been inited, as mentioned in #6770 .

ds_report output

Click to Show

collect2: error: ld returned 1 exit status
gds .................... [NO] ....... [NO]
transformer_inference .. [NO] ....... [OKAY]
inference_core_ops ..... [NO] ....... [OKAY]
cutlass_ops ............ [NO] ....... [OKAY]
quantizer .............. [NO] ....... [OKAY]
ragged_device_ops ...... [NO] ....... [OKAY]
ragged_ops ............. [NO] ....... [OKAY]
random_ltd ............. [NO] ....... [OKAY]
 [WARNING]  sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.2
 [WARNING]  using untested triton version (2.2.0), only 1.0.0 is known to be compatible
sparse_attn ............ [NO] ....... [NO]
spatial_inference ...... [NO] ....... [OKAY]
transformer ............ [NO] ....... [OKAY]
stochastic_transformer . [NO] ....... [OKAY]
--------------------------------------------------
DeepSpeed general environment info:
torch install path ............... ['/home/xxx/python3.10/site-packages/torch']
torch version .................... 2.2.2+cu121
deepspeed install path ........... ['/home/xxx/python3.10/site-packages/deepspeed']
deepspeed info ................... 0.15.4, unknown, unknown
torch cuda version ............... 12.1
torch hip version ................ None
nvcc version ..................... 12.3
deepspeed wheel compiled w. ...... torch 2.2, cuda 12.1
shared memory (/dev/shm) size .... 31.24 GB

I will be more than happy to contribute to the two suggested fixes, let me know what you think!

@traincheck-team, thanks for providing detailed report and suggesting reasonable solutions. We will work on this immediately.

@traincheck-team, please see #6847. I simplified your repro into a simple unit test. Please advise if this simplification is missing crucial aspects of this issue. Thanks!

Thanks for the fast response!
The test and implementation look good, and it guards against DeepSpeed modifying user-defined attributes.
I think the missing piece is to guard against DeepSpeed itself modifying that ds_id attribute due to repeated initialization, but that should be handled in a separate PR that we've agreed to implement in https://github.com/microsoft/DeepSpeed/issues/6770. We will try to ship that PR soon.

Thanks for the quick review.

I think the missing piece is to guard against DeepSpeed itself corrupting that ds_id attribute due to repeated initialization, but that should be handled in a separate PR that we've agreed to implement in #6770. We will try to ship that PR soon.

Yes, for this problem, I think your PR is best solution as discussed. Thanks!


Camera property step precision reported wrong for doubles

Hello,
I came across misleading step values while testing properties with tcam-ctrl
Running on Ubuntu 16.04 Tcam version 0.13.1
Using camera Model: DMK 39GX265-Z20-TI (Gige + Aravis)
When executing tcam-ctrl -p <serial>
The step for every (double) property is reported as 0.001
While testing step values using tcam-ctrl --load (e.g. tcam-ctrl --load <serial> "{\"Gain\":4.1234}")
shows the actual step is 0.1 for most values and 0.01 for others.
Can the actual step values be read anywhere else?

Hello
Most devices do not provide a step size for properties. Some cameras provide step sizes for some, but not all properties.
The Aravis library does not know about step sizes at all. Therefore, we decided to use a dummy values of 0.01, which makes in most cases sense.
In all other cases it is trial and error to figure out the step sizes.
The answer to your question is "No".
Stefan


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: cgawel sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


[REQ] - Fade in/out.

Hey all,
Quick question... Is it possible for the widget to instead fade in/out in between value it shows, instead of just 'instantly switching'.
While I'm pretty sure the changes in the code wont happen in the 'erb' file... here is how I am using it in my erb...

If so... how would this be achievable?
Thanks.
://mk

Hi, I think you might be able to do this my some custom CSS/JS tricks.

On 10 Jan 2016, at 20:02, Martyn Keigher<EMAIL_ADDRESS>wrote:
Hey all,
Quick question Is it possible for the widget to instead fade in/out in between value it shows, instead of just 'instantly switching'
While I'm pretty sure the changes in the code wont happen in the 'erb' file here is how I am using it in my erb

If so how would this be achievable?
Thanks
://mk
—
Reply to this email directly or view it on GitHub.

Did anyone manage to do this and can post it here?

i was able to get the fade in working, it is a hack job and needs tuning but works
What i did was create a switcher directory in my widgets folder and copy the switcher.coffee.
On line 92 append .addClass('animated fadeIn')
so the line will look like
$(self.$elements[self.curPos]).show().css('display', 'table-cell').addClass('animated fadeIn')
then you want to include this animate.css file in your layout.erb
What this will do is append the classes animated and fadeIn to your divs so whenever the div is up in the rotation it will fade in, i will update it if i work out a better way

Any news regarding this feature ? Thanks


Replace __Dymola_colorSelector by the new standard equivalent colorSelector

Reported by dietmarw on 27 Jul 2012 07:36 UTC
As pointed out in [comment 4 of #517 Comment 4 of #517] the "__Dymola_colorSelector" can now be replaced with the new, in MLS 3.3 standardised, "colorSelector" annotation.

Migrated-From: https://trac.modelica.org/Modelica/ticket/786

Comment by dietmarw on 27 Jul 2012 07:43 UTC
Fixed in trunk in 2e5e060bf9a4ac73f99f81b883a38507a3dac97a.

Comment by dietmarw on 10 Sep 2012 15:06 UTC
The changes applied in order to fix these tickets were reverted because we the MSL 3.2.1 finalisation was decided to happen in trunk. These MLS 3.3 fixes should be reaplied once trunk is used for MSL3.3 development again.

Comment by dietmarw on 5 Dec 2012 17:26 UTC
Making this ticket more general as other annotation are also changed in the following way:

Annotation in MSL 3.2
Change in MSL 3.2.1
Comment

__Dymola_absoluteValue
Rename to absoluteValue
Newly defined in Modelica 3.2 Revision 2

__Dymola_checkBox
Rename to checkBox
Newly defined in Modelica 3.2 Revision 2

__Dymola_choicesAllMatching
Rename to choicesAllMatching
Newly defined in Modelica 3.2 Revision 2

__Dymola_classOrder
Remove
Has no effect due to package.order

__Dymola_colorSelector
Rename to colorSelector
Newly defined in Modelica 3.2 Revision 2 and in Modelica 3.3

__Dymola_Commands
Keep
"Not possible to standardize because defining a menu entry in the tool to execute a tool specific command or script"

__Dymola_DocumentationClass
Keep
Not clear what to do

__Dymola_editButton
Keep or remove
not important        Avoiding modifiers for package

__Dymola_experimentSetupOutput
Remove
Has no effect (bug in Dymola to generate it)

__Dymola_initialDialog
Keep and add showStartAttribute
Newly defined in Modelica 3.2 Revision 2 and in Modelica 3.3

__Dymola_InlineAfterIndexReduction
Rename to InlineAfterIndexReduction
Newly defined in Modelica 3.2 Revision 2

__Dymola_InlineNoEvent
Keep and add GenerateEvents  was removed see also #1048
Newly defined in Modelica 3.2 Revision 2 and in Modelica 3.3

__Dymola_keepConstant
Renamed to keepConstant was removed, see also #1020
Special handling of package constants

__Dymola_loadSelector
loadSelector
Newly defined in Modelica 3.2 Revision 2

__Dymola_normallyConstant
normallyConstant
Newly defined in Modelica 3.2 Revision 2

__Dymola_NumberOfIntervals
Replace by Interval
Newly defined in Modelica 3.2 Revision 2

__Dymola_saveSelector
saveSelector
Newly defined in Modelica 3.2 Revision 2

__Dymola_structurallyIncomplete
"Keep and add defaultConnectionStructurallyInconsistent"
Newly defined in Modelica 3.2 Revision 2

__Dymola_Text
Rename to Text
Defined the details

Interval
Keep
Newly defined in Modelica 3.2 Revision 2

obsolete
Keep
Newly defined in Modelica 3.2 Revision 2

Changelog removed by dietmarw on 5 Dec 2012 17:26 UTC

Modified by dietmarw on 5 Dec 2012 17:28 UTC

Comment by dietmarw on 5 Dec 2012 19:45 UTC
Fixed in 6a2c38a48bf46e7a936db35f2d21ff4350b8bd46.

Comment by dietmarw on 8 Dec 2012 23:45 UTC
Update:
__Dymola_DocumentationClass will also be removed in since a tool can simply determine by other means (e.g., inheritance from certain documentation icons) to display some classes differently.

Comment by dietmarw on 8 Dec 2012 23:46 UTC
I'll take care of this one once I'm back at the office.

Comment by otter on 9 Dec 2012 11:58 UTC
I checked MSL in the trunk, and my current understanding is that all _Dymola* annotations are replaced by the ones standardized for the planned Modelica Language 3.2 revision 2, with exception of the following:

36 times: __Dymola_DocumentationClass
15 times: __Dymola_Commands
4 times: __Dymola_InlineNoEvent  (new name:       GenerateEvents)
1 times: __Dymola_structurallyIncomplete
(new name:       defaultConnectionStructurallyInconsistent)

For the moment, none of these remaining _Dymola* annotation should be removed before further discussing it. My current understanding:

__Dymola_InlineNoEvent and __Dymola_structurallyIncomplete must remain present until Dymola supports the new names of these annotations.
__Dymola_Commands cannot be currently removed without removing existing features of MSL. How to proceed, needs to be discussed.
It might be possible to remove __Dymola_DocumentationClass. But before doing this, it should be discussed with Hans.

Comment by hubertus on 9 Dec 2012 23:16 UTC
It is still unclear to me what should happen to keepConstant: THe above table says it should be renamed to keepConstant, but it des not seem to be in the updated release. Dymola with pedanticCheck complains that keepConstant is an unknown annotation. It looks like we overlooked this one at the last meetings?

Comment by dietmarw on 11 Dec 2012 15:12 UTC
Reassigning to Martin as I'm not going to do the change for now.

Comment by fcasella on 22 Feb 2013 15:46 UTC
Applied to still existing __Dymola_ annotations in 620522b873a602234572326e24bf2c00c978273f

Comment by otter on 21 May 2013 16:34 UTC
Replying to [comment:9 hubertus]:

It is still unclear to me what should happen to keepConstant: THe above table says it should be renamed to keepConstant, but it des not seem to be in the updated release. Dymola with pedanticCheck complains that keepConstant is an unknown annotation. It looks like we overlooked this one at the last meetings?

keepConstant was removed from MSL (it seems in newer Dymola versions this is anyway no longer needed). It was also decided to not standardize this annotation in Modelica 3.2rev.2

Comment by otter on 21 May 2013 16:45 UTC
All leftover issues of this ticket have been moved to other tickets:

Annotation __Dymola_InlineNoEvent was removed (without standardizing) because an analysis of Francesco showed, that it is not used and needed in current MSL.
Removing annotation __Dymola_structurallyIncomplete was moved to ticket #1117.
Removing annotation __Dymola_Commands was moved to ticket #1118.
Annotation __Dymola_DocumentationClass is discussed in ticket #1062.

For this reason this ticket is closed.


I want to use the original code

Hey, I want to use the original code for my own chatbot, I tried contacting you via email, but got no response. Could you share a json file structure that you used? Also did you have already all the possible patterns in it? I'm facing problem in this place. Thanks

Hello @monibaka,
Sorry for the late response. I was a bit busy these months.
Please check my article about this AI Chatbot from here.
It contains in fact the structure of JSON file to use.
Let me know if you need more help.


Add named jobs

Associates a job with a name, opening the possibility to later refer to a particular job, to be able to stop it (remove it from the crontab), or run it on demand.

I'm not quite sure yet about this. I'll probably remove this PR soon, I think I've found another way to achieve what I want without it.

Hey !
Currently, I'm using my fork because I need to be able to stop a running job, or change its schedule, which, in my opinion, requires the jobs to be identified (named).
If there's any plan to add such functionality to this original project, I would be glad to be using it instead of my fork.
Thanks again for the good work.
NW


broken link: https://docs.microsoft.com/en-us/azure/app-service/quickstart-arm-template?pivots=platform-linux

This link broken: https://docs.microsoft.com/en-us/azure/app-service/quickstart-arm-template?pivots=platform-linux

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

ID: 2943267d-0c8a-ad06-5a6c-f5c27b1fc16f
Version Independent ID: 48721b9e-5b4c-9cdc-fa38-6bd1edbbbc69
Content: Create an App Service app using an Azure Resource Manager template - Azure App Service
Content Source: articles/app-service/quickstart-arm-template.md
Service: app-service
GitHub Login: @msangapu-msft
Microsoft Alias: msangapu

#reassign:msangapu-msft

Fixed broken link and merged to master. Will be published tomorrow morning. #please-close

Thank you @StephenWeatherford.


Notebook examples not working

Following the restructuring of the code, the Jupyter notebooks do not work anymore.

They have been updated! :)

And I confirm they work flawlessly! Thanks!


Question: How to mock entity eager load?

Let's say I would like to test a function with *ent.Product as the param. How do I update the loadedTypes to true?
func Foo(p *ent.Product) error {
    _, err := p.Edges.ProductPricesOrErr()
    return err
}

Describe("Product", func() {
    var (
        product *ent.Product
    )

    Context("", func() {
        BeforeEach(func() {
            product = &ent.Product{
                ID: 1,
                Edges: ent.ProductEdges{
                    ProductPrices: []*ent.ProductPrice{
                        {
                            Currency: "USD",
                            Value: "123456",
                        },
                    },
                },
            }
        })

        It("should return nil", func() {
            err := service.Foo(ctx, product)
            Expect(err).Should(BeNil())
        })
    })
})

Hey @roger2hk!
ent doesn't expose an API for mocking these fields, however, you can add them to your generated code using external templates.
You can see this thread about testing for more information.

Closing because there's no action step to take here, but you can feel free to continue the discussion.
Thanks 😃

Here is how to mock the entities using external templates. Does that look good to you? If so, we may add this example to the docs. I'm not sure if {{- if $e.Unique }} and {{- else }} have handled all Edges scenarios.
{{ define "mock" }}

    {{/* Add the base header for the generated file */}}
    {{ $pkg := base $.Config.Package }}
    {{ template "header" $ }}

    {{/* Loop over all nodes and add implement the "NewMock" function */}}
    {{ range $n := $.Nodes }}
        {{ $name := $n.Name }}
        {{ $receiver := $n.Receiver }}

        func NewMock{{ $name }}({{ $receiver }} *{{ $name }}) *{{ $name }} {
            if {{ $receiver }} == nil {
                return nil
            }
            {{- with $n.Edges }}
                {{- range $i, $e := $n.Edges }}
                    {{- if $e.Unique }}
                        if {{ $receiver }}.Edges.{{ $e.StructField }} != nil {
                    {{- else }}
                        if len({{ $receiver }}.Edges.{{ $e.StructField }}) > 0 {
                    {{- end }}
                        {{ $receiver }}.Edges.loadedTypes[{{ $i }}] = true
                    }
                {{- end }}
            {{- end }}
            return {{ $receiver }}
        }
    {{ end }}

{{ end }}


Read protected view vs unprotected view

Hi guys,
I'm using a third party app that creates a xlsx and i'm trying to read it to convert it into json (or html)
the third party app generates a xlsx which has protected view, if I use the file
PivotGrid_Protected.xlsx
here
https://oss.sheetjs.com/sheetjs/
All I got is germany but my table has a lot more !
If i open the xlsx in excel enable editing, save the file it will work.
Please find my files
PivotGrid_Protected.xlsx
PivotGrid_UnProtected.xlsx
How can I get all the values of a protected file ? or even better removed protected view using sheetjs ? I have the xlsx file in a blob.
Thank you,

Hi @Dams591, were you able to make it work using the suggested fix or have you found another way to deal with this? Suggested fix did not do the job for me.
cc @SheetJSDev


In err_cleanup(), cleanup the thread local storage too

Fixes #3033

Looks good to me - but wait for @mattcaswell to confirm

Merged.
master: 165f1c3ef39680471339d21b9f6c12ea86b4a26a
1.1.0: 7dca72af91936d246700b78e06def16561a36028

Thanks, Matt!


When bootstrapping through cloud-config on 0.8.0-rc2, custom system services refuse to run

When I create a system service, per the docs (https://docs.rancher.com/os/system-services/adding-system-services/) using cloud-config when using Amazon EC2 and Rancher v8.0.0-rc2 the service never seems to get added or ran.
I am using Terraform to define infrastructure, so my user-data.tmpl file looks like this:
#cloud-config
rancher:
  services:
    nginxapp:
      image: nginx
      restart: always

This gets passed into the instance through Terraform, by doing this:
data "template_file" "user_data" {
  template = "${file("${path.module}/user-data.tmpl")}"

  vars {
    environment = "${var.environment}"
 }
}

and
resource "aws_launch_configuration" "rancher" {
  image_id             = "${data.aws_ami.rancher-os.image_id}"
  instance_type        = "${var.instance_type}"
  security_groups      = ["${aws_security_group.instance.id}"]
  user_data            = "${data.template_file.user_data.rendered}"
  key_name             = "${var.key_name}"
  iam_instance_profile = "${var.iam_instance_profile_id}"

  lifecycle {
    create_before_destroy = true
  }
}

AWS parses the user-data correctly, so this probably isn't a Terraform issue:

But Rancher refuses to run the service:

In fact, it doesn't even get added to the config:

What am I doing wrong? I have tried this with several different services and tried to get the config several different ways, no dice -- even tried adding the service manually and exporting the config into my user-data file. I have also tried previous versions of RancherOS, which also failed in the same way.

Can you show the output of ros config export and system-docker logs cloud-init?

  cloud_init:
    datasources:
    - ec2
  resize_device: /dev/xvda
  state:
    dev: LABEL=RANCHER_STATE
    wait: true
ssh_authorized_keys: []```

```sudo system-docker logs cloud-init
+ MOUNT_POINT=/media/config-2
++ ros dev LABEL=config-2
+ CONFIG_DEV=
+ mkdir -p /media/config-2
+ '[' -e '' ']'
+ mount -t 9p -o trans=virtio,version=9p2000.L config-2 /media/config-2
+ true
+ cloud-init-save -network=true
time="2016-12-23T17:50:07Z" level=info msg="Running cloud-init-save: network=true"
time="2016-12-23T17:50:07Z" level=info msg="Checking availability of \"ec2-metadata-service\"\n"
time="2016-12-23T17:50:07Z" level=info msg="Checking availability of \"ec2-metadata-service\"\n"
time="2016-12-23T17:50:07Z" level=info msg="Checking availability of \"ec2-metadata-service\"\n"
time="2016-12-23T17:50:07Z" level=info msg="Checking availability of \"ec2-metadata-service\"\n"
time="2016-12-23T17:50:07Z" level=info msg="Fetching user-data from datasource ec2-metadata-service"
2016/12/23 17:50:07 Fetching data from http://<IP_ADDRESS>/2009-04-04/user-data. Attempt #1
time="2016-12-23T17:50:07Z" level=info msg="Fetching meta-data from datasource of type ec2-metadata-service"
2016/12/23 17:50:07 Fetching data from http://<IP_ADDRESS>/2009-04-04/meta-data/public-keys. Attempt #1
2016/12/23 17:50:07 Fetching data from http://<IP_ADDRESS>/2009-04-04/meta-data/public-keys/0/openssh-key. Attempt #1
2016/12/23 17:50:07 Found SSH key for "rancheros"
2016/12/23 17:50:07 Fetching data from http://<IP_ADDRESS>/2009-04-04/meta-data/hostname. Attempt #1
2016/12/23 17:50:07 Fetching data from http://<IP_ADDRESS>/2009-04-04/meta-data/local-ipv4. Attempt #1
2016/12/23 17:50:07 Fetching data from http://<IP_ADDRESS>/2009-04-04/meta-data/public-ipv4. Attempt #1
time="2016-12-23T17:50:07Z" level=error msg="Unrecognized user-data\n"
time="2016-12-23T17:50:07Z" level=info msg="Written to /var/lib/rancher/conf/metadata:\nPublicIPv4:\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 255\n- 255\n- 52\n- 15\n- 219\n- 120\nPublicIPv6: []\nPrivateIPv4:\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 0\n- 255\n- 255\n- 172\n- 31\n- 22\n- 189\nPrivateIPv6: []\nHostname: ip-172-31-22-189.us-east-2.compute.internal\nSSHPublicKeys:\n  rancheros: ssh-rsa REDACTED    rancheros\nNetworkConfig: n```

That "unrecognized user-data" is probably what's doing it, curious as to what it can't recognize though.

Are you sure you're running v0.8.0-rc2? Now that I think about it, there shouldn't be a cloud-init service in that version.

If it makes any difference, I actually upgraded from the 0.7 image and created an AMI from that instance which is how this is running.

So yeah, looking at those logs a bit closer - you're right, they were from before I upgrade that instance to 0.8 (December 23, 2016) and then imaged it (bringing the old logs along for the ride.)

Does the same problem happen if you use v0.7.1? Can you also try putting in your userdata directly instead of going through Terraform?

I was able to use userdata in v0.7.0, upgrade to v0.8.0-rc2, and then still see the userdata. I'm thinking the issue might be relating to Terraform then, though I'm not sure why that would matter.

Using userdata on my v0.8.0-rc2 image manually via the AWS Console didn't work, trying v0.7.1 now...

@joshwget can confirm that adding user-data manually via the AWS console on v0.8.0-rc2 is working, so it has to be somewhere in Terraform. so strange...
i'm using a windows box atm, wondering if it has something to do with line endings somewhere (though all the terraform files have unix line endings).
i will tinker and report back for future Googlers but closing this because it doesn't seem to be a rancher issue (I sorta thought I just had the syntax wrong somewhere.)

Hmm, running it on a OSX box presents the same error. @joshwget are there any cloud-init logs I can look at in RancherOS 0.8.0-rc2?

Re-opening this. I did extensive work testing this today (using launch configurations via the AWS console manually, using Terraform to define launch configurations, using both Windows and OSX hosts to bootstrap the instance [in case it was a file formatting issue], creating an instance manually outside of a launch configuration, etc etc) and can pinpoint that this is actually an issue in 0.8.0-rc2 (I was wrong above, or there's possibly a race condition somewhere).
At least it is an issue if you take a 0.7.1 image, upgrade it to 0.8.0-rc2, and base new instances with user-data on that image (user-data that wasn't on the original instance). This kind of blocks me, because I need the fix for #1382. (Though not running in production - working on automation.)
If it helps, I can share my v0.8.0 image created from upgrading the 0.7.1 instance.

@brettneese what machine type are you using? I'm in the process of trying to track down why m4.large doesn't do cloud-init, while t2.micro does - #1533

@brettneese I've made rancheros-v0.8.0-rc6-hvm-test-1: ami-31ce9157 with snap-f6a5fe06 in eu-west-1 Public for you to have a quick test with
i don't use terraform, so I'm interested in simplifying the process :)

yo @SvenDowideit, apologies: using m4.larges and just saw your message. will give it a test tonight or tomorrow! 👍

@SvenDowideit can confirm that 0.8.0rc6 AMI works. i'm so glad it wasn't jus me going crazy.  🎉

awesome!


[no-empty-repos-list] No need to refresh repos list after WS disconnect/reconnect.

Cute animal pic
Because everyone likes pictures of animals.

Link to Trello card (if applicable)
If this PR relates to a Trello card, don't forget to reference this PR on the card as well.
https://trello.com/c/ROtqxOLK
Description
The commit messages say what you did; this should explain why and how.
For most objects in the front end store, we want to wipe and force a refetch after the WS channel disconnects/reconnects. This ensures that any models are up-to-date, and that the new WS channel subscribes to the models appropriately.
For repositories this was overkill, both because it was not properly refetching them anyway, and also because they seldom change and we do not subscribe to them via WS.
Steps to test/reproduce
Please explain how to best reproduce the issue and/or test the changes locally.

Run the django server and webpack server in separate processes (e.g. yarn webpack:serve in one terminal and yarn django:serve in another)
Go to the main repos list (http://localhost:8080/repositories)
Shut down the django server for 5 seconds and then restart
Your repos are still there.

Reviewer tasks:

[ ] Pulled branch and ran code locally
[ ] Reproduced the issue to review in the browser
[ ] Reviewed code
[ ] Updated Trello card (if applicable)

 Bug: Repo list is emptied on WS disconnect/reconnect.


Feature/main container #27

Added a new drawer component for the front page.
Also added the infrastructure needed to unit test the new components.
connect to #27

Codecov Report

Merging #48 into version1 will increase coverage by 1.03%.
The diff coverage is 88.88%.

@@             Coverage Diff              @@
##           version1      #48      +/-   ##
============================================
+ Coverage     84.21%   85.24%   +1.03%
============================================
  Files             7       11       +4
  Lines            38       61      +23
  Branches          4        6       +2
============================================
+ Hits             32       52      +20
- Misses            6        9       +3

Impacted Files
Coverage Δ

src/setupTests.js
100% <100%> (ø)

src/malcolm/malcolmReduxMiddleware.js
100% <100%> (ø)
:arrow_up:

src/viewState/viewState.actions.js
100% <100%> (ø)

src/App.js
100% <100%> (ø)
:arrow_up:

src/drawerContainer/drawerHeader.component.js
100% <100%> (ø)

src/viewState/viewState.reducer.js
100% <100%> (ø)

src/drawerContainer/drawerContainer.component.js
70% <70%> (ø)

src/App.routes.js

... and 3 more

Continue to review full report at Codecov.

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


[Question] How to reload odbc-bridge without restarting the clickhouse server?

Sometimes the connection to the remote database is lost and I have to restart the server to fix it.
How to reload odbc-bridge without restarting the clickhouse server?
default> system reload dictionary dictionaries.branch_office
[2022-03-16 22:19:21] Code: 86, e.displayText() = DB::Exception: Received error from remote server /?connection_string=DSN%3DGreenplum&max_block_size=8192. HTTP status code: 500 Internal Server Error, body: �std::exception. Code: 1001, type: nanodbc::database_error, e.what() = ../contrib/nanodbc/nanodbc/nanodbc.cpp:1045: IM00: [unixODBC][Driver Manager]Data source name not found, and no default driver specified , (version <IP_ADDRESS> (official build))

root@do-ch0:/home/egg# clickhouse-server --version
ClickHouse server version <IP_ADDRESS> (official build).

First of all, clickhouse-odbc-bridge is a part of ClickHouse code base, so it's better to ask there: https://github.com/ClickHouse/ClickHouse/issues

How to reload odbc-bridge without restarting the clickhouse server?

Try to locate the process of clickhouse-odbc-bridge and terminate it. clickhouse-server may start another fresh one.

Sometimes the connection to the remote database is lost and I have to restart the server to fix it.

This is rather an indication of missing/misconfigured/misspelled DSN or Driver in the system/user ODBC configs, and not a problem with the bridge process:
../contrib/nanodbc/nanodbc/nanodbc.cpp:1045: IM00: [unixODBC][Driver Manager]Data source name not found, and no default driver specified


Deno Deploy: Deno.lstatSync is not a function

Describe the bug
Eta is currently unusable on Deno Deploy because it uses Deno.existsSync which uses Deno.lstatSyncunderneath which is not currently supported by Deploy.
To Reproduce
Deploy any script that imports and uses the renderFile eta method to Deno Deploy
Logs
TypeError: Deno.lstatSync is not a function at existsSync (https://deno.land/std@0.97.0/fs/exists.ts:19:14)
  at searchViews (https://deno.land/x/eta@v1.12.3/file-utils.ts:80:17)
  at getPath (https://deno.land/x/eta@v1.12.3/file-utils.ts:115:27)
  at renderFile (https://deno.land/x/eta@v1.12.3/file-handlers.ts:155:29)

Package & Environment Details

Environment: Deno Deploy (deployctl)
Version: 1.1.0

I think the fix is to swap out the synchronous fs imports in file-utils.ts and file-methods.ts for their asynchronous counterparts (and probs worth updating to a more recent fs version while in there). This may require quite a large refactor to support Promises however.

Here is a temporary fix that allows you to use templates on Deno Deploy :)
Eta.config.includeFile = function(path, data) {
  return Eta.templates.get(path)(data, Eta.config);
};

I would then write something like this:
Eta.templates.define("main", Eta.compile(
  await Deno.readTextFile(`${Deno.cwd()}/views/main.eta`)));

const template = await Eta.render(await Deno.readTextFile(`${Deno.cwd()}/views/home.eta`), {
    title: "My webpage"
  });

And this in a template:
// home.eta

<% layout("main") %>

Welcome to my home page

// main.eta

<!DOCTYPE html>

    <title><%= it.title %></title>

    <%~ it.body %>

@sebringrose thanks for reporting on this issue.

I think the fix is to swap out the synchronous fs imports in file-utils.ts and file-methods.ts for their asynchronous counterparts (and probs worth updating to a more recent fs version while in there). This may require quite a large refactor to support Promises however.

This is correct. Luckily, we're working on the next version of Eta, which will include refactored and fully asynchronous file handling :)
@christian-dale thanks for contributing a temporary fix!

I am encountering the same error, and also using the above Deno.readTextFile() doesn’t work in the context of Supabase Edge Functions, so I’m stuck currently.
Eta seem to be the best option for server-side templates, which I try to use for compiling and sending emails. Happy to help with diagnosing, testing, triaging, etc.

@matthewmorek I haven't been able to think of a way to fix this in version 2, so it will probably have to wait until version 3.
But, I think you should be able to use @christian-dale's solution by modifying it slightly to use readFile.
const decoder = new TextDecoder("utf-8");
const template = await Deno.readFile(`${Deno.cwd()}/views/main.eta`);
Eta.templates.define("main", decoder.decode(template));

@nebrelbug It works well locally, however the particular deployment env in using (Supabase) doesn't allow read/write to FS, so the workaround is to us a ESM template literal import, then process it as you would any other string.

Great workaround!

@matthewmorek I haven't been able to think of a way to fix this in version 2, so it will probably have to wait until version 3.
But, I think you should be able to use @christian-dale's solution by modifying it slightly to use readFile.
const decoder = new TextDecoder("utf-8");
const template = await Deno.readFile(`${Deno.cwd()}/views/main.eta`);
Eta.templates.define("main", decoder.decode(template));

Hello, I'm facing the same issue and I'm a bit lost.
I have this code:
const html = await renderFile(`/base.eta`, {
    title: attrs.title,
    content: markup,
    links: { postLink: outputFilename },
  });

what is expected to do here?
This is my deps.ts
export { extract } from<EMAIL_ADDRESS>export { renderMarkdown } from<EMAIL_ADDRESS>export {
  renderFile,
  configure,
  templates,
} from<EMAIL_ADDRESS>

I added this 2 lines
const template = await Deno.readFile(`${templatesDir}/base.eta`);

templates.define("base", decoder.decode(template));

but I get this error:
Argument of type 'string' is not assignable to parameter of type 'TemplateFunction'.deno-ts(2345)

I know this is a newbie question, but this is what I am :)

@sebazelonka sorry, there was a typo in my previous comment. You'd have to write Eta.templates.define("main", Eta.compile(decoder.decode(template)));
I can't check this right now, but will you let me know if this works?
const template = await Deno.readFile(`${templatesDir}/base.eta`);

Eta.templates.define("base.eta", Eta.compile(decoder.decode(template)));

Eta.configure({cache: true});

let res = await Eta.renderFile(`base.eta`, {
    title: attrs.title,
    content: markup,
    links: { postLink: outputFilename },
  });

For all those using Deno Deploy, they just added support for Node.js built-ins like fs. I believe file handling should now work! Can anyone confirm that for me?

I've just tested and can confirm that eta.renderFile is functional with the latest versions of Deno Deploy. :tada: :tada:


Add back pitStyle cache and remove step prop

A couple of things were modified in #161. One, we lost the pit style cache (#123, #130) and two there was a strange update to add step instead of snap (but step wasn't actually used anywhere). This change adds back the cache and also consolidates on the snap API (including a small fix to how position was being set).
I also opened https://github.com/airbnb/rheostat/issues/176 to track the issue that step was intended to address.
to: @ljharb @philipfweiss @airbnb/webinfra

I think step was being used in the internal fork - but that has since been updated to use snap correctly - Thanks Maja!