Vet clinic database: query and update animals table

Hey there, 👋
In this branch, I used transactions to update and delete records. I also used aggregate functions and GROUP BY to answer analytical questions.
Here are the project requirements:

Add a column species of type string to your animals table. Modify your schema.sql file.
Insert the following data:

Animal: His name is Charmander. He was born on Feb 8th, 2020, and currently weighs -11kg. He is not neutered and he has never tried to escape.
Animal: Her name is Plantmon. She was born on Nov 15th, 2021, and currently weighs -5.7kg. She is neutered and she has tried to escape 2 times.
Animal: His name is Squirtle. He was born on Apr 2nd, 1993, and currently weighs -12.13kg. He was not neutered and he has tried to escape 3 times.
Animal: His name is Angemon. He was born on Jun 12th, 2005, and currently weighs -45kg. He is neutered and he has tried to escape once.
Animal: His name is Boarmon. He was born on Jun 7th, 2005, and currently weighs 20.4kg. He is neutered and he has tried to escape 7 times.
Animal: Her name is Blossom. She was born on Oct 13th, 1998, and currently weighs 17kg. She is neutered and she has tried to escape 3 times.
Animal: His name is Ditto. He was born on May 14th, 2022, and currently weighs 22kg. He is neutered and he has tried to escape 4 times.

Remember to add these insertions to your data.sql file.

- Inside a transaction update the animals table by setting the species column to unspecified. Verify that change was made. Then roll back the change and verify that the species columns went back to the state before the transaction.
- Inside a transaction:
     - Update the animals table by setting the species column to digimon for all animals that have a name ending in mon.
     - Update the animals table by setting the species column to pokemon for all animals that don't have species already set.
     - Verify that changes were made.
     - Commit the transaction.
     - Verify that changes persist after commit.
- Take a screenshot of the results of your actions.
- Inside a transaction delete all records in the animals table, then roll back the transaction.
- After the rollback verify if all records in the animals table still exists.
- Take a screenshot of the results of your actions.
- Inside a transaction:
     - Delete all animals born after Jan 1st, 2022.
     - Create a savepoint for the transaction.
     - Update all animals' weight to be their weight multiplied by -1.
     - Rollback to the savepoint.
     - Update all animals' weights that are negative to be their weight multiplied by -1.
     - Commit transaction
- Take a screenshot of the results of your actions.
- Remember to add all these transactions to your queries.sql file.

- Write queries to answer the following questions:
     - How many animals are there?
     - How many animals have never tried to escape?
     - What is the average weight of animals?
     - Who escapes the most, neutered or not neutered animals?
     - What is the minimum and maximum weight of each type of animal?
     - What is the average number of escape attempts per animal type of those born between 1990 and 2000?
- Take a screenshot of the results of your queries.
- Remember to add these queries to your queries.sql file.
- Remember to add screenshots with the results of your queries and with the results of your play with transactions to your Pull Request description.

Thanks for your review!

Thanks @Olamarx !


Delete py-mkopensource, clean up

I wanted to hack on emissary.git's py-mkopensource because it doesn't understand Trove Classifiers, which is the current way that Python packages show the license and more and more packages are migrating to that.
But then I was confused about what was going on in pkg/dependencies.  So then I came here and cleaned things up. The big thing is that we were getting the licenses as a licensedetect.License, then converting that to a string, then looking up the licensedetect.License based on that string, then going back to a string... that's confusing and silly.  Just pass things around as a typed object, and only convert to strings and de-normalized forms at when serializing.

Related: https://github.com/emissary-ingress/emissary/pull/4869

@aosoriodw

@LukeShu there are a few workflows that failed. Could you take a look?


Enhancement: Implement a filterFunction in variantLinkerProcessor.js to allow for flexible filtering of the results before formatting and outputting them.

Current Behavior
Currently, the filterFunction in variantLinkerProcessor.js is set to null, and there is no mechanism to filter the results based on specific criteria before formatting and outputting them.
Proposed Solution

Define a Filter Function: Implement a default filterFunction that can be customized to filter results based on various criteria.
Command-Line Argument: Add a command-line argument to allow users to specify their own filtering criteria.
Apply the Filter: Modify the filterAndFormatResults function to apply the filterFunction to the results before formatting.

Acceptance Criteria

[ ] Implement a default filterFunction in variantLinkerProcessor.js.
[ ] Add a command-line argument to allow users to specify custom filtering criteria.
[ ] Ensure the filterAndFormatResults function applies the filterFunction correctly.
[ ] Update the documentation to describe how to use the filtering functionality.
[ ] Add tests to verify the functionality of the filterFunction.

Relates to #26


bump openssl version

Codecov Report

Merging #571 (65ba2af) into main (ce2a23a) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 65ba2af differs from pull request most recent head bb0d236. Consider uploading reports for the commit bb0d236 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main     #571   +/-   ##
=======================================
  Coverage   28.30%   28.30%
=======================================
  Files          53       53
  Lines       21265    21265
=======================================
  Hits         6018     6018
  Misses      15247    15247

Flag
Coverage Δ

test
28.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report in Codecov by Sentry.

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


Update log4j-over-slf4j, slf4j-api to 1.7.33

Updates

org.slf4j:log4j-over-slf4j
org.slf4j:slf4j-api

from 1.7.28 to 1.7.33.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.slf4j" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #91.


Refactor emacs lisp for MELPA release

Hi Phil
I've made changes to racer.el so it should be ready for release on MELPA (see #251). I've also refactored a few little bits.
Do let me know what you think, I'd love to see this package available for download from MELPA.

Hi @Wilfred,
This looks great. The only thing is to make sure the setup docs in the README work for emacs beginners (otherwise it generates issue/support overhead).
When I tried from scratch I noticed the following lines don't work on startup in a .emacs because rust-mode is autoloaded.
(define-key rust-mode-map (kbd "TAB") #'racer-complete-or-indent)
(define-key rust-mode-map (kbd "M-.") #'racer-find-definition)

I'm no emacs guru, what do you think is the best solution? Should we recommend people add them to a rust-mode-hook?
Thanks very much!

Aha, well spotted! This should say:
(require 'rust-mode)
(define-key rust-mode-map (kbd "TAB") #'racer-complete-or-indent)
(define-key rust-mode-map (kbd "M-.") #'racer-find-definition)

I mentioned the require in the header in the racer.el file, but missed it in the README.md. I'll push a fix.

@phildawes this should now be fixed :)

Awesome, thanks @Wilfred


feat: #1282 hide user domain radio button when bceid user is granting access

Hide user domain radio button option for business bceid user
default user domain form data is based on their bceid or Idir

ref: #1282

Thanks Jota. There is a SonarCloud issue, would you try to see if you can resolve it? Thanks.

Thanks Jota. There is a SonarCloud issue, would you try to see if you can resolve it? Thanks.

Sure can!

Thanks Jota. There is a SonarCloud issue, would you try to see if you can resolve it? Thanks.

I checked that issue and think it's from the existing code, not the changes we made in this pr. Maybe Jota you can give a try, but if it's taking more time, I'm also fine with it.


Adding proselint

Having module like proselint (https://github.com/amperser/proselint) to improve the prose of the text could be a nice addition

Seems like proselint may already support TeX files.
The null-ls Vim plugin indicates that it accepts TeX files: https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/lua/null-ls/builtins/diagnostics/proselint.lua.


Please add the ability to hide the video.

Just hide it visibly with a toggle somewhere.

gotta avoid violating youtube ToS, but i think streaming the video to a hidden div is ok so long as it isnt default.

I'd be ok writing a TampermonkeyScript to toggle this if you dont want to violate the TOS. I wish we could just hide the video stream but keep the player visible so the "ads" show and YT doesn't get anal.

Hiding the video portion of an embedded stream violates YT ToS. Even though I have a handy div around just the video that doesnt affect the page layout if you were to hide it. I mean, its as simple as $('#screen').hide(), but sadly I cannot legally enable it by default, or encourage you to use any sort of js/jquery command to hide the stream.


Dockerhub API support

Dockerhub's API seems to have improved since we last saw it. It has a weird model where instead of having a user token, you request a token, defining the scope of access you want (ex access to a repo), and then you can make a call.
The API docs can be found here.
There doesn't seem to be a way to list all repositories for a user. The closest thing to this is the /v2/_catalog call, but this just seems to return a list of public repos.
If you have a repository name, you can find all the tags associated with the repository, though you can't find a tags associated git branches/tags. There also does not seem to be a way to find out the git source repo of a dockerhub entry, however it should be noted that dockerhub only allows one git repo per entry (unlike quay).
So at this point it seems like the only added features we can have is that after manually registering a docker hub tool we can grab a list of tags, however they will only have the names and no other info.

https://github.com/docker/distribution/issues/1589
This issue provides an example of playing around with the API.

Looks like they have a new API out for Docker Cloud  (not sure why they renamed from Docker Hub)
https://docs.docker.com/apidocs/docker-cloud/#authentication


Add sensible dotfiles

[ ] .editorconfig
[ ] .eslintrc.js
[ ] .gitignore

These can probably be pinched from n-gage/dotfiles and tweaked / slimmed down (especially in the case of eslintrc.js).

Dare I suggest prettier?

I have no objections

I added .nvmrc but I'm not married to it, if anyone has objections

Just realised we'd want tslint, not eslint :wink:

The Probot repo itself is nicely setup: https://github.com/probot/probot
Things I noticed:

.npmrc
tslint.json
tsconfig.json


Graphical output of geospatial data

Issue Type: Feature Request
Is it planned to implement the graphical output of geospatial data as an additional result tab, like SSMS has it built in?

Closing as a duplicate of https://github.com/microsoft/azuredatastudio/issues/267.  Thanks for reporting.


GH move from master to main branch

The since some time the main branch is the new default branch while the master branch still exists and holds, now outdated, data.
This can cause issues for those who bookmarked content within the master branch or regularly try retrieve the newest data from master.
Maybe it should be considered clearing the master branch with a clear notification that main in the new default branch.
Permalinks for master would continue to work as they target specific commits, so there should not be any harm.

Such issues could be prevented: https://github.com/F5Networks/f5-appsvcs-extension/issues/861


HMR doesn't respect devServer publicPath

Version
3.0.0-beta.15
Reproduction link
https://gist.github.com/kalekseev/0f6b00540dbdb16b8f8c685a88ab7f97
Steps to reproduce
Serve  index html on localhost:8000 while dev server is started on localhost:8080
What is expected?
HMR uses ws://localhost:8080/ address
What is actually happening?
HMR uses ws://localhost:8000/ address

Was working that way in beta.11, this addition in serve.js   '?/sockjs-node' somehow force client to use page address

You are not supposed to change output.publicPath directly. Use the baseUrl option.

For anyone landing here, baseUrl has been deprecated and publicPath should do the trick. Modify devServer.public if the baseUrl that the app is being used on is different from where the app is being served.


Include a build of the architecture repo

I think once this is merged and we're sure it can build and deploy to konflux-ci.dev/architecture/, then the next thing to do is to set up a github action workflow in the architecture repo that triggers the workflow in this repo whenever a commit lands there.

In custom.css we should change the color of the text. Below the navbar block, we can put another block for the navbar text color. Something like:
.navbar {
    background: #333333;
}

.navbar-default .navbar-nav>li>a {
    color: #FFFFFF;
}

In custom.css we should change the color of the text. Below the navbar block, we can put another block for the navbar text color. Something like:
.navbar {
    background: #333333;
}

.navbar-default .navbar-nav > li > a {
    color: #FFFFFF;
}

@ralphbean I added the menu item with one item and set its style in the CSS, so your PR will not have to get into that. You can rebase on top of the recent changes to have it set up for you.

Dropping this since now the architecture repo is rendering to https://konflux-ci.dev/architecture/.


Use 'vim.system' to obtain git branch name (for Neovim 0.10 and later)

Neovim 0.10 provides a new vim.system function.
This should be used instead of io.popen here for modern versions of Neovim.

Turns out vim.system is about 1ms slower than io.popen.
Not worth the trouble unless io.popen is deprecated down the road (which for now it isn't).


cmd/go: go mod tidy can break things

go version devel +d410642f49 Mon Jul 1 21:30:23 2019 +0000 linux/amd64

go env Output
$ go env
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/rog/.cache/go-build"
GOENV="/home/rog/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY="github.com/heetch"
GONOSUMDB="github.com/heetch"
GOOS="linux"
GOPATH="/home/rog/src/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/rog/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/rog/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/rog/src/go/src/github.com/heetch/universe/src/services/driver-state/state/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build613282230=/tmp/go-build -gno-record-gcc-switches"

I ran the following commands. After go mod init, the build succeeds, but after running go mod tidy, the build fails and the consul dependency requirement is no longer respected.
% go mod init
go: creating new go.mod: module
go: copying requirements from glide.lock
% go install ./...
% go list -m all | grep consul
github.com/hashicorp/consul v1.5.1
github.com/hashicorp/consul/api v1.1.0
github.com/hashicorp/consul/sdk v0.1.1
% go mod tidy
% go list -m all | grep consul
github.com/hashicorp/consul v1.0.7
github.com/hashicorp/consul/api v1.1.0
github.com/hashicorp/consul/sdk v0.1.1
% go install ./...
build private-module/cmd/private-cmd: cannot load github.com/hashicorp/consul/api: ambiguous import: found github.com/hashicorp/consul/api in multiple modules:
	github.com/hashicorp/consul v1.0.7<EMAIL_ADDRESS>	github.com/hashicorp/consul/api v1.1.0<EMAIL_ADDRESS>

I have a somewhat more minimal reproducer of this which I can send privately.

I'm curious: does go mod download produce the same sort of transition? (My guess is that it does, because I think I know where this bug comes from...)

Oh, wait. go mod tidy downgrades consul, presumably because it doesn't provide any packages in the transitive import graph. That makes this a duplicate of #27899, albeit with an interesting mechanism leading to the ambiguous import.

In the meantime, this could have been avoided within the github.com/hashicorp/consul/api module, by adding a require on some newer version of github.com/hashicorp/consul as described in https://golang.org/issue/27858#issuecomment-425089484.

Duplicate of #27899


Boba gateway - Earn page oddities

1/ When user is on L2, then the Earn page should initially show the L2 pools. Currently, it always starts with the L1 pool view.
2/ When the user stakes funds, and the tx succeeds, then they get taken back to the account page. The behaviors in general should be for the user to stay on the screen they are on, rather than bouncing them back to the account page.

3/ When you harvest funds or stake funds, it would be nice if you saw some kind of history of the actions. For example, if you harvest 0.01 oEth on boba. It would be nice if you can look back at what you have earned or staked. Similar to the transaction history page.

3/ is a great idea, and will be addressed after Sept. 20. I'll change the issue title so this does not get lost.


CI: "group 0 concurrent modification"

New versions of Scylla use Raft for schema / topology operations.
Raft serializes those operations internally. Concurrent ddl operations are done similarly to optimistic locking:
they basically work like "if raft state is X, change schema that way (to state Y)".
If 2 such operations execute at the same time, then one of them will fail (because the state is no longer X).
Scylla server will restart such operations in that case, but the amount of restarts is limited to 10.
If there are many concurrent DDL queries, then its possible to hit this limit, and it happens very often in our tests,
which makes CI unstable.
There are several solutions:

Limit tests concurrency to 1. This makes the tests multiple times slower, so we should avoid it.
Have a global mutex for DDL changes
Send DDL changes always to the same node. This works because Scylla handles this case internally.

Third solution should be best performance-wise because it doesn't introduce any additional locking and just lets Scylla handle this case.
The way to do this is to introduce a helper function in test utils that sends a DDL query.
This function would either:

take a mutex (second solution)
set a load balancing policy to send the query to correct node (third solution).

The third option could also use https://github.com/scylladb/scylla-rust-driver/issues/1031 once it's implemented.

The third option could also use #1031 once it's implemented.

I'm currently working on this issue. The way I see the LBP is this:
// This LBP produces a predictable query plan - it order the nodes
// by position in the ring.
// This is to make sure that all DDL queries land on the same node,
// to prevent errors from concurrent DDL queries executed on different nodes.
#[derive(Debug)]
struct SchemaQueriesLBP {}

impl LoadBalancingPolicy for SchemaQueriesLBP {
    fn pick<'a>(
        &'a self,
        _query: &'a scylla::load_balancing::RoutingInfo,
        cluster: &'a scylla::transport::ClusterData,
    ) -> Option<(
        scylla::transport::NodeRef<'a>,
        Option<scylla::routing::Shard>,
    )> {
        // I'm not sure if Scylla can handle concurrent DDL queries to different shard,
        // in other words if its local lock is per-node or per shard.
        // Just to be safe, let's use explicit shard.
        cluster.get_nodes_info().first().map(|node| (node, Some(0)))
    }

    fn fallback<'a>(
        &'a self,
        _query: &'a scylla::load_balancing::RoutingInfo,
        cluster: &'a scylla::transport::ClusterData,
    ) -> scylla::load_balancing::FallbackPlan<'a> {
        Box::new(cluster.get_nodes_info().iter().map(|node| (node, Some(0))))
    }

    fn name(&self) -> String {
        todo!()
    }
}

WDYT @muzarski ?

The third option could also use #1031 once it's implemented.

I'm currently working on this issue. The way I see the LBP is this:
// This LBP produces a predictable query plan - it order the nodes
// by position in the ring.
// This is to make sure that all DDL queries land on the same node,
// to prevent errors from concurrent DDL queries executed on different nodes.
#[derive(Debug)]
struct SchemaQueriesLBP {}
impl LoadBalancingPolicy for SchemaQueriesLBP {
fn pick<'a>(
&'a self,
_query: &'a scylla::load_balancing::RoutingInfo,
cluster: &'a scylla::transport::ClusterData,
) -> Option<(
scylla::transport::NodeRef<'a>,
Optionscylla::routing::Shard,
)> {
// I'm not sure if Scylla can handle concurrent DDL queries to different shard,
// in other words if its local lock is per-node or per shard.
// Just to be safe, let's use explicit shard.
cluster.get_nodes_info().first().map(|node| (node, Some(0)))
}
fn fallback<'a>(
    &'a self,
    _query: &'a scylla::load_balancing::RoutingInfo,
    cluster: &'a scylla::transport::ClusterData,
) -> scylla::load_balancing::FallbackPlan<'a> {
    Box::new(cluster.get_nodes_info().iter().map(|node| (node, Some(0))))
}

fn name(&self) -> String {
    todo!()
}

}
WDYT @muzarski ?

So from my understanding, if the query fails, the retry might be sent to the next node in the ring (based on the retry decision), correct? Is it ok this way? Maybe we need additional custom retry policy that always retries on the same node. I'm not really sure, though - it might be the case that the first node is overloaded, then it would make sense to try on another one.

So from my understanding, if the query fails, the retry might be sent to the next node in the ring (based on the retry decision), correct? Is it ok this way? Maybe we need additional custom retry policy that always retries on the same node. I'm not really sure, though - it might be the case that the first node is overloaded, then it would make sense to try on another one.

If we don't want to use next node, then it's enough to change fallback to be the same as pick. If it returns only one node then no retry policy will be able to use another one.
I don't have strong feelings on this matter. Currently all the nodes are up in tests, so it shouldn't matter.
I imagine in the future we could have tests that operate on cluster with some nodes down, but either:

the state of the cluster is stable (meaning the same nodes are down) all the time, then it can be shared between tests
test changes the state, in which case it must have exclusive access to the cluster

In both cases the version I posted above works correctly.

Then I'm fine with the LBP you provided. It should significantly reduce the probability of this error's occurrence. If the error ever occures in the future, we can adjust the LBP to return the same in the fallback as you mentioned (but for now, let's stick to the current version).


Trouble running extract_synthesis_inputs.py

I used the code on the epfl website for NeuroTS to extract inputs. I copied the code as is and got this error:
UnboundLocalError                         Traceback (most recent call last)
Cell In[2], line 52
     49 result_dir = Path("results_extract_synthesis_inputs")
     50 result_dir.mkdir(parents=True, exist_ok=True)
---> 52 run(result_dir, Path("data"))

Cell In[2], line 11, in run(output_dir, data_dir)
      9 """Run the example for extracting inputs for synthesis."""
     10 # Generate distribution from directory of neurons
---> 11 distr = extract_input.distributions(
     12     data_dir / "neurons", feature="path_distances", diameter_model="default"
     13 )
     15 # Save distributions in a json file
     16 with open(output_dir / "test_distr.json", "w", encoding="utf-8") as f:

File ~\anaconda3\lib\site-packages\neurots\extract_input\input_distributions.py:81, in distributions(filepath, neurite_types, threshold_sec, diameter_input_morph, feature, diameter_model)
     78         neurite_type_warning(neurite_type)
     79         neurite_types[i] = neurite_type + "_dendrite"
---> 81 pop_tmd = tmd.io.load_population(filepath, use_morphio=True)
     82 pop_nm = load_morphologies(filepath)
     84 input_distributions = {"soma": {}, "basal_dendrite": {}, "apical_dendrite": {}, "axon": {}}

File ~\anaconda3\lib\site-packages\tmd\io\io.py:168, in load_population(neurons, user_tree_types, name, use_morphio)
    164     name = name if name is not None else os.path.basename(neurons)
    166 pop = Population.Population(name=name)
--> 168 for filename in files:
    169     try:
    170         if not use_morphio:

UnboundLocalError: local variable 'files' referenced before assignment

I changed the directory in every possible way I know how to it still hasn't been working. Any help is greatly appreciated.

Hi @riddick-the-furyan
This error actually comes from TMD, not directly from NeuroTS. Anyway, I guess you use the last version TMD==2.2.0?
If it is the case, there is currently no check on the given inputs and this can lead to this UnboundLocalError (this was fixed in https://github.com/BlueBrain/TMD/commit/9bab7bd95be8197a4839ad03c2e6ec0ad16d2fbe but it's not released yet).
Anyway, this error can be caused by several things but in your case it seams the directory data_dir / "neurons" does not exist. Is this possible?

Thanks I managed to fix it.

Ok, great!
In the mean time I released a new version of TMD, which should provide more information about such error.


Recursive Populate?

I'm trying to build a hierarchical taxonomy schema using deepPopulate but I'm not sure if what I'm trying to do is possible (I have been teaching myself javascript so bear with me). I'd like to be able to recursively populate all children objects to an unknown depth. I'm also using Mongoose-Relationship to push child IDs into the parent's [children] array.
I've got a schema like this:
var mongoose = require('mongoose'),
    Schema = mongoose.Schema,
    relationship = require("mongoose-relationship"),
    deepPopulate = require('mongoose-deep-populate');

var TaxonomySchema = new Schema({
  parent: {type: Schema.Types.ObjectId, ref: 'Taxonomy', childPath: "children"},
  children: [{ type: Schema.Types.ObjectId, ref: 'Taxonomy'}],
  name: String,
  description: String
});

TaxonomySchema.plugin(deepPopulate);
TaxonomySchema.plugin(relationship, {relationshipPathName: 'parent'});

module.exports = mongoose.model('Taxonomy', TaxonomySchema);

I've been using deepPopulate in my api controller like so:
var Taxonomy = require('./taxonomy.model');

var outputArray = [];
var outputOptions = {};

function dpop (i, callback) {
  // run subpop i.num times, building an array of name, name.name,
    // name.name.name etc. and push them into outputArray.
    //Also builds outputOptions to pass to deepPopulate but doesn't work
  var num = i.num;
  var name = i.name;
  function subpop (a, cb) {
    if (a.num < num) {
      var subName = a.name + '.' + a.name;
      var inputOptions = {subName: {select: "name children"}};
      var newNum = a.num +1;
      var newName = a.name + '.' + name;
      outputArray.push(newName);
      outputOptions[subName] = inputOptions;
      subpop({num: newNum, name: newName}, function () {
        console.log(outputArray, outputOptions);
        callback();
      });
    }
  }
  subpop({num: 0, name: name}, function() {
    console.log({values: outputArray, opt: outputOptions});
  });
}

dpop({num: 10, name: 'children'});

// Get list of taxonomys
exports.index = function(req, res) {
  Taxonomy.find({parent: null}).deepPopulate(outputArray, outputOptions).sort('parent').exec(function (err, taxonomys) {
    if(err) { return handleError(res, err); }
    return res.json(200, taxonomys);
  });
};

I am using the function dpop to generate an array like so: ["children", "children.children", "children.children.children"] and passing it as the first argument to deepPopulate. I'm certain this is a terribly inefficient solution to this problem but it seems to work but is not recursive.
Is recursively populating children possible?
Thanks!

The plugin doesn't do recursive population right now. It should be possible to implement by tackling these two problems:

Knowing when to stop. Probably when references are null, empty or fully populated.
Dealing with circular references. Probably by maintaining in memory already populated documents and fill them into the references before running the next population iteration.

Most changes can probably be enclosed inside the populate function. If you can take a stab at it, I'll gladly accept a pull request.
BTW, regarding your current usage, you can just pass 'children.children.children' instead of ['children', 'children.children', 'children.children.children'].

Great to know that I can just use 'children.children.children'. That should make it much easier for the time being.
I am currently looking into using https://github.com/angular-ui-tree/angular-ui-tree for tree manipulation with socket.io and it would be great to be able to utilize deepPopulate. I'm going to see if I can get the basics of that figured out before trying anything more complex.
I'll take a look at the code and see if I can figure something out.

I'm closing this for now as I probably don't build it myself, seems too much work for a rare use case that can be worked around at the application level. However, if anyone's submitting a PR, I'll gladly consider merging.


Check/don't check for new messages default

Hi,
Thanks for this new feature. Could you maybe trigger a release with the default check = ON? It would help a lot because I guess a lot of my users will not know this was turned OFF as default and will not understand why no new messages are comming in. If it's not too much trouble I'd be saved :) Thx.

+1.
This option should definitively be on by default. Also, a "check all on/off" would be nice.
Thanks

Ok, in the 1.9.1 version this functionality will be hidden for 50 < folders.
configuration:
[labs]
folders_spec_limit = 50

Done (1.9.1 version)


Add new mem_dict currently consisting of just PSDDR

Only the last commit is the PR - the rest is the dependency on #895

added last commit on image_v2.5 branch - now b20b5ca298b2bf8a8789dcddb19be3b04b09d813


[Vulnerability bug] TESTAR is using log4j 2.13.2 which is vulnerable to remote code execution

The following files are found within TESTAR (c:\testar\lib), making it vulnerable to RCE

log4j-core-2.13.2.jar
log4j-api-2.13.2.jar

Pending to fix with new pull request https://github.com/TESTARtool/TESTAR_dev/pull/285/commits/68ef14dbaa84fa009f75d85cf82eafb9bfc2b831

master branch was updated to log4j 2.15.0 version


Leide mgdc datasets batch 1

EOL Blocker Validation Failed

Fixed this issue with GitBash with CLI instructions above in EOL blocker

@Lauragra This is the first of three branches for the new dataset section in Data Connect. The PM Karan Nikakhe doesn't have GitHub access yet. Richa asked me to ask you if you're able to review this PR? Thanks

@lorieide , this PR doesn't look clean; it seems to have unrelated changes in it. Do you want to try to open the PR from a new clean branch?


Is it possible to manually supply the DynamoDB table ARN in AmazonDynamoDBConfig?

Expected Behavior
There should be a property within AmazonDynamoDBConfig class to specify the DynamoDB table ARN.
Current Behavior
When copying the code (no hardcoded value and table name is identical) from one AWS account to another, access to DynamoDB failed. I suspect the endpoint has changed (account number is changed).
~Possible~ Current Solution
Need to provide developers with Access Key to deploy directly themselves from IDE.
Steps to Reproduce (for bugs)

Use IDE to deploy a function that access a dynamodb table.
Confirm it works in account A.
Manually create the function in account B and import the deployment package downloaded from account A.
Create a new dynamodb table with same table name in account B.
Run the function, it failed when trying to read/write to the table.

Context
Our developers use Visual Studio Lambda plugin to deploy dotnetcore app to a AWS account. When moving this app to a different account (this one), we did not use VS plugin but a CloudFormation template to deploy Lambda config and other AWS resources (S3, DynamoDB table, etc). Then the Lambda code is exported and uploaded to new lambda.
However we ran into an issue when calling the Lambda from this account (QA): the lambda tried to write to DynamoDB table in the original account (Dev). We looked everywhere but couldn't find where the IDE plugin specify the value for DynamoDB table. AWS SDK for .NET only allow us to supply the region (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/CodeSamples.DotNet.html#CodeSamples.DotNet.RegionAndEndpoint).
My guess is that when we deploy the app from IDE (where AWS access key is installed), the plugin somehow creates the DynamoDB endpoint based on the key with account name and hashes the endpoint. Is there anyway we can specify the new DynamoDB endpoint?
I also submitted a support ticket to AWS.

Hi! Why do you need to specify the endpoint?  The SDK should automatically figure out the endpoint for you based on the region property of the config file.

@sstevenkang Hey, so like I mentioned in the context part, I "copied" the lambda from one account to another (deploy without using IDE), and the DynamoDB connection stopped working. It's likely due to the lambda trying to reach the Dynamodb table in the original account.

Right, I think we need a little more context here.  Could you share code stripped of sensitive information on how you are accessing the table?

Here it is:
private void InsertRecord(TableName record)
       {
           var client = new AmazonDynamoDBClient();
           var context = new DynamoDBContext(client);

           var task = context.SaveAsync(record);

           task.Wait();

           if(task.IsCompletedSuccessfully)
           {
               Lambda.Logger.LogLine($"Inserted record for file {record.Filename} into DynamoDB...");
               return;
           }

           Lambda.Logger.LogLine($"Failed to insert record for file {record.Filename} into DynamoDB due to error {task.Exception.Message}!");

       }

Where TableName is the reference to dynamodb table

What does TableName type look like?  I still don't understand what you mean by We looked everywhere but couldn't find where the IDE plugin specify the value for DynamoDB table..
Have you verified that the table exists in the account?
The next step would be to run Fiddler  and see what the request to DynamoDB service actually looks like underneath.

So from the original account (where we deploy using VS with AWS SDK plugin), we created a table name TableName and just reference it from this code. When we copied the stack to the second account, we also created a table named TableName, but the code failed. For AWS Dynamodb, table name is not unique (like S3) and the ARN of DynamoDB contains the account number.

This sounds like an access permissions issue.  If you are still having problems with this, consider using IAM federated identities or Cognito so you don't have to share your account credentials with other developers.

What about when you want to connect to DDB's in other accounts/regions?

What about when you want to connect to DDB's in other accounts/regions?

did you find a way of doing this via SDK?


eth_call does not accept missing to

Summary
When calling eth_call without to, which is a valid way of calling it (to simulate contract deployment), I get the following error:
{"jsonrpc":"2.0","error":{"code":-32602,"message":"missing field `to` at line 1 column 13365"},"id":1}

Fixed in #207


Parameterize welcome and redirect-welcome routes

The welcome and and redirect-welcome routes are hardcoded
https://github.com/FlowingCode/AppLayoutAddon/blob/5c6df8fa6521f26c2dc30a883b407fe2eeb2288e/src/main/resources/META-INF/resources/frontend/fc-applayout/fc-fusion-layout.ts#L151-L153

This mechanism was added because an iframe was used for keycloak integration. Maybe we should remove this feature for now.

We discussed this. One way of doing this would be to add an attribute to the web component (fusion-layout) that would allow to use something different than "welcome" path.


Fix two issues - build error with MSVC 2019 v16.6 and memory leak

fix two issues:

failed to build with MSVC 2019 v16.6
has memory leak when call mi::neuraylib::IMaterial_instance::create_compiled_material

Just upgraded to latest visual studio, and also seeing llvm-tblgen issues in Debug mode; switched to RelWithDebugInfo and error is resolved, though Details:CheckForDuplicates issue occurs in 10.0.17763.0.  Solved by adding CMAKE_SYSTEM_VERSION variable for cmake project to use 10.0.18362.1(haven't tried with higher version than that).  After that make sure to remove 10.0.17763.0 include file and library reference from example projects and then compiles fine.

Patched local source ManagedStatic.h file with the following and it solved the issue.  debug mode compiles without error, using CMAKE_SYSTEM_VERSION=10.0.18362
#if !defined(_MSC_VER) || (_MSC_VER >= 1925) || defined(clang)
#define LLVM_USE_CONSTEXPR_CTOR
#endif
/// ManagedStaticBase - Common base class for ManagedStatic instances.
class ManagedStaticBase {
protected:
#ifdef LLVM_USE_CONSTEXPR_CTOR
mutable std::atomic<void *> Ptr{};
mutable void (*DeleterFn)(void *) = nullptr;
mutable const ManagedStaticBase *Next = nullptr;
#else
// This should only be used as a static variable, which guarantees that this
// will be zero initialized.
mutable std::atomic<void *> Ptr;
mutable void (*DeleterFn)(void *);
mutable const ManagedStaticBase *Next;
#endif
void RegisterManagedStatic(void *(*creator)(), void (deleter)(void)) const;
public:
#ifdef LLVM_USE_CONSTEXPR_CTOR
constexpr ManagedStaticBase() = default;
#endif

@gamerx1221 I known that and patched the ManagedStatic.h in my commit.

You welcome.  Wasn't sure where you were with it!  Thanks!!

You can find it in https://github.com/NVIDIA/MDL-SDK/pull/2/commits/0ed54943f0212c522c5679d531f9cb428b17df7e.

And the description of the issue is in https://github.com/code4graphics/MDL-SDK/issues/1.

Thanks a lot for your fixes, Alex! We integrated them into our latest release MDL SDK 2020.1<PHONE_NUMBER>).
And sorry for the late reaction, my notifications were misconfigured.
Moritz

Thanks a lot for your fixes, Alex! We integrated them into our latest release MDL SDK 2020.1<PHONE_NUMBER>).
And sorry for the late reaction, my notifications were misconfigured.
Moritz

You are welcome.


Market / Reports / Petty Cash

Please can we have a petty cash report or add the petty cash transactions to the daily cash up report.
I need to see who I've paid cash, when and why.

Added Petty Cash Report in build 1.14.0


How to uniquely track each todo item ?

How do i uniquely track each todoList item ? maybe using an Id or something. I want to update my database on each user action but dont understand how to keep track of each item on the list. can u just
hint me on how to do that Please? .

Hi.
There is no easy way to do that today... But that would be a good enhancement that I would welcome as a contribution (case you're up to it).
I'm thinking the items would support an 'id' attribute on each item... and then each of the events emitted by this widget would be enhanced to supply the item changed to the callback.


I find a new Website for Semantic templates, snippets and examples

Hi,
I find a NEW Website for Semantic templates, snippets and examples:
http://www.semantickit.com
It looks like an Official website, is it related to you ?

This is not an official website.

I see, I checked the about page:
made by: Will Wallace and Travis Valentine
They said:
"SemanticKit would not be possible without Jack Lukic and the many contributors behind Semantic UI"
and I agree


Feature - Open Search API

This is a request from the federated search team
http://www.opensearch.org/Home
The search API should return all meta data related to a listing in the OZP-Center and follow open search standards

Interesting we used to have this feature in Marketplace but it never got used that is why it was removed.

This issue was moved to ozone-development/django-rest-prototype#1

this call may meet their request though i don't think it follows OpenSearch's format
../platform/api/listing/search
I will follow up with them and hopefully we can keep this closed

This request is still valid, implementing OpenSearch will allow other search tools to search application meta data within the center. This is a request of the federated search team.
As an additional benefit, An enterprise that has multiple deployments of OZP with different databases could utilize the OpenSearch standard to conect the federated database and allow users to run one search query but gets results from all the federated application metadata


Validation is triggered twice on form init

Are you submitting a bug report or a feature request?
Bug ?
What is the current / expected behavior?
In Synchronous Validation Example validate function is trigged twice, before form is mounted and after it's rendered.
Since nothing was changed in the form, why do we need to trigger it twice, is it by design?
What's your environment?
Redux form 6.5.0

This is a bug, but it's a pretty minor one. It is running the validation first when the form will mount, and then It is rerunning the validation after the fields have registered, regardless of whether or not the fields have field-level validators. I will fix it so that it will only rerun the validation if new field-level validators are introduced by the field registration.

@erikras wow, that was fast. Thank you 👍

Fix published in v6.6.0.


LDAP Userstore RetryAttempts Property is not Properly Applied

Description:
Even if property is set the server only tries once to reconnect following a timeout. Ideally it is expected to respect the RetryAttempts property set in userstore configurations.
[1]. https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/ldap/LDAPConnectionContext.java#L175
Suggested Labels:

Suggested Assignees:

Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

This property is used to retry authentication if a timeout has happened. That's the expectation of this property.
We don't have any property to configure to attempt retries for connection timeouts


chore: make sure the generated code is properly formatted

What this PR does / why we need it:
Currently, the indentation and imports order in the generated controllers is not following go fmt. Let's make fmt dependency of generate target to make the code properly formatted at all times.

PR Readiness Checklist:
Complete these before marking the PR as ready to review:

~[ ] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR~

Hm, 1 line change in the Makefile and the rest in the generated code, why the size/L label, pull-request-size?


[Bug] level too large 2048 problem during serialization data by fastjson2

Pre-check

[X] I am sure that all the content I provide is in English.

Search before asking

[X] I had searched in the issues and found no similar issues.

Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version

Dubbo 3.2.12,
spring cloud  2023.0.1,
spring boot 3.2.4,
spring-cloud-alibaba 2<IP_ADDRESS>,
JDK Azul zulu 17.0.4,
Windows 11

Steps to reproduce this issue

create instance like this SomeObject so = new SomeObject{{ setV1("some value"); }}
set so as parameter to dubbo service like  ds.insert(so);  ( i use @DubboReference to inject ds )
get error info like below

What you expected to happen
I need the method could run without error .
Anything else
Considering the complexity of Dubbo's workflow, I'm not sure if Dubbo's preprocessing might affect the data output to Fastjson2. Therefore, I'm submitting this issue to Dubbo first. If it's confirmed that Dubbo is not the problem, please provide me with relevant information so I can raise the question with the Fastjson2 team.
Are you willing to submit a pull request to fix on your own?

[ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

This is the default limitation of fastjson2, you can consult Fastjson community how to avoid this issue. And we would appreciate it if you could put the link or solution back here once it's solved, thanks.


mongoDB to Elasticsearch v6.4.0 : context deadline exceeded

Directions
Issues are reserved for actionable bug reports and feature requests.
Before opening an issue, search for similar bug reports or feature requests.
If no similar issue can be found, fill out either the "Bug Report" or the "Feature Request" section below.
Erase the other section and everything on and above this line.
Please note, the quickest way to fix a bug is to open a Pull Request.
Bug report
context deadline exceeded
Relevant pipeline.js:
var source = mongodb({
//"uri": "${MONGODB_URI}"
"uri": 'mongodb://localhost/total_web'
"timeout": "3600s",
// "tail": false,
// "ssl": false,
// "cacerts": ["/path/to/cert.pem"],
// "wc": 1,
// "fsync": false,
// "bulk": false,
// "collection_filters": "{}",
// "read_preference": "Primary"
})
var sink = elasticsearch({
//"uri": "${ELASTICSEARCH_URI}"
"uri": 'http://elastic123:123123@:9200~~~~~~~~/total_web'
"timeout": "1000s", // defaults to 30s
// "aws_access_key": "ABCDEF", // used for signing requests to AWS Elasticsearch service
// "aws_access_secret": "ABCDEF" // used for signing requests to AWS Elasticsearch service
// "parent_id": "elastic_parent" // defaults to "elastic_parent" parent identifier for Elasticsearch
})
t.Source("source", source, "/./").Save("sink", sink, "/./")
System info:

Transporter version
Transporter v0.5.2
OS
Ubuntu 16.04
DB version(s)
mongoDB v4.0.3

Reproducible Steps:

...
...

What did you expect to happened?
mongoDB to ElasticSearch data transfer
What actually happened?
"context deadline exceeded" error message appeared.
"timeout reached waiting for out channels to clear path = source"
Feature Request
Opening a feature request kicks off a discussion.
Proposal:

Hi,
@kanukanukanu I've the same error in my elastic cloud.
I've just updated to v6.6.2 and now this error is gone.

Getting the same error for 6.4... any solution to this?


BeanArchiveProcessor Warning

Quarkus is throwing:
[WARNING] [io.quarkus.arc.deployment.BeanArchiveProcessor] Detected bean archive with bean discovery mode of 'all', this is not portable in CDI Lite and is treated as 'annotated' in Quarkus! Path to beans.xml: org.omnifaces:omnifaces:/META-INF/beans.xml

Would adding a beans.xml file to this project override the org.omnifaces beans.xml file?
Something like...
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
       version="4.0"
       bean-discovery-mode="annotated">
</beans>

that specifically indicates `annotated' or would that file/change have to be added upstream?

See this: https://github.com/quarkusio/quarkus/issues/31378  And I already fixed in OmniFaces: https://github.com/quarkiverse/quarkus-omnifaces/issues/62 for upcoming Beta2


"Export Image" downloaded file has generic name

It would be nice for the downloaded image to have a sensible name like "#{table_name} - #{current_time}.png".

I was unsure about this change because we were offering to download a datastream (and by default it doesn't have a name), but it turns out there's a download property for the links we could maybe use:

Can be used with blob: URLs and data: URLs, to make it easy for users to download content that is generated programmatically using JavaScript (e.g. a picture created using an online drawing Web app).

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Attributes

I'm assigning this to you @javierarce since I'm out of time :smile:
The state I leave it in is: Tests passing so CR needed
Thanks!

Also, the button should take you to the image, but the link should download it.

:ok_hand:, we didn't changed that.
I reviewed @gfiorav's work and also added the name of the file in the dialog:

I'll deploy this tomorrow.


⚠ Carbubu has degraded performance

In e8cafa3, Carbubu (https://carbubu.fr) experienced degraded performance:

HTTP code: 200
Response time: 3386 ms

Resolved: Carbubu performance has improved in b0960cd after 6 minutes.


Can no longer press escape in terminal (or ctrl-f)

VSCode Version: Code - Insiders 1.16.0-insider (d30825f323a7f77e17d25b212fef6440e73fdc14, 2017-08-28T05:16:41.243Z)
OS Version: Linux x64 4.10.0-32-generic
Extensions:

Extension
Author (truncated)
Version

vscode-eslint
dba
1.2.11

Steps to Reproduce:

Open vscode and open the terminal
Open file or create new file with vi
Hit  i to enter insert mode, hit ESC to attempt to exit insert mode

What happens:

No effect, cursor stays in insert mode

Reproduces without extensions: Yes

Turns out this also happens without using tmux.

New regression (possibly related?): I can no longer invoke local file search by pressing Ctrl-F

@julianlam
Yes - I broke this with changes to the terminal simpleFind Widget... The bad merge has been reverted.
You can use the commands from the command pallet until the revert gets picked up by the next insiders build.

Duplicate of https://github.com/Microsoft/vscode/issues/33240


Add-release-notes

Info gathered from https://github.com/okteto/app/releases/tag/chart%2F1.2.0-rc.1

I wonder if we should mention items like:

UI pagination support for GitHub branches list
Fix loader icon regression
Fix user deletion when there is no owner among the namespace members

would be transparent to the user, wouldn't it be internal? On the other hand, maybe it would be a good idea to have the release notes done jointly between the developer and someone closer to the customer with a clearer view of what should be exposed to the customer...? cc @rberrelleza @pchico83 @omnomagonz


Clippy warns and msrv

Relax clippy validation because of Rust 1.57 and add msrv in clippy for future potential breaking rules with our current minimal stable Rust version 1.55.

Codecov Report

Merging #286 (1426fe0) into main (bb08e97) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main    #286   +/-   ##
=====================================
  Coverage   15.3%   15.3%
=====================================
  Files         27      27
  Lines       6548    6548
=====================================
  Hits        1003    1003
  Misses      5545    5545

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 bb08e97...1426fe0. Read the comment docs.


Movement Skills Module

New Module for CaC and Displacement|Engagement usage relative to Manafication uses.  Also moved overcapped mana from manafication to its own set of statistics at TC request.  The final math does give quite a bit of grace back to the user on %'s due to the fact that a fight can end before you can get another manafication.  This PR marks RDM as a supported class for 5.05.

Ah; looks like this was off master.


It should be possible to tell cargo when to rerun the build script

I have a static C library I am building with make.
I'd like to work on that library and my crate that depends on it simultaneously.
However, if I only change the C library, and not touch the Rust source code, the build script is never rerun, even if the C library's source code was modified.
There should be a way to run a custom script that checks whenever the build script should be re-run.
Perhaps there could be a pre-build script that would output whether the build script should be rerun or not.

Possibly related to https://github.com/rust-lang/cargo/issues/1162.
Maybe the pre-build script solution could be used for solving both issues.

Could you elaborate a little more on the directory structure and layout? With a build script Cargo will automatically re-run it and rebuild the library if any file in the directory tree changes, but if you have the C library hosted outside the directory of the Rust library then Cargo will not see the changes.

Yes, the C library is hosted outside of the project directory, as it is a separate project.
What I want to do is work on the C library, and test it with the Rust project without having to separately build the C library and copy it over whenever I want to test a change.

Does the build script build the library from source? Or is the build script just printing out information of how to link to the library?
Now that I've done some digging I'm also going to close this as a duplicate of https://github.com/rust-lang/cargo/issues/1162 which is a way for the build script to print out what its dependencies are.

It's building the library from source.

If it's building the library from source then you'll want to move the source into the directory for cargo package to succeed, otherwise it won't package up the source to be shipped to crates.io

This isn't a project that's intended to be published to crates.io.


Exact mesh bounding box

Referring to the Mesh method:
void | GetBoundingBox (Vector &min, Vector &max, int ref=2)
It seems possible to get a bounding box that does not enclose the mesh entirely if the boundaries are highly curved and if ref is too low. Is there a way to find the exact bounding box?
Also, is there a similar method for getting the bounding box of a single element?

If the mesh transformation is given in the Bernstein basis, then the mesh will be contained in the convex hull of the Bernstein control points. In other words, you could represent the nodal grid function in Bernstein basis, and then take the min/max of the components to get the bounding box.
This will not be an "exact" bounding box in the sense that it may be pessimistic, but it should always contain the entire mesh, even in highly curved cases.
If you degree-elevate the Bernstein basis, you may get a better approximation for the bounding box using this method.

Aside from making a 1 zone mesh, and repeating the above, is there a built in way to get the bounding box of a single element of the mesh?

We have some functionality to convert to a positive (Bernstein) basis and compute element bounding boxes in Axom's PointInCell query.
See:
https://github.com/LLNL/axom/blob/afea7ee7f245aca45405d1bcebc77b2f2838f799/src/axom/quest/detail/PointInCellMeshWrapper_mfem.hpp#L284-L342


Add missing actor member on PopupMenu

The PopupMenu class has an actor member of type BoxPointer that's used when setting up a menu for a panel indicator. It's defined here: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/popupMenu.js?#L879
An example of this member being accessed from outside the class can be found here: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/gdm/loginDialog.js#L337
When implementing a menu for an indicator, you would do something like this:
class MyIndicatorMenu extends PopupMenu.PopupMenu {
  constructor(sourceActor: St.Widget, arrowAlignment: number, arrowSide: St.Side) {
    super(sourceActor, arrowAlignment, arrowSide);

    Main.uiGroup.add_child(this.actor);
    this.actor.hide();

    this.addAction("Some action", () => { });
  }
}

Without this addition you have to resort to (this as any).actor in order to add the menu to uiGroup and hide it appropriately without type errors.
From the shell code, it doesn't seem like it's ever modified from the outside, so I've made it readonly.
EDIT: I've added the missing actor member to PopupDummyMenu and PopupMenuSection as well.

I see similar references being made to the actor member in PopupDummyMenu and PopupMenuSection. I suppose I could add those as well.

Thank you for your contribution ❤


500 Internal Server Error

019/09/11 02:59:59 [error] 34#34: *17 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000] [14] unable to open database file in /var/www/simple-nuget-server/inc/db.php:10
Stack trace:
#0 /var/www/simple-nuget-server/inc/db.php(10): PDO->__construct('sqlite:../db/pa...', NULL, NULL)
#1 /var/www/simple-nuget-server/inc/db.php(386): DB::init()
#2 /var/www/simple-nuget-server/inc/core.php(3): require('/var/www/simple...')
#3 /var/www/simple-nuget-server/public/index.php(2): require('/var/www/simple...')
#4 {main}
thrown in /var/www/simple-nuget-server/inc/db.php on line 10" while reading response header from upstream, client: <IP_ADDRESS>, server: nuget.ivilson.com:80, request: "PUT /api/v2/package/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "nuget.ivilson.com"
<IP_ADDRESS> - - [11/Sep/2019:02:59:59 +0000] "PUT /api/v2/package/ HTTP/1.1" 500 5 "-" "NuGet Command Line/5.2.0 (Microsoft Windows NT 6.2.9200.0)" "<IP_ADDRESS>"
2019/09/11 02:59:59 [error] 34#34: *17 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000] [14] unable to open database file in /var/www/simple-nuget-server/inc/db.php:10
Stack trace:
#0 /var/www/simple-nuget-server/inc/db.php(10): PDO->__construct('sqlite:../db/pa...', NULL, NULL)
#1 /var/www/simple-nuget-server/inc/db.php(386): DB::init()
#2 /var/www/simple-nuget-server/inc/core.php(3): require('/var/www/simple...')
#3 /var/www/simple-nuget-server/public/index.php(2): require('/var/www/simple...')
#4 {main}
thrown in /var/www/simple-nuget-server/inc/db.php on line 10" while reading response header from upstream, client: <IP_ADDRESS>, server: nuget.ivilson.com:80, request: "PUT /api/v2/package/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "nuget.ivilson.com"
<IP_ADDRESS> - - [11/Sep/2019:02:59:59 +0000] "PUT /api/v2/package/ HTTP/1.1" 500 5 "-" "NuGet Command Line/5.2.0 (Microsoft Windows NT 6.2.9200.0)" "<IP_ADDRESS>"
2019/09/11 03:00:00 [error] 34#34: *17 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000] [14] unable to open database file in /var/www/simple-nuget-server/inc/db.php:10
Stack trace:
#0 /var/www/simple-nuget-server/inc/db.php(10): PDO->__construct('sqlite:../db/pa...', NULL, NULL)
#1 /var/www/simple-nuget-server/inc/db.php(386): DB::init()
#2 /var/www/simple-nuget-server/inc/core.php(3): require('/var/www/simple...')
#3 /var/www/simple-nuget-server/public/index.php(2): require('/var/www/simple...')
#4 {main}
thrown in /var/www/simple-nuget-server/inc/db.php on line 10" while reading response header from upstream, client: <IP_ADDRESS>, server: nuget.ivilson.com:80, request: "PUT /api/v2/package/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "nuget.ivilson.com"
<IP_ADDRESS> - - [11/Sep/2019:03:00:00 +0000] "PUT /api/v2/package/ HTTP/1.1" 500 5 "-" "NuGet Command Line/5.2.0 (Microsoft Windows NT 6.2.9200.0)" "<IP_ADDRESS>"

I deploy this dock image on ubuntu by rancher2.

@iwaitu   Can show your docker-compose.yaml file or docker run command ?

Now can use BASE_URL env for forward  reverse proxy.

I know it is a bit late, but for future reference, you have to run
chmod 33:33 ./nuget-packages
chmod 33:33 ./nuget-db

so that the nginx user can access the folders


Request:  Disclaim monkey-patching in the README.

Last week I left Rails-land to try using simpler tools (sinatra + sequel + mail).
The sequel gem comes with an extension that you can enable to add .blank() methods to ruby's core objects, which I decided I want.
On a whim, I fired up IRB with my app loaded and decided to test for the presence of .blank() before proceeding (akin TDD, where you run the tests the first time expecting them to fail before making them pass), and to my surprise, it was already there.
So I grepped the gems directory, and discovered the mail gem is already provided .blank() implementations for nil, Object, and String.
I read the code, and the implementations look fine.  However, it would have been nice to be tipped off to this monkey-patching of core objects somewhere in the README so it didn't surprise me later.

Agreed. PR welcome 😊

Hmm, so perhaps there's a bigger demand for #937 (and #940) than I thought...


Tracking Issue for default-run

Original Issue: #2200
Implementation PR: #5710
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#default-run
Summary
The default-run feature provides a way to specify which binary will be run by default by cargo run when there are multiple binaries.
[package]
default-run = "foo"

Unresolved issues

The error message when default-run specifies a non-existing binary is not great (it just says "no bin target named …"). I think it should point the user to the default-run definition.

I'd like to propose stabilizing this feature.
@rfcbot merge
Stabilization Target: 1.37 — Release date August 15th 2019
This feature has been around for almost a year.  There haven't been any issues, and I can't think of any changes that would be needed.  It is fairly straightforward.  It is not a high-demand feature, but there are some projects using it, and presumably more would use it if it weren't nightly-only.
The error messages should be cleaned up a little when it is stabilized.  Documentation will also be need to be updated.

@rfcbot reviewed


fix: add missing abis in aavev3 pool handler (bis)

Description of change

add templates missing to call fetchAssetPriceAaveV3

Pull-Request Checklist

[ ] Code is up-to-date with the main branch
[ ] This pull request links relevant issues as Fixes #0000
[ ] There are new or updated unit tests validating the change
[ ] Documentation has been updated to reflect this change
[ ] The new commits follow conventions outlined in the conventional commit spec

@oumar-fall I bypass your review bc it takes a long to index the subgraph


BreadthFirstTraversal[C++]

This issue is about Breadth First Traversal (https://www.cs.bu.edu/teaching/c/tree/breadth-first/)

[x] Issue Title is in form Algo/DS Name [Language].
[x] I searched or browsed the repo’s other issues to ensure this is not a duplicate.
[x] This Algo/DS is worth adding to this repository.
[x] Assign this issue to me (I want to work on this).

[x] I ensure that I am not already assigned to 2 or more issues.

[x] I will send my PR only after I'm assigned to this issue by any maintainer.
[x] I understand that I will be unassigned from this issue if I fail to send a PR for this within a week.

@Monik09 follow the format add details to [Algo/DS Name](link to resource for the Algo/DS).

@Monik09 follow the format add details to [Algo/DS Name](link to resource for the Algo/DS).

is this fine now?

Can i now work on it?

go for it!

@ishanksoni i saw a duplicate tag but when I search for breadth first traversal in C++ in iiitv/algos repo there is no repo of this name. And even iiitv/algos repo main page has no file for breadth first traversal. So can i know why this tag  has been added.

@Monik09 I added duplicate tag as, the similar issue has been created already :)

@ishanksoni I think I should close this issue then and unassign myself?

@Monik09 Yeah that's seems right :+1:


Call username lookup code directly

Changes proposed
Our current method of getting data in getServerSideProps is an anti-pattern
This PR calls the functionality from /api/users/[username] API directly instead of using a fetch.
Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Looks good Dan 👍  I am keen to test it out
note: If we can merge when I am at my computer just incase anything needs to be rollback on the server etc

We should make an issue (epic label) and list other areas that need updating to be consistent

I created an issue that lists the pages that need to be updated

Thanks @dan-mba https://github.com/EddieHubCommunity/LinkFree/issues/5069


Fix symbols of nullary method eta-expansions

When the Scala parser encounters an underscore while parsing expressions it
discards that token's position and creates a MethodValue of the target
method:
case USCORE =>
  atPos(t.pos.start, in.skipToken()) { MethodValue(stripParens(t)) }

Then the Scala typechecker creates a Function0 out of that, defining its
position as the position of the underlying method value:
val pos = methodValue.pos
// must create it here to change owner (normally done by typed's typedFunction)
val funSym = context.owner.newAnonymousFunctionValue(pos)
new ChangeOwnerTraverser(context.owner, funSym) traverse methodValue

val result = typed(Function(List(), methodValue) setSymbol funSym setPos pos, mode, pt)

The result is that XtensionCompilationUnitDocument#toTextDocument, which
uses positions, incorrectly matches the Function0 (Global) tree
(e.g. (() => this.prop)) to the underlying method expression (prop)
Scalameta tree, and then converts that anonymous class (Global) symbol into
a local Semanticdb symbol.
So, instead of that, we skip the outer function when it has no params
(by flipping from exists to forall) so now the Scalameta tree prop is
correctly associated to the method's symbol.

Kickstarted 4.3.8 release with this fix!

Nice, thank you, Olaf!


Messages looks broken

I was building from master branch.

Happening in Android

rebuilding again the error goes away

My bad, issues doesn't go away. Has something to do with the commits merged in April 9, 2020

Looks like https://github.com/zulip/zulip-mobile/issues/4018.

Thanks @agrawal-d, closing the issue since it's a duplicate.


Align should change the IntrinsicWidth/IntrinsicHeight of it's child if the widthFactor/heightFactor is set.

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Place an Align with an heightFactor of 0.5 inside an IntrinsicHeight
Place a Container with a fixed height of 200 inside the Align

Expected results
The IntrinsicHeight, Align and Container should all get a height of 100.
Actual results
The IntrinsicHeight, Align and Container all get a height of 200.
Code sample
Code sample
Red should have a height of 100, blue one of 200.
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Intrinsic Bug',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        body: Row(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Expanded(
              child: IntrinsicHeight(
                child: Align(
                  heightFactor: 0.5,
                  child: Container(
                    height: 200,
                    color: Colors.red,
                  ),
                ),
              ),
            ),
            Expanded(
              child: Container(
                height: 200,
                color: Colors.blue,
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
Actual:

Expected:

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.13.5, on Microsoft Windows [Version 10.0.22621.2283], locale
    de-DE)
    • Flutter version 3.13.5 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 12fccda598 (11 days ago), 2023-09-19 13:56:11 -0700
    • Engine revision bd986c5ed2
    • Dart version 3.1.2
    • DevTools version 2.25.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\Users\Maximilian\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.4.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
    • Visual Studio Build Tools 2022 version 17.4.33213.308
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)

[√] VS Code (version 1.82.2)
    • VS Code at C:\Users\Maximilian\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.72.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version
      10.0.22621.2283]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 116.0.5845.188
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 117.0.2045.36

[√] Network resources
    • All expected network resources are available.

• No issues found!

Reproducible using the code sample provided above.

flutter doctor -v
[✓] Flutter (Channel stable, 3.13.6, on macOS 14.0 23A344 darwin-arm64, locale en-GB)
    • Flutter version 3.13.6 on channel stable at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ead455963c (5 days ago), 2023-09-26 18:28:17 -0700
    • Engine revision a794cf2681
    • Dart version 3.1.3
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode-15.0.0-Release.Candidate.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 75.1.4
    • Dart plugin version 232.9559.10

[✓] VS Code (version 1.82.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.72.0

[✓] Connected device (5 available)
    • Pixel 7 (mobile)     • 28291FDH2001SA            • android-arm64  • Android 13 (API 33)
    • Nexus (mobile)       • 00008020-001875E83A38002E • ios            • iOS 17.0.2 21A351
    • Dean’s iPad (mobile) • 00008103-000825C811E3401E • ios            • iOS 17.0.1 21A340
    • macOS (desktop)      • macos                     • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)         • chrome                    • web-javascript • Google Chrome 117.0.5938.92

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.15.0-13.0.pre.46, on macOS 14.0 23A344 darwin-arm64, locale en-GB)
    • Flutter version 3.15.0-13.0.pre.46 on channel master at /Users/nexus/dev/sdks/flutters
    ! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a6da9ced88 (66 minutes ago), 2023-10-02 03:45:30 -0400
    • Engine revision 321139f582
    • Dart version 3.2.0 (build 3.2.0-220.0.dev)
    • DevTools version 2.28.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode-15.0.0-Release.Candidate.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 75.1.4
    • Dart plugin version 232.9559.10

[✓] VS Code (version 1.82.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.72.0

[✓] Connected device (5 available)
    • Pixel 7 (mobile)     • 28291FDH2001SA            • android-arm64  • Android 13 (API 33)
    • Nexus (mobile)       • 00008020-001875E83A38002E • ios            • iOS 17.0.2 21A351
    • Dean’s iPad (mobile) • 00008103-000825C811E3401E • ios            • iOS 17.0.1 21A340
    • macOS (desktop)      • macos                     • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)         • chrome                    • web-javascript • Google Chrome 117.0.5938.92

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.


Run NuScenes Driving Dataset

Hi!
Thank you for sharing this excellent work.
I'm interested in using the NuScenes driving dataset, but I can't locate any guides.
Could you please give me some advice?
Thank you and best regards!

Sorry for the late reply.
You could find how we modified vq-bet for NuScenes driving task in the last page of Appendix (https://arxiv.org/pdf/2403.03181)
and also, we downloaded and used pre-processed data from GPT-Driver (https://github.com/PointsCoder/GPT-Driver)
Thank you!

Sorry for the late reply.
You could find how we modified vq-bet for NuScenes driving task in the last page of Appendix (https://arxiv.org/pdf/2403.03181) and also, we downloaded and used pre-processed data from GPT-Driver (https://github.com/PointsCoder/GPT-Driver)
Thank you!

Thank you for your response. Is there any code related to the NuScenes Driving Dataset on this Repository?
Thank you and best regards!

There's no some code for NuScenes Driving Dataset, but the only modification I did on GPT-Driver pre-processed data is reordering the objects in the order of distance from the agent, and extracting current pose / future traj / adding one-hot object class.
I modified gpt-driver/prompt_message.py, gpt-driver/create_data.py,  and gpt-driver/create_data_uniad.py
Thank you
Seungjae.

There's no some code for NuScenes Driving Dataset, but the only modification I did on GPT-Driver pre-processed data is reordering the objects in the order of distance from the agent, and extracting current pose / future traj / adding one-hot object class.
I modified gpt-driver/prompt_message.py, gpt-driver/create_data.py, and gpt-driver/create_data_uniad.py
Thank you Seungjae.

Thanks for your kind replay, it helps a lot.

Thanks for the excellent work! I have some follow-up questions: You mentioned using future traj from GPT-Driver in vqbet. I wonder

Whether the diffusion model based trajectory model also consumes the future trajectories?
Have you tried using only historical trajectories of other agents in the driving task since future trajectories are not observable in reality?

Thank you very much!


Docs from the future/Commands not working

Can you confirm that this page is correct? Not only do some of the commands not work (currently using AzureRM module v5.6) - e.g. Get-AzureRmSqlDatabaseLongTermRetentionBackup is not a valid cmdlet and Get-AzureRmSqlDatabaseBackupLongTermRetentionPolicy ... -Current parameter cannot be found - but it also appears to be published approx 4 days in the future (4/10/2018).

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

ID: a40f786f-e6c9-15f5-d80a-b4d4eb7a39f5
Version Independent ID: 12620513-5d3c-b7a2-32c9-294117ff3d57
Content: Manage Azure SQL Database long-term backup retention
Content Source: articles/sql-database/sql-database-long-term-backup-retention-configure.md
Service: sql-database
GitHub Login: @anosov1960
Microsoft Alias: sashan

@anosov1960 Confirming that the PowerShell cmdlets are not all correct. I verified Get-AzureRmSqlDatabaseLongTermRetentionBackup as not being recognized in the Azure Portal PowerShell session. Remove-AzureRmSqlDatabaseLongTermRetentionBackup is also not recognized.

I am also not able to explain the April 10, 2018 publication date.

@bladeski rollout is lagging - ETA is next tuesday

#please-close

@bladeski We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


TypeError: no matching function (argument="key", value="provider", code=INVALID_ARGUMENT, version=6.6.4)

Hi, I was wondering if anyone could help, with this error.

Raffle Unit Tests
enterRaffle
emits event on enter:
TypeError: no matching function (argument="key", value="provider", code=INVALID_ARGUMENT, version=6.6.4)

`          describe("enterRaffle", () => {
it("reverts when you don't pay enough", async () => {
await expect(raffle.enterRaffle()).to.be.revertedWith(
"Raffle__SendMoreToEnterRaffle",
)
})
          it("records players when theya enter", async () => {
              await raffle.enterRaffle({ value: raffleEntranceFee })
              const contractPlayer = await raffle.getPlayer(0)
              assert.equal(player.address, contractPlayer)
          })

          it("emits event on enter", async () => {
              await expect(raffle.enterRaffle({ value: raffleEntranceFee })).to.emit(
                  raffle,
                  "RaffleEnter",
              )
          })
      })`

my repo: https://github.com/rezowansifat/Decentralized-Lottery.git

Can you:

Make this a discusson on the full repo? https://github.com/smartcontractkit/full-blockchain-solidity-course-js/
Follow this section for formatting questions? https://www.youtube.com/watch?t=19846&v=gyMwXuJrbJQ&feature=youtu.be


This fixes the BrowserModule already loaded error

http://stackoverflow.com/questions/39286667/browsermodule-has-already-been-loaded-error

Would it be possible to release this soon in a patch version? I really would like to use it.

@apfohl It's available - 5.1.1

Thanks 🍺.


[OFFICIAL] Generated Issue: RequestException

Please fill out the details below.
Summary:
Steps to reproduce:
Additional Details
Jikan Parser Version: 3.0.0.x-dev@0ac1ac31ce3c0c0fc11890f97c22645a5141df9e
PHP: 7.4.16
Redis: ``````
Exception: GuzzleHttp\Exception\RequestException
Code: 0
Message: Error creating resource: [message] fopen(https://myanimelist.net/anime/47/): failed to open stream: HTTP request failed! [file] /var/www/jikan-rest/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php [line] 324
Trace: /var/www/jikan-rest/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 52
Request: GET /v4/anime/47

This looks like a network issue.
Can you try curl -I https://myanimelist.net/anime/47/ in a terminal if the issue persists?

Resolved over discord communication.


fix(createConnector): updates with latest props on state change

What project are you opening a pull request for?

react-instantsearch (use v2 base)

Summary
Use cases:

Use createConnector to create a new custom connector.
Use this new connector to create a component.
Update the props of this component.
Trigger a state change.
This component still calls getProvidedProps with initial props.

Result

Should calls getProvidedProps with latest props.

cc @vvo

Very nice @vinhlh, I wonder if we already had real work example/cases where this would trigger a bad behaviour.
What was the root event that led you to try and fix this issue? Anything on the UI or the existing widgets usages?
Thanks a lot.

@vvo my use case is:
When working with react-router, it's a change from /detail/11 to /detail/12 (/detail/:newId:),
I also have a custom createConnector to calculate some derivative values based on searchResults and props (in this case, it's newId).
But getProvidedProps still receives the old value 11 after the route is changed, then it's this bug.


Wait on gRPC readiness (#10)

Description
Added dependencies: context and grpc.
Fixes #10
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Running existing tests
[x] Created new tests

Checklist:

[ ] My code has been linted (make lint)
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing tests pass locally with my changes (make test lint build acceptance-test)
[x] I have rebased my branch to include the latest changes from master

First of all, a massive thank you for this contribution! It really makes me happy to see people take this project seriously. I think what would make this even better are a couple of unit tests and an acceptance test to prove everything continues to work with future changes.
I'm happy to help you with that aspect if you feel you need it.

Hey! No worries, it's a neat repo :) Only just saw this but will get to writing those acceptance tests

Let me know what you think. Added a dependency on freeport in order to setup the grpc server with any free port.

I have absolutely no problem with that dependency! Will hopefully get a bit of time to look at this in next couple of days.

Sorry for taking so long to around to this. The code looks good. Any chance that you'd be able to extend the documentation to include the new grpc option?

Sure, will get to it in the near future

Made the documentation, let me know what you think @dnnrly

Excellent! Thank you so much for your contribution. If you do twitter and you're prepared to share your handle, you just earned another follower. :smile:


Address feedback from https://github.com/tinkerbell/cluster-api-provider-tink/pull/8

#32 was created to merge the current state of PoC work from #17, which also included changes from #8.
Feedback from #8 still needs to be reviewed and addressed.

/area tech-debt :smile:

/assign

Tried to gather links to the unaddressed feedback here, in some cases the files have moved (in particular the removal of internal directories).

[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547869155
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547872971
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547875301
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547879628
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547886182
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547889858
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547890689
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547901481
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547901720
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547902383
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547903294
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547906132
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547911042
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547977137
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r547977163
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r551933132
[ ] https://github.com/tinkerbell/cluster-api-provider-tink/pull/8#discussion_r553228202

#48 did not address all points here.

This needs triaging and breaking into separate issues as needed.


Infer throws types [work-in-progress]

I made a bunch of changes to the parser in a recent PR so it's probably easiest to start fresh on this.


Update stud.txt

@l1z0 Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Fix tests

Coverage increased (+93.4%) to 93.421% when pulling e5b2d0817afaae458f441ef11b681a85b4a1938d on fix2 into 1796c893d6ef33aecded64a3c3d2557014acd542 on master.


Align ESMValTool to ESMValCore=2.2.0 (adopt iris3, fix environment for new Core release)

This PR tracks the progress to use iris3 in esmvalcore/esmvaltool. See this issue: #1862
Using this branch of esmvalcore: https://github.com/ESMValGroup/ESMValCore/tree/iris3 (PR: https://github.com/ESMValGroup/ESMValCore/pull/819)
To do list
We should keep this PR as is until https://github.com/ESMValGroup/ESMValCore/pull/819 is merged and released(?). Before merging into master, we need to look at:

[x] Merge master, and address conflicts with code using the updated syntax.
[x] setup.py: Uncomment 'scitools-iris=3.0.0'

Tasks

[X] Create an issue to discuss what you are going to do, if you haven't done so already (and add the link at the bottom)
[x] Give this pull request a descriptive title that can be used as a one line summary in a changelog
[ ] Circle/CI tests pass. Status can be seen below your pull request. If the tests are failing, click the link to find out why.
[x] Preferably Codacy code quality checks pass, however a few remaining hard to solve Codacy issues are still acceptable. Status can be seen below your pull request. If there is an error, click the link to find out why. If you suspect Codacy may be wrong, please ask by commenting.
[x] Please use yamllint to check that your YAML files do not contain mistakes

Closes #1862 and #2006

I tested:

examples/recipe_python.yml
examples/recipe_preprocessor_test.yml
with this branch and compared the runtime and results with the master branch.

The runtime is similar and the resulting netcdf files are too, though there was some minor difference in the time axis of the multimodel statistics of diagnostic_1 of the preprocessor test recipe (different calendar chosen from input cubes), but I suspect that is related to the multi model statistics preprocessor and not an iris issue.

something to be aware of https://github.com/ESMValGroup/ESMValTool/issues/2006

something to be aware of https://github.com/ESMValGroup/ESMValTool/issues/2006

failing tests are dubious, here https://github.com/SciTools/iris/issues/3967

failing tests are dubious, here https://github.com/SciTools/iris/issues/3967

failing tests are dubious, here SciTools/iris#3967

@schlunma you mind fixing those tests in line with the change of iris.coords.Coord as @bjlittle tells us about in https://github.com/SciTools/iris/issues/3967 :beer:

failing tests are dubious, here SciTools/iris#3967

@schlunma you mind fixing those tests in line with the change of iris.coords.Coord as @bjlittle tells us about in https://github.com/SciTools/iris/issues/3967 :beer:

Will do!

Will do!

Haha, so apparently it was me who coded that :joy: No idea why I did that though...

Haha, so apparently it was me who coded that :joy: No idea why I did that though...

Haha, so apparently it was me who coded that joy No idea why I did that though...

shh, nobody know :rofl: We need to grep on the diags dir see if others shared your penchant for Coord() :grin:

Haha, so apparently it was me who coded that joy No idea why I did that though...

shh, nobody know :rofl: We need to grep on the diags dir see if others shared your penchant for Coord() :grin:

Just checked it, it's only me :joy:
But thank god we had unit tests for this...I think we need to thoroughly test all diagnostics before releasing this, I'm pretty sure there are other issues waiting for us not tested by unit tests.

Just checked it, it's only me :joy:
But thank god we had unit tests for this...I think we need to thoroughly test all diagnostics before releasing this, I'm pretty sure there are other issues waiting for us not tested by unit tests.

Just fixed the tests :+1:
I just noticed that I get the following warning every time I import iris now:
Python 3.7.9 | packaged by conda-forge | (default, Dec  9 2020, 21:08:20)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import iris
/mnt/lustre02/work/bd0854/b309141/miniconda3/envs/esm2/lib/python3.7/site-packages/iris/config.py:139: UserWarning: Ignoring config item 'Resources':'test_data_dir' (section:option) as '/home/h05/itwl/projects/git/iris-test-data/test_data' is not a valid directory path.
  warnings.warn(msg.format(section, option, c_path))

Anyone else experiencing this? If yes I will open an issue in the iris repo.

Just fixed the tests :+1:
I just noticed that I get the following warning every time I import iris now:
Python 3.7.9 | packaged by conda-forge | (default, Dec  9 2020, 21:08:20)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import iris
/mnt/lustre02/work/bd0854/b309141/miniconda3/envs/esm2/lib/python3.7/site-packages/iris/config.py:139: UserWarning: Ignoring config item 'Resources':'test_data_dir' (section:option) as '/home/h05/itwl/projects/git/iris-test-data/test_data' is not a valid directory path.
  warnings.warn(msg.format(section, option, c_path))

Anyone else experiencing this? If yes I will open an issue in the iris repo.

Ok, I found the issue, but I have no clue why my fix works.
The issue is the function iris.cube.Cube.coord_dims: if I call cube.coord_dims('air_pressure') after adding my custom aux factory I get the error above (iris.exceptions.CoordinateNotFoundError: 'air_pressure'), calling cube.coord('air_pressure') however works fine.
I could fix the issues by replacing these lines
https://github.com/ESMValGroup/ESMValCore/blob/b632f9ac7172a91b52fe91264f37a2ce3e13ac3e/esmvalcore/cmor/_fixes/shared.py#L39-L43
with a
self.units = pressure_at_top.units

in the class constructor, similar to the iris aux factories.
So apparently a property behaves differently than a regular class attribute?
I continue my tests now (will check a couple of recipes which I now may be problematic sometime, so stay tuned).

Ok, I found the issue, but I have no clue why my fix works.
The issue is the function iris.cube.Cube.coord_dims: if I call cube.coord_dims('air_pressure') after adding my custom aux factory I get the error above (iris.exceptions.CoordinateNotFoundError: 'air_pressure'), calling cube.coord('air_pressure') however works fine.
I could fix the issues by replacing these lines
https://github.com/ESMValGroup/ESMValCore/blob/b632f9ac7172a91b52fe91264f37a2ce3e13ac3e/esmvalcore/cmor/_fixes/shared.py#L39-L43
with a
self.units = pressure_at_top.units

in the class constructor, similar to the iris aux factories.
So apparently a property behaves differently than a regular class attribute?
I continue my tests now (will check a couple of recipes which I now may be problematic sometime, so stay tuned).

Would it be possible to get this merged as soon as possible? For a new PR I need the new release branch of ESMValCore (or its master), and the current master of ESMValTool does not work with that because of iris3!

Would it be possible to get this merged as soon as possible? For a new PR I need the new release branch of ESMValCore (or its master), and the current master of ESMValTool does not work with that because of iris3!

yes, let me pin mpich from #2007 then test and will merge - will do this tomorrow morning :+1:

The changes in this pull request need ESMValCore v2.2, so this can only be merged once that has been released (next Monday).
@schlunma You can just branch off of this branch for your pull request that needs the development version of the ESMValCore.

Cool, thanks!! I already branched of this branch, just wanted to make sure that this PR has priority

I just re-double-checked the situation with mpich that needs to be pinned to avoid library import issues, even though the Core from release _2.2.0 installs a newer version of mpich:
(release22x) valeriu@valeriu-PORTEGE-Z30-C:~/ESMValCore$ conda list mpich
# packages in environment at /home/valeriu/miniconda3/envs/release22x:
#
# Name                    Version                   Build  Channel
mpich                     3.4.1                h846660c_2    conda-forge

the updated env for Tool with this branch updates the mpich to the offending package:`
(release22x) valeriu@valeriu-PORTEGE-Z30-C:~/ESMValTool$ conda list mpich
# packages in environment at /home/valeriu/miniconda3/envs/release22x:
#
# Name                    Version                   Build  Channel
mpich                     3.4.1                external_2    conda-forge

that's causing us issues. So the pin needs to stay in for now. I will add a note to the env and meta file so we remove it as soon as we can. Gotta love conda

OK I've also pinned to the new esmvalcore that will be released today by the magnificent @jvegasbsc :woman_dancing:

It's important that you keep the pin on the upper version of esmvalcore, or the esmvaltool package may end up being broken in the two weeks between the esmvalcore release and esmvaltool release.

very good point @bouweandela cheers :beer:

Merged #1994 into this branch to see if it makes the tests pass.

The conda build is failing, but it seems unrelated to this pull request, see #2016.
Because we really need this to move forward with testing of ESMValTool for the upcoming release and integrating final features, I will merge this.

yes yes yes :beer: And the install works a-ok with esmvalcore=2.2.0 :+1: