Handle Proxy Model Permissions (Django bug #11154)

Hi,
Have you any thoughts on how to handle this long running Django bug?
I'm currently working around this using the custom management command from here, but this does not hook into whatever signaling admin-view-permission does.
Until this bug is resolved, do you see a modification of this mgmt command that would create the view perm?

Hi @ciarancourtney,
OK, I see your problem.
You could try to trigger the signal manually like this:
# -*- coding: utf-8 -*-

"""Add permissions for proxy model.
This is needed because of the bug https://code.djangoproject.com/ticket/11154
in Django (as of 1.6, it's not fixed).
When a permission is created for a proxy model, it actually creates if for it's
base model app_label (eg: for "article" instead of "about", for the About proxy
model).
What we need, however, is that the permission be created for the proxy model
itself, in order to have the proper entries displayed in the admin.
"""

import sys

from django.contrib.auth.management import _get_all_permissions
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.core.management.base import BaseCommand
from django.apps import apps
from admin_view_permission.apps import update_permissions

class Command(BaseCommand):
    help = "Fix permissions for proxy models."

    def handle(self, *args, **options):
        update_permissions(
            apps.get_app_config('app'),  # where app is the app of the management command
            apps.get_app_config('app'),
            verbosity=1,
            interactive=True,
            using='default',
        )

        for model in apps.get_models():
            opts = model._meta
            ctype, created = ContentType.objects.get_or_create(
                app_label=opts.app_label,
                model=opts.object_name.lower())

            for codename, name in _get_all_permissions(opts):
                p, created = Permission.objects.get_or_create(
                    codename=codename,
                    content_type=ctype,
                    defaults={'name': name})
                if created:
                    sys.stdout.write('Adding permission {}\n'.format(p))

Although, the admin_view_permission seems not to work correctly with the proxy models (doesn't return any field to the view). You could try it too. I will have a better look on this tomorrow.
I hope this could help you.
Thanks,
Lefteris

Thanks, I got around the issue by manually creating the admin-view-permission in my proxy meta class.
    permissions = (
        ('view_myuser', "Can view My User"),
    )

Then I added a RunPython Data Migration to the autogenerated migration script:
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-31 16:17
from __future__ import unicode_literals

from django.db import migrations
from django.contrib.auth.management import _get_all_permissions
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType

# forward func
def add_myuser_proxy_permissions(apps, schema_editor):
    app_config = apps.get_app_config('profiles')
    model = app_config.get_model('MyUser')
    opts = model._meta
    ctype, created = ContentType.objects.get_or_create(
        app_label=opts.app_label,
        model=opts.object_name.lower(),
    )

    for codename, name in _get_all_permissions(opts):
        p, created = Permission.objects.get_or_create(
            codename=codename,
            content_type=ctype,
            defaults={'name': f'{name} (Proxy)'})
        if created:
            print(f'Adding permission: {p}')

# reverse func
def delete_myuser_proxy_permissions(apps, schema_editor):
    permissions = Permission.objects.filter(codename__icontains='myuser')
    permissions.delete()

class Migration(migrations.Migration):

    dependencies = [
        ('profiles', '0015_auto_20170531_0922'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='myuser',
            options={'permissions': (('view_myuser', 'Can view My User'),), 'verbose_name': 'My User', 'verbose_name_plural': 'My Users'},
        ),
        migrations.RunPython(add_myuser_proxy_permissions, delete_myuser_proxy_permissions),
    ]

When a user with view_myuser (proxy)  and view_profile visits the change page of a MyUser, the Django User fields are editable, but this is probably a quirk of the builtin UserAdmin form, The Save buttons do not appear, as expected

Hi @ciarancourtney,
Which Django version do you use? I am testing the behaviour on Django 1.11 and it doesn't return any fields because the code tries to get the local fields and the proxy model doesn't contain any local fields (I will push a fix to master shortly).
Thanks,
Lefteris

I'm on the latest, Django 1.11.2 and DAVP 0.9. Perhaps its because I'm subclassing the UserCreationForm and UserChangeForm

Hi @ciarancourtney,
I am going to close this ticket. I've added the management command(which fixes the permission for the proxy models) to the package and also I've fixed the get_readonly_fields to return the appropriate fields.
Thanks,
Lefteris


FIX: Handle module qos.

This PR changes:

designer: the metric name in the designer is now a combobox.
aamwriter: inserts the qos related to a module in groups/operation_/QoSRequirements. The qos for the application is moved to groups/operation_/AppQoSRequirements
optimizer: gets the application requirements from the new AppQoSRequirements.

@perezp , @szenzaro , @MicheleGuerriero : Please have a look.
This is an example of AAM:
tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03
description: 3tier example
imports:
- tosca-normative-types:1.0.0.wd03-SNAPSHOT
topology_template:
  node_templates:
    www:
      type: sc_req.www
      properties:
        language: JAVA
        location: DYNAMIC
        location_option: FOLLOW_SUN
        autoscale: true
      requirements:
      - endpoint: webservices
    webservices:
      type: sc_req.webservices
      properties:
        language: JAVA
        location: STATIC
        location_option: EUROPE
        autoscale: false
        java_version:
          constraints:
          - greater_or_equal: '7'
          - less_or_equal: '8'
      requirements:
      - endpoint: db1
    db1:
      type: sc_req.db1
      properties:
        mysql_version:
          constraints:
          - greater_or_equal: '5.0'
          - less_or_equal: '5.6'
node_types:
  sc_req.www:
    derived_from: seaclouds.nodes.webapp.tomcat.TomcatServer
    properties:
      java_support:
        constraints:
        - equal: true
      tomcat_support:
        constraints:
        - equal: true
      java_version:
        constraints:
        - greater_or_equal: '7'
        - less_or_equal: '8'
      resource_type:
        constraints:
        - equal: platform
  sc_req.webservices:
    derived_from: seaclouds.nodes.SoftwareComponent
    properties:
      num_cpus:
        constraints:
        - greater_or_equal: '4'
      disk_size:
        constraints:
        - greater_or_equal: '256'
      resource_type:
        constraints:
        - equal: compute
  sc_req.db1:
    derived_from: seaclouds.nodes.database.mysql.MySqlNode
    properties:
      mysql_support:
        constraints:
        - equal: true
      mysql_version:
        constraints:
        - greater_or_equal: '5.0'
        - less_or_equal: '5.6'
groups:
  operation_www:
    members:
    - www
    policies:
    - QoSInfo:
        execution_time: 200 ms
        benchmark_platform: hp_cloud_services.2xl
    - dependencies:
        operation_webservices: '2'
    - AppQoSRequirements:
        response_time:
          less_than: 2000.0 ms
        availability:
          greater_than: 0.98
        cost:
          less_or_equal: 200.0 euros_per_month
        workload:
          less_or_equal: 50.0 req_per_min
  operation_webservices:
    members:
    - webservices
    policies:
    - QoSInfo:
        execution_time: 100 ms
        benchmark_platform: hp_cloud_services.2xl
    - dependencies:
        operation_db1: '1'
    - QoSRequirements:
        AverageResponseTime:
          less_than: 1000.0 ms
        AppAvailable:
          greater_than: 99.8
  operation_db1:
    members:
    - db1
    policies:
    - dependencies: {}

@perezp : Optimizer tests are failing. Could you have a look?

@rogoson I have taken a look. I've found the issue. For the tests, I just need the AAM with the current notation. Code in tests already tries to find "AppQoSRequirements" while files for testing still contain the "QoSRequirements".


disconnect connection

I run test with below rtb.yml configurations
scenario: xmpp
interval: 3
capacity: 90000
#certfile: cert.pem
starttls: false
csi: false
mam: false
#sm: false
roster: false
http_upload_interval: false
proxy65_interval: false
gnuplot: /usr/bin/gnuplot
jid: ***%@***
password: ***%

servers:
   - tcp://<IP_ADDRESS>:5222

www_port: 8080
bind:
        - <IP_ADDRESS>
        - <IP_ADDRESS>
        - <IP_ADDRESS>
        - <IP_ADDRESS>
        - <IP_ADDRESS>

reconnect_interval: 5

but after my connection reached to 70000 about 10000 connection failed and my current connection be 60000 and my session graph show 90000 session .
I wanna to know is this normal action of rtb , means rtb disconnect 30% of its users ?

Oops, I overlooked this issue. If it's still relevant: it seems like you're facing sockets limit on your XMPP server, do you see any errors in the log of your XMPP server?


Use original consensus client images

Right now we make use of stereum built docker images, like stereum/nimbus and stereum/lighthouse. Please replace these with the original consensus client images.

[x] #211
[x] #212
[ ] #213
[ ] #214

https://github.com/stereum-dev/ethereum-node/pull/328


Merge lightning.gpu and lightning.tensor test CIs and add control by a label

Context:
Description of the Change:
Benefits:
Possible Drawbacks:
[sc-73818]
Related GitHub Issues:

Last commit (1b264c4) shows an example of GPU runners not being activated without the ci:use-gpu-runner label.

Nice work @AmintorDusko . Just one question: is there a plan to move lightning.kokkos-cuda tests to tests_gpu workflows?

Maybe in the future. This one requires more time.

Hi @maliasadi, I updated the workflows as discussed offline and following your suggestions.


Query parameters being stripped

This can be tested by a codepen from #50 http://codepen.io/anon/pen/JKKaZV
A request to http://api.forismatic.com/api/1.0/?lang=en&method=getQuote&format=json is stripped of its query params and becomes http://api.forismatic.com/api/1.0/ from crossorigin.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39840117-query-parameters-being-stripped?utm_campaign=plugin&utm_content=tracker%2F12536595&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F12536595&utm_medium=issues&utm_source=github).

The same with me.

I also seem to have this problem.

the same problem here.

Duplicate of #76.


[BEAM-2431] Adding the job API

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

R: @tgroh PTAL
This is part 1 of many for the job submission API. Currently experimental so might evolve a bit as we make progress.

Coverage decreased (-0.01%) to 70.16% when pulling c2ab52b73f0b93fefd2daba033c8597cac9cab45 on sb2nov:BEAM-2431-beam-job-api_1 into ba5e314664563f23ac8c5125b89a12ddbbd4e433 on apache:master.


Feature  add conditional security context section

For VG: added security context section and the security context keys to trigger the dropping of all root-level permissions within the pod (ie. the application running in the pod cannot perform root user actions).

@CodiumAI-Agent /improve

PR Code Suggestions ✨
No code suggestions found for the PR.

@CodiumAI-Agent /review

PR Reviewer Guide 🔍
Here are some key observations to aid the review process:

⏱ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review
Configuration ComplexityThe nested conditional logic for security contexts might be error-prone and hard to maintain. Consider simplifying or documenting this part.
Default Security SettingsThe default settings for security contexts are disabled, which might not enforce security best practices in deployments.

Persistent review updated to latest commit https://github.com/Multiwoven/helm-charts/commit/0ace2b90b924c8254f897d37f4eb6ffeee9b29b5


Query: Find a better prefix for QueryFilter parameters

We fixed #9850 with prefix-ing parameters with $ but Oracle did not like it :trollface:
We need to find a suitable prefix apart from _
@roji @Kagamine @ErikEJ - Any restrictions on parameter naming in other providers?
At present SqlServer generates parameter named like @__$Filter

MySQL is ok

I think SQL CE has same restrictions as SQL Server

Prefix: "ef_qf__" -> "@__ef_qf__BlogId"


Field showing on Page without ApplicationArea

Describe the bug
Extended fields are showing on the page without defining the property ApplicationArea
To Reproduce
Extend Sales Order page and add customized fields without adding ApplicationArea property.
Expected behavior
Fields should not be visible.
Versions:

AL Language: Version: 3.0.126610

Business Central: Spring Release

Thanks

@SUD-D365 Looks like a runtime/client issue to me. For faster resolution a Request For Hotfix should be created using the known channels, if the issue still persists with the latest Vsix version


python310Packages.moderngl-window: 2.4.4 -> 2.4.5, manim: 0.16.0.post0 -> 0.17.3

Description of changes
Update and fix moderngl-window and manim.
Changelog moderngl-window: https://github.com/moderngl/moderngl-window/releases/tag/2.4.5
Changelog manim: https://github.com/ManimCommunity/manim/releases/tag/v0.17.3
cc @c0deaddict @friedelino
TODO: Is it still broken on darwin ?
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@ofborg build python310Packages.moderngl-window python311Packages.moderngl-window

Result of nixpkgs-review pr 261666 run on x86_64-linux 1

6 packages built:

manim
manim.dist
python310Packages.moderngl-window
python310Packages.moderngl-window.dist
python311Packages.moderngl-window
python311Packages.moderngl-window.dist

@ofborg build python310Packages.moderngl-window python311Packages.moderngl-window manim

Result of nixpkgs-review pr 261666 run on aarch64-darwin 1

6 packages marked as broken and skipped:

manim
manim.dist
python310Packages.moderngl-window
python310Packages.moderngl-window.dist
python311Packages.moderngl-window
python311Packages.moderngl-window.dist

Result of nixpkgs-review pr 261666 run on x86_64-darwin 1

6 packages marked as broken and skipped:

manim
manim.dist
python310Packages.moderngl-window
python310Packages.moderngl-window.dist
python311Packages.moderngl-window
python311Packages.moderngl-window.dist


Bom error

Y1 is a 4pin part in the BOM and the footprint is for 2pin part.
Something like this should work:
https://www.aliexpress.com/item/1005008177194359.html

Thank you for reporting. The BOM has now been updated with a new link.


Add example usage of CveApi interface

See also https://github.com/RedHatProductSecurity/cvelib/issues/43

Fixes #43


[1.15.2] Incorrect Mesa/Plateau Generation

Description
Any biome that is supposed to have cliff-like generation such as Mesa or Plateau does not seem to actually generate as such. They tend to be just as flat as plains.
How to reproduce

Here is my current Twitch/Forge profile setup:
Bleeding Edge-1.0.0.zip

Using TerraForged default settings, create a random seed world and then find biomes that are supposed to be Mesa or Plateau formations only to see that they are relatively flat.

Terrain and biomes are separate things in TerraForged.
The badlands biomes can decorate a much wider range of terrain types, so just because it looks one way in one area, it could be mountainous, hilly, plataued in others

Which would be fine if I ever saw any cliffs/plateaus. I think I saw maybe 5 or 6 such areas across a few hundred thousand blocks.


SEO updates batch 6

Docs Build status updates of commit 0988e42:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/release-notes-azure-cli.md
:bulb:Suggestion
View
Details

docs-ref-conceptual/popular-articles-using-the-azure-cli.md
:white_check_mark:Succeeded
View

docs-ref-conceptual/query-azure-cli.md
:white_check_mark:Succeeded
View

docs-ref-conceptual/reference-types-and-status.md
:white_check_mark:Succeeded
View

docs-ref-conceptual/run-azure-cli-docker.md
:white_check_mark:Succeeded
View

docs-ref-conceptual/release-notes-azure-cli.md

Line 1712, Column 203: [Suggestion-disallowed-html-tag] HTML tag 'IP' isn't allowed. Disallowed HTML poses a security risk and must be replaced with approved Docs Markdown syntax.
Line 1712, Column 208: [Suggestion-disallowed-html-tag] HTML tag 'IPRange' isn't allowed. Disallowed HTML poses a security risk and must be replaced with approved Docs Markdown syntax.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

These are minor article updates requested by the SEO team


package.json updates

This PR updates most of the packages in package.json. I'll leave webpack for a separate PR because I anticipate breaking changes moving to v4.
More comments are in the code

This change is

Coverage remained the same at ?% when pulling 87322c03baf5cf8904adfe7c3db0218f29c93e85 on coopersamuel-package-updates into 18e7840ef9d7c3db7d07aa37c4d4aef9c7cf1119 on master.

@justin808 regarding your comments, what steps do you think need to be taken to pass this PR?

Regarding the eslint rules, if we remove those rules we'd have a bunch of errors (> 120) - my position is that we leave the rules for now and add prettier in the project in a separate PR

Regarding the test, I agree that test doesn't really do much, personally I think the test is now obsolete because of React's behavior removing the data-react-checksum attribute. Should we scrap the test entirely?

Let me know your thoughts on these and we'll get this pushed through


Universal commands that work in both chat and console

This has somewhat already been implemented for Reign of Kings, now we just need it for other games!

I'm looking into adding support for this to Covalence.

This should be available now since @Mughisi's changes to Covalence. :)


Add camel-fink wrapper

camel-fink wrapper
 <bundle>wrap:mvn:org.apache.flink/flink-java/${flink-version}</bundle>
 <bundle>wrap:mvn:org.apache.flink/flink-streaming-java/${flink-version}</bundle>

are the only necessary dependencies to have the feature compile correctly , but adding runtime, core and streaming fix most of the optional dependencies created by the wrap: protocol

Review in progress

no conflict ✔
compilation works ✔
no unnecessary usage of wrap protocol ✔
no unnecessary dependencies ?
no hardcoded version if it's in the parent pom ✔
feature is placed in alphabetical order in the file camel-features.xml ✔
usage of dependent features (netty, jackson, jakarta ...) ✔


API resource url is added in discover document url. Any idea why?

On an Angular 7 Client application I have the following:
import { Component } from '@angular/core';

import { AuthConfig, OAuthService, JwksValidationHandler } from 'angular-oauth2-oidc';

export const authConfig: AuthConfig = {
  issuer: 'https://localhost:5005',
  redirectUri: window.location.origin,
  clientId: 'spa',
  responseType: 'code',
  scope: 'openid profile email offline_access api',
  showDebugInformation: true
};

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less']
})

export class AppComponent {

  constructor(private authService: OAuthService) {

    this.authService.configure(authConfig);
    this.authService.tokenValidationHandler = new JwksValidationHandler();
    this.authService.loadDiscoveryDocumentAndLogin();

  }

}

When running the application I get the following error:
Error loading discovery document:

Http failure response for
https://localhost:5003/v1.0/https://localhost:5005/.well-known/openid-configuration: 404 Not Found

Where https://localhost:5003/v1.0 is basically the url of the API resource.
Any idea why what is happening?

Hmm, that shouldn't happen. But it's being triggered by code that we're not seeing... no where in your sample does the string "localhost:5003" appear, and it is coming from somewhere in your application.
I recommend either making a full (but minimal) repro, or otherwise debugging some more (e.g. load an unminified version of the library and place a breakpoint in loadDiscoveryDocument.

@jeroenheijmans I found out the problem. I had an HTTP interceptor adding a BaseApiUrl to every HTTP requests ... Solved it now. Thank you.


[Feature]: Disabling logging

As the title suggests, an option in the configuration menu to disable singbox's logging.

Custom configuration will be implemented in the new release.


record filename of to be compiled module in script engine.

i manage a project w/ many, many files.  Being able to trace errors to a filename & line number is critical.  This change helps with doing that.

Are you able to add a test for this?

added test.


After July update, and after setting up settings sync, Extensions Browser is not showing local installed extensions, and Settings Sync command has disappeared

Vscode updated itself yesterday and I set up sync and at some point I discovered All my local extensions have disappeared from the extensions browser (https://i.imgur.com/Q93VpQM.png) thought not when I list out the extensions from win/git shell  https://i.imgur.com/NiHLfSA.png
The settings sync command, which I used to set up sync a few hours ago has disappeared! https://i.imgur.com/XcF89k4.png https://i.imgur.com/4exSaz6.png (THEY SHOULD BE FOUND LIKE THIS: https://i.imgur.com/CFEkOTQ.png)

VSCode Version:
OS Version:

Version: 1.48.0 (user setup)
Commit: db40434f562994116e5b21c24015a2e40b2504e6
Date: 2020-08-13T07:50:42.600Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19041
Steps to Reproduce:

Update to July
Set up settings sync, login with github

Does this issue occur when all extensions are disabled?: Yes/No
Yes.
I tried again with extensions disabled and saw similar behavior
https://i.imgur.com/AH4xnwv.png
https://i.imgur.com/TbWJ1Iz.png

Can you please check if following built in extensions are enabled

Go to extensions view
Click on filter (funnel) icon and select built in
Look for authentication extensions

Please let me know if above extensions are enabled?

So, nothing shows as local in the extensions view, not even builtins, what I experience are blank panels and a constantly moving right and looping progress bar

code --list-extension in powershell yields:

code --list-extensions
ahmadawais.shades-of-purple
atomiks.moonlight
burkeholland.simple-react-snippets
ChakrounAnas.turbo-console-log
christian-kohler.path-intellisense
dbaeumer.vscode-eslint
dracula-theme.theme-dracula
eamodio.gitlens
emmanuelbeziat.vscode-great-icons
Equinusocio.vsc-community-material-theme
Equinusocio.vsc-material-theme
equinusocio.vsc-material-theme-icons
esbenp.prettier-vscode
firefox-devtools.vscode-firefox-debug
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
GitHub.github-vscode-theme
johnpapa.vscode-peacock
johnpapa.winteriscoming
ms-python.python
MS-RichCodeNav.richcodenav
ms-vscode-remote.remote-wsl
msjsdiag.debugger-for-chrome
Nimda.deepdark-material
PKief.material-icon-theme
rokoroku.vscode-theme-darcula
sdras.night-owl
vscode-icons-team.vscode-icons
wholroyd.jinja
xabikos.JavaScriptSnippets

Start code with --verbose code --verbose from command line and please share the logs from the following locations
- Help -> Toggle Developer Tools -> Console
- View -> Command Pallette... -> Toggle Shared Process -> Console
- View -> Open View… -> Log (Shared)
- View -> Open View… -> Log (Window)

Apologies, I uh couldn't wait for this to be diagnosed further, so I uninstalled, (deleted all keys in state,vscdb pointing to sync) then reinstalled vscode.
To my surprise, this fixed the problem, and yet, I expected all uninstall to delete any installed extensions, but it didn't.
At any rate, let me know if you still want this information, or if my reinstalling mooted the bug report

Closing this as user got resolved the issue.


convert login to tsx

Part of overall conversion to ts

@dwu359

@dwu359 need to update with latest version of dev. i merged my changes in


Is it possible to use Atata with another test engine?

Hello
I'm wondering if it is possible to use another test engine with Atata such as MSTest unit. If so it could be possible to use multi-browser capabilities and parallel execution?

We must change the source code to surport the XUnit Now!

As you wish. Here is also the sample project for Xunit.


Enable i18n and Japanese text resources

Add Japanese text resources for first i18n target.

won't fix this time.


Add spire installation and common asserts from integrations-k8s-kind into integration-tests

https://github.com/networkservicemesh/integration-tests/issues/1

Blocked because migrating https://github.com/networkservicemesh/integration-k8s-kind/pull/13

Is not actually more.

Is not actually more.


How to attach csv file as attachment

Following is the script sends CSV as attachment but the data shows on single row.
Can you help me to get this fix.
Function SendGridMailWithAttachment {
param (
[cmdletbinding()]
[parameter()] [string]$ToAddress,
[parameter()] [string]$FromAddress,
[parameter()] [string]$Subject,
[parameter()] [string]$Body,
[parameter()] [string]$APIKey,
[parameter()] [string]$FileName,
[parameter()] [string]$FileNameWithFilePath,
[parameter()] [string]$AttachementType
)
#Convert File to Base64
$FileContent = get-content $FileNameWithFilePath
$ConvertToBytes = [System.Text.Encoding]::UTF8.GetBytes($FileContent)
$EncodedFile = [System.Convert]::ToBase64String($ConvertToBytes)
# Body with attachement for SendGrid
$SendGridBody = @{
"personalizations" = @( @{
"to"= @( @{ "email" = $ToAddress } )
"subject" = $Subject
} )
"content"= @( @{
"type" = "text/html"
"value" = $Body
} )
"from"  = @{ "email" = $FromAddress }
"attachments" = @( @{
"content"=$EncodedFile
"filename"=$FileName
"type"= $AttachementType
"disposition"="attachment"
} )
}
$BodyJson = $SendGridBody | ConvertTo-Json -Depth 4
#Header for SendGrid API
$Header = @{ "authorization" = "Bearer $APIKey" }
#Send the email through SendGrid API
$fnParameters = @{
Method      = "POST"
Uri         = "https://api.sendgrid.com/v3/mail/send"
Headers     = $Header
ContentType = "application/json"
Body        = $BodyJson
}
Invoke-RestMethod @fnParameters
}
$Parameters = @{
ToAddress   = ""
FromAddress = ""
Subject     = "Azure Inventory Report"
Body        = "Please find the attachement."
APIKey      = ""
FileName = $csvfilename
FileNameWithFilePath = $VMReportCsv
AttachementType ="csv"
}
SendGridMailWithAttachment @Parameters

When I use Send-PSSendGridMail from the module in this repository, I can send a csv without issues.
Can you try if that works? Find this blogpost for instructions on how to use the cmdlet.

When I use Send-PSSendGridMail from the module in this repository, I can send a csv without issues.
Can you try if that works? Find this blogpost for instructions on how to use the cmdlet.

I made below change its working perfect now.
$FileContent = get-content -raw -path $FileNameWithFilePath

I made below change its working perfect now.
$FileContent = get-content -raw -path $FileNameWithFilePath


Node.js can't autocomplete after update 0.10.10

Node.js can't autocomplete after update 0.10.10, and i have  the typings...
If i try to user a new WS for test, __dirname can't underline to show me download it, and just reference works

but the vision 0.10.9 works, and it will update automatic .... i can;t lock it

duplicate of https://github.com/Microsoft/vscode/issues/3936, work around is also provided in ths issue.


MQTT Fan shows speed control even if it is not configured

Home Assistant release with the issue:

0.98.2
Last working Home Assistant release (if known):
n/a
Operating environment (Hass.io/Docker/Windows/etc.):

hassbian
Component/platform:

MQTT Fan  https://www.home-assistant.io/components/fan.mqtt/
Description of problem:
Frontend generates speed selector even if this is a binary fan. This is also not allowing to expose entry to Homekit and Google Assistant properly
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
fan:
  - platform: mqtt
    name: "Bathroom"
    state_topic: "stat/bvent/POWER"
    command_topic: "cmnd/bvent/POWER"
    availability_topic: "tele/bvent/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"
    payload_on: "ON"
    payload_off: "OFF"
    qos: 1
    retain: false
    optimistic: false

Traceback (if applicable):

Additional information:
Found similar bugreport about oscillation here https://github.com/home-assistant/home-assistant/issues/9240

Good catch finding the issue about oscillation.
As a result, the correction of your bug should be pretty straight forward.
Just like in issue #9240, this
https://github.com/home-assistant/home-assistant/blob/c37883c9a916accac51adec9540376328e91bdfc/homeassistant/components/fan/mqtt.py#L189
should be instead
self._speed = False

@armills or am I missing something? :)


Editing a tag tab item's tags does not honor remove tag separators

Describe the bug
Editing a tag tab item's tags makes previously-removed bank tab separators visible again until reentry into the tab.
To Reproduce
Steps to reproduce the behavior:

Enable Remove tab separators in Bank Tags plugin
Open the bank and click on a tag tab.
Right-click an item and select Edit tags.
Note that when the search window pops up, the separators return until you unselect and reselect the tag tab.

Expected behavior
It is expected that the separators would always be removed if the setting is enabled.
Video
https://streamable.com/aobef1
Environment (please complete the following information):

OS: macOS
RuneLite version: 1.6.23 (master)
Launcher version: n/a

Since the plugin has been significantly refactored, this no longer occurs for me on release. Please reopen if you can reproduce.


Update Readme.md

Related to: https://issues.redhat.com/browse/RHOAIENG-2922
Description
This PR refresh the README.md file on notebooks repository
Cleans up and provide better "welcome" page for notebooks repository.

Clean up the instruction on how a user can build an image locally.
Remove the graph, and move it on the Wiki page in a proper page updated.
Remove the list of the images and move them on the Wiki page in a proper page updated.

How Has This Been Tested?
Checkout here: https://github.com/atheo89/notebooks/blob/RHOAIENG-2922/README.md
Merge criteria:

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

Thanks for the review, it is already mentioned on the Getting Started section


VideoItem::validateTitle return a boolean instead of the value

return self::validateString($title) && \strlen($title) < 97;
self::validateString($title) returns the value as expected, but the whole line will return a boolean which gives a wrong value in the generated sitemap.

@anthonykozak mind sharing with me the file so I can fix it? :+1: :)

Can you get the attached file ?
<EMAIL_ADDRESS>From: Nil Portugués Calderó
Date: 2017-04-10 12:04
To: nilportugues/php-sitemap
CC: Anthony Kozak; Mention
Subject: Re: [nilportugues/php-sitemap] VideoItem::validateTitle return a boolean instead of the value (#45)
@anthonykozak mind sharing with me the file so I can fix it? ???? :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Specifying minimum macOS version

Is there a way to specify minimum macOS version to run?
I tried to play with the infoPlist setting in build.gradle.kts to configure LSMinimumSystemVersion but have no progress. I could not find a way to set "minimum deployment target" as well.

Are you want to use Compose for Desktop with JVM?

Yes. I found artifacts built by recent macOS have a minimum requirement of 11.0, and I want to lower it to 10. I can workaround it by finding a mac with OS X 10.x to build.

What behaviour are you want to achieve when User's want to launch your application on lower versions?

Existing behaviour is fine -- showing an alert provided by OS. If application wants to behave differently, developer could set the lowest OS version as the minimum version, and handle that on app launch.
The only thing I am not sure is, if application uses a native library, and that library requires a newer OS to initialize or otherwise crashes, can the application developer detect the OS version beforehand and avoid the crash by not initializing the native library? This may need a JNI expert to answer.

You Application may cheecking OS versions with JVM API on startup. Maybe it is not Compose related feautre.
System.out.println("OS Name: " + System.getProperty("os.name"))
System.out.println("OS Version: " + System.getProperty("os.version"))

Current Behaviour
I produced a build via Compose Desktop in macOS 14.0, and then try to open it in macOS 10.15. Then, following OS dialog is shown, not even able to reach any part of the application.

Feature Request
Minimum OS version is configurable, so that I can set it to, for example, 10.8, and then able to open the application in macOS 10.15.

Hi @sunny-chung!

I tried to play with the infoPlist setting in build.gradle.kts to configure LSMinimumSystemVersion but have no progress

How exactly did you try to set LSMinimumSystemVersion?
Here is how I tried it and it works:
            macOS {
                infoPlist {
                    extraKeysRawXml = """
                        <key>LSMinimumSystemVersion</key>
                        <string>14.1</string>
                    """.trimIndent()
                }
            }

Then we can check that it's applied in:
.../notepad/build/compose/binaries/main-release/app/Notepad.app/Contents/Info.plist

I'm on macOS 13.5.2 and I see such message when I try to run the app:

I don't think we'll extend the DSL for such configurations any time soon, since extraKeysRawXml should cover most of the custom cases.

Please checkout this project and build on latest macOS version. I was using macOS 14.0. Note that infoPlist was customized to set minimum OS version to 10.
https://github.com/sunny-chung/compose-desktop-app-icon-issue
Then, transfer the .app executable to macOS 10.x. The screenshot above shows upon the executable is launched.
Some people says "macOS deployment target" need to be set as well. I could not find a way to set this in the compose DSL nor via jpackage options.
If the app is compiled on macOS 10.x, it can be launched normally.

Unfortunately, I don't have two MacOS to try it.

Could you please try to transfer not the .app, but .dmg?
https://github.com/JetBrains/compose-multiplatform/tree/master/tutorials/Native_distributions_and_local_execution#basic-usage
./gradlew packageDmg task

Opening .dmg files yields the same result.
I found artifacts built by macOS 11.0 can be opened in macOS 10.x. I think the error shows because the artifacts were built by different CPU architectures, not related to OS versions. The error message shown by macOS is misleading.
The extraKeysRawXml looks adequate and is working as intended. I will close this issue.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


authz introspection: add a /whoami endpoint, wire it up in a2-api-integration using different authn methods

[Migrated from Jira -- originally reported by @srenatus on 2018.07.25]
With adding service certs for authentication, the authn story became a bit more complicated. To accommodate that, we should add some kind of integration test. This is how it could look like:

add a /whoami endpoint which returns the subjects of an incoming request

add a2-api-integration tests that call this endpoint using different ways of authenticating:
a. an id_token
b. an API token
c. a cert...
and verify that the outcome is as expected.

Followup comment, @srenatus, July 27, 2018, 5:09 AM
Jay has already committed some cert-based-authn test, so this isn’t too urgent anymore

this work has been deprioritized, so closing.


Finish renaming "IMBS" to "ITS"

We agreed long ago to use the term "Inventory and Transport Space (ITS)" in place of "Inventory and MailBox Space (IMBS)". But we have not updated all our docs and examples. This should be done.

@clubanderson

There are also a couple of files in ocm-transport-plugin (chart/values.yaml, chart/templates/controller.yaml) that need updating.


Update mirror to openSUSE 15.3

What does this PR change?
It updates the mirror to openSUSE 15.3.

I added a commit to also raise the minimum RAM. With the newer openSUSE comes a new repo that takes more memory to resolve by zypper.


⚠ Bofrost.be has degraded performance

In 029d5e9, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1525 ms

Resolved: Bofrost.be performance has improved in 7f01e41.


EU-DSGVO

User Story
As a: teacher and admin
I want: to ensure the EU-DSGVO
so that:
Acceptance criteria:

[ ] accept storage of personal data
[ ] decline storage of personal data
[ ] inform user of stored data
[ ] delete personal data

Additional info:

The last few weeks, we were pretty busy ensuring the DSGVO-readyness for Incloud. In this process, we created a whitepaper for our clients that summarizes what needs to be done in order to get their web applications DSGVO compliant: https://www.incloud.de/files/EU-DSGVO-Whitepaper.pdf
In a nutshell:

Easily understandable privacy policy.
Possibility to export all the personal data, that GELI has saved for my account.
Possibility to fully delete my own account.
Anonymization of all the personal user data, that is not needed in order to operate the platform. Maybe IP addresses that are sent to Google Analytics?
Regular security updates of all the used libraries and of the operation system itself to ensure the system is as "hacking proof" as possible.


Is there a way to see progress bars?

Progress logs or bars are not visible while training. Is there a way to turn them on?

click on logs button

Can it be specified in the config file? I am not using the GUI.

if not using the gui, the logs are printed in stdout or training space (depending on backend). ill need more information to look into it if you str saying logs arent visible :)

I am using Jupyter notebook in Anaconda. Kindly help... as I don't get to see any progress details.

i need more information. code. logs, screenshots.
please use issue template

Sure, I will submit the details. Thanks!

Where can I access the GUI version please?

I tried to start the GUI version on my machine with the Write token. I am getting this error:
INFO     | 2024-12-22 16:34:31 | autotrain.app.ui_routes::32 - Starting AutoTrain...
INFO     | 2024-12-22 16:34:40 | autotrain.app.ui_routes::298 - AutoTrain started successfully
INFO     | 2024-12-22 16:34:40 | autotrain.app.app::13 - Starting AutoTrain...
INFO     | 2024-12-22 16:34:40 | autotrain.app.app::23 - AutoTrain version: 0.8.21
INFO     | 2024-12-22 16:34:40 | autotrain.app.app::24 - AutoTrain started successfully
INFO:     Started server process [8604]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
ERROR:    [Errno 10048] error while attempting to bind on address ('<IP_ADDRESS>', 8080): only one usage of each socket address (protocol/network address/port) is normally permitted
INFO:     Waiting for application shutdown.
INFO:     Application shutdown complete.
I tried using other port numbers, and also stopping the PID that ran this port, but still get the same error.
Please help!
Attaching my env requirements file if required. Jupyter lab version 4.2.5
requirements.txt


Can't seem to update Service Fabric settings

Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Service Fabric' -Name FabricVersion
<IP_ADDRESS>94
I have been trying to update our cluster configuration by using
Get-ServiceFabricClusterConfiguration | Out-File c:\temp\sfconfig.json
Adding the new setting to this file
{   "Properties": {     ....     "FabricSettings": [                 .... 		{ 			"name": "MetricBalancingThresholds", 			"parameters": [ 				{ 				  "name": "CPU", 				  "value": "1000" 				} 			] 		}     ]     ..... }
Then trying to upload the modified file with the following command.
Start-ServiceFabricClusterConfigurationUpgrade -ClusterConfigPath C:\Temp\sfconfig.json
This results in the following error:
ValidationException: The new certificate cannot be added since the authentication type of the cluster cannot be modified.
I have not changed any of the authentication settings for the cluster, we are trying to upload exactly what was pulled down with the Get command.
So I tried removing the CertificateInformation section from the modified config, but this then results in an aggregateException containing the following:
"ErrorCode":  -2147017627,
"Message":  "Exception from HRESULT: 0x80071C65",
"Data":  "System.Collections.ListDictionaryInternal",
"InnerException":  null,
"TargetSite":  "Void EndUpgradeConfiguration(IFabricAsyncOperationContext)",
"StackTrace":  "   at System.Fabric.Interop.NativeClient.IFabricClusterManagementClient10.EndUpgradeConfiguration(IFabricAsyncOperationContext context)\r\n   at System.Fabric.Interop.Utility.\u003c\u003ec__DisplayClass22_0.\u003cWrapNativeAsyncInvoke\u003eb__0(IFabricAsyncOperationContext context)\r\n   at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)",
"HelpLink":  null,
"Source":  "System.Fabric",
"HResult":  -2147017627
Which seems pretty unhelpful.
So what am I missing here, is there no way to upgrade our cluster configuration or am I doing something wrong?

@AlexisColes Was the certificateInformation section present in the original manifest used to seed the cluster? Can you please share it as well (from the manifest you are trying to use for upgrade)?

Hey.
I am having the exact same issue.
Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Service Fabric' -Name FabricVersion
<IP_ADDRESS>94
Running the test configuration script yields no results
TestConfiguration.ps1 .\clusterConfig.json  -OldClusterConfigFilePath .\clusterConfigOld.json
Trace folder already exists. Traces will be written to existing trace folder: C:\Sf-Services\Scripts\DeploymentTraces
Running Best Practices Analyzer...
Best Practices Analyzer completed successfully.
[....]
Then I try the upgrade and I get the same exception
Start-ServiceFabricClusterConfigurationUpgrade -ClusterConfigPath .\clusterConfig.json
Start-ServiceFabricClusterConfigurationUpgrade : System.Runtime.InteropServices.COMException (-2147017627)
ValidationException: The new certificate cannot be added since the authentication type of the cluster cannot be modified.
At line:1 char:1

Start-ServiceFabricClusterConfigurationUpgrade -ClusterConfigPath .\c ...

  + CategoryInfo          : InvalidOperation: (Microsoft.Servi...usterConnection:ClusterConnection) [Start-ServiceFa
 ...gurationUpgrade], FabricException
  + FullyQualifiedErrorId : StartClusterConfigurationUpgradeErrorId,Microsoft.ServiceFabric.Powershell.StartClusterConfigurationUpgrade

When I created the standalone cluster I specified no certificates on my cluster config, as this was a cluster for local QA.
I can provide further info if required.
José Pedro Marques


Version number in library.properties does not match release versions

Release 1.3.7 and 1.3.8 both contain version nr 1.3.6 in library.properties.
This can cause problems when using a dependency on those specific versions
i.e.
dependency on https://github.com/h2zero/NimBLE-Arduino @ ^1.3.7 will raise an error as the downloaded lib with tag 1.3.7 contains 1.3.6 version label this will cause the following error:

Error: Package version 1.3.6+sha.8b5cfb0 doesn't satisfy requirements ^1.3.7 based on PackageMetaData <type=library name=NimBLE-Arduino version=1.3.6+sha.8b5cfb0 spec={'owner': None, 'id': None, 'name': 'NimBLE-Arduino', 'requirements': '^1.3.7', 'uri': 'git+https://github.com/h2zero/NimBLE-Arduino'}

See PR #394

This is due to using a release branch for 1.3.X versions, if you use<EMAIL_ADDRESS>instead of pointing to the git repo it works fine. The master branch isn't part of any release yet so the version hasn't been updated.
Thanks for the PR I will merge it to resolve this.


Build error deploying on vercel

This runs fine with yarn dev, but while deploying on vercel, I get this build error (which does not appear when I locally run yarn run build):
2021-11-15T16:09:02.616Z  undefined
2021-11-15T16:09:02.625Z  (node:919) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_URL]: Invalid URL: undefined
2021-11-15T16:09:02.625Z      at new NodeError (internal/errors.js:322:7)
2021-11-15T16:09:02.626Z      at onParseError (internal/url.js:270:9)
2021-11-15T16:09:02.626Z      at new URL (internal/url.js:346:5)
2021-11-15T16:09:02.626Z      at new Connection (/vercel/path0/node_modules/@solana/web3.js/lib/index.cjs.js:3504:15)
2021-11-15T16:09:02.627Z      at Object.730 (/vercel/path0/.next/server/chunks/730.js:30:20)
2021-11-15T16:09:02.627Z      at webpack_require (/vercel/path0/.next/server/webpack-runtime.js:25:42)
2021-11-15T16:09:02.627Z      at Object.476 (/vercel/path0/.next/server/pages/_app.js:16:81)
2021-11-15T16:09:02.628Z      at webpack_require (/vercel/path0/.next/server/webpack-runtime.js:25:42)
2021-11-15T16:09:02.628Z      at webpack_exec (/vercel/path0/.next/server/pages/_app.js:145:39)
2021-11-15T16:09:02.628Z      at /vercel/path0/.next/server/pages/_app.js:146:74
2021-11-15T16:09:02.629Z  (Use node --trace-warnings ... to show where the warning was created)
2021-11-15T16:09:02.629Z  (node:919) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
2021-11-15T16:09:02.629Z  (node:919) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2021-11-15T16:09:02.652Z  undefined
2021-11-15T16:09:02.655Z
2021-11-15T16:09:02.655Z  > Build error occurred
2021-11-15T16:09:02.659Z  TypeError [ERR_INVALID_URL]: Invalid URL: undefined
2021-11-15T16:09:02.659Z      at new NodeError (internal/errors.js:322:7)
2021-11-15T16:09:02.659Z      at onParseError (internal/url.js:270:9)
2021-11-15T16:09:02.659Z      at new URL (internal/url.js:346:5)
2021-11-15T16:09:02.659Z      at new Connection (/vercel/path0/node_modules/@solana/web3.js/lib/index.cjs.js:3504:15)
2021-11-15T16:09:02.660Z      at Object.730 (/vercel/path0/.next/server/chunks/730.js:30:20)
2021-11-15T16:09:02.660Z      at webpack_require (/vercel/path0/.next/server/webpack-runtime.js:25:42)
2021-11-15T16:09:02.660Z      at Object.476 (/vercel/path0/.next/server/pages/_app.js:16:81)
2021-11-15T16:09:02.660Z      at webpack_require (/vercel/path0/.next/server/webpack-runtime.js:25:42)
2021-11-15T16:09:02.661Z      at webpack_exec (/vercel/path0/.next/server/pages/_app.js:145:39)
2021-11-15T16:09:02.661Z      at /vercel/path0/.next/server/pages/_app.js:146:74 {
2021-11-15T16:09:02.661Z    type: 'NodeError',
2021-11-15T16:09:02.661Z    input: 'undefined',
2021-11-15T16:09:02.662Z    code: 'ERR_INVALID_URL'
2021-11-15T16:09:02.662Z  }
2021-11-15T16:09:02.715Z  error Command failed with exit code 1.
2021-11-15T16:09:02.716Z  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2021-11-15T16:09:02.735Z  Error: Command "yarn run build" exited with 1

You didn't add your environment variables to Vercel.


[DOC] Ingestion throughput recommendation for Neural plugin

What do you want to do?

[ ] Request a change to existing documentation
[ ] Add new documentation
[ ] Report a technical problem with the documentation
[ ] Other

Tell us about your request. Provide a summary of the request and all versions that are affected.
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.

@vibrantvarun: Could you give more of a description of what you're hoping to solve with this issue?

@Naarcha-AWS we would like to provide blurb on the ingestion bulk size recommendation for different ml connectors.


Changes watcher improvements

Style, error-avoidance, and performance fixes for the automatic changes watcher. There are details in the commits; at a high-level:

Don't throw exceptions when there's a change to a design doc or other non-relational_pouch doc.
Don't keep changes around in memory since the watcher doesn't need them.
Don't load records into the store that aren't already there. This makes a huge speed and memory difference on large databases.

All of these changes were initially suggested & implemented by my colleague @moses.

I left the PR in separate commits so the changes are easier to review. I'm happy to squash them before merging if you'd prefer.

Loving all these changes, and the separate commits makes it a lot easier to understand what's going on. :+1:
The only concern I have is that I see the complexity of this project growing, while we still aren't running any tests. :( All the tests are isolated to relational-pouch, because I wasn't familiar enough with Ember to set up a proper test suite.
That can wait for a future commit, though. For now, this looks great, thanks!

What if I do want a model to be loaded into the store if it weren't already? e.g. in-app notifications.

@lokeshj Sounds like an interesting solution. Could you document in in the README? :D

sure, will submit my solution

Overriding will sort of work, though wouldn't you'd have to copy the entire existing method to keep the existing behavior? Sounds hard to maintain.
If we want to make it documented that you can override it, we should make it not private (the _ prefix convention suggests it's private).
Alternative: how about a second change listener (defined in your application) that just reacts to new records?

@rsutphin yeah that sounds much better. I did have to copy the entire method and it certainly is tough to maintain.


Frank's Attempt at completing the Beginning Git video course

Hi,
This PR represents all the work I did to complete the raywnderlich.com Beginning Git video course. It was a delightful experience, and I'd recommend it to anybody!
Frank

Hey @fkim98 —congrats on submitting a PR at the end of the git course. I'm hope that you enjoyed the course, and that you were able to follow along easily and learn lots.
If you weren't already using git for your code, hopefully this has inspired you to do so. I hope that you enjoy the "Mastering Git" video course as well—you'll soon be able to get git to bend to your will :)
You can now wear this #GitWarrior badge with pride—and Tweet your historic victory!

sam


Parallel pipeline with long stage names makes box overflow screen and generate horizontal scrollbar

When displaying a pipeline job with parallel stages that have long names, the box for the job gets very wide and runs out of the screen on the right side, forcing the browser to add a scrollbar at the bottom. Also the job name with the link to the job can run out of the center.
This seems like a css issue, as the box, where the stage names are displayed, is limited to half of the size of a box for a job. Yet it still has the power to enlarge the whole box.
Here is a sample pipeline script, that can reproduce this issue:
node {
    parallel branch1: {
        stage('1: sleep some time') {
            sleep time: 1, unit: 'MINUTES'
        }
    }, branch2: {
        stage('2: sleep some time') {
            sleep time: 1, unit: 'MINUTES'
        }
    }, branch3: {
        stage('3: sleep some time') {
            sleep time: 1, unit: 'MINUTES'
        }
    }, branch4: {
        stage('4: sleep some time') {
            sleep time: 1, unit: 'MINUTES'
        }
    }

}

On the first screenshot everything is good, as no job is running. On the second screenshot you can see the issue. There are two jobs, the top one is the example form above, the bottom job ("Short names") ist the same, but the stage names are set to shorter names, containing only the number.

We just hit this after migrating a bunch of jobs which ran 250+ tests in serial to dynamically generating and running parallel stages. It effectively means we can't render these jobs on the build monitor panel because you can only see a few stage names on the screen.  We display the build monitor panels on large TV's at work, so we can't really scroll.

Same for me. How about providing an option whether to show current stages at all? I'm happy with just the build number alone.

We also just hit this by having many parallel tests.
Are there any updates regarding this issue?
I agree that there should just be an option to not show current stages.

Did anyone find a way to adjust hiding/truncating/wrapping stages?

Hi,
No there is no update on this.
But I have manually removed this pipeline stages from the .js file in the plugin, since I don't use it at all.
You can do it by yourself by editing the file:
{Jenkins dir}/plugins/build-monitor-plugin/scripts/expansions/build-number.js
And then remove the following from the file:
'', '{{build.pipelineStages}}', '',
Remember to restart Jenkins afterwards to make it work and remember that updating Jenkins will undo this change, so you have to appy it again after an update

If anyone is motivated to fix this issue, pull requests would be welcome.


How to place command for file right click?

I want to place the command for file context menu?
How can I get this behavior?

@KannanKrish are you interested in old model or OOP-model (the new one)? for old: example of command https://github.com/lsoft/DpdtInject/blob/master/DpdtInject.Extension.VsixShared/DpdtInstallCommand.cs
you need also update vsct https://github.com/lsoft/DpdtInject/blob/master/DpdtInject.Extension.2022/Dpdt.Extension.vsct
and working with icon. Also I recommend a series of view tutorials from Mads Kristensen. I that tutorials he added commands a lot of time. Also consider switching to VS Community Toolkit, it makes your work easier.

In addition to what @lsoft shared for the current model, if you're working with the new extensibility model (VisualStudio.Extensibility), instructions for placing a command can be found here. We currently support placing a command in the Tools menu, the Extensions menu, and the Views>Other Windows menu.


Bug: MP Default Section

Issue:
Missing NFS from Create Default Select Fuel Code list
Steps to Recreate:

Check out 564 config CCB
Select Default from MP section
View/Edit NOXR
Add 10/31/2023 hour  9
Save and Close
Click Create Default
Select NOxR
Select Fuel Code

https://usepa.sharepoint.com/sites/CAMDCVPTeam/Shared Documents/ECMPS Beta Testing/2023-10-27 Screenshots/564uCCB-MissingNFSfromDefaultFuelCodeSelect.png?csf=1&web=1&e=LiaH9a&cid=bad4e5a7-8f83-45c5-8825-29d5ed74ca54

@cw-cvp per Chris Worley please remove the restriction on fuel code and show all fuel codes in the dropdown using master data. We will remove the fuel code column from the relationship data once this is done.

@mosesdeeCVP

Private Zenhub Image

NFS is available for selection in MP Default Section


Fix Doxygen White Spaces [5998]

Merging, as this PR does not add code changes, only changes to the doxygen file.


Yosemite issue.  Please help!

Just converted to OSX Yosemite and this is what is get. I've tried uninstalling and reinstalling with gem, brew update, nothing works.  Thanks!
i2cssh -l root server1 server2
/usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0/rb-appscript-0.6.1/_aem/connect.rb:89:in rescue in launch_application': OS error (-600) (Connect::CantLaunchApplicationError) 	from /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0/rb-appscript-0.6.1/_aem/connect.rb:85:in launch_application'
from /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0/rb-appscript-0.6.1/_aem/connect.rb:182:in rescue in local_app' 	from /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0/rb-appscript-0.6.1/_aem/connect.rb:177:in local_app'
from /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0/rb-appscript-0.6.1/aem.rb:146:in by_path' 	from /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0/rb-appscript-0.6.1/appscript.rb:57:in connect'
from /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0/rb-appscript-0.6.1/appscript.rb:159:in reference_by_name' 	from /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0/rb-appscript-0.6.1/appscript.rb:633:in method_missing'
from /usr/local/lib/ruby/gems/2.1.0/gems/i2cssh-1.12.0/lib/i2cssh.rb:18:in initialize' 	from /usr/local/lib/ruby/gems/2.1.0/gems/i2cssh-1.12.0/bin/i2cssh:192:in new'
from /usr/local/lib/ruby/gems/2.1.0/gems/i2cssh-1.12.0/bin/i2cssh:192:in <top (required)>' 	from /usr/local/bin/i2cssh:23:in load'
from /usr/local/bin/i2cssh:23:in `'

I am also unable to run on Yosemite
my config
---
version: 2
itermname: /opt/homebrew-cask/Caskroom/iterm2/2.0.0/iTerm.app
clusters:
  prod:
    login: jdyer
    hosts:
     - t108.orl.xxx
     - t109.orl.xxx

and here is the error
# jdyer at retina.dyer in ~ [9:43:33]
$ i2cssh prod
/Users/jdyer/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/rb-appscript-0.6.1/appscript.rb:542:in `_send_command': CommandError (Appscript::CommandError)
		OSERROR: -1728
		MESSAGE: Can't get reference.
		OFFENDING OBJECT: app("/System/Library/CoreServices/System Events.app").processes["/opt/homebrew-cask/Caskroom/iterm2/2.0.0/iTerm.app"]
		COMMAND: app("/System/Library/CoreServices/System Events.app").processes["/opt/homebrew-cask/Caskroom/iterm2/2.0.0/iTerm.app"].menu_bars[1].menu_bar_items["Shell"].menus["Shell"].menu_items["Split Vertically with Current Profile"].click()
	from /Users/jdyer/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/rb-appscript-0.6.1/appscript.rb:642:in `method_missing'
	from /Users/jdyer/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/i2cssh-1.12.0/lib/i2cssh.rb:91:in `block in split_session'
	from /Users/jdyer/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/i2cssh-1.12.0/lib/i2cssh.rb:90:in `upto'
	from /Users/jdyer/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/i2cssh-1.12.0/lib/i2cssh.rb:90:in `split_session'
	from /Users/jdyer/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/i2cssh-1.12.0/lib/i2cssh.rb:29:in `initialize'
	from /Users/jdyer/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/i2cssh-1.12.0/bin/i2cssh:192:in `new'
	from /Users/jdyer/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/i2cssh-1.12.0/bin/i2cssh:192:in `<top (required)>'
	from /Users/jdyer/.rbenv/versions/2.1.3/bin/i2cssh:23:in `load'
	from /Users/jdyer/.rbenv/versions/2.1.3/bin/i2cssh:23:in `<main>'

# jdyer at retina.dyer in ~ [9:43:39]

I am running OSX 10.10.1 and iTerm2 Build <IP_ADDRESS>41103


Ensure all build variants are produced

This typo meant that only the mpich variant was produced

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender


[tool_crash] FileSystemException: Cannot copy file to '/Users/user215378/Documents/flutter/bin/cache/artifacts/engine/ios/LICENSE', OS Error: No such file or directory, errno = 2

Command
flutter --no-color run --machine --track-widget-creation --device-id=484AB090-B3DA-4AD5-8F3F-D2CF66B76B32 --start-paused --dart-define=flutter.inspector.structuredErrors=true lib/main.dart

Steps to Reproduce

...
...
...

Logs
FileSystemException: Cannot copy file to '/Users/user215378/Documents/flutter/bin/cache/artifacts/engine/ios/LICENSE', OS Error: No such file or directory, errno = 2
#0      _File.copy.<anonymous closure> (dart:io/file_impl.dart:328:9)
#1      _rootRunUnary (dart:async/zone.dart:1434:47)
<asynchronous suspension>
#2      ForwardingFile.copy (package:file/src/forwarding/forwarding_file.dart:26:51)
<asynchronous suspension>
#3      ForwardingFile.copy (package:file/src/forwarding/forwarding_file.dart:26:51)
<asynchronous suspension>
#4      EngineCachedArtifact.updateInner (package:flutter_tools/src/cache.dart:926:7)
<asynchronous suspension>
#5      CachedArtifact.update (package:flutter_tools/src/cache.dart:812:5)
<asynchronous suspension>
#6      Cache.updateAll (package:flutter_tools/src/cache.dart:681:9)
<asynchronous suspension>
#7      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1272:7)
<asynchronous suspension>
#8      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
<asynchronous suspension>
#9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
<asynchronous suspension>
#11     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
<asynchronous suspension>
#12     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>

[✓] Flutter (Channel stable, 2.10.3, on macOS 12.1 21C52 darwin-x64, locale en-US)
    • Flutter version 2.10.3 at /Users/user215378/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (12 days ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/user215378/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

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

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] IntelliJ IDEA Community Edition (version 2020.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

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

[✓] Connected device (2 available)
    • iPhone Xs Max (mobile) • 484AB090-B3DA-4AD5-8F3F-D2CF66B76B32 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 99.0.4844.51

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 7e9793dee1b85a243edd0e06cb1658e98b077561

There are similar issues reported, but the stacktrace is different from the one reported here, so keeping it open and labeling for further investigation.
https://github.com/flutter/flutter/issues/68958
https://github.com/flutter/flutter/issues/91559
/cc @christopherfujino


Access returned values from include

Currently:
$ boris
[1] boris> $a = include 'myfile.php';

$

Expected similar to:
$ php -a
Interactive shell

php > $a = include 'myfile.php';
php > var_dump($a);
string(5) "VALUE"
php > ^D⏎
$

What does your myfile.php look like? Does it use a return statement?
This seems to works for me:
test.php
<?php

return 'hello';

$ boris
[1] boris> var_dump(include 'test.php');
string(5) "hello"

$ boris
[1] boris> $a = include 'test.php';
// 'hello'
[2] boris> var_dump($a);
string(5) "hello"

Looks like it was fixed then.


Does Instance Segmentation Cityscapes's Annotation datasets exist?

I want to train Mask R-CNN on cityscapes. But I don't know where annotation of instance segmentation is?. It is generated by createTrainIdInstanceImgs.py ? (using json files?)
Please confirm me if i wrong.
Thanks a lot.

yes, just use this scripts.


Apply fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.

For more information, click here.

Codecov Report

Merging #62 into dev will not change coverage.
The diff coverage is 100%.

@@            Coverage Diff            @@
##                dev      #62   +/-   ##
=========================================
  Coverage     97.24%   97.24%
  Complexity      840      840
=========================================
  Files           130      130
  Lines          3776     3776
  Branches        188      188
=========================================
  Hits           3672     3672
  Misses          104      104

Flag
Coverage Δ
Complexity Δ

#js
100% <ø> (ø)
0 <ø> (ø)
:arrow_down:

#php
96.21% <100%> (ø)
840 <0> (ø)
:arrow_down:

Impacted Files
Coverage Δ
Complexity Δ

app/Providers/AppServiceProvider.php
100% <ø> (ø)
7 <0> (ø)
:arrow_down:

app/Http/Middleware/FireUserAuthenticated.php
100% <ø> (ø)
2 <0> (ø)
:arrow_down:

app/Http/Middleware/RejectBannedUser.php
100% <ø> (ø)
3 <0> (ø)
:arrow_down:

app/helpers.php
88.13% <ø> (ø)
0 <0> (ø)
:arrow_down:

app/Http/Controllers/SkinlibController.php
100% <ø> (ø)
84 <0> (ø)
:arrow_down:

app/Http/Middleware/DetectLanguagePrefer.php
100% <ø> (ø)
3 <0> (ø)
:arrow_down:

app/Http/Middleware/Authenticate.php
100% <ø> (ø)
2 <0> (ø)
:arrow_down:

app/Http/Controllers/AuthController.php
100% <100%> (ø)
38 <0> (ø)
:arrow_down:

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 4741fa9...d0609af. Read the comment docs.


Autocall install() if COLOREDLOGS_AUTOUSE=1.

Installs a .pth file so that one can automatically call install() by
setting the COLOREDLOGS_AUTOUSE environment variable.
Note that due to the order in which pth files are loaded, this will not work
if humanfriendly is installed system-wide but colorlogs installed as a
user package (this is what the except ImportError clause catches); however
everything works fine if they are installed to the same site-packages.
See #19.

PS: the tests failures (which also occur on master) are due to the addition of the SPAM logging level in your verboselogs module.

Hi Antony and thanks for the feature request in #19 and implementation in this pull request. I've merged your changes and released coloredlogs version 5.2 which includes the suggested .pth file.
While merging this pull request and writing tests for it I changed the implementation quite a bit from the original pull request:

The environment variable was renamed from COLOREDLOGS_AUTOUSE to COLOREDLOGS_AUTO_INSTALL (in order to make it consistent with the other environment variables) and added to the documentation.
The coloredlogs.pth file was changed in order to reduce the amount of code required inside the .pth file as much as possible and create room to grow this feature if required, by extending coloredlogs.auto_install(). I seriously dislike writing out complex code in a single line, especially when dealing with Python code :-).
The coloredlogs.pth file was added to MANIFEST.in to make sure that python setup.py sdist copies the .pth file into the source distribution archives published to PyPI.
The setup.py script was changed to figure out the location of the lib/pythonX.Y/site-packages directory using distutils instead of 'hard coding' the site-packages name (which I dislike for various reasons).
The setup.py script was changed to preserve compatibility with universal wheel distributions using what looks like an undocumented hack found through trial and error (the other hacks I found were much worse :-).
I ran into this incompatibility when running the tests under tox, which runs pip install under the hood, which in turn runs python setup.py bdist_wheel under the hood to enable wheel caching.

The relevant changes mentioned above in 41499a1ff4d50ca1b32a609ab1d321a1fecbd3ed. After merging this pull request I struggled quite a bit to get the new test working on Travis CI, refer to 961d851b1b520276ebc6e906acb08ff16ffff8f5...556e64b89e01e7dfa67317d12e1623675444e073 for details.


What is the purpose of this component? How is it linked to the others?

Create a proper Readme and if necessary an example repository to illustrate the functionality

closed with commit 35e4cf18247b968fb804b5088a362e19de9c40a1


React 18 Bugs

When I migrated the react example into my  project, a typescript error complaining about the children appeared in the "WalletSelectorContext".  Screenshot below

It appears to be an issue with React 18 since "React 18 removed children from the FC type." per Stackoverflow.
I made a change in it to include a Props type per the below and the error disappeared:
type Props = {
children?: React.ReactNode;
};
export const WalletSelectorContextProvider: React.FC = ({
children,
}: Props)
But there is another issue under "index.tsx" where the WalletSelectorContext has an error per the below. It appears to be related (i.e. something changed in React 18) but I can't resolve the issue yet. Let me know if there's anything else you need to help replicate the error.

Hey, @thalasith thank you for raising this issue.
The error/warning shows because in React 18 with Typescript by default in tsconfig,json in compilerOptions you have the value of strict set to true.
To fix this you can either set the value of strict to false or you can provide the proper type:
export const WalletSelectorContextProvider: React.FC<{ children: ReactNode; }> = ({ children }) => {
  // the rest of the code...
}

From what I could read on different websites, the Ract.FC has not been removed in React 18, it seems like it was removed from the TypeScript template of create-react-app to avoid inciting to use it.
This means it can still be used in React 18 but CRA does not create components/contexts by default and set the type of them to React.FC.

Yup! Thanks - I stick a "@ts-ignore" to avoid the issue. Flagged it in case other iterations of React causes further issues

Thanks for raising this issue @thalasith. I will close it, for now, and feel free to reopen it if you have any other issues or questions.


Update insecure video src from 'https' to 'http'

What's changed, or what was fixed?

Sample passive mixed content insecure video src updated from 'https' to 'http'

Fixes: #6019
Target Live Date: YYYY-MM-DD

[ ] This has been reviewed and approved by (NAME)
[ ] I have run gulp test locally and all tests pass.
[ ] I have added the appropriate type-something label.
[ ] I've staged the site and manually verified that my content displays correctly.

CC: @petele

:tada: This has been pushed live to https://developers.google.com/web/


version arg is not passed down with the call to parse in STIXObjectProperty.clean

If the version argument is passed in on the original call to parse, it should be passed down also in any recursive calls.  This was not the case here: https://github.com/oasis-open/cti-python-stix2/blob/e3c2a3a57b83da8ce914ba7ea738d2e2813d551e/stix2/properties.py#L685.

Is this a reaction to, or related to my comment here, specifically regarding adding a spec_version property to SCOs?  I think I stumbled across this same thing, and decided it was not a bug.  The reason is because I thought STIX 2.1 bundles were allowed to contain both 2.0 and 2.1 objects.  That means it is inappropriate force a single version on the objects you add to it.
So 2.1 bundles must somehow figure out the spec version of each object individually.  spec_version is optional in STIX 2.1, and without it, there is no good way to identify object spec versions, which could be seen as a problem.  My solution was to add a spec_version property to all objects so that they were self-identifying.
How to detect spec version without a spec_version property wasn't in scope for the translator, so I did something simple.  Maybe it's a STIX spec issue?  Or maybe people just thought APIs should include spec version as separate metadata, and accepted that you wouldn't try to figure it out from a plain old STIX object dict?  Maybe we need to think about adjusting our stix2 library APIs to allow callers to specify spec version per-object, where necessary?  Or just tell people to add the spec_version property to help the library out, which is what I did?

No, I didn't see you comment - this was the result of a bug I came across while updating the slider.  You make a good point about a bundle containing both 2.0 and 2.1 objects.  I didn't look at the code in detail, @clenk and I just thought this would be an easy quick fix.  I guess the passed in version arg should be used as the "default" version, for when if the spec_version property isn't available.  On the other hand -  SCOs can only be 2.1 objects - in 2.0 cyber observables don't exist at the top-level.  Also, spec_version is only optional on SCOs, it is required for SDO/SROs
I guess we need to look into this more deeply. as you say.

On the other hand - SCOs can only be 2.1 objects

Yeah, but there was nothing in the stix2 "parsing" code to autodetect an object dict as a 2.1 SCO.  I looked, the code is very simple: if you don't specify a version and there is no spec_version property, there is a little bit of smarts regarding bundles, but aside from that, it assumes 2.0.  Obviously that doesn't work for a 2.1 SCO without a spec_version property.

Also, spec_version is only optional on SCOs, it is required for SDO/SROs

Ah, right.  I wanted to double-check that but access to google docs was blocked! /sighhh

@clenk : parse() has been changed to work for both observables (even 2.0) and SDOs/SROs right?  So the function needs to recognize all of those things.  (I see parse_observable() is still there though, so we'll have to ensure that works too.)  Thinking of a more detailed algorithm... yeah, if there is ambiguity, check the mappings for stix2.DEFAULT_VERSION first, then the "other" version.  But if we make use of IDs, maybe we won't (yet) have to deal with ambiguity.  Perhaps if there is no ID property, we conclude it must be a 2.0 SCO?  Otherwise, if a bundle { spec_version present=>2.0 else 2.1 }, else if spec_version present => 2.1, else no spec_version is present, so it could be a 2.1 SCO or 2.0 SDO/SRO.  Need to consult type maps.  If type is in the 2.1 SCO type map => 2.1, else 2.0?
@rpiazza : If the above strategy works, then custom 2.0 SCOs would be handled, right?  They wouldn't have an ID, so right away you know what they are.  Does that parse() method need to handle anything else that doesn't have an ID property?  (Of course, they'd have to be registered too, so we have a class in the appropriate mapping.)

@chisholm - you should be able to recognize 2.0 SCOs (if they even ever exist) as they MUST be wrapped in an Observable. So any top-level SCOs must be 2.1 . I don't know if this provides any help to fix the problem.  The ID issue is seems like a good idea to explore.

Related: https://github.com/oasis-tcs/cti-stix2/issues/217


ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'

Please make sure that this is a build/installation issue and also refer to the troubleshooting documentation before raising any issues.
System information (Please provide as much relevant information as possible)

Windows 10:
Programming Language and version ( Python 3 ):
[MediaPipe version]: latest docker
[MediaPipe version 0.8.11:
Bazel version 5.3.1:
OpenCV version 4.6.0:

Describe the problem:
**[Provide the exact sequence of commands / steps that you executed before running into the problem]I followed the installation instructions on  https://google.github.io/mediapipe/getting_started/install.html#installing-on-windows : Installing using Docker
docker build --tag=mediapipe .
docker run mediapipe
gave me No module named 'mediapipe.python._framework_bindings'
Complete Logs:
Include Complete Log information or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached:
(base) PS C:\Users\korin\mediapipe-master> docker run mediapipe
Traceback (most recent call last):
File "./myface.py", line 2, in
import mediapipe as mp
File "/mediapipe/mediapipe/init.py", line 16, in
from mediapipe.python import *
File "/mediapipe/mediapipe/python/init.py", line 17, in
from mediapipe.python._framework_bindings import resource_util
ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'

Hi @divastar, Have you looked at this similar closed issue #3130 and #3130(comment). Thank you!


⬆ Update HTML for docs/oauth2-redirect using swagger-ui's latest version

When using OpenIDConnect and the "authorization_code with PKCE" flow,
swagger-ui will name the flow authorization_code rather than
authorizationCode. [0]
The old HTML document generated by fastapi only handled the latter
spelling. This meant that trying to authenticate using the swagger UI
would fail with:
auth errorError: Bad Request, error: invalid_request, description: Missing parameter: code

This commit updates the HTML used by fastapi for the
docs/oauth2-redirect using the latest version published by swagger-ui
[1] which brings in a fix for the bug described above.
The rest of the changes relate to improving support for Chrome and Edge.
[2]
[0] https://github.com/swagger-api/swagger-ui/blob/626defc839f80f0d08105cb72b8f6b7d3334db9c/src/core/components/auth/oauth2.jsx#L130
[1] https://github.com/swagger-api/swagger-ui/blob/626defc839f80f0d08105cb72b8f6b7d3334db9c/dev-helpers/oauth2-redirect.html
[2] https://github.com/swagger-api/swagger-ui/pull/6393

Duplicates https://github.com/tiangolo/fastapi/pull/5189 but I feel like the commit message I wrote gives more context so I'll keep it open for now.

Thank you @ypsah! :rocket:
This was solved in a recent PR, included in the next release, FastAPI 0.81.0, so I'll close this one. But if you feel there's something else that needs to be done, please create a new PR, to avoid the conflicts.
Thanks for the effort! :coffee:


[Improvement] Format error log output in case of metrics json file not found

Why are the changes needed?

Before
2023-03-20 10:02:04.718 ERROR org.apache.kyuubi.metrics.JsonReporterService: Error writing metrics to json file/pathi/metrics/report.json

After
2023-03-20 10:02:04.718 ERROR org.apache.kyuubi.metrics.JsonReporterService: Error writing metrics to json file: /path/metrics/report.json

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Thanks, merged to master/1.7.1 .


Caching responses from action?

Is there an existing issue for this?

[X] I have searched the existing issues and found nothing that matches

Library version (optional)
latest
Ask a question
Is it possible to cache the responses from a next safe action, probably using the middleware, depending on the arguments passed to it?
Additional context
No response

I'm new to this project, but I wanted to call two things out:

Caching a POST request (i.e. the type of actions that you put in server actions) is an anti-pattern
In NextJS App Router, you should be fetching data in your Server Component, and then re-render that component as needed.

I understand, but Next.js has really changed how I have to think about traditional data fetching patterns because of the client/server limitations. I'm using Next.js for a very large B2B application.
For example, I am using server actions (as a faux GET) whenever a user opens a dialog/modal and there's a multi-select which allows a user to pick from a list.
The select component is inside a client component, deeply nested, so there's no way to call the get options function without prop-drilling. That's why I make use of actions to fetch data on mounting of this component.
Would be happy to know what other alternatives are out there?

@AmruthPillai you probably want a client request using react-query or SWR.

If I understand correctly, you want to access data in a client component that was previously server-side rendered (SSR), right?
I think in some patterns you can follow:

Store the data in a Context API to make it accessible in a client component.
react-query's prefetchQuery to prefetch the data on the server and access the cache from the client, avoiding creating a new request.

The new middleware system in next branch/channel (for version 7 of the library) is much more powerful and should allow something like this. However, I agree with the other users that commented here, that you shouldn't really cache a Server Action, since it's used to mutate data. Hope this helps.

I've since moved to the approach of using React Query to fetch get requests. The comments here really did help a lot, and helped me understand the best practice.
I am looking forward to the middleware functionality though as we would have a couple of use-cases for this as well, to run side-effects on a specific POST action. Looking forward to the new release, thank you for all your hard work!


[Orgs] Update banner of the GitHub organisation

Replacing old web3community banner with a new one

Describe the changes you've made

Replacing old web3community banner with a new one

Type of change
What sort of change have you made:

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

Screenshots (if applicable)

Original
Updated

Code of Conduct

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

Use this, have changed a bit in the banner

Yes, much better thanks! ⚡

Wow this is awesome!!


Add a Gitter chat badge to ReadMe.Md

simonmittag/j8a now has a Chat Room on Gitter
@simonmittag has just created a chat room. You can visit it here: https://gitter.im/simonmittag-j8a/community.
This pull-request adds this badge to your ReadMe.Md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

won't merge, use github discussions instead


npm start fails with "Watcher took too long to load"

When I run npm start, it fails indicating a timeout. (This is on a circa-2011 Mac laptop.)
Mike-Fikess-MacBook-Pro:react-native mfikes$ npm start

><EMAIL_ADDRESS>start /Users/mfikes/Documents/Projects/react-native
> ./packager/packager.sh

 ===============================================================
 |  Running packager on port 8081.
 |  Keep this packager running while developing on any JS
 |  projects. Feel free to close this tab and run your own
 |  packager instance if you prefer.
 |
 |     https://github.com/facebook/react-native
 |
 ===============================================================

React packager ready.

[Error: Watcher took too long to load.]
Error: Watcher took too long to load.
    at null._onTimeout (/Users/mfikes/Documents/Projects/react-native/packager/react-packager/src/FileWatcher/index.js:37:16)
    at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)

  >>> ERROR: could not create packager - please shut down any existing instances that are already running.

I've rebooted just to be sure nothing else is running.
To rule out a race, I've increased the MAX_WAIT_TIME on line 21 of react-native/packager/react-packager/src/FileWatcher/index.js to as much as 2 minutes, but this doesn't resolve the issue.
I've installed node and watchman via brew:
Mike-Fikess-MacBook-Pro:~ mfikes$ brew list
node		pcre		watchman

and I'm running the latest version of OS X:
Mike-Fikess-MacBook-Pro:~ mfikes$ uname -a
Darwin Mike-Fikess-MacBook-Pro.local 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64

I have all of this running successfully on another machine, so this will probably boil down to finding out what the critical difference between the two is.

I'm not sure how it all fell into place, but I ended up in the same place as @mfikes.  I followed his above steps and was able to resolve the issue.
The odd part is that pcre appeared to have been installed by homebrew (it came up in brew ls).  I was also able to run watchman from the command line in other scenarios and it would work, it was only not working for react-native!  Anyway, uninstalling pcre and doing a fresh install of node and watchman resolved my issue.  Thanks for documenting how you fixed it @mfikes!


Desynchronization issue with Dissonant Whispers in multiplayer (6 players)

When a Bard casts Dissonant Whispers in a 6-player multiplayer game, the Host sees the enemy fleeing, but other players cannot see the enemy’s movement, causing desynchronization.

Thanks for reporting but nothing I can do if you don’t properly reports it. Game and mod versions, saves before and after, logs right after. I got a deal with Gandalf. He doesn’t develop, I don’t do magic 😝

Game Version:1.5.97
Mod Version:<IP_ADDRESS>
sorry I didn't provide the information clearly

You need to wait for the upload to finish after dragging files on here... Both links above take me nowhere.

Finished upload.
Sorry I haven't used the issue reporting feature before, so I'm not very familiar with these.

Thanks for reporting but nothing I can do if you don’t properly reports it. Game and mod versions, saves before and after, logs right after. I got a deal with Gandalf. He doesn’t develop, I don’t do magic 😝

I disagree. Gandalf may not develop, but for me, everything Thywoof does, is magic. Or a miracle if you prefer.

This spell uses the enemy brain to determine the movement location based on fear behavior. If I remember correctly only the host runs enemies combat brains as this is a non deterministic process. I need to learn how to pass brain decisions to other clients. Might take a bit longer to fix. Meanwhile, don’t use it as confirmed it breaks MP.


API 'android.registerTransform' is removed

AGP升级8.0之后报错 API 'android.registerTransform' is removed

同问，如何解决

What went wrong:
A problem occurred evaluating project ':app'.

Failed to apply plugin 'io.github.wurensen.android-aspectjx'.
API 'android.registerTransform' is removed.


replyTo does nothing in MailSender

❗ please do not add sensitive information in issues, you can provide extra information via email using issue number as reference ❗
Describe the issue
While you are using MailSender to send emails, there is a "replyTo" field in the XML message, in principle when a person wants to reply this email, the email address in "replyTo" field should be selected in stead of "from".
Reporter
Bibi
Environment
FF! 7.7.5: ibis4XXXX
Running on srpzzapp0648.insim.biz using IBM WebSphere Application Server/<IP_ADDRESS>
Java Version: Java(TM) SE Runtime Environment (<IP_ADDRESS> - pxa6480sr8-20230314_01(SR8))
Heap size: 1324M, total JVM memory: 2048M
Free disk space: 10GB, total disk space: 12GB
Up since: 2023-09-27 18:40:10 (26d)

Additional Context
https://learn.microsoft.com/en-us/previous-versions/office/developer/exchange-server-2010/bb426434(v=exchg.140)

@Bibi0803 In the Frank which has the problem, is the mail message constructed using Sender Parameters, or only using an XML input message?

only using an XML input message


Option to connect to lemmy without  ssl/tls

I am starting to work on adding SSO support for thunder. Lemmy SSO support hasn't been released yet, I so I have to develop against a local lemmy instance. I think SSL/TLS is preventing Thunder from my connecting to my local lemmy instance. The lemmy docker-compose to set up a local lemmy does not have SSL/TLS setup. I think making an option in Thunder to connect to an instance without TLS is a little bit better solution than turning on TLS on lemmy.
Here are my notes for setting up a local dev lemmy with docker:
https://gist.github.com/gwbischof/ea41a74410b8fa890f148b5d45310513

Just tested this, look like its working correctly


feat!: nuking PublicToken and PrivateAirdropToken

Both tokens are no longer needed as the new Token is enough.
Note: I decided to not replace the private token airdrop contract in private execution test because the test was pretty much identical to the stateful test contract one.
Checklist:
Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge.

[ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag.
[ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code.
[ ] Every change is related to the PR description.
[ ] I have linked this pull request to relevant issues (if any exist).

Benchmark results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit cb18f455 and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,444
179,588
716,132

l1_rollup_calldata_gas
222,900
867,788
3,448,076

l1_rollup_execution_gas
841,987
3,594,896
22,203,445

l2_block_processing_time_in_ms
1,030 (-1%)
3,929 (-2%)
15,426 (-2%)

note_successful_decrypting_time_in_ms
328 (-1%)
999 (-2%)
3,710 (-1%)

note_trial_decrypting_time_in_ms
:warning: 28.0 (-18%)
108
137 (-1%)

l2_block_building_time_in_ms
8,995 (-1%)
35,732 (-1%)
150,057 (-1%)

l2_block_rollup_simulation_time_in_ms
6,673 (-1%)
26,476 (-2%)
105,749 (-1%)

l2_block_public_tx_process_time_in_ms
2,278
9,126 (-1%)
43,841

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
14,406 (+1%)
:warning: 37,393 (+21%)

note_history_successful_decrypting_time_in_ms
2,417 (+2%)
:warning: 5,903 (+24%)

note_history_trial_decrypting_time_in_ms
124 (+2%)
156 (+7%)

node_database_size_in_bytes
1,648,486
1,190,202

pxe_database_size_in_bytes
27,188
54,187

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
44.1
56,577
14,745

private-kernel-ordering
21.3
20,137
8,089

base-rollup
854
631,605
811

root-rollup
37.9
4,072
1,097

private-kernel-inner
36.3
72,288
14,745

public-kernel-private-input
47.0
37,359
14,745

public-kernel-non-first-iteration
27.8 (-2%)
37,401
14,745

merge-rollup
0.899 (+2%)
2,592
873

Miscellaneous
Transaction sizes based on how many contracts are deployed in the tx.

Metric
0 deployed contracts
1 deployed contracts

tx_size_in_bytes
8,723
27,094


Question: No Such interface supported

When I'm running my UWP app I am consistently seeing the following output in the output window::
onecore\com\combase\dcomrem\marshal.cxx(1111)\combase.dll!00007FFF7F3C1264: (caller: 00007FFF7F3C24CC) ReturnHr(156233) tid(b0c) 80004002 No such interface supported
    Msg:[Failed to marshal with IID={11D3B13A-180E-4789-A8BE-7712882893E6}]
onecore\com\combase\dcomrem\marshal.cxx(1032)\combase.dll!00007FFF7F3C24F9: (caller: 00007FFF7F3B605D) LogHr(78117) tid(b0c) 80004002 No such interface supported
onecore\com\combase\dcomrem\marshal.cxx(972)\combase.dll!00007FFF7F3B61CD: (caller: 00007FFF7B4F2021) ReturnHr(156234) tid(b0c) 80004002 No such interface supported

I'm trying to figure out ... How do I figure out what's causing this?  It is not crashing my application. But I sure would like to understand what's up with that.  I see a closed ticket #2327 in this forum that also references the same IID.  If anyone has any ideas on how to track down what's causing it I'd be supper grateful.
I'm on Windows 10 1809 (long term support)  ui.xaml 2.1
Thanks!

@hooligan495 could you try following the instructions here: https://github.com/microsoft/microsoft-ui-xaml/blob/master/docs/debugging_crashes.md to get more info on what is going on?

THanks Stephen.
The thing is my app is NOT crashing..  i'm just seeing that output in teh VS output window when running release mode.  If I could force a crash then maybe I could use the info in that link.

If you enable mixed mode debugging (native + managed) is the output more useful?

Have you found the cause of these errors? I have the same one (or at least the same IID) in my UWP app.
    Msg:[Failed to marshal with IID={11D3B13A-180E-4789-A8BE-7712882893E6}]
onecore\com\combase\dcomrem\marshal.cxx(1177)\combase.dll!00007FFE2ACE02F4: (caller: 00007FFE2ACDEBFB) LogHr(28) tid(277c) 80004002 Cette interface n’est pas prise en charge
onecore\com\combase\dcomrem\marshal.cxx(1117)\combase.dll!00007FFE2ADE7B8C: (caller: 00007FFE22F14CF8) ReturnHr(52) tid(277c) 80004002 Cette interface n’est pas prise en charge
onecore\com\combase\dcomrem\marshal.cxx(1282)\combase.dll!00007FFE2ACE0F0B: (caller: 00007FFE2ACE02C4) ReturnHr(53) tid(277c) 80004002 Cette interface n’est pas prise en charge

@loics2 @hooligan495  I get the same issue in an app using Xamarin.UWP.
I have gotten a couple of crashes that seem to be related, but can't be sure.
Are you using Xamarin?
Hope you guys can remember this issue.

I'm seeing this issue now as well. To answer the outstanding question, it seems to make no difference when mixed debugging is selected.
onecore\com\combase\dcomrem\marshal.cxx(1284)\combase.dll!00007FFB4F2DC1AB: (caller: 00007FFB4F2DB564) ReturnHr(192) tid(1ac8) 80004002 No such interface supported Msg:[Failed to marshal with IID={11D3B13A-180E-4789-A8BE-7712882893E6}]
onecore\com\combase\dcomrem\marshal.cxx(1179)\combase.dll!00007FFB4F2DB594: (caller: 00007FFB4F2DA11B) LogHr(96) tid(1ac8) 80004002 No such interface supported
onecore\com\combase\dcomrem\marshal.cxx(1119)\combase.dll!00007FFB4F3B6C04: (caller: 00007FFB42CA4C58) ReturnHr(193) tid(1ac8) 80004002 No such interface supported

Any suggestions would be helpful.