Augmented the brew livecheck command with a -r or --resources option to check resources for a given Formulae

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

This PR aims to extend the brew livecheck command to work for resources as well.

I have added an option -r or --resources in brew livecheck command which do a livecheck for resources when given a particular Formulae.
For instance: inside Library/Taps/homebrew/homebrew-core/Formula/influxdb.rb, add the following livecheck block for pkg-config-wrapper resource:
...
resource "pkg-config-wrapper" do
    url "https://github.com/influxdata/pkg-config/archive/refs/tags/v0.2.11.tar.gz"
    sha256 "52b22c151163dfb051fd44e7d103fc4cde6ae8ff852ffc13adeef19d21c36682"

    livecheck do
      url "https://github.com/influxdata/pkg-config/tags"
      regex(%r{href="/influxdata/pkg-config/archive/refs/tags/v(.*).tar.gz"}i)
      strategy :page_match
    end
  end
...

and then run the following command:
brew livecheck influxdb --resources

or
brew livecheck influxdb -r

you will get the resources' information as well (as expected)
influxdb: 2.3.0 ==> 2.3.0
-- pkg-config-wrapper: 0.2.11 ==> 0.2.12
-- ui-assets: 2.1.2 ==> 2.1.2

Also, this PR includes the implementation for resource information in the default, --debug, and --json output for resources (will be needing valuable feedback for this)
brew livecheck influxdb --resources --debug

will give us the below output
Formula:          influxdb
Livecheckable?:       Yes

URL:              https://github.com/influxdata/pkg-config/tags
Strategy:         PageMatch
Regex:            /href="\/influxdata\/pkg-config\/archive\/refs\/tags\/v(.*).tar.gz"/i

Matched Versions:
0.2.12, 0.2.11, 0.2.10, 0.2.9, 0.2.8, 0.2.7, 0.2.6, 0.2.5, 0.2.4, 0.2.3

Resource:          ui-assets
Livecheckable?:    No

URL:              https://github.com/influxdata/ui/releases/download/OSS-2.1.2/build.tar.gz
URL (processed):  https://github.com/influxdata/ui.git
Strategy:         Git

Matched Versions:
r, 2.1.0, 2.1.1, 2.1.2, 9.9.9.test, 2.0.5, 2.0.7, 2.0.8, 2.0.9

influxdb: 2.3.0 ==> 2.3.0
  pkg-config-wrapper: 0.2.11 ==> 0.2.12
  ui-assets: 2.1.2 ==> 9.9.9.test

and
brew livecheck influxdb --resources --json

will output the following
[
  {
    "formula": "influxdb",
    "version": {
      "current": "2.3.0",
      "latest": "2.3.0",
      "outdated": false,
      "newer_than_upstream": false
    },
    "resources": [
      {
        "resource": "pkg-config-wrapper",
        "version": {
          "current": "0.2.11",
          "latest": "0.2.12",
          "newer_than_upstream": false,
          "outdated": true
        }
      },
      {
        "resource": "ui-assets",
        "version": {
          "current": "2.1.2",
          "latest": "9.9.9.test",
          "newer_than_upstream": false,
          "outdated": true
        }
      }
    ]
  }
]

Kindly, do let me know if there's something missing or any further improvement that we can do here.

I have refactored the code for resources in livecheck command. Now, it works for resources without livecheck block (as it should). I have also updated code to get meta information as well (when --json --verbose flags are given for resources). i.e:
brew livecheck influxdb --resources --json --verbose

will now print the following output:
[
  {
    "formula": "influxdb",
    "version": {
      "current": "2.3.0",
      "latest": "2.3.0",
      "outdated": false,
      "newer_than_upstream": false
    },
    "meta": {
      "livecheckable": true,
      "url": {
        "symbol": "stable",
        "original": "https://github.com/influxdata/influxdb.git"
      },
      "strategy": "Git",
      "strategies": [
        "Git",
        "PageMatch"
      ],
      "regex": "/^v?((?!9\\.9\\.9)\\d+(?:\\.\\d+)+)$/i"
    },
    "resources": [
      {
        "resource": "pkg-config-wrapper",
        "version": {
          "current": "0.2.11",
          "latest": "0.2.12",
          "newer_than_upstream": false,
          "outdated": true
        },
        "meta": {
          "url": {
            "original": "https://github.com/influxdata/pkg-config/tags"
          },
          "livecheckable": "Yes",
          "livecheck": {
            "url": {
              "original": "https://github.com/influxdata/pkg-config/tags"
            },
            "strategy": "PageMatch",
            "strategies": [
              "PageMatch"
            ],
            "regex": "/href=\"\\/influxdata\\/pkg-config\\/archive\\/refs\\/tags\\/v(.*).tar.gz\"/i"
          }
        }
      },
      {
        "resource": "ui-assets",
        "version": {
          "current": "2.1.2",
          "latest": "9.9.9.test",
          "newer_than_upstream": false,
          "outdated": true
        },
        "meta": {
          "url": {
            "original": "https://github.com/influxdata/ui/releases/download/OSS-2.1.2/build.tar.gz",
            "processed": "https://github.com/influxdata/ui.git"
          },
          "livecheckable": "No"
        }
      }
    ]
  }
]

Also, I have updated bash, zsh and fish completions for brew livecheck command to incorporate --resources flag.
Now, I am looking into the tests which needs to be updated due to this update in brew livecheck command.

Now, I am looking into the tests which needs to be updated due to this update in brew livecheck command.

Update: I have updated the tests for brew livecheck (for the methods that I modified during this PR), and verified locally by running:
brew tests --only=livecheck/livecheck

and
brew tests --only=livecheck/livecheck_version

As per my discussion with @nandahkrishna, I have removed the usage of use_homebrew_curl for resources (in resource_version method) because in Resource class, :url is of type String and we can't do something like resource.send(:url).using == :homebrew_curl (unlike for e.g: when defined, in Formula, :stable or :head are of type SoftwareSpec, which enable us to do something like formula.send(:stable).using == :homebrew_curl).
I think for the time being, livecheck for resources can work without use_homebrew_curl. If needed, we may need to extend Resource class in the future to accommodate this functionality.
Do let me know if you have a better suggestion for this.

I'm taking some time to test this and go through the code in detail, so I'll hopefully post my comments by tonight (ET).

I'm also pinging Sam to review this when they can, as they may be able to spot something that I've missed in my review.

I ran out of time tonight but I'll try to take another pass through this tomorrow evening (EDT).

After verifying and testing locally the changes suggested by @nandahkrishna and @samford, I have updated this PR. Now, we account for skip livecheck blocks for resources.
For instance: inside Library/Taps/homebrew/homebrew-core/Formula/influxdb.rb, add the following livecheck block for pkg-config-wrapper resource:
...
  resource "pkg-config-wrapper" do
    url "https://github.com/influxdata/pkg-config/archive/refs/tags/v0.2.11.tar.gz"
    sha256 "52b22c151163dfb051fd44e7d103fc4cde6ae8ff852ffc13adeef19d21c36682"

    livecheck do
      skip "No longer actively developed"
    end
  end
...

and then run the following command:
brew livecheck influxdb -r

you will get the see the SkipConditions.print_skip_information will work as expected:
influxdb: 2.4.0 ==> 2.4.0
  pkg-config-wrapper: skipped - No longer actively developed
  ui-assets: 2.4.0 ==> 2022-09-01

and after running:
brew livecheck influxdb -rj

you will get the json output in the following manner:
[
  {
    "formula": "influxdb",
    "version": {
      "current": "2.4.0",
      "latest": "2.4.0",
      "outdated": false,
      "newer_than_upstream": false
    },
    "resources": [
      {
        "resource": "pkg-config-wrapper",
        "status": "skipped",
        "messages": [
          "No longer actively developed"
        ]
      },
      {
        "resource": "ui-assets",
        "version": {
          "current": "2.4.0",
          "latest": "2022-09-01",
          "newer_than_upstream": false,
          "outdated": true
        }
      }
    ]
  }
]

Also as suggested, if the formula somehow results in error when the -r resource flag is given, it will still show the output for resources:
Error: influxdb: Unable to get versions
  pkg-config-wrapper: 0.2.11 ==> 0.2.12
  ui-assets: 2.4.0 ==> 2022-09-01

and the json output is:
[
  {
    "formula": "influxdb",
    "status": "error",
    "messages": [
      "Unable to get versions"
    ],
    "meta": {
      "livecheckable": true
    },
    "resources": [
      {
        "resource": "pkg-config-wrapper",
        "version": {
          "current": "0.2.11",
          "latest": "0.2.12",
          "newer_than_upstream": false,
          "outdated": true
        },
        "meta": {
          "url": {
            "original": "https://github.com/influxdata/pkg-config/tags"
          },
          "livecheckable": true,
          "livecheck": {
            "url": {
              "original": "https://github.com/influxdata/pkg-config/tags"
            },
            "strategy": "PageMatch",
            "strategies": [
              "PageMatch"
            ],
            "regex": "/href=\"\\/influxdata\\/pkg-config\\/archive\\/refs\\/tags\\/v(.*).tar.gz\"/i"
          }
        }
      },
      {
        "resource": "ui-assets",
        "version": {
          "current": "2.4.0",
          "latest": "2022-09-01",
          "newer_than_upstream": false,
          "outdated": true
        },
        "meta": {
          "url": {
            "original": "https://github.com/influxdata/ui/releases/download/OSS-Master/build.tar.gz",
            "processed": "https://github.com/influxdata/ui.git"
          },
          "livecheckable": false
        }
      }
    ]
  }
]

Lastly, if the resource latest version is not found (if the latest version is blank for resource):
influxdb: 2.4.0 ==> 2.4.0
  pkg-config-wrapper: 0.2.11 ==> 0.2.12
  ui-assets: Unable to get versions

and the json output is:
[
  {
    "formula": "influxdb",
    "version": {
      "current": "2.4.0",
      "latest": "2.4.0",
      "outdated": false,
      "newer_than_upstream": false
    },
    "resources": [
      {
        "resource": "pkg-config-wrapper",
        "version": {
          "current": "0.2.11",
          "latest": "0.2.12",
          "newer_than_upstream": false,
          "outdated": true
        }
      },
      {
        "resource": "ui-assets",
        "status": "error",
        "messages": [
          "Unable to get versions"
        ]
      }
    ]
  }
]

There is only one issue that I am currently running into, and it's about Cyclomatic complexity for run_checks method. I am not sure how I can reduce the complexity any further since I have tried to minimise the checks and conditions wherever possible.
Offenses:

Library/Homebrew/livecheck/livecheck.rb:173:5: C: Cyclomatic complexity for run_checks is too high. [83/80]
    def run_checks( ...
    ^^^^^^^^^^^^^^^

1110 files inspected, 1 offense detected

Kindly, do let me know if there is something missing or any further improvement that we can do here.

I tested this PR on a couple of formulae like go and I'm not sure we're quite there yet. Here's the output:

Upon debugging, this happened when we don't have any strategy for a Formula's resource. For e.g: For go's resource gobootstrap (I ran the following):
brew lc go -rd

you will see that
...
Resource:         gobootstrap
Livecheckable?:   No

URL:              https://storage.googleapis.com/golang/go1.16.darwin-amd64.tar.gz
Strategy:         None
...

this tells that we don't have any strategy for gobootstrap resource.
However, I have made the changes and now you should get an expected output:
brew lc go -r

will result in
go: 1.19.1 ==> 1.19.1
  gobootstrap: Unable to get versions

and
brew lc go -rj

will yield
[
  {
    "formula": "go",
    "version": {
      "current": "1.19.1",
      "latest": "1.19.1",
      "outdated": false,
      "newer_than_upstream": false
    },
    "resources": [
      {
        "resource": "gobootstrap",
        "status": "error",
        "messages": [
          "Unable to get versions"
        ]
      }
    ]
  }
]

I was able to reproduce this with influxdb by adding a livecheck block with an invalid/unreachable URL, or a regex that doesn't match any version text (e.g. /(alpha-beta-gamma-delta)/i).

This was another issue, but now it's being handled as well.

The failing tests here are a known issue (discussed on Slack) and unrelated to the changes made in this PR. We can merge once the issue is fixed.

As discussed, this feature is still far from complete and the code definitely needs to be refactored, but we can take care of this after GSoC ends (I'm very eager to contribute to this!).

Thank you @samford and @nandahkrishna for your valuable feedbacks. I would very much like to take part in code refactoring as well (after GSoC) and keep contributing to Homebrew code base (esp. livecheck module).

The issue seems fixed, so I'll be merging this.


update type for DrawerLayoutAndroid drawerPosition prop

Constants Left and Right are no longer defined, the prop accepts either "left" or "right" as string.

Quite recent, only as of 0.61.0.

Ok I missed that in RN 0.61 release notes. Merging & will cut a release tomorrow with all the latests stuff


remove linebreak after IMG

is it possible to remove linebreak after IMG?
See my blog page as an example, http://guangchuangyu.github.io/douban/
Thanks!

One solution is to use table, and I did.

Thanks for getting in touch, but it feels like this is a question that would be better suited to the Hugo Discussion Forum. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.


Prometheus Recording Rules API

Summary
Basic API support for loading/caching the configured prometheus recording rules. Currently is limited to LoadRecordingRules() and HasRecordingRule(name string). This implementation can be queried and cached early, and can act as a diagnostic for failed queries.

This code can be replaced by the use of Prometheus.API.Rules implementation.

This code can be replaced by the use of Prometheus.API.Rules implementation.


Add better support for "state simulation"

See comments in #98
We can add an OP_CODESEPARATOR between the constructor args and the bytecode. This should make it easier to make "state simulated" contracts. Since then OP_ACTIVEBYTECODE would always be the "base" bytecode, and we could add the "new" state in front of that.
Example syntax (for a contract with name ExampleContract):
bytes34 output = new OutputP2SH(bytes8(1000), hash160(new ExampleContract(tx.locktime + 100, 1000)));

Then the compiled output for new ExampleContract(tx.locktime + 100, 1000) will be something like this:
<VarInt> <1000> OP_CAT <VarInt> <tx.locktime + 100> OP_CAT OP_CAT OP_ACTIVEBYTECODE OP_CAT

We just need to figure out whether we can dynamically determine the VarInts and how to do that.

Now that CashTokens are live, I think the best way to do most state simulation is through NFT commitments. So I'll close this issue.


Add a tool in module at pbs nodes

I would like to install GNU parallel which i already installed in Master node and want to install it in all the nodes I take ( via batch submission)? I guess module can do that if i set GNU parallel in module? Any suggestion is appreciated. Here is a conf file I used to create cluster. Thank you
[aws]
aws_region_name = us-east-1
[cluster default]
key_name = mykey
vpc_settings = public
base_os = alinux
initial_queue_size = 0
max_queue_size = 15
scheduler = torque
master_instance_type = c5n.xlarge
compute_instance_type = c5n.18xlarge
cluster_type = spot
scaling_settings = custom
placement_group = DYNAMIC
ebs_settings = tfs
[scaling custom]
scaledown_idletime = 10
[vpc public]
vpc_id = vpc-cxxxxxx
master_subnet_id = subnet-cxxxxx
[ebs tfs]
volume_type = st1
volume_size = 800
[global]
cluster_template = default
update_check = true
sanity_check = true
[aliases]
ssh = ssh {CFN_USER}@{MASTER_IP} {ARGS}

Hi,
you can install additional software via Custom Bootstrap Actions.

parallel --embed maybe?


User cannot control order of picklist items

For picklists, the documentation states Add the items in the order you want them to appear in the list..  This does not appear to be correct.  No matter what order items are added to the list, they are always presented alphabetically.  For example, adding the values "High", "Medium" and "Low" (in that order) results in a pick list with entries in this order: "High", "Low", "Medium", which is counter-intuitive.  Presumably they are being sorted alphabetically ascending and presented as such.  I don't know if this is a bug in the software or a mistake in the documentation.

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

ID: 89a8f6f1-da40-5a76-6336-dc04ad779d85
Version Independent ID: 1c39c3fe-aa40-c8d7-d52a-3f4d967cbaa5
Content: Add and manage fields to an inherited process - Azure DevOps Services
Content Source: docs/organizations/settings/work/customize-process-field.md
Product: devops
Technology: devops-agile
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

I guess a simple workaround would be to prefix each entry with a number to get the sort order you want, e.g. "1 - High", "2 - Medium", "3 - Low".  I see that this is how the Severity field is presented for a Bug in the Agile process.

@prlcutting - Thank you for your inquiry. This is a mistake in the documentation, which I will correct. The workaround you note is how we currently get around the limitation. The scenario you outline is on the product backlog. It should ship within the next could of months.

@kathrynee Is there a link to a work item you can send me please to track progress on this enhancement for users to control the order of items in a picklist?

@KathrynEE - Could you please provide a status update on when we will be able to manually control the order of items (i.e. not just alphabetical), or perhaps point us to a work item that we can follow to monitor progress?  In June you mentioned that functionality would be shipping in a couple of months.  We're now in November and it doesn't appear that it is available yet.  Thanks.

This still seems like an issue. I don't want to have to prefix my picklist options. Any updates on when we will be able to reorder the options please?

@mdressman, @prlcutting - This feature has shipped and the article updated to reflect the updates. See this release note: https://docs.microsoft.com/en-us/azure/devops/release-notes/2019/sprint-149-update#state-value-order-on-work-item-form.  It was shipped for on-prem with Azure DevOps Server 2019 Update 1, https://docs.microsoft.com/en-us/azure/devops/server/release-notes/azuredevops2019u1?view=azure-devops#state-value-order-on-work-item-form.

@KathrynEE, do you happen to know when this feature will be available for custom pick list fields in Azure DevOps Services?

@tbeavers - Hello. The feature to order the custom picklist isn't on the Roadmap.  You may want to suggest it as a new feature on our Developer Community page.

I recently created an extension that lets you order the items. It may fit your needs.
https://marketplace.visualstudio.com/items?itemName=njpaul.ordered-dropdown


⚠ Roblox Site has degraded performance

In 60a12d9, Roblox Site (roblox.com) experienced degraded performance:

HTTP code: 200
Response time: 2951 ms

Resolved: Roblox Site performance has improved in 40c1dc5 after 44 minutes.


Question ! Using with Nuxt

@williamcruzme thanks for super cool lib. I wonder where should I put
const { data: permissions } = await axios.get('/api/permissions');
const { data: roles } = await axios.get('/api/roles');

this.$laravel.setPermissions(permissions);
this.$laravel.setRoles(roles);

while working with Nuxt?
Thanks in advance.

@muscle-rhnkyr Thank you very much for your comment!
These days I will work on the support for Nuxt.js. I'll keep you informed right here.
Greetings.

@muscle-rhnkyr I have published a new version 1.3.0 that includes support with Nuxt.js perfectly.
In the README.md you can find the instructions for the installation 🍻
This code should be put once you log in to get your permissions and roles. So when they are redirected you would only show the desired content.
// Login
// ...

const { data: permissions } = await axios.get('/api/permissions');
const { data: roles } = await axios.get('/api/roles');

this.$laravel.setPermissions(permissions);
this.$laravel.setRoles(roles);

Do not forget to create the endpoints!

@williamcruzme thanks for this! Now my question is when I set it up as you explain it and use with nuxt auth module
async login() {
        this.$nuxt.$loading.start()
        this.loading = false
        try {
          await this.$auth.loginWith('local', {
            data: {
              email: this.email,
              password: this.password,
            },
          }).then(async () => {
            const { data: permissions } = await this.$axios.get('/api/permissions')
            const { data: roles } = await this.$axios.get('/api/roles')

            await this.$laravel.setPermissions(permissions)
            await this.$laravel.setRoles(roles)
          })
        } catch (e) {
          this.$nuxt.$loading.finish()
          this.loading = true
          this.error = e.response
        }
      },

the think is when I use somewhere in another partial * template it seems it does not work. When I try console.log(this.$laravel.getRoles()) in that template's mounted method returns empty array. I am sure end point returns data.

left-menu.vue

`

  <nuxt-link class="app-brand-text demo sidenav-text font-weight-normal ml-2" :to="'/'+role+'/'">

  </nuxt-link>

< script >
export default {
mounted () {
  console.log(this.$laravel.getRoles())
},

computed: {

  role() {
    return this.$auth.user.role
  },
},

}
< /script >`

@muscle-rhnkyr Permissions and roles are lost when you refresh the website. Is your website SPA or MPA?

It is SPA.

Thank you for your patience. I have published a new release (1.4.0) that has the option to persist the permissions and roles that you establish.
Greetings.

Hey @williamcruzme . Thank you for that!!! Now works like a charm. Cheers.

@williamcruzme thanks a lot for this library. Was facing the same issue, but it's fine now.

@elsopi Thanks for your feedback!

@williamcruzme for some reason, my app is no longer running properly and it started after adding persistence property.
This is the error message i get
VM3497:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0     at JSON.parse (<anonymous>)     at Object.install (vendors.app.js:56617)     at Function.Vue.use (commons.app.js:16578)     at Module../plugins/libs.js (app.js:11830)     at __webpack_require__ (runtime.js:791)     at fn (runtime.js:151)     at Module../.nuxt/index.js (app.js:3773)     at __webpack_require__ (runtime.js:791)     at fn (runtime.js:151)     at Module.<anonymous> (app.js:1969)

@elsopi Make sure that at the moment you use the setPermissions and setRoles functions, the parameter value is not undefined.

Thank you for your patience. I have published a new release (1.4.0) that has the option to persist the permissions and roles that you establish.
Greetings.

bro, where can i set option to persist to permissions and roles


Work with rabbit library

What? and Why?

What does this pull request change/fix? Why was it necessary?

Changes to tx_id in headers to work properly with rabbit library.
Checklist

[x] CHANGELOG.md updated? (if required)

Codecov Report

Merging #51 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #51      +/-   ##
==========================================
+ Coverage   98.73%   98.73%   +<.01%
==========================================
  Files           8        8
  Lines         315      316       +1
==========================================
+ Hits          311      312       +1
  Misses          4        4

Impacted Files
Coverage Δ

app/response_processor.py
97.67% <100%> (+0.02%)
:arrow_up:

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 a5983c4...4e9cbe0. Read the comment docs.

 Fix bug in sdx-collect that causes tx_ids to not be sent to receipt_rrm


elocrypt-0.3.1 can't compile its test suite

Citing from http://hydra.cryp.to/build/853000/nixlog/2/raw:
Preprocessing test suite 'test' for elocrypt-0.3.1...

test/Tests.hs:6:18:
    Could not find module ‘Test.ElocryptTest’
    Use -v to see a list of the files searched for.

test/Tests.hs:7:18:
    Could not find module ‘Test.Elocrypt.TrigraphTest’
    Use -v to see a list of the files searched for.

How exactly is this being built?  I can't find a way to reproduce that failure

Download the release archive from Hackage and compile that one. It's missing those modules mentioned above.

Potential fix: http://hackage.haskell.org/package/elocrypt-0.3.2/candidate

Yes, the new version compiles fine.

Fixed here:  http://hackage.haskell.org/package/elocrypt-0.3.2


Select Startup Project shows none

Describe the bug
When trying to scaffold a db context it asks for the Startup Project which does not exist in the new templates.
To Reproduce
Steps to reproduce the behavior:

Create new Console App or ASP.net Core app
Go to Tools -> Entity Framework Core -> Scaffold DbContext

There will be no startup project in the new projects.
Expected behavior
Should let you select a startup project
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS: MacOS
.NET SDK info (installed ones and version used within Rider): 6.0.1
Rider version: 2022.2

"Startup project" refers to --startup-project value passed to the dotnet ef command line tool, not Startup class.
In this field you should select a project that contains reference to Microsoft.EntityFrameworkCore.Design (or .Tools).
I assume that in your case it's an ASP.NET Core app project that you are building.
Please read EF Core tools documentations for more details.


Using class and ng-class together

Hello,
Here I am facing a problem when applying regular element class and ng-class together. In my code ng-class css property depends upon a controller variable whose value changes for every iteration in ng-repeat. The main issue is that for two or more values of  'dependent' variable appearing successively,  ng-class property doesn't applies to first value.


Create and test path_*()

Signature: path_*() -> path:
Context: See diagram in the Core Python functions post.
Note: * covers all path functions in the Path functions section in the post.

(Ignore the two closed branches. Due to the unstable internet connection at Steno yesterday and today, there were some mess ups in creating the branch and PR for this issue)


Enabled visualization does not show up in notebooks

Hello,
just installed the 0.8.0 snapshot of Zeppelin with Helium, and enabled volume-leaflet on the Helium page. Even though I load geospatial data successfully in a notebook, I don't see a visualization button enabling me to display the volume-leaflet visualization.
This is running on Ubuntu 14.04 in a VM accordingly to the default instructions for installing Zeppelin 0.8.0. I also tried two browsers (Chrome, Firefox) to no avail.
Regards,
Georges

I've noticed that the browser likes to cache the javascript that generates those buttons.  I've had to hit ctrl-F5 in firefox to force the browser to reload the notebook page to get newly installed helium module buttons to show up.

Hi,
thanks for your answer! unfortunately, that does not work either. Seems to
be a specific helium issue on zeppelin version 0.8.0, I've opened a ticket
on the Zeppelin project page.
regards,
Georges
On Mon, Jun 19, 2017 at 3:05 PM, volumeint<EMAIL_ADDRESS>wrote:

I've noticed that the browser likes to cache the javascript that generates
those buttons. I've had to hit ctrl-F5 in firefox to force the browser to
reload the notebook page to get newly installed helium module buttons to
show up.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/volumeint/helium-volume-leaflet/issues/4#issuecomment-309433356,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQGUoZipEfjI9gL5Q9vKX8leedJqd4Dwks5sFnIAgaJpZM4N7OP3
.

Issue solved in Zeppelin - closing issue here.
https://github.com/apache/zeppelin/pull/2421
https://issues.apache.org/jira/browse/ZEPPELIN-2656
Georges


Error starting trace: System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired.

This is an awesome tool.  We have been using it for a while now and it is really helping us in our CI/CD efforts.   We have several databases that are local and SQL Cover works very well.  Other databases are remote and we get timeout errors when it is trying to start the SQL trace.   Is there a way to change the SQL timeout?  It appears to default to 30 seconds.
Here is the snippet of code we are using to call SQL Cover:
$connection = New-Object System.Data.SqlClient.SqlConnection
$connection.ConnectionString = "server=our_server;database=our_database;integrated security=SSPI;"
Add-Type -Path D:\SQLCover\SQLCover\SQLCover.dll
$coverage = new-object SQLCover.CodeCoverage($connection.ConnectionString, $connection.Database, $true, $true)

    ######## This is where it times out. #######
$status = $coverage.Start();
    #########################

    #Execute the unit tests here  (using VSTest)

    $coverageResults = $coverage.Stop()

Thank you for a great product!

I'll include a fix in the next release :)

Timeouts are configurable as of 0.5.0 - you can include "Connect Timeout=xx" in the connection string and Start(int timeout = 30) accepts a timeout in seconds and defaults to 30 seconds.
https://github.com/GoEddie/SQLCover/releases/tag/0.5.0

Thank you so much!
Stefanie Vario
Data Architect – Application Development
[MOTOR]http://motor.com/
MOTOR Information Systems
1301 W. Long Lake Road, Suite 300 | Troy, MI 48098
[MOTOR]http://motor.com/  [Facebook] http://facebook.motor.com/   [Twitter] http://twitter.motor.com/   [LinkedIn] http://linkedin.motor.com/   [YouTube] http://youtube.motor.com/
From: Ed Elliott<EMAIL_ADDRESS>Sent: Tuesday, October 15, 2019 5:27 PM
To: GoEddie/SQLCover<EMAIL_ADDRESS>Cc: Vario, Stefanie<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [GoEddie/SQLCover] Error starting trace: System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. (#39)
Timeouts are configurable as of 0.5.0 - you can include "Connect Timeout=xx" in the connection string and Start(int timeout = 30) accepts a timeout in seconds and defaults to 30 seconds.
https://github.com/GoEddie/SQLCover/releases/tag/0.5.0https://urldefense.com/v3/__https:/github.com/GoEddie/SQLCover/releases/tag/0.5.0__;!SxXtNzbPoJo!2uCrRIwyTmJdAIDyCTWoCaTrk-d2AGPvabRfvT-UtbvKRazXSAO5Hy-hWhoh$
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/GoEddie/SQLCover/issues/39?email_source=notifications&email_token=ALVF6ZMHWSL23CDXNEC2KDLQOYYRDA5CNFSM4HA3Q2B2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBKIZSI*issuecomment-542411977__;Iw!SxXtNzbPoJo!2uCrRIwyTmJdAIDyCTWoCaTrk-d2AGPvabRfvT-UtbvKRazXSAO5H-EjN01W$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ALVF6ZNUYEQWVJKNIGKEVLLQOYYRDANCNFSM4HA3Q2BQ__;!SxXtNzbPoJo!2uCrRIwyTmJdAIDyCTWoCaTrk-d2AGPvabRfvT-UtbvKRazXSAO5H9M1X2_U$.


style(Modal): Update modal styles

Overview

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: [ABC-123]
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change
[ ] This PR includes testing instructions tests for the code change
[ ] The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions

Don't make me tap the sign.
PR Links and Envs

Repository
PR Link
PR Env

Monolith
Monolith PR
Monolith Env

Portal
Portal Link
Portal Env

Another Repo
Another Link
Another Env

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.342-alpha.7a4a7a.0@codecademy/gamut-labs@35.15.15-alpha.7a4a7a.0@codecademy/gamut@55.3.2-alpha.7a4a7a.0@codecademy/styleguide@66.1.26-alpha.7a4a7a.0


Error setting up Homegear for hahm

DONT'T DELETE THIS.
Please answer all questions as good as possible.
Make sure you have read the documentation at https://github.com/danielperna84/custom_homematic#custom_homematic.
Make sure you are running the latest version of hahomematic or it's custom_component (and Home Assistant) before reporting an issue.
custom_component/hahomematic version (if applicable):
1.0.3
Home Assistant version (if applicable):
2022.3.8
CCU version:

Model: Raspberry Pi 4
OS: Raspbian Bulls Eye
Homegear via Docker
Version:

Problem-relevant configuration:
Do you use tls? no
Do you use callback? yes
Do you use username and password? no
Which interfaces do you use? only Homematic RF
Describe the bug
Home Assistant does not succeed in setting up the integration.
To Reproduce
Steps to reproduce the behavior:

Install and configure the integration

Screenshots (if applicable)
Relevant HA log entries (full log)
Error setting up entry Homegear for hahm

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/hahm/__init__.py", line 27, in async_setup_entry
    await control.async_start()
  File "/config/custom_components/hahm/control_unit.py", line 104, in async_start
    await self._central.start()
  File "/usr/local/lib/python3.9/site-packages/hahomematic/central_unit.py", line 213, in start
    await self._start_clients()
  File "/usr/local/lib/python3.9/site-packages/hahomematic/central_unit.py", line 221, in _start_clients
    await self._init_hub()
  File "/usr/local/lib/python3.9/site-packages/hahomematic/central_unit.py", line 384, in _init_hub
    await self._hub.fetch_data()
  File "/usr/local/lib/python3.9/site-packages/hahomematic/hub.py", line 227, in fetch_data
    await self._update_hub_state()
  File "/usr/local/lib/python3.9/site-packages/hahomematic/hub.py", line 232, in _update_hub_state
    value = 0 if service_messages is None else int(service_messages)
ValueError: invalid literal for int() with base 10: ''

Diagnostic Information (available on every device)

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

You are the first one with Homegear after 6 Month testing!
What is the content of Sysvar Servicemeldungen? Does it exist?

I wonder about this log line: Error setting up entry Homegear for hahm
The integration has been renamed with 1.0.0 to homematicip_local.
Did follow the migration plan?

Yeah, I know, Homegear isn't very common. I discovered it because I had a mixed setup of MAX! and Homematic devices - and MAX! can be used perfectly fine with Homegear. Now that I've replaced all MAX! devices, I would still like to use Homegear.
No, sorry, I didn't notice this change. It doesn't make a difference, though.
I have no idea where I can find Sysvars in Homegear. I know that service messages are available and that Homegear plays well with homematic-manager and all service messages are reported correctly there. This is a completely fresh Homegear installation, I don't know if that makes a difference.

OK, I found out how to get all system variables in Homegear:
$ docker exec -it homegear homegear -e rc 'print_r($hg->getAllSystemVariables());'
Array
(
    [homegearStartTime] =><PHONE_NUMBER>
    [socketPath] => /var/run/homegear/
)

So no, Servicemeldungen is not defined.

You can get the service messages with the following Python code:
from xmlrpc.client import ServerProxy
p = ServerProxy("http://<IP_ADDRESS>:2001") # Use the IP of Homegear here
p.getServiceMessages()

That being said, I have noticed something odd here with Debmatic. When using port 2010 for HmIP I get [['0001D3C...:3', 'UNREACH', True]], but on port 2001 I get the empty string '' instead of an empty list. That matches the error message you are seeing. I also don't see the Message for the HmIP device in the Debmatic UI, which is even more confusing. I even don't see that device ID in my devconfig list. So I wonder where that is coming from. 🤔

Now it's getting interesting: On Port 2001 I receive an empty list. Since port 2010 is not open, I just get "Connection Refused" (I only enabled port 2001 in the device configuration and I can confirm that this setting is stored correctly):
>>> from xmlrpc.client import ServerProxy
>>> p = ServerProxy('http://<IP_ADDRESS>:2001')
>>> p.getServiceMessages()
[]

However: Since it's returning an empty list, it shouldn't crash, right!?

This one is more relevant:
from xmlrpc.client import ServerProxy
p = ServerProxy('http://<IP_ADDRESS>:2001')
p.getSystemVariable("Servicemeldungen")

I guess it returns ""

Please retest with 1.0.4

Looks good, the integration starts now - thanks for the quick support!


Fixed not descending the right side of the tree

Hi,
I think I spotted a bug in the overlap code.
I think that if the algorithm thinks that there's a matching interval in the left branch, it doesn't look in the right branch, but it seems like that's an invalid assumption.
Not 100% sure what test is needed to catch this failure.

I now see it's also not getting total test coverage... I'll fix that, see if I can add a test that fails for the scenario you describe, and try your fix.

I've produced a test which fails with the code as is, but I've found a problem with this fix as well, depending on expected behavior.
Do you expect an interval of 0-2 to be matched on an overlap search from 2-5? I suspect so; that is how the single value search behaves. Alternatively, I could add an inclusive parameter which defaults to true.

Yeah, I'd expect intervals to be 'closed' so yeah 0-2 would be returned searching for 2-5.

Brilliant! thanks.

Sorry, just got around to testing this with my production code.
Sorry to say that there's a bug!

In the overlap algorithm we do:
if (node.right && node.right.low <= end) {
  overlaps.push(...this.overlap(begin, end, node.right));
}

But, the node.right.low is just the low value of the right node, not the minimum of the subtree of that node, whereas the max is a maximum of the subtree.

And I can confirm that computing the min as we insert nodes, and then checking against that, works.

Gah, trying to construct a test case...it sort of looks like it should work, but doesn't with my (huge) dataset.


more on method parameters

should give syntax error,
CLASS bar DEFINITION.
  PUBLIC SECTION.
    METHODS run.
    METHODS call IMPORTING bar TYPE i.
ENDCLASS.

CLASS bar IMPLEMENTATION.
  METHOD call.
    RETURN.
  ENDMETHOD.

  METHOD run.
    call( ).
  ENDMETHOD.
ENDCLASS.

CHANGING, should give syntax error,
CLASS bar DEFINITION.
  PUBLIC SECTION.
    METHODS run.
    METHODS call CHANGING bar TYPE i.
ENDCLASS.

CLASS bar IMPLEMENTATION.
  METHOD call.
    RETURN.
  ENDMETHOD.

  METHOD run.
    call( ).
  ENDMETHOD.
ENDCLASS.

writing to importing parameters should be an error (unless they are by value)

@FreHu yea, open as a separate issue?


Minor bug with included synchronous memory write test

While writing up the asynchronous memory tests, I noticed in the normal memory unit test the "store and load words" test is using the MemoryUnitReadTester when it seems that it should be using MemoryUnitWriteTester.
I corrected this in deyahruhd/dinocpu@55fbcc9e55d7b29dbaf8b33ac3b0584c5a268633 but the test failed when executed:
[info] [0.000] SEED<PHONE_NUMBER>079
[info] [0.012] EXPECT AT 257   io_imem_instruction got 355 expected 100 FAIL
[info] [0.012] EXPECT AT 257   io_dmem_readdata got 355 expected 100 FAIL
[info] [0.013] EXPECT AT 258   io_imem_instruction got 355 expected 101 FAIL
[info] [0.013] EXPECT AT 258   io_dmem_readdata got 355 expected 101 FAIL
[info] [0.013] EXPECT AT 259   io_imem_instruction got 355 expected 102 FAIL
[info] [0.013] EXPECT AT 259   io_dmem_readdata got 355 expected 102 FAIL
...
[info] [0.060] EXPECT AT 766   io_imem_instruction got 355 expected 609 FAIL
[info] [0.060] EXPECT AT 766   io_dmem_readdata got 355 expected 609 FAIL
[info] [0.060] EXPECT AT 767   io_imem_instruction got 355 expected 610 FAIL
[info] [0.060] EXPECT AT 767   io_dmem_readdata got 355 expected 610 FAIL
[info] [0.060] EXPECT AT 768   io_imem_instruction got 355 expected 611 FAIL
[info] [0.060] EXPECT AT 768   io_dmem_readdata got 355 expected 611 FAIL
test DualPortedMemory Success: 2 tests passed in 773 cycles in 0.061594 seconds 12549.95 Hz
[info] [0.060] RAN 768 CYCLES FAILED FIRST AT CYCLE 257
[info] MemoryTester:
[info] DualPortedMemory
[info] - should have all zeros (with treadle)
[info] DualPortedMemory
[info] - should have increasing words (with treadle)
[info] DualPortedMemory
[info] - should store and load words (with treadle) *** FAILED ***
[info]   false was not true (MemoryUnitTest.scala:95)

It couldn't possibly be the memory module or else we would've had lots of problems involving writing to memory during WQ19, so it must be the unit test itself. Right now I'm working on fixing it but I didn't expect the test to just flat out fail, which is why I'm writing up this issue in advance.

Fixed it in deyahruhd/dinocpu@7ef8a17e326416cd5a3059fdc8dd5ce1740885b8. I found out that if a wire is poked with a certain value it retains that value for the rest of the test until it's updated with something new.
After the write portion of the test memwrite was set to 1 and writedata to 355, meaning that on the read test the test was simultaneously reading and overwriting the values in memory to 355, which explains why the majority of the tests fail by encountering a value of 355. Poking memwrite to be false before the reads fixes the issue.
I'll include the commits for this bug fix in the PR for the asynchronous memory module once I've verified that it works.

The fix looks good to me. You could remove some of the extraneous changes (e.g., changing i to j), but it's not a big deal either way.
BTW, try not to combine multiple "fixes" into a single PR. It'll be easier to track things and review things if each fix has its own PR. This is a very small fix, so I could see it going either way. However, I like to err on the side of more PRs.


How to distinguish different types of rooms

I added several devices and found them all in the same room.
How to distinguish different types of rooms?
Tks.

This is no issue with the server code. That‘s something the client side has to do.
If your client is the Apple home app, you are able to set the room in the accessory settings (deep press and settings).

I did it as you said. When you set a room type for one device, all other devices are the same type
Please kindly help check the code to fix the issue. Tks .
void hap_object_init(void* arg)
{
void* accessory_object = hap_accessory_add(a);
struct hap_characteristic cs[] = {
{HAP_CHARACTER_IDENTIFY, (void*)true, NULL, identify_read, NULL, NULL},
{HAP_CHARACTER_MANUFACTURER, (void*)MANUFACTURER_NAME, NULL, NULL, NULL, NULL},
{HAP_CHARACTER_MODEL, (void*)MODEL_NAME, NULL, NULL, NULL, NULL},
{HAP_CHARACTER_NAME, (void*)ACCESSORY_NAME, NULL, NULL, NULL, NULL},
{HAP_CHARACTER_SERIAL_NUMBER, (void*)"0123456789", NULL, NULL, NULL, NULL},
{HAP_CHARACTER_FIRMWARE_REVISION, (void*)"1.0", NULL, NULL, NULL, NULL},
};
hap_service_and_characteristics_add(a, accessory_object, HAP_SERVICE_ACCESSORY_INFORMATION, cs, ARRAY_SIZE(cs));
struct hap_characteristic cc[] = {
{HAP_CHARACTER_ON, (void*)led, NULL, led_read, led_write, led_notify},
};
hap_service_and_characteristics_add(a, accessory_object, HAP_SERVICE_SWITCHS, cc, ARRAY_SIZE(cc));
struct hap_characteristic temperature_sensor[] = {
    {HAP_CHARACTER_CURRENT_TEMPERATURE, (void*)temp, NULL, temp_read, NULL, temp_notify},
    {HAP_CHARACTER_NAME, (void*)"Temp" , NULL, NULL, NULL, NULL},
    hap_service_and_characteristics_add(a , accessory_object, HAP_SERVICE_TEMPERATURE_SENSOR, temperature_sensor, ARRAY_SIZE(temperature_sensor));

struct hap_characteristic humidity_sensor[] = {
{HAP_CHARACTER_CURRENT_RELATIVE_HUMIDITY, (void*)humidity, NULL, _humidity_read, NULL, _humidity_notify},
{HAP_CHARACTER_NAME, (void*)"HYGROMETER" , NULL, NULL, NULL, NULL},
};
hap_service_and_characteristics_add(a , accessory_object, HAP_SERVICE_HUMIDITY_SENSOR, humidity_sensor, ARRAY_SIZE(humidity_sensor));
...............

@simonlou99
How about distinguish by name?

I wanted to add a lot of devices, but I found them all in the same room type in the apple homekit app, and if I change one room type, the other devices change with it. The equipment is always in the same room.
You can add more than one device and test it out.

Do you want put every room sensons on single esp32?

You already did.
You add many services with  characteristics at single esp32.


Bump kube to 0.78.0 and k8s-openapi to 0.17.0. Bump k8s version

Review Checklist

[ ] Code contains useful comments
[ ] (Integration-)Test cases added (or not applicable)
[ ] Documentation added (or not applicable)
[ ] Changelog updated (or not applicable)
[ ] Cargo.toml only contains references to git tags (not specific commits or branches)

Once the review is done, comment bors r+ (or bors merge) to merge. Further information

bors r+


2005 player issues

Hi, there are some issues on the early/mid 2005 players and i thought i will get them on your attention
-on early 2005 the scrubber doesnt work
-on mid 2005 the scrubber doesnt work, the share button doesnt work, and you cant replay the video at the end
I made a video showing off these issues - https://www.youtube.com/watch?v=j7XWmeOhCBU
Hope you find a fix in the future :)

both early and mid 2005 require an l parameter for seeking. an update is coming later today so i can add that param alongside it.
for mid2005, the share button opens a popup leading to /share (not implemented), other than that, if you're experiencing issues with fullscreen button, you can apply some patched up code:
FULLSCREEN
find the function calling openFull, and import the code from 2006 with some minor changes. your function should end up looking like this:
popup.onRelease = function()
{
   if(_root.fs)
   {
      Stage.displayState = "normal";
      _root.fs = false;
   }
   else if(Stage.displayState != undefined)
   {
      if(Stage.displayState == "fullScreen")
      {
         Stage.displayState = "normal";
      }
      else
      {
         Stage.displayState = "fullScreen";
         _root.fs = true;
      }
   }
   else
   {
      getURL("javascript:openFull()","");
      movie.pause();
   }
};

the replay button just seems to be a hit and miss. sometimes it works, sometimes it doesn't.

both early and mid 2005 require an l parameter for seeking. an update is coming later today so i can add that param alongside it.
for mid2005, the share button opens a popup leading to /share (not implemented), other than that, if you're experiencing issues with fullscreen button, you can apply some patched up code:
FULLSCREEN find the function calling openFull, and import the code from 2006 with some minor changes. your function should end up looking like this:
popup.onRelease = function()
{
   if(_root.fs)
   {
      Stage.displayState = "normal";
      _root.fs = false;
   }
   else if(Stage.displayState != undefined)
   {
      if(Stage.displayState == "fullScreen")
      {
         Stage.displayState = "normal";
      }
      else
      {
         Stage.displayState = "fullScreen";
         _root.fs = true;
      }
   }
   else
   {
      getURL("javascript:openFull()","");
      movie.pause();
   }
};

the replay button just seems to be a hit and miss. sometimes it works, sometimes it doesn't.

Thanks! Looking forward to the update, also the code you provided to fix the fullscreen works perfectly

Thanks, the scrubber works now


Determine whether special filters necessary, and re-implement some if still desired

These implementations are currently broken. If they're determined to be necessary, they need to be re-implemented. Otherwise, they should be removed from the docs.

person search

[ ] member_of
[ ] ever_member_of

bill search

[ ] chamber
[ ] session
[ ] jurisdiction_id

vote search

[ ] jurisdiction_id
[ ] chamber
[ ] session

event search

[ ] jurisdiction_id
[ ] participants_id

all objects

[ ] external IDs

+1 for member_of I could really use that.
event search, jurisdiction_id seems like it does work.


ElasticSearch Storage Backend Failed to create index

Hi,
this is a part of my docker-compose file. I am running an elasticsearch with 3 nodes:
 jaegertracing-collector:
    environment:
      - SPAN_STORAGE_TYPE=elasticsearch
    networks:
      - default
    image: jaegertracing/jaeger-collector
    entrypoint: /go/bin/collector-linux --es.server-urls=http://<IP_ADDRESS>:9200,http://<IP_ADDRESS>:9200,http://<IP_ADDRESS>:9200 --span-storage.type=elasticsearch --log-level=debug

  jaegertracing-agent:
    environment:
      - SPAN_STORAGE_TYPE=elasticsearch
    networks:
      - default
    image: jaegertracing/jaeger-agent
    entrypoint: /go/bin/agent-linux --collector.host-port=jaegertracing-collector:14267

  jaegertracing-query:
    environment:
      - SPAN_STORAGE_TYPE=elasticsearch
    networks:
      - default
    ports:
      - "16686:16686"
    image: jaegertracing/jaeger-query
    entrypoint: /go/bin/query-linux --es.server-urls=http://<IP_ADDRESS>:9200,http://<IP_ADDRESS>:9200,http://<IP_ADDRESS>:9200 --span-storage.type=elasticsearch --log-level=debug --query.static-files=/go/jaeger-u$

The jaeger collector is throwing the following error:
":"error","ts":1516358331.2152708,"caller":"app/span_processor.go:103","msg":"Failed to save span","error":"Failed to create index: elastic: Error 400 (Bad Request): [logs] is defined as an object in mapping [span] but this name is already used for a field in other types [type=illegal_argument_exception]","errorVerbose":"elastic: Error 400 (Bad Request): [logs] is defined as an object in mapping [span] but this name is already used for a field in other types [type=illegal_argument_exception]\nFailed to create index\ngithub.com/jaegertracing/jaeger/plugin/storage/es/spanstore.(*SpanWriter).logError\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/es/spanstore/writer.go:194\ngithub.com/jaegertracing/jaeger/plugin/storage/es/spanstore.(*SpanWriter).createIndex\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/es/spanstore/writer.go:150\ngithub.com/jaegertracing/jaeger/plugin/storage/es/spanstore.(*SpanWriter).WriteSpan\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/es/spanstore/writer.go:127\ngithub.com/jaegertracing/jaeger/cmd/collector/app.(*spanProcessor).saveSpan\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:102\ngithub.com/jaegertracing/jaeger/cmd/collector/app.(*spanProcessor).(github.com/jaegertracing/jaeger/cmd/collector/app.saveSpan)-fm\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:89\ngithub.com/jaegertracing/jaeger/cmd/collector/app.ChainedProcessSpan.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/model_consumer.go:32\ngithub.com/jaegertracing/jaeger/cmd/collector/app.(*spanProcessor).processItemFromQueue\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:126\ngithub.com/jaegertracing/jaeger/cmd/collector/app.NewSpanProcessor.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:57\ngithub.com/jaegertracing/jaeger/pkg/queue.(*BoundedQueue).StartConsumers.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/pkg/queue/bounded_queue.go:65\nruntime.goexit\n\t/home/travis/.gimme/versions/go1.9.linux.amd64/src/runtime/asm_amd64.s:2337","stacktrace":"github.com/jaegertracing/jaeger/cmd/collector/app.(*spanProcessor).saveSpan\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:103\ngithub.com/jaegertracing/jaeger/cmd/collector/app.(*spanProcessor).(github.com/jaegertracing/jaeger/cmd/collector/app.saveSpan)-fm\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:89\ngithub.com/jaegertracing/jaeger/cmd/collector/app.ChainedProcessSpan.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/model_consumer.go:32\ngithub.com/jaegertracing/jaeger/cmd/collector/app.(*spanProcessor).processItemFromQueue\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:126\ngithub.com/jaegertracing/jaeger/cmd/collector/app.NewSpanProcessor.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:57\ngithub.com/jaegertracing/jaeger/pkg/queue.(*BoundedQueue).StartConsumers.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/pkg/queue/bounded_queue.go:65"}
{"level":"error","ts":1516358331.373291,"caller":"spanstore/writer.go:193","msg":"Failed to create index","trace_id":"ec19dddfb067d0ce","span_id":"ec19dddfb067d0ce","error":"elastic: Error 400 (Bad Request): [logs] is defined as an object in mapping [span] but this name is already used for a field in other types [type=illegal_argument_exception]","stacktrace":"github.com/jaegertracing/jaeger/plugin/storage/es/spanstore.(*SpanWriter).logError\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/es/spanstore/writer.go:193\ngithub.com/jaegertracing/jaeger/plugin/storage/es/spanstore.(*SpanWriter).createIndex\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/es/spanstore/writer.go:150\ngithub.com/jaegertracing/jaeger/plugin/storage/es/spanstore.(*SpanWriter).WriteSpan\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/es/spanstore/writer.go:127\ngithub.com/jaegertracing/jaeger/cmd/collector/app.(*spanProcessor).saveSpan\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:102\ngithub.com/jaegertracing/jaeger/cmd/collector/app.(*spanProcessor).(github.com/jaegertracing/jaeger/cmd/collector/app.saveSpan)-fm\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:89\ngithub.com/jaegertracing/jaeger/cmd/collector/app.ChainedProcessSpan.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/model_consumer.go:32\ngithub.com/jaegertracing/jaeger/cmd/collector/app.(*spanProcessor).processItemFromQueue\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:126\ngithub.com/jaegertracing/jaeger/cmd/collector/app.NewSpanProcessor.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/app/span_processor.go:57\ngithub.com/jaegertracing/jaeger/pkg/queue.(*BoundedQueue).StartConsumers.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/pkg/queue/bounded_queue.go:65"}

Do i need to prepare the elasticsearch in any way?

No configuration is required. Still the same error?

@cheveyo20 can you please confirm Jaeger version you are using? It's a version command jaeger-binary version

I've also seen this error using ES 6.1.2 and Jaeger 1.1.0.

@japgolly note that ES 6.x is not supported at the moment.

Ok i could solve it with downgrading to Elasticsearch 5.2.1
It seems that 5.6.3 is conflicting with the collector

is there any solution for this? we're using 5.6.3 as well and jaeger is failing to create the index.

@danielbenzvi I wasn't able to reproduce this issue. Would it be possible to share a reproducer?

@kevinearls do you want to try to reproduce this one? Looks like different people are affected.

@jpkrohling  Sure, I can try.

@danielbenzvi @cheveyo20 @japgolly were you able to solve this problem? I was not able to reproduce this locally. I will close this as it is quite old and probably related to user environment. Please comment if the issue is still there.
Based on the log message from the first comment I guess ES contained span type in other indexes


Update LAB_04L01_Implement_and_manage_AVD_profiles_ADDS.md

Module: 00
Lab/Demo: 00
Fixes # .
Changes proposed in this pull request:

Submitted by ParamRamki on behalf of MOC Labs Review

Pls resubmit this PR in the manner that does not introduce conflicts.
Pls refrain from hardcoding line numbers into markdown
rgds
Marcin

Thank you for the feedback. Closing this PR as line numbers were the only change.


Bertong revert new changes

draft PR to see if these tests borked the live tests

/azp run python - communication - tests

/azp run python - communication - tests

/azp run python - communication - tests


How can I know where is 10th plus node?

Report error:
Error in operator _plus10: [19:53:35] src/operator/nn/./../tensor/../elemwise_op_common.h:135: Check failed: assign(&dattr, vec.at(i)): Incompatible attr in node _plus10 at 1-th input: expected [100,1,3], got [1,100,3]
Where can I find the _plus10? Is there any debug tools?
If I can find the corresponding symbol, I can correct it simply with mx.sym.reshape. But how can I find it?

‘MXNET_ENGINE_TYPE=NaiveEngine python xxx.py’ enable MXNet to execute operators synchronously in single thread. It can be used to debug.

Thanks.


plugin: unknown plugin type: apiKey

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
use the file from here
and did kubectl apply -f apiKey.yaml
What did you see instead?
logs show
time="2023-05-26T10:21:28Z" level=error msg="plugin: unknown plugin type: apiKey" entryPointName=websecure routerName=xxxxx

What version of Traefik are you using?
traefik helmfile chart 23.0.1
What is your environment & configuration?
logs:
  general:
    level: DEBUG
  access:
    enabled: true
ports:
  websecure:
    tls:
      enabled: true
providers:
  kubernetesIngress:
    publishedService:
      enabled: true
ingressRoute:
  dashboard:
    enabled: false

If applicable, please paste the log output in DEBUG level
No response

Hello,
this documentation is about Traefik Enterprise, then it doesn't work with Traefik.


Add more schema search paths when importing schemas

These extra schema search paths are all the paths we currently add schemas to in the node addon. This PR resolves a long-standing bug where importing a schema results in us being potentially unable to find any of its referenced schemas. This bug was hidden by the fact that most of our iModels already contained the referenced BisCore schema (version 01.00.00) in PresentationRules.ecschema. Since PresentationRules.ecschema now references a newer version of the BisCore schema (01.00.15) which our iModels (atleast the seed files in presentation tests) didn't have, this bug showed up. Even though the BisCore schema at version 01.00.15 was packaged in the node addon, it was unable to be found when importing the PresentationRules schema, because we've never told the schemaLocaters to look in the /Assets/ECSchemas/Dgn folder.

Description doesn't say why we (all of a sudden?) need extra schema search paths.

Description doesn't say why we (all of a sudden?) need extra schema search paths.

Added a description

concurrent query tests
query timeout:
TypeError: conn.concurrentQueryResetConfig is not a function
at Function.resetConfig (lib/test/ECDb.test.js:50:14)
at Context. (lib/test/ECDb.test.js:65:31)
concurrent query tests
query max memory:
TypeError: conn.concurrentQueryResetConfig is not a function
at Function.resetConfig (lib/test/ECDb.test.js:50:14)
at Context. (lib/test/ECDb.test.js:75:31)
concurrent query tests
restart query:
TypeError: conn.concurrentQueryResetConfig is not a function
at Function.resetConfig (lib/test/ECDb.test.js:50:14)
at Context. (lib/test/ECDb.test.js:85:31)

Pipeline is failing on linux consistently with above errors... I had no idea where this code was coming from but eventually found it in another separate PR. https://github.com/iTwin/imodel-native/pull/27/files#diff-1b3e816a4682088f9339353dd0ba72959f47a64e6923bd79e26f6a2e78e11b1b
Maybe something wrong with the particular agent? BuildMinion08L-B is where it failed all 3 times. @chuckkir any ideas there?

I have PR https://github.com/iTwin/itwinjs-core/pull/4667 that add those new functions. But it's on branch.


Add HtmlButtonElement to html_elements mod

Related yew issue
I'm trying to add type attribute to button element, but it is looks like there is no ButtonElement.
What do you think about adding ButtonElement ?
I'm not aware of the project, so if there is a workaround how to use Button element, please share with me.

@koute @Pauan Could you please take a look on these changes?

@captain-yossarian I don't have write permission, so only @koute can merge things.

@Pauan Can you do a code review?


Specify UTC time zone for the test suite

The controller.bar/not-grouped/on-time test was failing on my computer because the date ranges happen to cross the end of Daylight Saving Time in the U.S., so chart's X axis was generated with one more hour of time than the test fixture expected.
Using moment-timezone to specify a fixed time zone with no DST seemed like the most robust fix. (Alternatively, I could pick a date range that doesn't change DST; that ought to work.)

Needs a rebase for the package-lock changes in the v3.6.2 PR

Rebased. Thanks.


Azure Portal Cosmos DB Data Explorer throwing resource not found error

Describe the bug
The comos db data explorer in the Azure portal returns a "resource not found error" when trying to update/delete a record it has returned from a collection. It also throws the error intermittently when clicking on a record to view it
To Reproduce
Attempt to open/update/delete any of the records returned after clicking the "documents" link under a collection in the data explorer
Expected behavior
Document opens/updates/is deleted successfully
Actual behavior
"Resource not found" dialog box displayed
Errors thrown in the console as follows
Failed to read document 69db02ca-d14c-ed04-72df-2036be6c48b9: {"code":404,"body":"{"code":"NotFound","message":"Message: {\"Errors\":[\"Resource Not Found\"]}
Failed to update document 69db02ca-d14c-ed04-72df-2036be6c48b9: {"code":404,"body":"{"code":"NotFound","message":"Message: {\"Errors\":[\"Resource Not Found\"]}

@declanmc This repo is for the Cosmos DB .NET SDK.
But the behavior you describe means that the documents are being deleted in the collection inbetween they are listed in the panel.
Either your collection has TTL set and it's expiring the documents or your documents have a "ttl" property setting expiry, or some process / app is deleting them.
The Azure Portal queries for the documents for the list and if they appear there it's because they existed at that time, when you click on one, it does the read request for that particular document. If the document was deleted, then receiving a 404 is correct.
If you have more questions please send your account information to askcosmosdb{at}microsoft.com.


Rename DFINITY LLC to DFINITY Stiftung

Motivation
Rename the copyright's organization.
Changes

Change DFINITY LLC to DFINITY Stiftung.

Tests
Not necessary.
Todos

[ ] Add entry to changelog (if necessary). Not necessary.

@frederikrothenberger @LXIF please review


Unable to include the same component file in preDestructiveChanges.xml and package.xml

Summary
When attempting to delete and re-deploy the same component as part of a single deployment, component is included only in the preDestructiveChanges.xml file.
This scenario should be valid and is useful, when we want to change what value set picklist field uses when we accidentally deployed the field with wrong value set. If we try to deploy field with changed value set we get following error: Cannot change which global value set this picklist uses.. However if we delete the field first and then deploy it again, we will not get any errors.
Steps To Reproduce

Create following files:
force-app/main/default/globalValueSets/Value_Set_1.globalValueSet-meta.xml

<?xml version="1.0" encoding="UTF-8"?>
<GlobalValueSet xmlns="http://soap.sforce.com/2006/04/metadata">
    <customValue>
        <fullName>Value 1</fullName>
        <default>false</default>
        Value 1
    </customValue>
    <customValue>
        <fullName>Value 2</fullName>
        <default>false</default>
        Value 2
    </customValue>
    <customValue>
        <fullName>Value 3</fullName>
        <default>false</default>
        Value 3
    </customValue>
    <masterLabel>Value Set 1</masterLabel>
    <sorted>false</sorted>
</GlobalValueSet>

force-app/main/default/globalValueSets/Value_Set_2.globalValueSet-meta.xml
<?xml version="1.0" encoding="UTF-8"?>
<GlobalValueSet xmlns="http://soap.sforce.com/2006/04/metadata">
    <customValue>
        <fullName>Value 4</fullName>
        <default>false</default>
        Value 4
    </customValue>
    <customValue>
        <fullName>Value 5</fullName>
        <default>false</default>
        Value 5
    </customValue>
    <customValue>
        <fullName>Value 6</fullName>
        <default>false</default>
        Value 6
    </customValue>
    <masterLabel>Value Set 2</masterLabel>
    <sorted>false</sorted>
</GlobalValueSet>

force-app/main/default/objects/Account/fields/My_Picklist__c.field-meta.xml
<?xml version="1.0" encoding="UTF-8" ?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>My_Picklist__c</fullName>
    <externalId>false</externalId>
    My Picklist
    <required>false</required>
    <trackFeedHistory>false</trackFeedHistory>
    <trackHistory>false</trackHistory>
    <type>Picklist</type>
    <valueSet>
        <restricted>true</restricted>
        <valueSetName>Value_Set_1</valueSetName>
    </valueSet>
</CustomField>

Deploy provided files to the org.
Update force-app/main/default/objects/Account/fields/My_Picklist__c.field-meta.xml to use Value_Set_2.
Try to deploy the field and see Cannot change which global value set this picklist uses. error.
Create following manifest files:
preDestructiveChanges.xml

<?xml version="1.0" encoding="UTF-8" ?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Account.My_Picklist__c</members>
        <name>CustomField</name>
    </types>
    <version>60.0</version>
</Package>

package.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Account.My_Picklist__c</members>
        <name>CustomField</name>
    </types>
    <version>60.0</version>
</Package>

Run following CLI command: SF_MDAPI_TEMP_DIR=mdapiout sf project deploy start --dry-run --pre-destructive-changes preDestructiveChanges.xml --manifest package.xml

Expected result

Package generated in mdapiout should have Account.My_Picklist__c field included in the objects/Account.object file.
Package generated in mdapiout should have Account.My_Picklist__c field included in the package.xml file.

Actual result

Package generated in mdapiout does has only destructiveChangesPre.xml and package.xml files without any metadata components.
Package generated in mdapiout has empty package.xml file.

System Information
{
  "architecture": "darwin-x64",
  "cliVersion"<EMAIL_ADDRESS>  "nodeVersion": "node-v18.16.1",
  "osVersion": "Darwin 22.6.0",
  "rootPath": "/Users/filiprafalowicz/.nvm/versions/node/v18.16.1/lib/node_modules/@salesforce/cli",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.9 (core)",
    "@oclif/plugin-commands 3.1.4 (core)",
    "@oclif/plugin-help 6.0.13 (core)",
    "@oclif/plugin-not-found 3.0.11 (core)",
    "@oclif/plugin-plugins 4.2.5 (core)",
    "@oclif/plugin-search 1.0.16 (core)",
    "@oclif/plugin-update 4.1.13 (core)",
    "@oclif/plugin-version 2.0.12 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.12 (core)",
    "@oclif/plugin-which 3.1.0 (core)",
    "@salesforce/cli 2.30.8 (core)",
    "apex 3.0.25 (core)",
    "auth 3.3.13 (core)",
    "data 3.1.1 (core)",
    "deploy-retrieve 3.2.16 (core)",
    "dev 1.1.8 (user)",
    "info 3.0.27 (core)",
    "limits 3.1.10 (core)",
    "marketplace 1.0.25 (core)",
    "org 3.3.14 (core)",
    "packaging 2.1.10 (core)",
    "schema 3.1.3 (core)",
    "settings 2.0.27 (core)",
    "signups 1.4.31 (user)",
    "sobject 1.1.13 (core)",
    "source 3.1.15 (core)",
    "telemetry 3.1.13 (core)",
    "templates 56.0.16 (core)",
    "trust 3.3.10 (core)",
    "user 3.2.11 (core)",
    "@salesforce/sfdx-scanner 3.18.0 (user)",
    "lightning-flow-scanner 2.17.0 (user)",
    "sfdmu 4.30.0 (user)",
    "sfdx-git-delta 5.27.0 (user)"
  ]
}

Thanks for the detailed report!  This behavior was done intentionally because we couldn't think of a case where this would be desired, and if you really wanted to do it you could just run 2 commands; first to delete it, followed by the deploy.  However, it's a valid action and it should be possible to support it.

Thanks for the detailed report! This behavior was done intentionally because we couldn't think of a case where this would be desired, and if you really wanted to do it you could just run 2 commands; first to delete it, followed by the deploy. However, it's a valid action and it should be possible to support it.

Glad to hear this is going to be supported.
In the past we've had to use this trick to deploy something. I don't recall the exact details now but it had something to do with a Visualforce component,  an Apex controller for that component and an email template referencing that Visualforce component. We were trying to change some property on the controller but the dependency on the VF component and/or email template was resulting in some kind of deployment error, even when we included all the components in the package.xml manifest for deployment.
The workaround was the use destructiveChangesPre.xml to remove those components, in that pre deployment phase and then have the package.xml redeploy the newer version of the components and this resulted in a single atomic deployment, rather than having to split it into 2 deployment operations (delete and deploy).

Fixed in version 2.35.6.


Need a update

Hi
Don't work anymore need update thx

@GonZ70, I've already published the new cheat version, check you the 'releases' tab.
Star the repository, so you won't miss any future cheat updates.

@GonZ70, I've already published the new cheat version, check you the 'releases' tab.
Star the repository, so you won't miss any future cheat updates.

Nice :) works fine thx

Nice :) works fine thx

@GonZ70 you are welcome, thanks for the donation

@GonZ70 you are welcome, thanks for the donation


article.title returns correct title when title and site_name are same

Adds a condition in extractors/title.py to check equality of site_name
and title before replacing site_name with empty spaces.

Closes #123

Closing the issue for #126


Redirects Not Being Followed

If the initial URL is a redirect, the code does not follow this.  Instead it appears to simply look at the initial response and try to find the search text in that.

Added code to resolve the final URL for any redirects.


Testing issue

I'm trying to run the tests using your guide, indeed solved the first module issue, but then, this issue came up:
https://github.com/Esri/jsapi-resources/issues/403

Closed via https://github.com/andygup/angular-jsapi-jest/pull/2


disabled status in toggle component give angular warning

There's a warning when using the disabled attribute when using formcontrols
Now when not adding this directive but doing it via the control as recommended. It doesn't work , even if the formcontrol is DISABLED, the input element is not. So i have to use this [disabled]
It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true
      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for
      you. We recommend using this approach to avoid 'changed after checked' errors.

      Example:
      form = new FormGroup({
        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),
        last: new FormControl('Drew', Validators.required)
      });

any news on this ?

So the issue here is that the reactive forms .disable method isn't propagating the state to the control?

So the issue here is that the reactive forms .disable method isn't propagating the state to the control?


Configurable enum encoding/decoding

Hi there,
would it be possible to configure the type an enum will be encoded/decoded, e.g. forcing a certain enum to be encoded into an u8 instead of u32? This point is interesting to me for the reason of high performance applications, in which it matters if you have to transfer 4 bytes of data or only 1...
u32/usize encoding as a default for enums seems to me a very good solution in regular applications, where performance doesn't matter, but for a few enum definitions in my code, such an opportunity would be awesome.
Kind regards,
Michael

@michaeleberhardt310 we recently merged a varint configuration mode that will automatically compress numbers in PR #306. This will be published in the next release of bincode.


feature request-ubuntu 22.04 LTS supported

ubuntu 20.04 LTS (Focal Fossa) will EOL at Apr 2025, will it support ubuntu22.04 compatibility tests and os-pkgs offline package builds?

I have the same need.

We encourage more developers to join in and contribute to expanding offline support for various Linux distributions.
Based on Ubuntu 22.04, online deployment should be supported.
If you are interested in making adaptations for offline scenarios, please refer to these files:

https://github.com/kubean-io/kubean/blob/main/build/os-packages/Dockerfile.ubuntu2004
https://github.com/kubean-io/kubean/blob/main/build/os-packages/packages.yml#L71
https://github.com/kubean-io/kubean/blob/main/build/os-packages/check_rebuild_pkgs.sh#L43
https://github.com/kubean-io/kubean/blob/main/build/os-packages/README.md?plain=1#L12
https://github.com/kubean-io/kubean/blob/main/.github/workflows/call-os-pkgs-build.yaml#L34
https://github.com/kubean-io/kubean/blob/main/artifacts/import_iso.sh

We've noticed that kubean seems to have support for ubuntu 22.04, but after our testing, ubuntu 22.04 os-pkgs is missing the ipset package

(Even though I can see the deb package for ipset in the os-pkgs file, I still can't do apt search ipset or apt install ipset)
Additionally, I have a question regarding issues opened in this repository. Despite not being resolved, they are marked as stale after a certain period and automatically closed. This behavior seems somewhat like turning a blind eye to the problem.


Add schema.sql

In this pull request, we added the following:

Create a schema.sql file with tables that will be analogical to the structure of the classes in your app. As you cannot implement inheritance in the database tables - add all properties and associations from the parent Item class as table columns to all tables based on the child classes. Thanks to that it can be used to store data in the future.

👍


v5: opt-out focus control

Part of what is required for accessibility is properly attaching focus to elements (tabs should then focus on tab content, modals on modal body, etc).  This should exist by default but I think it should be opt-out via a data-attribute.
data-bs-no-focus="true" and the component initialization will avoid shifting focus.

Why on earth would someone break components' accessibility on purpose?

@ffoodd You may want to control focus to go elsewhere.


Fix QuerySplitter to not loose query parts

The QuerySplitter overwrote previous query parts it found.
In a query like:
t1.a = 10 and (t2.b = 30 or t2.b = 20) and t1.x = 1

It would only keep
t1 -> t1.x = 1
t2 -> t2.b = 30 or t2.b = 20

instead of:
t1 -> t1.x = 1 and t1.a = 10
t2 -> t2.b = 30 or t2.b = 20

@dobe please review


Add instructions to build documentation

Pull request
This PR adds a README.md in the docs directory with a short explanation on how to build the docs. This might be especially useful for people coming from non-technical backgrounds in order to be able to contribute to the documentation.
How Has This Been Tested?
The requirements have been frozen by installing the latest versions of sphinx-argparse and pdfminer.six and running pip freeze > requirements.txt.
Afterwards, I've created a virtual environment, installed the requirements and checked that the build was successful.
Checklist

[x] I have read CONTRIBUTING.md.
[ ] I have added a concise human-readable description of the change to CHANGELOG.md.
[ ] I have tested that this fix is effective or that this feature works.
[ ] I have added docstrings to newly created methods and classes.
[x] I have updated the README.md and the readthedocs documentation. Or verified that this is not necessary.

Hi are the requirements listed just all  the current requirements of the package or have additional requirements been added ?

Hi @pettzilla1, no additional requirements have been added.
As mentioned above, I installed sphinx-argparse and pdfminer.six, which are required to build the docs. The rest of the modules are just dependencies of those.

Hi @dmlls,
Thanks for this setup! I've rewrote the readme in active phrases and will merge it now.


[Draft]Fuzzing: Adds Fuzz tests

Temporary branch created to run on emulator

/azp run

/azp run

Closing in-active PR's


Check and add spec. Links to the epics

Description:
Check and add spec links to the epics from the 22 epics list.
Check if specs are available for these 2 screens:
https://xd.adobe.com/view/d97f9303-d123-44a2-b821-df9670411814-8c2c/screen/547397bb-0651-4f59-984d-6bf11cb6afa0
and
https://xd.adobe.com/view/d97f9303-d123-44a2-b821-df9670411814-8c2c/screen/8b07b25d-4934-416b-a998-ff3ab78cfc5c

@antuz123  need permissions to do this

Need all the links in the same place

Login & Wallet Setup

https://xd.adobe.com/view/0aef8043-d951-4d0a-9a97-b7b2e16ffdbc-5fbc/

Send & Receive

https://xd.adobe.com/view/bc448da6-189f-4625-a338-f75326cbb580-e917/

Notifications

https://xd.adobe.com/view/8c2960b0-14d1-4e00-a464-91e7d8219524-d97a/

4. Add account & Buy

https://xd.adobe.com/view/be4bd2ea-118c-4aff-959f-e3243e25ca8f-eb18/

Friends & Family

https://xd.adobe.com/view/e8259038-6a8a-4b4f-b88f-780e311438a5-bd76/

More & Settings

https://xd.adobe.com/view/902817ab-b10b-4f5e-8991-1f2142fd4a84-c57b/

Wallet Security (Manage Backup)

https://xd.adobe.com/view/3c76a519-ed48-4944-a7a5-026a2aca5a6d-6925/

Restore Wallet

https://xd.adobe.com/view/182db13e-dc6a-40ec-a319-5bf018182399-4d7e/

Ramp

Wyre

Swan

FastBitcoin

Savings Account

https://xd.adobe.com/view/69730b23-793e-4df6-b663-0c680f65329d-3c20/

Checking Account

https://xd.adobe.com/view/586337d9-4b1f-4d3b-9431-d48711ef8697-0d30/

Test Account

https://xd.adobe.com/view/2f42c330-be9a-4b0a-963d-698d60da4894-7a11/

Donation Account

https://xd.adobe.com/view/319a403f-183f-4eb6-bdbe-9cd9dc9c4450-64c9/

New Wallet Creation

https://xd.adobe.com/view/d7c94aa6-eb66-403c-8246-4cfe87d6bab9-829a/

Upgrade Flow

https://xd.adobe.com/view/24cad77c-7eb9-4623-a2dc-


QUERY: ETH GAS Paid over window-lengths

Depending on the amount of actions happening in ETHB (100s/day? 10s/day?) we will want to determine a window-length for our analysis.
ETH Gas can then be averaged/smoothed across our window length for correlation to ETHB Actions/TVL, etc.

BLOCK_NUMBER
WEIGHTED_AVG_GWEI

15,000,000
17.5

15,000,001
23.25

Aggregate into Block Bundles or time-stamp whichever makes more sense.

DROPPED


transformTags - is it possible to get html element of tag?

Hi,
I have some bad html to sanitize, one of the problems I get is that some h2 tags contain like the whole paragraph, so I need to get the length of h2 tag that is being transformed and change it to p tag instead. Is there a way to achieve that with this library?
Thanks in advance.

Check out the Transformations documentation. That might work for this. https://github.com/apostrophecms/sanitize-html#transformations. Though it looks like transformTags functions would need to be updated to include the text of the tag (maybe the whole frame?). That could be done in v1 or v2 depending on the implementation.


Dependencies are not inlined when using ssr.noExternal with globs

Describe the bug
The docs state that anything in the ssr.noExternal array in the Vite config is automatically added to the test.server.deps.inline array.
Globs do not seem to be supported.
Repo: https://github.com/eduardoRoth/analog-ionic-capacitor-template
Reproduction

Clone the repo - https://github.com/eduardoRoth/analog-ionic-capacitor-template
Install the dependencies - npm i
Go into the vite.config.ts
Remove @ionic/angular from the test.server.deps.inline array. @ionic/** is already in the ssr.noExternal array.
Run npx ng test
Note the error, stop the tests
Go into the ssr.noExternal array
Add @ionic/angular
Run npx ng test
Note the tests pass

System Info
System:
    OS: macOS 12.6.8
    CPU: (10) arm64 Apple M1 Pro
    Memory: 231.17 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.19.1 - ~/.nvm/versions/node/v18.19.1/bin/node
    Yarn: 1.22.15 - ~/.yarn/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v18.19.1/bin/npm
    pnpm: 9.3.0 - ~/Library/pnpm/pnpm
    bun: 1.0.35 - ~/.bun/bin/bun
  Browsers:
    Chrome: 126.0.6478.61
    Safari: 15.6.1
  npmPackages:
    vite: ~5.2.11 => 5.2.13
    vitest: ^1.3.1 => 1.6.0

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Indeed, glob doesn't seem to be supported for server.deps.inline.
Vite uses createFilter utility https://github.com/vitejs/vite/blob/ec16a5efc04d8ab50301d184c20e7bd0c8d8f6a2/packages/vite/src/node/ssr/ssrExternal.ts#L38-L41 to support glob, but Vitest (vite-node) has a different logic to match patterns
https://github.com/vitest-dev/vitest/blob/f969fb0f9f0247a7daa2afee8f70de25ea5e123f/packages/vite-node/src/externalize.ts#L157-L162
I created a repro with simpler dependencies https://github.com/hi-ogawa/reproductions/tree/main/vitest-5911-deps-inline-glob

Thanks @hi-ogawa. I can work on a PR to support this behavior if that's whats recommended

vite-node processes ssr.noExternal on resolved file paths, Vite processes it on bare imports, so we cannot apply the same filter.

vite-node processes ssr.noExternal on resolved file paths, Vite processes it on bare imports, so we cannot apply the same filter.

Ok. What would be the recommended approach with globs?

Ok. What would be the recommended approach with globs?

If I knew what to do with this, we would've already implemented it 😞
I don't know how to solve these, they were always resolved differently in Vite and Vitest. Vite can also resolve monorepo packages while Vitest expects that the package is in moduleDirectories and the name and the folder are the same.

Thanks @sheremet-va. I think it's fine to keep this difference, and note that globs are not expected to be inlined also


Planned removal of some architectures after June 1, 2023

64-bit:

None

32-bit:

i686-pc-windows-msvc
i686-unknown-linux-gnu
i686-unknown-linux-musl
i686-unknown-freebsd
powerpc-unknown-linux-gnu
mips-unknown-linux-gnu
mips-unknown-linux-musl
mipsel-unknown-linux-gnu
mipsel-unknown-linux-musl

I am open to keep these architectures if people still need them.

See branch experimental/upgrades


Teams integration tests

Description
Changes proposed in this pull request:

...

Testing

Related issue(s)

This pull request (PR) has been superseded by https://github.com/kubeshop/botkube/pull/1361, among other reasons:

we are not able to mention a bot via the use of message sending (instead the pub/sub)
utilize a renderer from the private botkube-cloud package
no work has been done in the context of message comparison
missing CI


Fixed the violin plot colors and figure 6 cartoon

Codecov Report

Merging #623 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #623   +/-   ##
=======================================
  Coverage   90.37%   90.37%
=======================================
  Files          21       21
  Lines        1537     1537
=======================================
  Hits         1389     1389
  Misses        148      148

Flag
Coverage Δ

#unittests
90.37% <ø> (ø)

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

Continue to review full report at Codecov.

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


granularity of target attachment

Are there real use cases where different triples need to be directed to different targets?
https://kg-construct.github.io/rml-resources/portal/requirements/requirements-io.html doesn't describe such.
What is the value of saving some triples of a subject to a file, and other triples to a SPARQL endpoint?
https://kg-construct.github.io/rml-io/spec/docs/#multiple-targets describes endless combinations of targets attached to different levels, but are they useful?
Furthermore, while a quad can go into multiple targets, the entirety of a quad must go to one target: you cannot store its components <g,s,p,o> and o=<value,lang,datatype> in different targets.
If it's a valid case to specify target per languageMap, is it not also valid to specify it per datatypeMap?
So I question the accuracy of statements like this: https://kg-construct.github.io/rml-io/spec/docs/#language-and-graph-map

All triples containing the language tag en are exported to TargetDump1 and all triples within the named graph ex:Characters are exported to TargetDump2.

Consider the map:
  rml:predicateObjectMap [ a rml:PredicateObjectMap;
    rml:graphMap [ a rml:GraphMap;
      rml:logicalTarget <#TargetDump2>;
      rml:constant ex:Characters;
    ];
    rml:predicateMap [ a rml:PredicateMap;
      rml:constant foaf:name;
    ];
    rml:objectMap [ a rml:ObjectMap;
      rml:reference "name/text()";
      rml:languageMap [
        rml:logicalTarget <#TargetDump1>;
        rml:constant "en";
      ];
    ];
  ];

It makes quads with g=ex:Characters, p=foaf:name, lang=@en.
The graphMap and languageMap set these quad components, they don't test them.
So all these quads go to TargetDump1 and TargetDump2: the quoted sentence is confusing since it implies that different sets of triples go to different targets.
Then wouldn't it be better to put the targets at the predicateObjectMap level to make this more clear?
  rml:predicateObjectMap [ a rml:PredicateObjectMap;
    rml:logicalTarget <#TargetDump1>, <#TargetDump2>;
    rml:graphMap [ a rml:GraphMap; rml:constant ex:Characters; ];
    rml:predicateMap [ a rml:PredicateMap; rml:constant foaf:name; ];
    rml:objectMap [ a rml:ObjectMap;
      rml:reference "name/text()";
      rml:languageMap [rml:constant "en"; ];
    ];
  ];

Last but not least, it should be possible to set the target at the level of TripleMap to cater for the most common case.

In summary, I propose to set targets at TripleMap and predicateObjectMap levels,
but not at subjectMap, predicateMap, objectMap, graphMap, languageMap.

Thanks for the interesting issue! This is the feedback we really want to see :)

Are there real use cases where different triples need to be directed to different targets?

Yes, you can make then materialized views of the RDF graph depending on the different purposes you want to use it for.
Examples: separate by language, store sensitive data in a separate target with higher security level access requirements, etc.

https://kg-construct.github.io/rml-resources/portal/requirements/requirements-io.html doesn't describe such.

We should that make more clear :+1:

What is the value of saving some triples of a subject to a file, and other triples to a SPARQL endpoint?
One common use-case is keeping backups: your SPARQL endpoint can be queried live while the file is a backup of the current version in case your infrastructure goes down or you want to exchange your RDF graph as a dump with other parties without putting the pressure on your SPARQL endpoint to dump everything each time the other party needs a new version.

https://kg-construct.github.io/rml-io/spec/docs/#multiple-targets describes endless combinations of targets attached to different levels, but are they useful?

We could reduce the length of the spec there by combining some examples but a spec should list all possible examples to make it complete for developers to have no doubt what should happen in a certain combination IMO.

Furthermore, while a quad can go into multiple targets, the entirety of a quad must go to one target: you cannot store its components <g,s,p,o> and o=<value,lang,datatype> in different targets.

Yes, you always store full RDF quads or triples otherwise you cannot query it later or parse it with existing tools & libraries.

If it's a valid case to specify target per languageMap, is it not also valid to specify it per datatypeMap?

Datatype map is also allowed, this map did not exist before but now it does in Core, we should adjust RML-IO to also explicitly allow it.

the quoted sentence is confusing since it implies that different sets of triples go to different targets.

Okay, good point, we need to improve that sentence then since it confuses.

Then wouldn't it be better to put the targets at the predicateObjectMap level to make this more clear?

Then we have only granularity on a graph level. Then you can only store on the same level as a named graph.

Last but not least, it should be possible to set the target at the level of TripleMap to cater for the most common case.

Why should we have this? Adding it in the Subject Map does exactly this.

Examples: separate by language

A languageMap sets a language (constant or from source data), and it cannot separate by language unless you use some complex conditionals. Is it worth the trouble?
Or consider this real case of graphMap: our CrunchBase RDFization saves the triples from each row of each table into a separate graph to enable SPARQL Update scenarios. That's 12M graphs that come from 18 tables that are RDFized to 15 nodes (Orgs are fed from 3 tables, Persons from 2 tables).
What is a reasonable split into files, and how would you describe it? Target URLs are always constant, they cannot come from the data.

(not TripleMap) Adding it in the Subject Map does exactly this.

subjectMap and propertyObjectMap are at the same level, so why would a target set in the former influence the target of the latter?
If I set Target1 in subjectMap and Target2 in propertyObjectMap, does Target2 override Target1? Or triples are written to both targets?


Could val container by lazy by default?

Hello, and thanks for your great work! Using it on a daily basis, works like a charm.
Here's the (mini) problem I ran into.
I have a set of standard test that are run through the test (and thus build task) => they're pure unit tests or PBT, they don't need testcontainers (the faster they run the faster the feedback-loop...)
I have a set of integrationTest using testcontainers-scala. They're quite heavy-on-ressources (docker-compose, etc.). They're simply here to assert that "in a real environment, things should work". They're run through a dedicated task, not every build.
I chose to use an annotation for these integration test classes so that I can exclude them through ScalaTest tags (I'm using scalatest-gradle-plugin). But even when excluded, they're still instanciated, and thus val container = /* ... */ is still executed (checking Docker version etc.).
This is not a real problem for me, since everywhere test are run, there's a docker daemon, but it could be problematic if not.
The very simple fix for me was to declare:
@IntegrationTest
class SomeIntegrationTestNeedingTestContainers extends FeatureSpec with ForAllTestContainers {
  override lazy val container: DockerComposeContainer =  /* declaration */
}

This seems to work perfectly fine and achieve what I need it to achieve.
I was just wondering if other people ran into this issue? And if yes, could it be "lazy" by default?
wdyt?

It could be def by default. With this, you will achieve an effect you want. And overall it is a good practice to not have vals in the traits. You can create a pull request with this change.
Also, in the near future, we will release a new API in which you will not have the issue you described.

Yes obviously def works too. I did not propose this since it could be a big breaking change for end-users (having to re-write all their override val to override def should we create a PR with this? Sounds like a "breaking change" (even though it's better I agree.
We also could argue that the container shouldn't be re-created every time the method is called? (hence really being a lazy val and not def) <= not sure about this.

It will not break user code — you can override def with val.

Thanks, I forgot about that. Sorry to not submit a PR, but I'm leaving for 3 weeks with no internet access. I'll address this once I'm back.
Thanks for your explanations!

Got a few minutes to file a PR.


Include information on encoding messages

Should information on encoding messages to support IoT Hub Routing Queries be added?  Per IoT Hub documentation below, messages must be encoded in UTF-8, UTF-16, or UTF-32 to support message routing on the body:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-routing-query-syntax#message-routing-query-based-on-message-body
I also filed the following Github issue to add this to the sample code.
https://github.com/Azure-Samples/azure-iot-samples-csharp/issues/68

@Teodelas : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@Teodelas Thanks for your question. I'll look into this and get back to you.

@Teodelas I don't see any embedded changes, it looks like you added a header for a section, but didn't add any code to it. Is that what you want us to do, or am I missing something? Thanks.

Hi Robin.  I was just asking that that information on what's needed to get message routing to work be added.  I didn't add that information myself.  Should it?

Hi @teodelas. I don't think you need to add the info unless you just want to. I'm slammed with a ton of work that has to be done "right now", including a bunch of GitHub issues. If you are patient and give me another week or so, I'll get to this and figure out what you're looking for and add it. If you need it to be addressed right away, feel free to add what you think goes in there yourself and I'll take a look at it and verify that it's right, and then sign off on it. Your choice as to which way you want to go. Sorry about the delay.

@robinsh, can you check on this? Thanks.

@Teodelas I've taken a good look at this issue, and I don't understand what you're asking. The code sample in that article shows you how to encode the message body as utf8: You could just change the utf8 to utf16 or utf32, whichever you wanted. Can you share with me exactly what you were hoping for so I can help you out?
// Encode message body using UTF-8
var messageBytes = Buffer.from(messageBody, "**utf8**");

var message = new Message(messageBytes);

// Set message body type and content encoding
**message.contentEncoding = "utf-8";
message.contentType = "application/json";**

Okay, I get it. It is displayed in the article as JSON, so the conversions are all different from C#. I'm working on this, and will post another code sample (because I think it's too complicated to add it to the routing one) in this repo.  Watch this space!

@Teodelas I added UTF encoding where it creates messages and sends them to the IoT Hub; it shows how to encode the body of the message in UTF-32. It also shows how to decode a message written to storage with the body encoded in UTF-32 so you can see that it worked right. I'll admit this was way more complicated than I thought it would be, which is why I added it to the tutorial instead of the quickstart. You can add in the connection string information for your hub to the tutorial and just run it, and it will send messages with encoded bodies to the hub.
Let me know if there's anything else you were looking for. Otherwise, we'll close this. (Add a comment here and they will reopen it or respond to it.)
This is where the C# samples are.
https://github.com/Azure-Samples/azure-iot-samples-csharp/

#please-close