Fixes related to handling carriage return

For #8112

Codecov Report

Merging #8139 (98d4359) into main (e950602) will decrease coverage by 0%.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main   #8139   +/-   ##
=====================================
- Coverage     71%     71%   -1%
=====================================
  Files        366     366
  Lines      22691   22691
  Branches    3445    3445
=====================================
- Hits       16259   16250    -9
- Misses      5025    5029    +4
- Partials    1407    1412    +5

Impacted Files
Coverage Δ

...notebook/intellisense/jupyterCompletionProvider.ts
59% <0%> (-6%)
:arrow_down:

...tascience/jupyter/kernels/kernelCommandListener.ts
59% <0%> (-5%)
:arrow_down:

...ent/datascience/jupyter/kernels/kernelExecution.ts
67% <0%> (-2%)
:arrow_down:

src/client/datascience/telemetry/telemetry.ts
74% <0%> (-1%)
:arrow_down:

src/client/datascience/jupyter/kernelVariables.ts
56% <0%> (ø)

src/client/debugger/jupyter/kernelDebugAdapter.ts
82% <0%> (+<1%)
:arrow_up:

src/client/datascience/raw-kernel/rawSocket.ts
84% <0%> (+1%)
:arrow_up:


chore(deps): upgrade runtime dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-runtime-dependencies-1.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2719

Questions ?
Please refer to the Backport tool documentation


No longer compatible with libgpiod < 1.6.x

The documentation states in the requirements that this should be compatible with libgpiod 1.x. However, since version 0.4 it's no longer compatible with libgpiod versions lower than 1.6.0

It would be nice its compatibility could be maintained since LTS versions of many distros, like Ubuntu 20.04, are still shipped with libgpiod 1.4.
If not possible, I recommend updating the documentation and clarify the minimum requirements.

Hello @alejandroclaro , thank you for reporting this!
I think it is related to what @splitice was warning me about in #25 and indeed, i should add some kind of ifdef or something to make it possible to build node-libgpiod again  under older versions -- as long as it is 1.x

Hello @alejandroclaro when you have a chance, please check if it works again with libgpiod versions prior to 1.5 series.

Thanks @sombriks !
I will test this today.

@sombriks  looks like everything is good now.
Thanks!


Implements unit testing in Typescript modules

In terms of simplifying configuration it might be easier if we configure jest at the root of the mono-repo once and run all of the tests together. This will produce a single coverage file and still allow you to run isolated folders per-project if you need.


RoundRobin terratest fails on local environment

Terratest results failing, and round-robin tests failing
    extensions.go:235: killing Instance: k3d-test-gslb2:k8gb-test-bmgcyi
TestFullFailover 2022-01-14T21:56:28+02:00 client.go:42: Configuring Kubernetes client using config file /home/namai/.kube/config with context k3d-test-gslb2
    extensions.go:235: killing Instance: k3d-test-gslb1:k8gb-test-w0g9tt
TestFullFailover 2022-01-14T21:56:28+02:00 client.go:42: Configuring Kubernetes client using config file /home/namai/.kube/config with context k3d-test-gslb1
--- FAIL: TestFullFailover (441.28s)
    --- PASS: TestFullFailover/failover_on_two_concurrent_clusters_with_podinfo_running (3.04s)
    --- FAIL: TestFullFailover/kill_podinfo_on_the_second_cluster (105.48s)
    --- PASS: TestFullFailover/kill_podinfo_on_the_first_cluster (0.20s)
    --- FAIL: TestFullFailover/start_podinfo_on_the_second_cluster (109.56s)
    --- FAIL: TestFullFailover/start_podinfo_on_the_first_cluster (106.90s)
FAIL
exit status 1
FAIL    k8gbterratest/test      441.297s

What steps I should take to find the cause?
OS: Debian 11 "Bullseye"
Go 17.6.1
Docker 20.10.5
Originally posted by @AugustasV in https://github.com/k8gb-io/k8gb/issues/828#issuecomment-1013436466

@kuritka probably this issue could be closed because those error messages are not appearing anymore.

@AugustasV , sure, closing.  This is something else.

@AugustasV , sure, closing. This is something else.


add README.md in explainableai

An updated README file that provides an overview of the project, its purpose, installation instructions, and how to contribute.
add gssoc and hacktoberfest lables

@AKSHITHA-CHILUKA  can you elaboarte what changes you're looking to do?

We can describe what is explainableai and also we have many files in it

so we can add a cute summary about each file so that it make it clear

I want to update this readme.md to make it more readable and more visual to the end user. @ombhojane

assign me this issue

plz assign me with this task i will add a cute summary about each file shortly.

I want to work this task please assign me

Issue has been resolved.


Fix install command

When a relative directory is given as the value to the DESTINATION argument of the cmake install command, it is already treated as being relative to CMAKE_INSTALL_PREFIX.  When we redundantly specify it, then the PACKAGE operation can fail if the user specified CMAKE_INSTALL_PREFIX during configuration because it is interpreted to an absolute path at configuration time and is not resolved again when it has to be overridden at package time.

@codemercenary needs to resolve conlficts


Performance optimization

Related issue: https://github.com/rtsao/csjs/issues/12 (benchmarks)
Some ideas:

rudimentary lexical analysis (simple comment tokenization) to eliminate need for ignoreComments regex

@rtsao maybe something like this ?

Investigate https://github.com/thysultan/stylis.js


cross service data replication and event flow

[x] 17 Cross-Service Data Replication In Action
[x] 18 Understanding Event Flow

startting orders service implementation

order service creating in done until order expires time implementation

cross service data replication finished

starting understanding event flow

publishing orders events impelemented


Reformat static list in ApplicationHelper#tree_with_advanced_search?

Sorted Alphabetically and 1 to a line. See #11835 for an example.

I think I can manage this!

@jmks looks like @AndyStabler beat you to it.  Try another one with the hacktoberfest label

No worries!


Use missing depth argument in isAncestor method

if https://github.com/KnpLabs/KnpMenu/pull/260 is merged, tests on this PR will also pass

Please rebase this PR so that it does not contain changes in the Travis config file (which are creating conflicts btw)

@stof done

Thanks for fixing this bug @seferov.


adding functionality to build simple circuits from strings

this code closes #28 as part of the UnitaryHack 2023 event.
Specifically, I added functionality to build simple circuits from strings (for Qiskit) as shown in the following code example:
circuit_str = "h()^0;CRX(x_0)^01;CRZ(x_1)^10"
hierq = Qinit(5)+Qcycle(mapping=Qunitary(circuit_str))
I show a screenshot comparing this new method with the old method of creating an ansatz function:

The string must be formatted in the following format:
"{gate_string}(parameters)^{bits};{gate_string}(parameters)^{bits};...;{gate_string}(parameters)^{bits}"
where gate_string is a Qiskit gate (e.g. one of {h,x,y,z,cx,cy,cz,rx,ry,rz,crx,cry,crz,s,toffoli}) and can be written in uppercase, lowercase, or a mix of cases; parameters is a string of format {x0, x1, x2, ..., xn}; bits is the qubit/set of qubits on which the gate is applied.
NB: Each gate instruction MUST be separated by a semicolon
NB: you do not have to specify arity and n_symbols, as these are extracted automatically from the string in the Qunitary __init__() function.
As specified in issue #28, I added code in core.py in the Qunitary.__init__() function to check if the input function is a string, and if so, automatically calculate and set the arity and n_symbols attributes. Then, I modified the get_circuit_qiskit() function to convert the string to a Python function, using a helper function in utils.py.
@matt-lourens As this is my first time contributing to an open-source project, please let me know if I'm missing anything! thanks so much :)

Hey @khnikhil, this is awesome!
I will still need to go through some of the details, but from an overall glance and some tests, this is what I was looking for.  While I go through the details of the PR, something that you can add so long is the following:
So providing a hierarchical object as a mapping doesn't work anymore (check the Sub motif as a mapping for a motif section in the quickstarti.ipynb). Don't worry though, this is an involved issue because I have this Qhierarchy.get_unitary_function in core.py that converts a Qhierarchy object into a Qunitary.function (this is to build up motifs in terms smaller motifs).  I have the solution here, just change the following:
On line 1158 in core.py update the get_unitary_function as follows:
    def get_unitary_function(self, **kwargs):
        """
        Convert the Qhierarchy into a function that can be called.
        """

        def unitary_function(bits, symbols=None, **kwargs):
            self.update_Q(bits)
            if not (symbols is None):
                self.set_symbols(symbols)
            return_object = None
            for layer in self:
                for unitary in layer.edge_mapping:
                    if isinstance(unitary.function, str):
                        get_circuit_from_string = kwargs.get("get_circuit_from_string", None)
                        unitary = get_circuit_from_string(unitary)
                    return_object = unitary.function(
                        unitary.edge, unitary.symbols, **kwargs
                    )
            return return_object

        return unitary_function

Then in your new qiskit_helper.get_circuit_qiskit function allow it to recieve **kwargs: on line 97
   # breaking down the qunitary.function string into a list of gate instructions
    instruction_list, unique_bits, _ = get_circ_info_from_string(qunitary.function)

    # building a function from the list of gate instructions
    def circuit_fn(bits, symbols=None, circuit=None, **kwargs):
        qubits = [QuantumRegister(1, bits[i]) for i in range(qunitary.arity)]

Then on line 73 in qiskit_helper.get_circuit_qiskit send your function to the unitary.function call:
            circuit = unitary.function(
                bits=unitary.edge, symbols=unitary.symbols, circuit=circuit, get_circuit_from_string=get_circuit_from_string
            )

The idea here is to send along the backends specific string to circuit conversion function to the abstract get_unitary_function in core.py. Since we want to allow something as follows:
m1 = Qinit(3) + Qpermute(mapping=Qunitary("crx(x_0)^01"))
m2 = Qinit(6) + Qcycle(mapping=m1)
m3 = Qinit(18) + Qcycle(mapping=m2)

We need to make sure whatever that string conversion function is, needs to be accessible on the lowest level of the compute graph. So the only requirement is that if you provide a function, just specify **kwargs which allows us to send around backend specific functions like string to circuit conversions.
One final small change in regards to this is just the default circuits in qiskit_circuits.py, just give each of them a **kwargs parameter:
def U2(bits, symbols=None, circuit=None, **kwargs):
def U3(bits, symbols=None, circuit=None, **kwargs):
def V2(bits, symbols=None, circuit=None, **kwargs):
def V4(bits, symbols=None, circuit=None, **kwargs):

As far as I can tell,  with these changes nothing breaks and works as expected.
Tomorrow I will go through the details of the PR, but any changes from here will be small stuff, great job!

Hi @matt-lourens,
Thanks so much for the quick comments! I made the changes you pointed out, and everything seems to be working fine.
Just to make sure I understand, the idea is that we want to pass on the get_circuit_from_string method through kwargs so that it can be used higher up the stack when we're converting a Qhierarchy object into a single function?
I'm a bit confused by what you mean by the following:

So providing a hierarchical object as a mapping doesn't work anymore (check the Sub motif as a mapping for a motif section in the quickstart.ipynb).

since in quickstart.ipynb it seems like the hierarchical object m1 is still being passed as a mapping to hierq:

Thanks so much for the comments, and please let me know if there are any other fixes that should be made!

Hi @matt-lourens,
Thanks so much for the quick comments! I made the changes you pointed out, and everything seems to be working fine.
Just to make sure I understand, the idea is that we want to pass on the get_circuit_from_string method through kwargs so that it can be used higher up the stack when we're converting a Qhierarchy object into a single function?
I'm a bit confused by what you mean by the following:

So providing a hierarchical object as a mapping doesn't work anymore (check the Sub motif as a mapping for a motif section in the quickstart.ipynb).

since in quickstart.ipynb it seems like the hierarchical object m1 is still being passed as a mapping to hierq:

Thanks so much for the comments, and please let me know if there are any other fixes that should be made!

So in regards to this, on the high level (interfacing) you pass the Qhierarchy object as a mapping, but on the low level when a Qmotif is intialised and it's mapping is a Qhierarchy, then the mapping gets updated to a function by calling get_unitary_function():
# core.Qmotif
        if self.is_default_mapping:
            self.arity = 2
        else:
            if isinstance(self.mapping, Qhierarchy):
                # If mapping was specified as sub-hierarchy, convert it to a qunitary
                new_mapping = Qunitary(
                    function=None,
                    n_symbols=self.mapping.n_symbols,
                    arity=len(self.mapping.tail.Q),
                )
                new_mapping.function = self.mapping.get_unitary_function()
                self.mapping = new_mapping
            self.arity = self.mapping.arity

Before my suggested change when this self.mapping  was a Qhierarchy which had a Qmotif with a mapping as string, the .get_unitary_function() bombs out because that Qmotif never got it's qiskit converted function to execute. We therefore have to pass that conversion function all the way down (no matter how many layers)during execution, so that the function correctly gets converted to the function we want. It's a bit hard to explain, but it's an interesting problem and solution, if you're interested undo the changes  I suggested and debug through the sub_hierq and sub sub hierq examples of the notebook. Then it's a bit more clear what goes wrong :D

@khnikhil This is great! I've left a few comments, but it's mostly about the way we organize the code. In terms of functionality, everything is perfect!

hi @matt-lourens! thanks for the comments - I implemented everything in the new commits. in addition to moving the get_circ_info_from_string function inside Qunitary, I changed the name of the function I added to qiskit_helper.py to get_qiskit_circuit_from_instructions, which should make the code easier to understand in addition to the extra comments. thanks so much for the comments and support again, this was really fun :)

hi @matt-lourens! I just realized I was mislabelling unique_bits and unique_params when calling them in Qunitary.__init__() which was leading to some bugs, so I went back in and fixed it. Is there anything else I need to do before it can be merged?


[cgicc] update to 3.2.20

[X] Changes comply with the maintainer guide
[X] SHA512s are updated for each updated download
[ ] ~The "supports" clause reflects platforms that may be fixed by this new version~
[ ] ~Any fixed CI baseline entries are removed from that file.~
[ ] ~Any patches that are no longer applied are deleted from the port's directory.~
[X] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[X] Only one version is added to each modified port's versions file.

Did you forget to submit the portfile.cmake file?


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/26801

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/56588

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/59463

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/59466

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/59545

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/59693


Update to webpack 4

Might want to wait until the official release of webpack 4, but this PR updates to the latest beta version

Looks cool @jxnblk so is react-loadable no longer needed w/webpack 4?

@jimthedev no, react-loadable will still be built-in, but just removed the demo part in the docs. Will add an example in for reference at some point


/giphy  not working

tested on ios 9.2

Hey @Pandahisham, we have changed the syntax to be +giphy <search term> instead. Can you try that?

yes it is working m
however i noticed a bad user experience -- some people add a trailing space by habit and it breaks the functionality , i think the regex should have a trialing space in it


pivots are not set correctly

the pivots seems always be 0,0.

Please create a Pull request

Does anyone have a solution?


Support RDS snapshot configurations in spec

Is your feature request related to a problem?
In today's community meeting, we had a discussion around the new final snapshot configuration option in the RDS controller. This was introduced in this PR as requested in this issue. This is a great addition to the RDS controller since final snapshot operations are commonly used.
We had discussions around using annotations vs spec. I am documenting them below.

Spec field is the reflection of state of the resource. Operations around resources do not fit in spec well.
Forward compatibility and cost of renaming fields. There are issues around re-naming fields and introduction of new fields for GA controllers must be considered carefully.
Using annotations is a good starting point for supporting this feature. We can use the same logic for spec field, if desired.
Annotations are hard to document. Currently they are documented manually in each repository and not automatically generated aside from go doc.
There are no mechanisms in ACK to generate code or docs for annotations.
While the number of current annotations are small, what should we do when the number grows? Do we need generation tools for annotations as well?
The operations around snapshots are very common when using RDS. If the purpose of the RDS controller is to manage the lifecycle, snapshot operations should be part of spec.
When enabling self service for developers, descriptions in spec is easier to reason about because there are tools that can parse OpenAPI spec.

Describe the solution you'd like
I think the move to use annotation was right as the first implementation to support snapshotting features because it allows for experimentation and identify any bugs. As the usages of the annotations grows , I think they should be moved to spec. When I am using RDS controllers, I want to manage the lifecycle of RDS instances. IMO this includes snapshots.
Describe alternatives you've considered
N/A

/remove-lifecycle stale


Incorrect coordinate group in README file

In the setup section of the README, the Maven coordinate references the group com.github.hamid97m. However, it seems that the correct group should be com.github.cafebazaar.

Thank you, Ali, it has been fixed now!


https://github.com/MicrosoftLearning/SC-400T00A-Microsoft-Information-Protection-Administrator/blob/master/Instructions/Labs/LAB_AK_03_Lab1_Ex2_retention_labels.md

Module: 0?
Lab/Demo: 03
Task: 03
Step: 08
Description of issue
Task 3/Step 8: String **U.K. Financial Data88 need closing **

Thank you for bringing this to my attention. This issue has been resolved.


Uncaught ReferenceError: require is not defined

Could you tell me the steps to reproduce the error?

Closing. Not enough information.


install-path XDG

There should be a way to tell install-path to try to use XDG dirs (quick skimming suggests that just means  $HOME/.local/bin?). What exactly that means on windows is contentious, but if we have #286 we can just say "this doesn't make sense on windows" and ignore it in the cascade.

I would like to ask to change the default to $HOME/.local/bin. Most tools written in rust aren't cargo tools, they are either standalone or tools for other languages (i for example write python tooling, where it is strange when it's in a cargo folder). The other advantage is that avoids editing the user dotfiles. From https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html:

User-specific executable files may be stored in $HOME/.local/bin. Distributions should ensure this directory shows up in the UNIX $PATH environment variable, at an appropriate place.

I don't know enough about windows to say what should be done there.

We'll release https://github.com/astral-sh/uv/pull/8420 and see how this transition goes!


Error with legend of indicate_error

Description
Proplot 0.7.0 cannot handle combined labels for line and maker passed to indicate_error.
Related to #187.
Steps to reproduce
import numpy as np
import pandas as pd
import proplot as plot

rng = np.random.default_rng()

x = rng.standard_normal((100, 10))
x = pd.DataFrame(x)
x.name = 'data'

fig, ax = plot.subplots()
h = ax.plot(x, means=True, shadepctiles=(5,95), label='1')
#h = ax.plot(x, means=True, shadepctiles=(5,95), label='1', legend='ll') # This works

ax.legend(h)

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]
python3.8/site-packages/proplot/axes/plot.py:4184: UserWarning: The handle <matplotlib.collections.PolyCollection object at 0x2ad831c53d00> has a label of '_collection0' which cannot be automatically added to the legend.
return mlegend.Legend(self, *zip(*pairs), ncol=ncol, **kwargs)

Proplot version
0.7.0

Thanks. Legend entries can be combined in matplotlib by passing tuples to legend() -- for example, ax.legend([(line_obj, shading_obj)], ['line_plus_shading_label']). So in this example you just need to pass [h] to legend() instead of h.
However since matplotlib's plot always returns lists of handles, it probably makes more sense if plot with error indications returns the singleton list [(line_obj, shading_obj)] rather than the current behavior (line_obj, shading_obj). Will implement this.

Thanks for the response. Just for your info, ax.legend([h]) does not work in this case. It gives the following error.
python3.8/site-packages/proplot/axes/plot.py:4105: UserWarning: The handle <matplotlib.collections.PolyCollection object at 0x2afeff71afd0> has a label of '_collection0' which cannot be automatically added to the legend.   leg = mlegend.Legend(
I had to pass ax.legend([tuple(h)], ['label'])  to make it work. ax.legend(h) was working in version 0.6.4 and it was useful when I had multiple lines in multiple axs.

I see, that's definitely annoying -- plot should be returning tuples. Thanks for the report.


Unable to scan in Mac and ios In MAUI

I am using in the hand in an maui it is working in the windows and android but it is unable to scan the devices in the mac and ios platforms. I have added and given all the permissions that are required.

The Apple platforms only support RequestDeviceAsync currently which presents a dialog to the user to choose an available device. Unfortunately, the code doesn't throw an exception but instantly returns an empty collection. I will get this corrected and the documentation updated with more clarity on platform differences.

Hi Thanks for the reply can you give a example or point to the example where the scanning and connection and writing happens in ios and mac framework for maui


NA and EU support for Sheldon's Picks Volume 2 Weapons

Adds support for Sheldon's Picks Volume 2 weapons for players with English copies of the game.

Thanks!


Need an easy to delete the db as well

Need an easy to delete the db as well.

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

ID: 3b080df7-306f-3ebd-6b46-49ecc02cb932
Version Independent ID: 3e717fd4-9cde-8fa0-9dcc-ef5ed4d0f145
Content: Microsoft Edge DevTools - Debugger - IndexedDB manager - Microsoft Edge Development
Content Source: microsoft-edge/devtools-guide/debugger/indexeddb.md
Product: microsoft-edge
GitHub Login: @erikadoyle
Microsoft Alias: edoyle

Good idea! Could you please file a feature request on the Edge UserVoice channel: https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer?category_id=84475


Fix depricated hysteris_sweep file

This is still a draft
fix the hysteris_sweep.jl file as most everything was depricated. Also moved file to TimeEvolution module as it best that all code that uses OrdinaryDiffEq is in one Module.
I would also like to add Require such that the TimeEvolution only is loaded when OrdinarDiffEq. <\del>

This is ready for merge after review


Enhance dependency management

For my environment, since I only had tendermint checked out, I had to go get:

github.com/bgentry/speakeasy
github.com/gorilla/handlers
github.com/gorilla/mux
github.com/spf13/cobra
github.com/spf13/viper
gopkg.in/go-playground/validator.v9

Also I had to switch go-crypto to develop version.
Maybe this should be set up with glide, a vendor dir, etc?

Yup, this should be with glide.
Do you want to try your hand on a PR for this one?  Make a branch, create the glide.{lock,yaml} files (glide init i think, then adjust them).  Add a get_vendor_deps command to the Makefile like basecoin or light-client or ....

You should have write access to this repo, ping me if not.

Okay, it should be fun.

Fixed with PR #4 from @phomer
Merged. Thank you


React 15

Hey,
Currently using mobx-react is not possible with react 15.
Could you either please update the peerDependencies or (better) merge https://github.com/mobxjs/mobx-react/pull/33?

Sorry for the delay, somehow missed the notification :cry:
Just released as 3.0.3


Feature request: going to a position with button pressing

Would it be possible to have such button in HK? My vacuum’s dock is hidden and every time I still need to open the Mihome app to navigate it to a point where I can get the dustbin out. A simple button would be enough, when on the vacuum goes to the predefined coordinates, when off goes back to the dock.
Thanks in advance!

Hi @ursusHU! It sounds like a great idea. I think it may be similar to #130?

Hi @afharo, yes that’s the same request :)
I wonder if this would be possible to use the zone cleaning feature somehow with defining a small area.

Going to a position, it should be easy to implement. I just don't have enough spare time to put it together, sorry 🙂

I know that having separate Dock and GoToPosition buttons would be better, but if anyone wants quick solution for goTOposition
just edit file homebridge-xiaomi-roborock-vacuum/miio/lib/devices/vacuum.js
find function find() and change it like this:
`/**

Activate the find function, will make the device give off a sound.
*/
find() {
return this.call("app_goto_target",[26000,26300]).then(() => null);
//return this.call("find_me", [""]).then(() => null);
}`

There you will have on findMeButton going to position

Thank you @kajaba! It'd be great to use your suggestion to add a button based on the config

I think its the matter of half an hour, but hey, I am not a developer of this

The same is for Dock button
return this.call("app_charge", [""]).then(() => null);

Turning the speed down to 0% already does that. It calls app_stop and app_charge

https://github.com/maisun/homebridge-xiaomi-roborock-vacuum fork has go to target.

I would also love this pin to go function? Are you guys gonna implement it in main plugin?

I would also love this pin to go function? Are you guys gonna implement it in main plugin?

I've been thinking about this for quite some time now. My vacuum is parked below a sideboard, thus can't be reached without moving it. I'd love to move it to a specific location once a week when I come home. The automation-part should be quite easy.

I know that having separate Dock and GoToPosition buttons would be better, but if anyone wants quick solution for goTOposition just edit file homebridge-xiaomi-roborock-vacuum/miio/lib/devices/vacuum.js
find function find() and change it like this:
/**
   * Activate the find function, will make the device give off a sound.
   */
  find() {
    return this.call("app_goto_target",[26000,26300]).then(() => null);
    //return this.call("find_me", [""]).then(() => null);
  }

There you will have on findMeButton going to position. But you need to have find option enabled in setup config

Quite a lot has changed in index.js, so I am not sure where to implement this. @afharo if you can perhaps give me a hint, I'll try to implement it and make a pull request.

It should be resolved by @luc-ass in version https://github.com/homebridge-xiaomi-roborock-vacuum/homebridge-xiaomi-roborock-vacuum/releases/tag/v0.23.0


Importing keyvault packages produces a lot of "not enough arguments to return"

Bug Report

go version go1.14.1 darwin/amd64

 "github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault"
 "github.com/Azure/azure-sdk-for-go/services/keyvault/auth"
 "github.com/Azure/go-autorest/autorest/azure"

 github.com/Azure/azure-sdk-for-go v42.0.0+incompatible
 github.com/Azure/go-autorest v10.15.3+incompatible

The way I'm using the SDK is pretty standard:
sf.client = keyvault.New()
authorizer, err := auth.NewAuthorizerFromEnvironment()
if err != nil {
	return err
}
sf.client.Authorizer = authorizer
sf.client.GetSecret(ctx, vaultBaseURL, "secretName", "")

When I build the project I'm getting:
# github.com/Azure/azure-sdk-for-go/services/keyvault/2016-10-01/keyvault
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:119:2: not enough arguments to return
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:119:15: client.Send undefined (type BaseClient has no field or method Send)
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:198:2: not enough arguments to return
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:198:15: client.Send undefined (type BaseClient has no field or method Send)
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:293:2: not enough arguments to return
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:293:15: client.Send undefined (type BaseClient has no field or method Send)
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:381:2: not enough arguments to return
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:381:15: client.Send undefined (type BaseClient has no field or method Send)
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:474:2: not enough arguments to return
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:474:15: client.Send undefined (type BaseClient has no field or method Send)
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/2016-10-01/keyvault/client.go:474:2: too many errors
# github.com/Azure/azure-sdk-for-go/services/keyvault/auth
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/auth/auth.go:45:9: undefined: auth.NewAuthorizerFromFileWithResource
../../../../pkg/mod/github.com/!azure/azure-sdk-for-go@v42.0.0+incompatible/services/keyvault/auth/auth.go:54:9: undefined: auth.NewAuthorizerFromCLIWithResource
# k8s.io/client-go/rest
../../../../pkg/mod/k8s.io/client-go@v11.0.1-0.20190409021438-1a26190bd76a+incompatible/rest/request.go:598:31: not enough arguments in call to watch.NewStreamWatcher
	have (*versioned.Decoder)
	want (watch.Decoder, watch.Reporter)

I have the same issue, and apparently it was working fine 2 days ago. The only way I could get it running was falling back to v39.2.0.

Your version of go-autorest is too old and is missing some changes that the SDK depends on.  Can you please update to at least v13.4.0.
Generally speaking, for the version of the SDK you consume, your version of go-autorest should match what's in Gopkg.toml.  Using dep will ensure your dependency graph is consistent as we haven't yet introduced modules in the SDK.

Hi @jakubigla I believe bumping go-autorest version to v14.0.0 will resolve this issue, therefore I will close this issue in advance. Please feel free to comment or reopen if you still have more concerns or questions.


Installing <IP_ADDRESS> error permission accessing

After install I obtains this error when I invoke the web:
You don't have permission to access / on this server.

This is the same issue as #11.
The reason is the default site of Apache 2 was enabled, but the default site used /var/www/html as the document root, which is different from the /var/www/htdocs. I modified the Apache 2 config to use /var/www/htdocs as the document root.

The latest build in Docker Hub has fixed this issue.


change command colour

Thanks for the amazing theme.
I would like to change the command colour grey to half white. I feel little difficult to read grey texts in code
how can I modify regarding this?

Which color?? You mean the the terminal color

inside code editor

And hex decimal number shows in 2 different colour - 0x1 -> it shall be same colour

Which language is this

C language. I using this in embedded programming

I think I wont be able fix this as I do not know C and its terms.
I Am Sorry

thanks for your time.
no need to understand c language to make this fix. you may do in JSON settings

I need to know the terms in C for me to be able to fix it


Crash when using Tree Layout

The WPF Showcase crash when selecting the Tree layout.
it crash in the first line of SimpleTreeLayoutAlgorithm.Compute(..) method because VertexSizes is null.
public override void Compute(CancellationToken cancellationToken)
        {
            //crash here
            Sizes = new Dictionary<TVertex, Size>( VertexSizes );

I made it work by adding   VertexSizes = new Dictionary<TVertex, Size>(vertexSizes); in the constructor
public SimpleTreeLayoutAlgorithm( TGraph visitedGraph, IDictionary<TVertex, Point> vertexPositions, IDictionary<TVertex, Size> vertexSizes, SimpleTreeLayoutParameters parameters )
            : base( visitedGraph, vertexPositions, parameters )
        {
            VertexSizes = new Dictionary<TVertex, Size>(vertexSizes);
            //Contract.Requires( vertexSizes != null );
            //Contract.Requires( visitedGraph.Vertices.All( v => vertexSizes.ContainsKey( v ) ) );

        }

Thanks, fixed!


Feature Suggestion: 'Hide/Reveal' & 'Collapse/Expand' all Mesh Lists on the right tab.

This would allow for an easier time when managing multiple meshes and experimenting for fighters/stages, more specifically for stages though.
The user would be able to hide every mesh, or even close every list for all meshes in one click, for ease of use in turning 'on certain folders' first, instead of 'closing the majority' first.
A mock-up is created to show a potential visual for this feature.

If this was already planned, I apologize, lol.

Hiding or showing all meshes in the list should be doable to implement. An "All" entry might be confusing if any of the folders have that name.

Hiding/showing all meshes will be in the next release. Closing or expanding all folders is more involved. I'll try and look into that for the next release as well.


Do not merge - Copy of #144 for triggering CI

Do not merge - Copy of #144 for triggering CI

I think we can close this now that we have updated Circle CI to run on forked PRs!


⚠ LabBricks has degraded performance

In de61bd0, LabBricks (https://labbricks.com) experienced degraded performance:

HTTP code: 523
Response time: 3221 ms

Resolved: LabBricks performance has improved in e1f2922 after 15 minutes.


Unnecessarily unclear about greedy modifier used together with variable length quantifier

In the description for these two
{n , }?
{n , m }?
the page is unnecessarily lengthy when all it should say is that they're both equal to {n}, matching exactly n times, as the question mark overrides any specification that the expression can match more than n elements.

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

ID: 16d4698e-4220-c422-a554-8a481803d240
Version Independent ID: f0e3b82a-8d81-ad9e-97fc-efb92f7d0d38
Content: Regular Expression Language - Quick Reference
Content Source: docs/standard/base-types/regular-expression-language-quick-reference.md
Product: dotnet
Technology: dotnet-standard
GitHub Login: @rpetrusha
Microsoft Alias: ronpet

Hi @uKER, thanks for your feedback.
I think on simple examples that might be true, but you also have to consider that regular expressions are used combined with other patterns.
I just tested on a quick program and using those patterns in combination with others produces different results. So, I think we should keep the description as-is.
Consider:
using System;
using System.Text.RegularExpressions;

public class Example
{
   public static void Main()
   {
      string input = "56 1234 637373 828";
      string pattern = @"\d{3}\s";

      foreach (Match match in Regex.Matches(input, pattern, RegexOptions.IgnoreCase))
         Console.WriteLine($"Match {match.Value} at position {match.Index}");
      //Match 234  at position 4
      //Match 373  at position 11

      pattern = @"\d{3}?\s";

      foreach (Match match in Regex.Matches(input, pattern, RegexOptions.IgnoreCase))
         Console.WriteLine($"Match {match.Value} at position {match.Index}");
      // Match 234  at position 4
      // Match 373  at position 11

      pattern = @"\d{3,}?\s";

      foreach (Match match in Regex.Matches(input, pattern, RegexOptions.IgnoreCase))
         Console.WriteLine($"Match {match.Value} at position {match.Index}");
      // Match 1234  at position 3
      // Match 637373  at position 8

      pattern = @"\d{3,5}?\s";

      foreach (Match match in Regex.Matches(input, pattern, RegexOptions.IgnoreCase))
         Console.WriteLine($"Match {match.Value} at position {match.Index}");
      // Match 1234  at position 3
      // Match 37373  at position 9

    }
}

You can give this code a try at https://try.dot.net/.


feat(option): to restrict the grammar

A parsing expression grammar might be possible. We'd have to track a frontier, so it's best to forbid recursion in the first position.

Grammar restrictions should apply to individual lines of character dialogue because we impose a chatbot format, which is kinda fundamental to the project.

llama.cpp has grammar restrictions now. It's probably better than anything I could do initially. Will give it a look.
Need to get better sxpb parsing first so the grammar can be configured! It's in flight.


Error from scanning the package

Hi OSSF team,
I recently tried the following example:
sudo scripts/run_analysis.sh -ecosystem pypi -package Django

However, I encountered the following error:
-----------------------------------------
Package Details
Ecosystem:                pypi
Package:                  Django
Version:
Location:                 remote
-----------------------------------------
Analysing package

Unable to find image 'gcr.io/ossf-malware-analysis/analysis:latest' locally
docker: Error response from daemon: Get "https://gcr.io/v2/": proxyconnect tcp: dial tcp: lookup www-example-proxy: no such host.
See 'docker run --help'.

-----------------------------------------
Analysis failed

docker process exited with code 125

Ecosystem:                pypi
Package:                  Django
Version:
Location:                 remote

Could you please advise on how to resolve this error?
Thank you.

Hi, sometimes gcr.io can return errors.
I just ran ./scripts/run_analysis.sh -ecosystem pypi -package Django in a GitHub Codespace and it worked successfully.
Can you try again and see if the same error occurs?

Hi @calebbrown, I solved the error when executing your analyzer.
I got the result, but I have a question about how you found the suspicious packages with those results.
Could you share with me the policy for further summarizing those results and detecting the suspicious behavior of those packages?
Thanks in advance.


Audiofeedback at div / button clicked

Is there a way to have audio feedback play when a user clicks on a button?
function playAudio(url)
{
  new Audio(url).play();
}

<img src="image.png" onclick="playAudio('click.mp3')">

https://stackoverflow.com/questions/18826147/javascript-audio-play-on-click

Here is one way you could do it:
import justpy as jp

audio_file_url = 'https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_700KB.mp3'

async def play_audio(self, msg):
    await msg.page.run_javascript(f"""
    new Audio('{audio_file_url}').play();
    """)

def audio_test():
    wp = jp.WebPage()
    jp.Button(text='Play Audio', classes='m-2 '+jp.Styles.button_simple, click=play_audio, a=wp)
    return wp

jp.justpy(audio_test)

Please let me know if this is not what you were looking for.

Works great :)


spacing between social icons

Describe the bug
The text in the "Tags" section and the icons in the "Social" section do not have proper spacing. The tags are displayed without spaces between them, making them difficult to read. Similarly, the social media icons are too close together.
To Reproduce
**Steps to reproduce the behavior:

Go to the section of the website where tags and social media icons are displayed.
Look at the "Tags" section.
Look at the "Social" section and observe that the icons are too close together.**

Screenshots
See attached screenshot for a visual representation of the issue.

The issue has already solved


feat(pino): add ECS tracing fields if APM is in use

Refs: #35

:broken_heart: Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: Pull request #36 opened

Start Time: 2021-01-19T22:25:23.507+0000

Duration: 8 min 39 sec

Commit: 79474651c9205787b45de7b3bf135fdeab6dcc9e

Steps errors
Expand to view the steps failures

Run tests

Took 0 min 18 sec . View more details on here
Description: .ci/run-test.sh

Log output
Expand to view the last 100 lines of log output

[2021-01-19T22:32:50.879Z] File      |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
[2021-01-19T22:32:50.879Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:50.879Z] All files |      100 |      100 |      100 |      100 |                   |
[2021-01-19T22:32:50.879Z]  index.js |      100 |      100 |      100 |      100 |                   |
[2021-01-19T22:32:50.879Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:50.879Z] + run_test loggers/pino
[2021-01-19T22:32:50.879Z] + echo '=== Running loggers/pino test ==='
[2021-01-19T22:32:50.879Z] === Running loggers/pino test ===
[2021-01-19T22:32:50.879Z] + npm --prefix /var/lib/jenkins/workspace/_nodejs_ecs-logging-js-mbp_PR-36/src/go.elastic.co/apm/ecs-logging-js/loggers/pino test
[2021-01-19T22:32:51.139Z]
[2021-01-19T22:32:51.139Z] ><EMAIL_ADDRESS>test
[2021-01-19T22:32:51.139Z] > standard && tap --100 --timeout 5 test/*.test.js
[2021-01-19T22:32:51.139Z]
[2021-01-19T22:32:54.440Z] TAP version 13
[2021-01-19T22:32:57.747Z] ok 1 - test/apm.test.js # time=1033.027ms {
[2021-01-19T22:32:57.747Z]     # Subtest: tracing integration works
[2021-01-19T22:32:57.747Z]         ok 1 - should not error
[2021-01-19T22:32:57.747Z]         ok 2 - apmServerUrl: http://localhost:38907
[2021-01-19T22:32:57.747Z]         ok 3 - should be equal
[2021-01-19T22:32:57.747Z]         ok 4 - first listening log line has "address"
[2021-01-19T22:32:57.747Z]         ok 5 - should not error
[2021-01-19T22:32:57.747Z]         ok 6 - appUrl: http://localhost:44271
[2021-01-19T22:32:57.747Z]         ok 7 - should not error
[2021-01-19T22:32:57.747Z]         ok 8 - logObj is ECS valid
[2021-01-19T22:32:57.747Z]         ok 9 - should be equal
[2021-01-19T22:32:57.747Z]         ok 10 - should be equal
[2021-01-19T22:32:57.747Z]         ok 11 - traceObjs[0] is metadata
[2021-01-19T22:32:57.747Z]         ok 12 - traceObjs[1] is transaction
[2021-01-19T22:32:57.747Z]         ok 13 - traceObjs[2] is span
[2021-01-19T22:32:57.747Z]         ok 14 - trace.id matches
[2021-01-19T22:32:57.747Z]         ok 15 - transaction.id matches
[2021-01-19T22:32:57.747Z]         ok 16 - span.id matches
[2021-01-19T22:32:57.747Z]         ok 17 - empty stderr from app
[2021-01-19T22:32:57.747Z]         ok 18 - app exited 0
[2021-01-19T22:32:57.747Z]         1..18
[2021-01-19T22:32:57.747Z]     ok 1 - tracing integration works # time=1028.411ms
[2021-01-19T22:32:57.747Z]
[2021-01-19T22:32:57.747Z]     1..1
[2021-01-19T22:32:57.747Z]     # time=1033.027ms
[2021-01-19T22:32:57.747Z] }
[2021-01-19T22:32:57.747Z]
[2021-01-19T22:32:57.747Z] ok 2 - test/basic.test.js # time=92.755ms {
[2021-01-19T22:32:57.747Z]     # Subtest: Should produce valid ecs logs
[2021-01-19T22:32:57.747Z]         ok 1 - should be equivalent
[2021-01-19T22:32:57.747Z]         ok 2 - expect truthy value
[2021-01-19T22:32:57.747Z]         1..2
[2021-01-19T22:32:57.747Z]     ok 1 - Should produce valid ecs logs # time=28.716ms
[2021-01-19T22:32:57.747Z]
[2021-01-19T22:32:57.747Z]     # Subtest: Should map "name" to "log.logger"
[2021-01-19T22:32:57.747Z]         ok 1 - should be equivalent
[2021-01-19T22:32:57.748Z]         ok 2 - expect truthy value
[2021-01-19T22:32:57.748Z]         1..2
[2021-01-19T22:32:57.748Z]     ok 2 - Should map "name" to "log.logger" # time=3.548ms
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z]     # Subtest: Should append any additional property to the log message
[2021-01-19T22:32:57.748Z]         ok 1 - should be equal
[2021-01-19T22:32:57.748Z]         ok 2 - expect truthy value
[2021-01-19T22:32:57.748Z]         1..2
[2021-01-19T22:32:57.748Z]     ok 3 - Should append any additional property to the log message # time=2.124ms
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z]     # Subtest: can log non-HTTP res & req fields
[2021-01-19T22:32:57.748Z]         ok 1 - should be equal
[2021-01-19T22:32:57.748Z]         ok 2 - should be equal
[2021-01-19T22:32:57.748Z]         1..2
[2021-01-19T22:32:57.748Z]     ok 4 - can log non-HTTP res & req fields # time=1.896ms
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z]     # Subtest: convertReqRes:true and HTTP req, res
[2021-01-19T22:32:57.748Z]         1..5
[2021-01-19T22:32:57.748Z]         ok 1 - expect truthy value
[2021-01-19T22:32:57.748Z]         ok 2 - expect truthy value
[2021-01-19T22:32:57.748Z]         ok 3 - http.request.method
[2021-01-19T22:32:57.748Z]         ok 4 - http.response.status_code
[2021-01-19T22:32:57.748Z]         ok 5 - user_agent.original
[2021-01-19T22:32:57.748Z]     ok 5 - convertReqRes:true and HTTP req, res # time=23.842ms
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z]     1..5
[2021-01-19T22:32:57.748Z]     # time=92.755ms
[2021-01-19T22:32:57.748Z] }
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z] 1..2
[2021-01-19T22:32:57.748Z] # time=3323.441ms
[2021-01-19T22:32:57.748Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:57.748Z] File      |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
[2021-01-19T22:32:57.748Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:57.748Z] All files |      100 |      100 |      100 |      100 |                   |
[2021-01-19T22:32:57.748Z]  index.js |      100 |      100 |      100 |      100 |                   |
[2021-01-19T22:32:57.748Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:57.765Z] $ docker stop --time=1 4ad19abbf198e032e6fcab6ee2bdd6751a8a5933cd0b484fb858c8b89fb85f47
[2021-01-19T22:32:59.788Z] $ docker rm -f 4ad19abbf198e032e6fcab6ee2bdd6751a8a5933cd0b484fb858c8b89fb85f47
[2021-01-19T22:33:01.482Z] Running on Jenkins in /var/lib/jenkins/workspace/_nodejs_ecs-logging-js-mbp_PR-36
[2021-01-19T22:33:01.623Z] [INFO] getVaultSecret: Getting secrets
[2021-01-19T22:33:01.948Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-01-19T22:33:02.714Z] + chmod 755 generate-build-data.sh
[2021-01-19T22:33:02.715Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/runs/1 FAILURE 458940
[2021-01-19T22:33:03.265Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/runs/1/steps/?limit=10000 -o steps-info.json
[2021-01-19T22:33:03.816Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-01-19T22:33:03.816Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-01-19T22:33:05.160Z] Retry 2/3 exited 22, retrying in 2 seconds...
[2021-01-19T22:33:07.021Z] Retry 3/3 exited 22, no more retries left.
[2021-01-19T22:33:07.021Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/runs/1/log/ -o pipeline-log.txt

:broken_heart: Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: Pull request #36 opened

Start Time: 2021-01-19T22:25:23.507+0000

Duration: 8 min 39 sec

Commit: 79474651c9205787b45de7b3bf135fdeab6dcc9e

Steps errors
Expand to view the steps failures

Run tests

Took 0 min 18 sec . View more details on here
Description: .ci/run-test.sh

Log output
Expand to view the last 100 lines of log output

[2021-01-19T22:32:50.879Z] File      |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
[2021-01-19T22:32:50.879Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:50.879Z] All files |      100 |      100 |      100 |      100 |                   |
[2021-01-19T22:32:50.879Z]  index.js |      100 |      100 |      100 |      100 |                   |
[2021-01-19T22:32:50.879Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:50.879Z] + run_test loggers/pino
[2021-01-19T22:32:50.879Z] + echo '=== Running loggers/pino test ==='
[2021-01-19T22:32:50.879Z] === Running loggers/pino test ===
[2021-01-19T22:32:50.879Z] + npm --prefix /var/lib/jenkins/workspace/_nodejs_ecs-logging-js-mbp_PR-36/src/go.elastic.co/apm/ecs-logging-js/loggers/pino test
[2021-01-19T22:32:51.139Z]
[2021-01-19T22:32:51.139Z] ><EMAIL_ADDRESS>test
[2021-01-19T22:32:51.139Z] > standard && tap --100 --timeout 5 test/*.test.js
[2021-01-19T22:32:51.139Z]
[2021-01-19T22:32:54.440Z] TAP version 13
[2021-01-19T22:32:57.747Z] ok 1 - test/apm.test.js # time=1033.027ms {
[2021-01-19T22:32:57.747Z]     # Subtest: tracing integration works
[2021-01-19T22:32:57.747Z]         ok 1 - should not error
[2021-01-19T22:32:57.747Z]         ok 2 - apmServerUrl: http://localhost:38907
[2021-01-19T22:32:57.747Z]         ok 3 - should be equal
[2021-01-19T22:32:57.747Z]         ok 4 - first listening log line has "address"
[2021-01-19T22:32:57.747Z]         ok 5 - should not error
[2021-01-19T22:32:57.747Z]         ok 6 - appUrl: http://localhost:44271
[2021-01-19T22:32:57.747Z]         ok 7 - should not error
[2021-01-19T22:32:57.747Z]         ok 8 - logObj is ECS valid
[2021-01-19T22:32:57.747Z]         ok 9 - should be equal
[2021-01-19T22:32:57.747Z]         ok 10 - should be equal
[2021-01-19T22:32:57.747Z]         ok 11 - traceObjs[0] is metadata
[2021-01-19T22:32:57.747Z]         ok 12 - traceObjs[1] is transaction
[2021-01-19T22:32:57.747Z]         ok 13 - traceObjs[2] is span
[2021-01-19T22:32:57.747Z]         ok 14 - trace.id matches
[2021-01-19T22:32:57.747Z]         ok 15 - transaction.id matches
[2021-01-19T22:32:57.747Z]         ok 16 - span.id matches
[2021-01-19T22:32:57.747Z]         ok 17 - empty stderr from app
[2021-01-19T22:32:57.747Z]         ok 18 - app exited 0
[2021-01-19T22:32:57.747Z]         1..18
[2021-01-19T22:32:57.747Z]     ok 1 - tracing integration works # time=1028.411ms
[2021-01-19T22:32:57.747Z]
[2021-01-19T22:32:57.747Z]     1..1
[2021-01-19T22:32:57.747Z]     # time=1033.027ms
[2021-01-19T22:32:57.747Z] }
[2021-01-19T22:32:57.747Z]
[2021-01-19T22:32:57.747Z] ok 2 - test/basic.test.js # time=92.755ms {
[2021-01-19T22:32:57.747Z]     # Subtest: Should produce valid ecs logs
[2021-01-19T22:32:57.747Z]         ok 1 - should be equivalent
[2021-01-19T22:32:57.747Z]         ok 2 - expect truthy value
[2021-01-19T22:32:57.747Z]         1..2
[2021-01-19T22:32:57.747Z]     ok 1 - Should produce valid ecs logs # time=28.716ms
[2021-01-19T22:32:57.747Z]
[2021-01-19T22:32:57.747Z]     # Subtest: Should map "name" to "log.logger"
[2021-01-19T22:32:57.747Z]         ok 1 - should be equivalent
[2021-01-19T22:32:57.748Z]         ok 2 - expect truthy value
[2021-01-19T22:32:57.748Z]         1..2
[2021-01-19T22:32:57.748Z]     ok 2 - Should map "name" to "log.logger" # time=3.548ms
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z]     # Subtest: Should append any additional property to the log message
[2021-01-19T22:32:57.748Z]         ok 1 - should be equal
[2021-01-19T22:32:57.748Z]         ok 2 - expect truthy value
[2021-01-19T22:32:57.748Z]         1..2
[2021-01-19T22:32:57.748Z]     ok 3 - Should append any additional property to the log message # time=2.124ms
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z]     # Subtest: can log non-HTTP res & req fields
[2021-01-19T22:32:57.748Z]         ok 1 - should be equal
[2021-01-19T22:32:57.748Z]         ok 2 - should be equal
[2021-01-19T22:32:57.748Z]         1..2
[2021-01-19T22:32:57.748Z]     ok 4 - can log non-HTTP res & req fields # time=1.896ms
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z]     # Subtest: convertReqRes:true and HTTP req, res
[2021-01-19T22:32:57.748Z]         1..5
[2021-01-19T22:32:57.748Z]         ok 1 - expect truthy value
[2021-01-19T22:32:57.748Z]         ok 2 - expect truthy value
[2021-01-19T22:32:57.748Z]         ok 3 - http.request.method
[2021-01-19T22:32:57.748Z]         ok 4 - http.response.status_code
[2021-01-19T22:32:57.748Z]         ok 5 - user_agent.original
[2021-01-19T22:32:57.748Z]     ok 5 - convertReqRes:true and HTTP req, res # time=23.842ms
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z]     1..5
[2021-01-19T22:32:57.748Z]     # time=92.755ms
[2021-01-19T22:32:57.748Z] }
[2021-01-19T22:32:57.748Z]
[2021-01-19T22:32:57.748Z] 1..2
[2021-01-19T22:32:57.748Z] # time=3323.441ms
[2021-01-19T22:32:57.748Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:57.748Z] File      |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
[2021-01-19T22:32:57.748Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:57.748Z] All files |      100 |      100 |      100 |      100 |                   |
[2021-01-19T22:32:57.748Z]  index.js |      100 |      100 |      100 |      100 |                   |
[2021-01-19T22:32:57.748Z] ----------|----------|----------|----------|----------|-------------------|
[2021-01-19T22:32:57.765Z] $ docker stop --time=1 4ad19abbf198e032e6fcab6ee2bdd6751a8a5933cd0b484fb858c8b89fb85f47
[2021-01-19T22:32:59.788Z] $ docker rm -f 4ad19abbf198e032e6fcab6ee2bdd6751a8a5933cd0b484fb858c8b89fb85f47
[2021-01-19T22:33:01.482Z] Running on Jenkins in /var/lib/jenkins/workspace/_nodejs_ecs-logging-js-mbp_PR-36
[2021-01-19T22:33:01.623Z] [INFO] getVaultSecret: Getting secrets
[2021-01-19T22:33:01.948Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-01-19T22:33:02.714Z] + chmod 755 generate-build-data.sh
[2021-01-19T22:33:02.715Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/runs/1 FAILURE 458940
[2021-01-19T22:33:03.265Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/runs/1/steps/?limit=10000 -o steps-info.json
[2021-01-19T22:33:03.816Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-01-19T22:33:03.816Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-01-19T22:33:05.160Z] Retry 2/3 exited 22, retrying in 2 seconds...
[2021-01-19T22:33:07.021Z] Retry 3/3 exited 22, no more retries left.
[2021-01-19T22:33:07.021Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-nodejs/ecs-logging-js-mbp/PR-36/runs/1/log/ -o pipeline-log.txt


Error Event logged before session storage variables are set in outside app

Possibly make the recording of the error async and await the session storage variables?
Could this cause problems if multiple errors occur before the session storage variables (sessionID, history) are set?

create functions that can be called for those vars


Convert config customization delimiter from '_' to '-' for existing Container files

For consistency and general standards when processing CONFIG environment variables (so far only config sections and properties have been encountered which contain ''s -- disrupting '' delimiting), convert all CONFIG '_' delimiting logic to use the '-' instead.

Should currently only affect container-file-geth.


Optimized traversal of schema nodes for schema cleaning

Change Summary
Adds schema tree traversal which gathers necessary schema nodes and information for schema inlining and discriminator handling. Schema tree traversal is done in a single pass gathering the needed information. This is used in GenerateSchema.clean_schema handling. Required for PR https://github.com/pydantic/pydantic/pull/10655 This makes schema cleaning much more efficient where the biggest bottleneck has been the Python side tree traversal. This especially with lots of models or deep models.
Related issue number

See above Pydantic side PR.
Checklist

[x] Unit tests for the changes exist
[x] Documentation reflects the changes where applicable
[x] Pydantic tests pass with this pydantic-core (except for expected changes)
[x] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Needs some tests. Although this has 100% code coverage by GenerateSchema

please review


Session expiration

Hi!
Is there any way to keep the session for a long time (even several days maybe?).
All I can think is to send a message every minute or two, for instance, but perhaps you are using a better way.
Thanks!

It totally depends on your mobile WeChat account behaviour. I'm sorry that i can not give you a positive opinion. Maybe, you should check the expiration situation, and give you a message or anything else.


Profile image updates

Description
Profile image updates:

Use name or username for profile image initials
Option to upload profile image at the profile page

Fixes #4651
Fixes #4650
Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Manually

Checklist:

[ ] My code follows the style guidelines of this project
[ ] 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
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Could be an unrelated issue. For some images the save button seems to go out of view, also it doesn't scroll here to see the button.

Could be an unrelated issue. For some images the save button seems to go out of view, also it doesn't scroll here to see the button.

I'll try and check if we can fix this as a separate issue since it would involve working around uppy's image editor styles

/ok-to-test sha=1f4bdd1

hi @rishabhsaxena the profile images looks fine

/ok-to-test sha=136644e

/ok-to-test sha=123f61e


Add Jason PPP

Codecov Report

Merging #230 (6d5509d) into master (26a1cb1) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #230   +/-   ##
=========================================
  Coverage     77.47%   77.47%
  Complexity      699      699
=========================================
  Files            97       97
  Lines          2198     2198
  Branches        272      272
=========================================
  Hits           1703     1703
  Misses          397      397
  Partials         98       98

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 26a1cb1...6d5509d. Read the comment docs.


Allow admins to Cc: email to Amy site records

A lot of information about workshops is locked up in personal or institutional email accounts.  Rather than expecting everyone to copy that over to Amy, we could allow admins to Cc: an address like<EMAIL_ADDRESS>archive the mail in the appropriate folder on the serve, and make those archives visible through Amy.

Why Cc the site rather than the workshop?  (i.e., why<EMAIL_ADDRESS>rather than 2015-06-01-msu@...)?  Because we often want to start archiving before the dates and slug have been settled, and we want to be able to find previous conversations easily.

Who can send?  We'd have to implement whitelisting of admins' addresses to avoid accumulating spam.

On Thu, May 21, 2015 at 04:10:58PM -0700, Greg Wilson wrote:

<EMAIL_ADDRESS>
Is the idea to use the Mailman API to auto-generate per-site lists and
keep the list-poster config in sync with Amy's admin list?

This is separate from Mailman integration - I just want to be able to
add a Cc to messages that are going out to workshop hosts or instructors
and know that those messages will be visible in an easily-findable place
within Amy.  Amy's just archiving, not forwarding...

On Thu, May 21, 2015 at 07:11:56PM -0700, Greg Wilson wrote:

Amy's just archiving, not forwarding...

I think building an SMTP server into Amy is probably too
feature-creepy ;).  I'd like to have an external SMTP server that's
designed for that purpose and written by someone who understands that
sort of thing, and have our only interaction with it be pushing out
the list of known admins whenever Amy updates a person's admin status
(or adds a new admin).  That could just be “setup a local Postfix
delivering through procmail, and have Amy write the ~/.procmailrc.
But if we are already doing Mailman API manipulation I don't see why
we wouldn't reuse that infrastructure for this task.

I don't think we need an SMTP server - a cron job that looks at the
@amy.software-carpentry.org spool dir and copies messages into an
archive dir every 10 minutes, then adds a DB record with date and
subject will be enough to start.

On Fri, May 22, 2015 at 03:44:22AM -0700, Greg Wilson wrote:

I don't think we need an SMTP server - a cron job that looks at the
@amy.software-carpentry.org spool dir and copies messages into an
archive dir every 10 minutes, then adds a DB record with date and
subject will be enough to start.

And performs the admin-sender filtering while deciding what to copy?
Why not just use Mailman to manage access and serve those archives?

Because as someone who's juggling 30+ workshops at a time, I'd like to
have everything in one place.

On Fri, May 22, 2015 at 10:10:36AM -0700, Greg Wilson wrote:

Because as someone who's juggling 30+ workshops at a time, I'd like
to have everything in one place.

Is that “one archive for all the workshop-related mail” or “one
archive for each workshop” or “searchable in Amy (one UI)”?  It seems
like a link from the Amy workshop to the relevant Mailman archive
would give you what you need in all of those cases.  I don't see what
you could do natively in Amy with just subjects and dates that you
can't do in a Mailman archive.

I can see a list of recent messages on the site's or event's page inside
Amy, which will immediately tell me if there's been recent traffic.

On Fri, May 22, 2015 at 10:50:27AM -0700, Greg Wilson wrote:

I can see a list of recent messages on the site's or event's page
inside Amy, which will immediately tell me if there's been recent
traffic.

It seems like Mailman 3 archives to HyperKitty (which is also written
in Django) [1,2,3].  The installation here 4 is using an API
endpoint 5 to get JSON with a list of message-counts per day for
recent days.  Does that sound like it would cover your use-case?

That could work - nice find.
Thanks,
Greg

On Fri, May 22, 2015 at 11:19:40AM -0700, Greg Wilson wrote:

That could work - nice find.

Research is usually cheaper than development ;).


GHO-7730: address dependabot errors

👻 Ghost Linear Issue
https://linear.app/ghostsecurity/issue/GHO-7730/aws-2-gcp-fix-vulnerabilities
📑 Description (what does this PR add, change, remove)
Dependabot says we have some cryptography and requests library CVEs worth fixing: https://github.com/ghostsecurity/gs-aws-to-gcp-workload-identity/security/dependabot
Let's either update em, or acknowledge a repo that needs archived (aka, not actually used)
✅ Checks

[ ] My pull request adheres to the code style of this project
[ ] My code required changes to the documentation; I've included those changes
[ ] I've added tests to support this change (where applicable)

@bgeesaman I'd appreciate knowing how to test this correctly: if this is still an in-use piece of software.
If we don't need this anymore, I can work on archiving the repo etc.
Happy to go whatever direction makes sense.


Please add link to SonarJS documentation

It seems that SonarJS now supports the import of an eslint result.json:
https://docs.sonarqube.org/display/PLUG/Importing+ESLint+Issues+Reports
I don't know if you want to maintain this plugin further, but it does not seem so. You could help people find the their way to this solution.

Indeed, I will deprecate the plugin now. Thank you for the notice.


Add CityID and CityIDs to word list

🚀 Deployed on https://651de5aead22de7208fb187f--cozy-fox-0defec.netlify.app


Vendor new swarmkit and etcd/raft

This brings in a much newer version of etcd/raft.
An unrelated change in swarmkit should fix some problems with
integration tests on ARM.
cc @tonistiigi

Comparing to https://github.com/coreos/etcd/blob/06e2338108fdc694349aed923f4a7e45cf0cec1f/cmd/Godeps/Godeps.json version for github.com/coreos/pkg seems to have been updated also.

Updated pkg as well.

LGTM

LGTM :cat:


App crash on date click after navigating to other month

I get this error, "Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference
at org.naishadhparmar.zcustomcalendar.CustomCalendar$3.onClick(CustomCalendar.java:275)", when I navigate to the next month and click on a date.

Same here. I encounter the same issue:
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference
at org.naishadhparmar.zcustomcalendar.CustomCalendar$3.onClick(CustomCalendar.java:275)

Same here

Any solution for this?

OnNavigationButtonClickedListener use whichbutton you click after that implement desired view that you want

OnNavigationButtonClickedListener use whichbutton you click after that implement desired view that you want

It would be very nice of you if you share this specific code.

@Override
public Map<Integer, Object>[] onNavigationButtonClicked(int whichButton, Calendar newMonth) {
Map<Integer, Object>[] arr = new Map[2];
    if (whichButton==CustomCalendar.NEXT){
        //  view you want
    }if (whichButton==CustomCalendar.PREVIOUS){
              //  view you want
    }
    return arr;
}

--> call calendar instance to get the current month and implement on view as per your requirement.

I get this error, "Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference at org.naishadhparmar.zcustomcalendar.CustomCalendar$3.onClick(CustomCalendar.java:275)", when I navigate to the next month and click on a date.

I encountered the same issue because i was calling this listener directly without using hashmap or simply i can say without defining properties and setting these to hashmap. I defined one property ("default") ,then this listener worked.

override fun onNavigationButtonClicked(
whichButton: Int,
newMonth: Calendar?
): Array<MutableMap<Int, Any>?> {
val arr = arrayOfNulls<MutableMap<Int, Any>>(2)
    val currentMonth: Month = LocalDate.now().month
    val currentYear: Int = LocalDate.now().year
    if (newMonth != null) {
        if (newMonth.get(Calendar.MONTH)+1>currentMonth.value){
            customeCalander.setNavigationButtonEnabled(CustomCalendar.PREVIOUS,true)
        }else{

            if (newMonth.get(Calendar.YEAR)==currentYear)
            customeCalander.setNavigationButtonEnabled(CustomCalendar.PREVIOUS,false)
            else
                customeCalander.setNavigationButtonEnabled(CustomCalendar.PREVIOUS,true)
        }

    }

    when (newMonth?.get(Calendar.MONTH)) {
        Calendar.JANUARY -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
            arr[1] = null // Optional: This is the map linking a date to its tag.
        }
        Calendar.FEBRUARY -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
            arr[1] = null // Optional: This is the map linking a date to its tag.
        }
        Calendar.MARCH -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
        }
        Calendar.APRIL -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
            arr[1] = null // Optional: This is the map linking a date to its tag.
        }
        Calendar.JULY -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
            arr[1] = null // Optional: This is the map linking a date to its tag.
        }
        Calendar.AUGUST -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
            arr[1] = null // Optional: This is the map linking a date to its tag.
        }
        Calendar.JUNE -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
        }
        Calendar.MAY -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
        }
        Calendar.SEPTEMBER -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
        }
        Calendar.OCTOBER -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
        }
        Calendar.NOVEMBER -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
        }
        Calendar.DECEMBER -> {
            arr[0] = HashMap<Int, Any>().apply {

            }
        }
    }

    return arr

}

try this code...

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
brpandey, @TheoryOfNekomata, @c-soni, @omar-haris, @Jonmiller131313, @guantaiyangxi, @troizet, @lucasxsong, @Edisonhuxi, @MagnusCardell, @anjingxz, @shihp, @luthfianto, @nikolovay, @faizan-khan-iit, @Habu-Kagumba, @BigStar1994123, @Nubuck, @vperilla, @riyapannu7


Chapter 2: Links need to be updated

Hey,
so i found wrong links in Chapter 2: Using Ansible with Vagrant:

Network interface management
Shared folder management
Provisioning
a fix should be removing /index.html

Thanks! I'll be sure to take a look and get them updated.

I've also updated a number of other links that worked, but resulted in a redirect (many were formerly http and are now https). This fix will be in the next revision of the book. Thanks!


[Issue fix/#96] Add missing checks in patch request #96

[x] All PATCH requests MUST use Content-Type: application/offset+octet-stream, otherwise the server SHOULD return a 415 Unsupported Media Type status.

[x] If a PATCH request does not include a Content-Length header containing an integer value larger than 0, the server SHOULD return a 400 Bad Request status.

[x] Test Coverage

@DrudgeRajen can we also make sure that code quality doesn't decrease by many points please.

@DrudgeRajen second point seems invalid now: https://github.com/tus/tus-resumable-upload-protocol/pull/137/files


Path is added after the backend basepath

APIM-CLI version
1.12.3
API-Management version
7.7.20210530
Bug description
Hi,
An error occurred with the APIM-CLI upgrade (version 1.12.3)
When deploying an API, the path used for the front end concatenates with the backend URL, leading to a pathing error.
For example, in this template.txt, the problem occurred during the deployment. After it, when we check on the API Manager, we see that the backend URL service in the "FrontEnd API" tab gives: http://localhost:8080/v1/adminorg/piste/v1/adminorg/ and no longer http://localhost:8080/v1/adminorg/
Is it desired ?
Steps to reproduce
No response
Relevant log output
No response

Hi @GuillaumeJq,
As part of defect https://github.com/Axway-API-Management-Plus/apim-cli/issues/299 we changed backendbasepath handling.
Most cases the backendbasepath should contains protocol and hostname e.g - http://localhost:8080 and basepath will be derived from API specification ( like swagger, openapi or WSDL). If we want to add extra path prefix to existing basepath which is available in API specification then we will add basepath as part of backendbasepath.
Please do let me know if it clarifies your question.


[Question] Does w3o support Crypto.com Defi Wallet? Is it possible to integrate it?

Yeah currently integrating it .. will open PR here soon

@kabaluyot Excellent! Looking forward to it!

PR is up: https://github.com/blocknative/web3-onboard/pull/1499


Attributes_for returns factory instead of list of attributes under Rails 3.2

Hello,
I'm trying to use FactoryGirl 2.3.2 with Rails 3.2.rc1 and I'm getting the following problem:
FactoryGirl.attributes_for :bid returns
#<Bid id: 2, task_id: 145, user_id: 659, price_cents: 20000, currency: "USD", created_at: "2011-12-25 17:01:51", updated_at: "2011-12-25 23:01:51">

instead of
{"user_id"=>"659", "task_id"=>"145", "price"=>"20"}

Bid factory is defined by this way
FactoryGirl.define do
  factory :bid do
    association :user
    association :task

    price 20
  end
end

It seems this behaviour is fixed in master

@deepj I just added testing against Rails 3.2.0.rc2 and fixed a bug in the process (https://github.com/thoughtbot/factory_girl/commit/32ff41ffbe4cf57eb09b008a63e13ccdd7c754bf). With the code you were trying to run, did you end up passing it a block when running the factory? I ask because this is a similar symptom to https://github.com/thoughtbot/factory_girl/commit/4b6ada72cfe551becf13e9e707d1591833379075, which is fixed in master. I'll be pushing out factory_girl 2.4.0 today with the fix to the block usage - if you could try using that against your Rails 3.2 app and let me know how it goes, I'd appreciate it. Thanks!

Hi Joshua,
I don't think that was the problem. I mean the problem with a block. I've tried the version from master and it returns hash as it's expected. Unfortunately, without foreign keys user_id and task_id.
FactoryGirl.attributes_for :bid returns
{:price=>20}

I'd expected the same behavior in old version which returned
{:price=>20, :user_id=>1, :task_id=>1}

@deepj I understand what you're getting at. This was actually discussed here too: https://github.com/thoughtbot/factory_girl/issues/264 - there's definitely some inconsistencies between using attributes_for and the other build strategies. attributes_for is incredibly fast right now, but that's because it doesn't interact with an ORM. This also means that, in the issue I just linked to, there are issues in that the behavior is different if you attempt to interact with that object.
I'm going to close this for now, as it's a known issue and one that we'll look at addressing shortly (I'll be reworking the current strategies as they stand so this'll be on the list of things to address). For now, my suggestion would be to use FactoryGirl.build or FactoryGirl.create and just call attributes on the result, which ActiveRecord should return as a hash.
Let me know if you have any questions and thanks for your patience while we tackle the issue!

Thanks Joshua, your explanation is enough for me.


Value "productType" does not exist in "ShopifyProductFieldsEnum" enum

A fresh install and config with a development shopify store fails 'npm run develop' with the above error

Me too...  I had this working just fine.. and then I added a new vendor on a product in Shopify, an now my site won't  build with a similar error. It affected my local build, the one on Netlify.. and even a fresh install, throws this error.
I think there are fields that are blank, and something is not liking that.


Interoperability fork

Description
Handling hard fork related to contract interoperability feature.
Jira Ticket
SDK-1353
Changes
Added a new fork point for interoperability
Breaking Changes
Checks

[ X] Project Builds
[ X] Project passes tests and checks
[ ] Updated documentation accordingly
[ ] Breaking changes have been correctly tagged and notified

Additional information
The epoch used for the fork point still need to be decided. At the moment a random value is used.

Merged into st/SDK_1434 branch.


Pass an argument to content area

I have a component with the form_for helper:
class EditorComponent < ViewComponent::Base
  with_content_areas :form
end

And I want to pass the f into the form area.

etc

  <%= form_for ... do |f| %>
    <%= form(f)
  <% component.slot(:title) do |some_arg| %>

This is my title! <%= do_something(some_arg) %>

  <% end %>

@bbugh Ah, that's right.
Would it help to be able to access the Slot instance? Is that a good idea?

@joelhawksley Based on @rosendi's demo code and thinking about Rails built-in and third-party form builders, it seems like passing the slot would work and be the simplest answer. The form builder methods could be methods on the slot.
class EditorComponent < ViewComponent::Base
  include ViewComponent::Slotable

  with_slot :form, class_name: "FormBuilder"

  class FormBuilder < ViewComponent::Slot
    def initialize(text_field_class: "")
      @text_field_class = text_field_class
    end

    def input_field(name, value = nil, options = {})
      options[:class] = (options[:class] || "") + @text_field_class
	  text_field_tag(name, value, options)
    end
  end
end

<%= render(Editr.new, ) do |component| %>
  <% component.slot(:form) do |slot| %>
    <%= slot.input_field :field %>
  <% end %>
<% end %>

I can see this being generally useful for putting helper methods in the context where they'd be used.
I'm not sure how that would work though with content, though.
I'm curious if @rosendi thinks this fits their use case.


Add location compatibility code

Compatibility is only applied based on ThingTalk version, not almond-dialog-agent version or other components. Hence, we need to make sure that if some Almond ships with ThingTalk 1.7.3, all other libraries in that install of Almond are ready for it.
Once that is done, we can take care of older versions of ThingTalk (and consequently Almond) by applying simple server-side compatibility code.
This PR is against the master branch, unlike #357, because we don't need to backport it to stable/production until we finally flip the switch in almond-tokenizer (which in turn will require a new version of Genie, so not happening soon)
Fixes #353

Pull Request Test Coverage Report for Build 1168

5 of 31 (16.13%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 62.681%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

nlp/query.js
3
4
75.0%

nlp/compat.js
2
27
7.41%

Totals

Change from base Build 1167:
-0.2%

Covered Lines:
5123

Relevant Lines:
7636

💛  - Coveralls


weird _gdbm error on windows

On vsc, windows, py 3.11.0, case (0,0,0,0), something strange about six and gdbm happens..
Traceback (most recent call last):
  File "F:\Dropbox (Privat)\!TetraPlex\tetraplex\prototype-server\src\tetraplex\main.py", line 1, in <module>
    import use
  File "G:\Python3.11\Lib\site-packages\use\__init__.py", line 194, in <module>
    apply_aspect(use.iter_submodules(use), beartype)
  File "G:\Python3.11\Lib\site-packages\use\aspectizing.py", line 170, in apply_aspect
    call(x)
  File "G:\Python3.11\Lib\site-packages\use\aspectizing.py", line 166, in call
    aspectize(m, decorator, module_name=module_name)
  File "G:\Python3.11\Lib\site-packages\use\aspectizing.py", line 119, in aspectize
    aspectize(obj, decorator, qualname_lst=qualname_lst, module_name=module_name)
  File "G:\Python3.11\Lib\site-packages\use\aspectizing.py", line 111, in aspectize
    obj = getattr(thing, name, None)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\Python3.11\Lib\site-packages\six.py", line 97, in __get__
    result = self._resolve()
             ^^^^^^^^^^^^^^^
  File "G:\Python3.11\Lib\site-packages\six.py", line 120, in _resolve
    return _import_module(self.mod)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\Python3.11\Lib\site-packages\six.py", line 87, in _import_module
    __import__(name)
  File "G:\Python3.11\Lib\dbm\gnu.py", line 3, in <module>
    from _gdbm import *
ModuleNotFoundError: No module named '_gdbm'

+1