[🐛 BUG] Function field emtpy when trying to submit multiple worklfows

What went wrong? 🤔
Hello, im trying to use taipy core to build a service. My goal is to give my service a toml, the scenario name and some data and receive an output from the workflow. Tested alone all the scenarios work fine, but when i try to excecute two different scenarios the core crashes (yes the same scenario can be executed multiple times).
Im using core 3.3.1 on Windows 10.
Expected Behavior
The first scenario works fine:

[2024-06-17 12:16:36][Taipy][INFO] Loading configuration. Filename: 'workflows/mesa_player_scripts_sim_player.toml'
[2024-06-17 12:16:36][Taipy][INFO] Configuration 'workflows/mesa_player_scripts_sim_player.toml' successfully loaded.
[2024-06-17 12:16:36][Taipy][INFO] Development mode: Clean all entities of version 3de0f9b6-5143-48b6-bd37-536a4899f6cf
[2024-06-17 12:16:36][Taipy][INFO] Blocking configuration update.
[2024-06-17 12:16:36][Taipy][WARNING] DATANODE_person_data_1be386f9-b6e4-4979-acb0-1cd3a934bc0e cannot be read because it has never been written. Hint: The data node may refer to a wrong path : user_data\csvs\DATANODE_person_data_1be386f9-b6e4-4979-acb0-1cd3a934bc0e.csv
[2024-06-17 12:16:37][Taipy][INFO] job JOB_get_run_numbers_315ac325-6ffe-418d-b60a-1ede363d6840 is completed.
[2024-06-17 12:16:37][Taipy][INFO] job JOB_filter_row_by_series_3_de3c7204-562c-4833-ab1c-271958e45866 is completed.
[2024-06-17 12:16:37][Taipy][INFO] job JOB_filter_rows_by_series_1_5cfdc8ec-a297-42b5-969f-c652ad05ec3f is completed.
[2024-06-17 12:16:38][Taipy][INFO] job JOB_filter_row_by_series_2_4ff93892-7bae-4c7c-8de3-5819ebd650a0 is completed.
[2024-06-17 12:16:38][Taipy][INFO] job JOB_get_infections_per_district_e1ceb25e-fa5f-4f7c-9b56-58f276154352 is completed.
[2024-06-17 12:16:38][Taipy][INFO] job JOB_get_infection_label_c0fc4131-1677-4fc6-a38b-9852ee5c3f11 is completed.
[2024-06-17 12:16:38][Taipy][INFO] job JOB_get_recover_dead_530069d7-6bba-4f73-b8a0-85535bbf5fe1 is completed.
[2024-06-17 12:16:38][Taipy][INFO] job JOB_get_hospital_treatment_6d808cc9-6d7c-4334-96ac-bcd90bdf2ce7 is completed.
[2024-06-17 12:16:38][Taipy][INFO] job JOB_get_infection_death_ed8b6e32-09dd-4e03-bea6-596e5e4be08d is completed.
[2024-06-17 12:16:38][Taipy][INFO] job JOB_get_infection_stages_9bc099a2-4b5c-41b0-9dce-0f284857fa15 is completed.
[2024-06-17 12:16:38][Taipy][INFO] job JOB_update_column_filter_813df900-f46f-488f-a589-be2f103ceefb is completed.
[2024-06-17 12:16:38][Taipy][INFO] job JOB_get_infections_per_cohort_b0fc609d-f239-4ef3-80fd-f988b3a71a37 is completed.
[2024-06-17 12:16:38][Taipy][INFO] Unblocking configuration update.
[2024-06-17 12:16:38][Taipy][INFO] Core service has been stopped.

The second scenario loads the toml succesfull:

[2024-06-17 12:16:38][Taipy][INFO] Loading configuration. Filename: 'workflows/ascore_player_scripts_parameter_combinations.toml'
[2024-06-17 12:16:38][Taipy][INFO] Configuration 'workflows/ascore_player_scripts_parameter_combinations.toml' successfully loaded.
[2024-06-17 12:16:38][Taipy][INFO] Development mode: Clean all entities of version 3de0f9b6-5143-48b6-bd37-536a4899f6cf
[2024-06-17 12:16:38][Taipy][WARNING] inputs field of TaskConfig get_run_numbers is empty.
[2024-06-17 12:16:38][Taipy][WARNING] outputs field of TaskConfig get_run_numbers is empty.
[2024-06-17 12:16:38][Taipy][WARNING] inputs field of TaskConfig filter_rows_by_series_1 is empty.
[2024-06-17 12:16:38][Taipy][WARNING] outputs field of TaskConfig filter_rows_by_series_1 is empty.
[2024-06-17 12:16:38][Taipy][WARNING] inputs field of TaskConfig get_hospital_treatment is empty.
[2024-06-17 12:16:38][Taipy][WARNING] outputs field of TaskConfig get_hospital_treatment is empty.
[2024-06-17 12:16:38][Taipy][WARNING] inputs field of TaskConfig get_infection_death is empty.
[2024-06-17 12:16:38][Taipy][WARNING] outputs field of TaskConfig get_infection_death is empty.
[2024-06-17 12:16:38][Taipy][WARNING] inputs field of TaskConfig get_infection_label is empty.
[2024-06-17 12:16:38][Taipy][WARNING] outputs field of TaskConfig get_infection_label is empty.
[2024-06-17 12:16:38][Taipy][WARNING] inputs field of TaskConfig get_infection_stages is empty.
[2024-06-17 12:16:38][Taipy][WARNING] outputs field of TaskConfig get_infection_stages is empty.
[2024-06-17 12:16:38][Taipy][WARNING] inputs field of TaskConfig get_recover_dead is empty.

I can provide the toml file if needed
Steps to Reproduce Issue
import taipy as tp
from taipy.core.config import Config

def submit1(coreObj):
    Config.load('workflows/mesa_player_scripts_sim_player.toml')
    scenario_cfg = Config.scenarios['SIM_PLAYER']
    coreObj.run()
    scenario_1 = tp.create_scenario(scenario_cfg)
    scenario_1.submit()
    coreObj.stop()

def submit2(coreObj):
    Config.load('workflows/ascore_player_scripts_parameter_combinations.toml')
    scenario_cfg = Config.scenarios['GET_PARAMETER_COMBINATIONS']
    coreObj.run()
    scenario_1 = tp.create_scenario(scenario_cfg)
    scenario_1.submit()
    #print(scenario_1.parameter_combinations.read())
    coreObj.stop()

if __name__ == '__main__':
    #Config.configure_job_executions(mode="standalone", nb_of_workers=8)
    core = tp.Core()
    submit1(core)

    try:
        submit2(core)
    except BaseException as e:
        core.stop()
        submit2(core)

[CORE]
core_version = "3.0"
[DATA_NODE.model_data]
storage_type = "csv"
default_path = "data_science_modules/data/sim_output_model_data.csv"
scope = "SCENARIO:SCOPE"

[DATA_NODE.population_level_batch_param_map]
storage_type = "csv"
has_header = "input"
default_path = "data_science_modules/data/sim_output_run_params.csv"
scope = "SCENARIO:SCOPE"

[DATA_NODE.parameter_configuration]
storage_type = "json"
has_header = "input"
default_path = "data_science_modules/data/parameter_configuration.json"
scope = "SCENARIO:SCOPE"

[DATA_NODE.cohort_infections]
storage_type = "csv"
has_header = "input"
default_path = "data_science_modules/data/sim_output_cohort_infections.csv"
scope = "SCENARIO:SCOPE"

[TASK.get_run_numbers]
inputs = [
  "population_level_batch_param_map:SECTION",
  "parameter_configuration:SECTION",
  "population_level_batch_param_map:SECTION"
]
outputs = [ "run_numbers:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_run_numbers:function"
skippable = "False:bool"

[DATA_NODE.run_numbers]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[TASK.filter_rows_by_series_1]
inputs = [ "run_numbers:SECTION", "model_data:SECTION" ]
outputs = [ "infected_state_file:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.filter_rows_by_series:function"
skippable = "False:bool"

[DATA_NODE.infected_state_file]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[DATA_NODE.epidemse_output]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[DATA_NODE.district_infections_filtered]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[TASK.get_hospital_treatment]
inputs = [ "infected_state_file:SECTION" ]
outputs = [ "hospital_treatment:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_hospital_treatment:function"
skippable = "False:bool"

[TASK.get_infection_death]
inputs = [ "infected_state_file:SECTION" ]
outputs = [ "infection_death_history:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_infection_death:function"
skippable = "False:bool"

[TASK.get_infection_label]
inputs = [ "infected_state_file:SECTION" ]
outputs = [ "infection_label:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_infection_label:function"
skippable = "False:bool"

[TASK.get_infection_stages]
inputs = [ "infected_state_file:SECTION" ]
outputs = [ "infection_stages:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_infection_stages:function"
skippable = "False:bool"

[TASK.get_recover_dead]
inputs = [ "infected_state_file:SECTION" ]
outputs = [ "recover_dead_relation:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_recover_dead:function"
skippable = "False:bool"

[DATA_NODE.hospital_treatment]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[DATA_NODE.infection_death]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[DATA_NODE.current_infections_per_cohort]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[DATA_NODE.infection_death_history]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[DATA_NODE.infection_label]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[TASK.update_column_filter]
inputs = [ "infected_state_file:SECTION" ]
outputs = [ "infection_death:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.update_column_filter:function"
skippable = "False:bool"

[DATA_NODE.infections_per_district]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[TASK.get_infections_per_cohort]
inputs = [ "epidemse_output:SECTION" ]
outputs = [ "current_infections_per_cohort:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_infections_per_cohort:function"
skippable = "False:bool"

[TASK.get_infections_per_district]
inputs = [ "district_infections_filtered:SECTION" ]
outputs = [ "infections_per_district:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_infections_per_district:function"
skippable = "False:bool"

[DATA_NODE.infection_stages]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[DATA_NODE.recover_dead_relation]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[TASK.filter_row_by_series_2]
inputs = [  "run_numbers:SECTION", "cohort_infections:SECTION" ]
outputs = [ "epidemse_output:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.filter_rows_by_series:function"
skippable = "False:bool"

[TASK.filter_row_by_series_3]
inputs = [ "run_numbers:SECTION", "district_infections:SECTION" ]
outputs = [ "district_infections_filtered:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.filter_rows_by_series:function"
skippable = "False:bool"

[SCENARIO.SIM_PLAYER]
additional_data_nodes = [ ]
tasks = [
  "filter_row_by_series_2:SECTION",
  "filter_row_by_series_3:SECTION",
  "filter_rows_by_series_1:SECTION",
  "filter_rows_by_series_4:SECTION",
  "get_hospital_treatment:SECTION",
  "get_infection_death:SECTION",
  "get_infection_label:SECTION",
  "get_infection_stages:SECTION",
  "get_infections_per_cohort:SECTION",
  "get_infections_per_district:SECTION",
  "get_recover_dead:SECTION",
  "get_run_numbers:SECTION",
  "get_worker_class_distribution:SECTION",
  "get_worker_district_distribution:SECTION",
  "get_worker_infected:SECTION",
  "get_worker_infection_stages:SECTION",
  "get_worker_quarantined:SECTION",
  "update_column_filter:SECTION"
]

[DATA_NODE.district_infections]
storage_type = "csv"
has_header = "input"
default_path = "data_science_modules/data/sim_output_district_infections.csv"
scope = "SCENARIO:SCOPE"

[DATA_NODE.person_data]
storage_type = "csv"
has_header = "input"
scope = "SCENARIO:SCOPE"

[TASK.filter_rows_by_series_4]
inputs = [ "run_numbers:SECTION", "person_data:SECTION" ]
outputs = [ "worker_file:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.filter_rows_by_series:function"
skippable = "True:bool"

[DATA_NODE.worker_file]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[TASK.get_worker_district_distribution]
inputs = [ "worker_file:SECTION" ]
outputs = [ "worker_district_distribution:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_worker_district_distribution:function"
skippable = "False:bool"

[TASK.get_worker_infection_stages]
inputs = [ "worker_file:SECTION" ]
outputs = [ "worker_infections:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_worker_infection_stages:function"
skippable = "False:bool"

[TASK.get_worker_class_distribution]
inputs = [ "worker_file:SECTION" ]
outputs = [ "worker_role_distribution:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_worker_class_distribution:function"
skippable = "False:bool"

[TASK.get_worker_quarantined]
inputs = [ "worker_file:SECTION" ]
outputs = [ "worker_quarantined:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_worker_quarantined:function"
skippable = "False:bool"

[TASK.get_worker_infected]
inputs = [ "worker_file:SECTION" ]
outputs = [ "worker_infected:SECTION" ]
function = "data_science_modules.functions.Specific_for_mesa_player.utils.get_worker_infected:function"
skippable = "False:bool"

[DATA_NODE.worker_infections]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[DATA_NODE.worker_district_distribution]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[DATA_NODE.worker_role_distribution]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[DATA_NODE.worker_quarantined]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[DATA_NODE.worker_infected]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[CORE]
core_version = "3.0"

[DATA_NODE.batch_param_map]
storage_type = "csv"
has_header = "input"
default_path = "data_science_modules/data/run_params_akrima-sosad-simulation.csv"
scope = "SCENARIO:SCOPE"

[DATA_NODE.excluded_repast_specific_parameters]
storage_type = "pickle"
has_header = "input"
default_data = "[\"run\",\"randomSeed\"]"
scope = "SCENARIO:SCOPE"

[TASK.extract_parameter]
inputs = [
  "batch_param_map:SECTION",
  "excluded_repast_specific_parameters:SECTION",
]
outputs = [
  "used_sim_params_grouping:SECTION",
  "used_sim_params_plot:SECTION"
]
function = "data_science_modules.functions.Preparing.extract_parameter.extract_paramter_for_GIP:function"
skippable = "False:bool"

[DATA_NODE.used_sim_params_grouping]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[DATA_NODE.used_sim_params_plot]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[TASK.filter_in_columns]
inputs = [ "batch_param_map:SECTION", "used_sim_params_plot:SECTION" ]
outputs = [ "filtered_data:SECTION" ]
function = "data_science_modules.functions.Altering.alter_table.leave:function"
skippable = "False:bool"

[TASK.drop_duplicates]
inputs = [ "filtered_data:SECTION" ]
outputs = [ "duplicate_free_data:SECTION" ]
function = "data_science_modules.functions.Altering.alter_table.drop:function"
skippable = "False:bool"

[DATA_NODE.filtered_data]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[DATA_NODE.duplicate_free_data]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[TASK.transpose_data]
inputs = [ "duplicate_free_data:SECTION" ]
outputs = [ "transposed_data:SECTION" ]
function = "data_science_modules.functions.Altering.alter_table.transp:function"
skippable = "False:bool"

[DATA_NODE.transposed_data]
storage_type = "pickle"
scope = "SCENARIO:SCOPE"

[TASK.reduce_empty_parameter_combinations]
inputs = [
  "transposed_data:SECTION",
  "used_sim_params_grouping:SECTION"
]
outputs = [ "parameter_combinations:SECTION" ]
function = "data_science_modules.functions.Altering.alter_table.reduce_empty_parameters:function"
skippable = "False:bool"

[DATA_NODE.parameter_combinations]
storage_type = "pickle"
has_header = "output"
scope = "SCENARIO:SCOPE"

[SCENARIO.GET_PARAMETER_COMBINATIONS]
additional_data_nodes = [ ]
tasks = [
  "drop_duplicates:SECTION",
  "extract_parameter:SECTION",
  "filter_in_columns:SECTION",
  "reduce_empty_parameter_combinations:SECTION",
  "transpose_data:SECTION"
]

Solution Proposed
No response
Screenshots

Runtime Environment
Visual Studio Code
Browsers
No response
OS
Windows
Version of Taipy
3.1.1
Additional Context
No response
Acceptance Criteria

[ ] Ensure new code is unit tested, and check code coverage is at least 90%.
[ ] Create related issue in taipy-doc for documentation and Release Notes.

Code of Conduct

[X] I have checked the existing issues.
[ ] I am willing to work on this issue (optional)

Hi @Ginzou-3, why are you stopping the Core service and loading two different configurations?
Try to create only one configuration/TOML and load it once in your if __name__ == "__main__". Same thing for the run method. It should only be run once in your if __name__ == "__main__" and never stopped.
If not possible, please tell us what is your use case so we can understand it a bit better.

Hm okay i thought the config is like a changeable disk, like when i want to listen to another band, i change the CD.
For me a toml file was like a workflow. When I have a different workflow a change my toml. Thats why i stop my core, because i cant alter the config file when its running.
Idea: Get request for workflow 1 -> taipy loads the config -> let the scenario run -> return the output -> request for workflow 2 -> core stop -> load new config -> etc

The configuration is how you configure your application overall. Inside a unique application/configuration, you can have different workflows/scenarios.
@jrobinAV If you have anything to say, please do.

Not much to add...
The Config has been created to support multiple workflows (THey are called ScenarioConfig).
If you want to create multiple workflows, you can create multiple ScenarioConfig in the global Config singleton. Then, you can instantiate as many scenarios as you want from any ScenarioConfig you created. You can run them, visualize the results, etc. of the various scenarios in the same application.

I am closing this issue as it is not a bug. However, if you have any remarks @Ginzou-3, you can create another issue to improve Taipy documentation or usability!

Has this changed in the new 4.x Update? Can I have have multiple Orchestrators with single scenarios or still one big Orchestrator with all my scenarios in it?

This has not changed

Has this changed in the new 4.x Update? Can I have have multiple Orchestrators with single scenarios or still one big Orchestrator with all my scenarios in it?

Hello @Ginzou-3, The orchestrator of your Taipy application is designed to be unique and handle all the scenarios of your application, potentially some very different scenarios from different configurations with completely different tasks. I don't see the purpose of having multiple orchestrators in your application. If you have a use case in mind, please let us know so we can think about it. What would be the motivation and the expected behavior?
Still, I believe we can help you with your case. If I understand your description correctly, you have two types of scenarios and want to create and submit one scenario from each type. You created two ScenarioConfigs in two TOML files.
However, you should create them in a single TOML file, and load the TOML file only once. Assuming your unique TOML file is named config.toml, Can you try the following code:
import taipy as tp

def create_and_submit(scenario_cfg_name: str) -> Scenario:
    scenario_cfg = tp.Config.scenarios[scenario_cfg_name]
    scenario = tp.create_scenario(scenario_cfg)
    scenario.submit()
    return scenario

if __name__ == '__main__':
    # Load all the scenario configurations once.
    tp.Config.load('config.toml')

    # You can use the Python API instead of the TOML API to configure your application.
    # For example the `JobConfig` can be configured in the TOML file or in Python as follows:
    # Config.configure_job_executions(mode="standalone", nb_of_workers=8)

    # Run the Orchestrator service
    orchestrator = tp.Orchestrator()

    # Creates a first scenario from the SIM_PLAYER scenario configuration
    scenario_1 = create_and_submit('SIM_PLAYER')
    # Creates a second scenario from the GET_PARAMETER_COMBINATIONS scenario configuration
    scenario_2 = create_and_submit('GET_PARAMETER_COMBINATIONS')

    orchestrator.stop()


Release pipeline in yaml

Hello, is it possible to setup the whole release pipeline in the yaml configuration of the chosen repository?
I see that there is a possibility to configure build pipeline in the azure-pipelines.yaml file (or similar), but I'd like to configure also separated release pipelines in the yaml files. The only option I've seen is export to json and import from json. But this is not what I'm looking for.
Thanks.

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

ID: 63234ade-28cc-02fc-a319-42e3491da601
Version Independent ID: 7ccbfe96-d61e-8bf2-de22-61150d648abd
Content: Release pipelines - Azure Pipelines
Content Source: docs/pipelines/release/index.md
Product: devops
Technology: devops-cicd-release
GitHub Login: @RoopeshNair
Microsoft Alias: ronai

Yaml syntax is same for build and release pipelines. Here is the link to schema. Let us know if you still queries around configuring the YAML pipelines for release/deployments

I do not see an option to use YAML for a release pipeline. I only see the option to import JSON. Release pipelines have unique features such as condition gates which I am unsure how to incorporate into a YAML with the correct syntax.


Visual Studio Insiders opens the code-workspace files instead of the actual workspace defined by the file

Visual Studio doesn't actually open the code-workspace files as a workspace, but rather as a raw file.

VSCode Version: 1.16.0-insider (commit 8b942faafb2d1bee6fd6a346853548d528c7eb5a)
OS Version: Windows 10 x64 Creator Update

Steps to Reproduce:

Launch VS Code
Open Files > Open workspace

Reproduces without extensions: Yes

https://github.com/Microsoft/vscode/issues/33614


feature: inline flag to pull embedded struct field to outer struct

Is your feature request related to a problem? Please describe.
I got several almost similar data type like this:
type BareRec struct {
	Start int
	End   int
}

type IntRec struct {
	Start int
	End   int
	Value int64
}

type FloatRec struct {
	Start int
	End   int
	Value float64
}

type StrRec struct {
	Start int
	End   int
	Value string
}

I'd like to keep the encoding as short as possible because this will be deployed in an embedded computer, which means using toarray feature. I'd love to refactor and embed BareRec inside all other *Rec struct because calculating Start and End must work consistently. But if I do that then the cbor will add unwanted overhead (another map/array start byte).
Describe the solution you'd like
In the gopkg.in/yaml.v3 they have inline flag for a map or struct type field, that will make all of its fields or keys to be processed as if they were part of the outer struct.

D*mn, I don't RTFM. It's already exist for embedded struct but it would be nice for non embedded struct but for my use case embedded struct is working just fine™


add plugin support apache EventMesh

Closes : #9910

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #9910 .
[ ] Update the CHANGES log.

Hi,thanks for the contribution.
You are required to follow plugin dev doc to submit test scenarios to help us verifying the plugin in the CI.

https://skywalking.apache.org/docs/main/next/en/setup/service-agent/virtual-mq/
And tags are required, and peer should be set at consumer and producer sides.

The current ui repo is  https://github.com/apache/skywalking-booster-ui

Marked as stale as no update for a while.


Make plot of number of tracks marked duplicate

In NMatch, add up the amount of tracks that have been matched, more than once, to truth particles and compare them to the total tracks in NMatch. Denominator is total number of L1Tracks.

The fraction of total tracks that were marked duplicate was calculated by adding up all the numbers greater than one in tp_nmatch and dividing it by the total number of L1 tracks.

When you label things like this, can you say e.g. "Duplicate fraction for output tracks" so it's clear that this is the remaining ones and not the ones that are being marked by the algorithm itself?
This looks more like what I'd expect though, so that's good! Excited to see the 2nd pass version added as well.

Instead of counting the number of nmatch, count nmatch-1.


Closure compiler bug

Hello!
We faced this issue when trying to build our obelisk project.
We're compressing the js code like this:
compressedJs = frontend: optimizationLevel: pkgs.runCommand "compressedJs" {} ''
     set -euo pipefail
     cd '${haskellLib.justStaticExecutables frontend}'
     shopt -s globstar
     for f in **/all.js; do
       dir="$out/$(basename "$(dirname "$f")")"
       mkdir -p "$dir"
       ln -s "$(realpath "$f")" "$dir/all.unminified.js"
       ${if optimizationLevel == null then ''
         ln -s "$dir/all.unminified.js" "$dir/all.js"
       '' else ''
         '${pkgs.closurecompiler}/bin/closure-compiler' --externs '${reflex-platform.ghcjsExternsJs}' -O '${optimizationLevel}'
           --jscomp_warning=checkVars --warning_level=QUIET --create_source_map="$dir/all.js.map" --source_map_format=V3
           --js_output_file="$dir/all.js" "$dir/all.unminified.js"
         echo '//# sourceMappingURL=all.js.map' >> "$dir/all.js"
       ''}
     done
    '';

If we turn the warning level to QUIET, then everything works just fine.
The error:

I'm not including the steps to reproduce the bug, since it appears to be a floating bug, that I can't 100% reproduce. There is also an explanation of how and why it occurs in the CC issue provided above, please look there for the details.
For the record:
I did try it with the newest version of CC and it still sometime appears, right now we're using this version of cc:
[nix-shell:~/work/organized-siphonophore]$ closure-compiler --version
Closure Compiler (http://github.com/google/closure-compiler)
Version: v20200719
Built on: 2020-07-20 22:40

There are a few questions I would like to ask:

Is this a known issue and if so, does anybody know how to solve this?
Is turning the warning level to QUIET could potentially break something now or in the future for us?

Edit:
I'm not sure which version of obsidian package we use, we followed the official installation guide for the NixOS.

Squelching warnings by setting to QUIET should be fine. I'm not sure if this issue has been found in the wild for obelisk before. Thank you for the issue report!


Optimize bash/zsh script runtimes

This PR contains commits mostly from https://github.com/chriskempson/base16-shell/pull/188. I cherry-picked the commits from that PR and added 2 commits on top of that.
@j-c-m and @JStation could you sort of review this? (It's a bit of a mix of us reviewing each other). I've added two commits on top of what you did. My commits include:

Fixing and optimising profile_helper.fish. It still contained references to realpath
Fixing and using the same script for base16-shell.plugin.zsh and base16-shell.plugin.bash
Adding instructions for using base16-shell.plugin.zsh as an oh my zsh plugin. I touched the file and saw the readme instructions were missing. I don't really know how bash_it works, so I didn't add readme instructions for that.
@JStation I tried using XDG spec paths but I couldn't get it to work. It seemed like any XDG path was an empty string during the scripts runtime. Not exactly sure why, but I changed ~ to $HOME for now and put the paths in variables to make it easy to change in future.
I introduced the concept of $HOME/.config/base16-project as the config path for base16-* repos. That way we don't litter the $HOME directory unnecessarily.

I have some questions about your PR:

Why did you add this? It isn't used anywhere or mentioned in the readme, was it for testing?
alias reset="command reset && [ -f ~/.base16_theme ] && .~/.base16_theme"

What exactly is this for? I understand the concept but could you elaborate on the use case? Could you add something about this that I can put in the readme?
if [ -n "$BASE16_DEFAULT_THEME" ] && [ ! -f ~/.base16_theme ]; then
  ln -s "$BASE16_SHELL/scripts/base16-$BASE16_DEFAULT_THEME.sh" \
    "~/.base16_theme"

You didn't mention anything about hooks in your PR or in the readme, could you explain a bit why (maybe in such a way that I can add it to the readme) it's necessary and how it's useful?
  if [ -n ${BASE16_SHELL_HOOKS:+s} ] && [ -d "${BASE16_SHELL_HOOKS}" ]; then
    for hook in $BASE16_SHELL_HOOKS/*; do
      [ -f "$hook" ] && [ -x "$hook" ] && "$hook"
    done
  fi

This is really hard to follow I think

This PR contains commits mostly from chriskempson/base16-shell#188. I cherry-picked the commits from that PR and added some commits of my own on top of that.
@j-c-m and @JStation could you sort of review this? (It's a bit of a mix of us reviewing each other). I've added two commits on top of what you did. My commits include:

Fixing and optimising profile_helper.fish. It still contained references to realpath
Fixing and using the same script for base16-shell.plugin.zsh and base16-shell.plugin.bash
Adding instructions for using base16-shell.plugin.zsh as an oh my zsh plugin. I touched the file and saw the readme instructions were missing. I don't really know how bash_it works, so I didn't add readme instructions for that.
@JStation I tried using XDG spec paths but I couldn't get it to work. It seemed like any XDG path was an empty string during the scripts runtime. Not exactly sure why, but I changed ~ to $HOME for now and put the paths in variables to make it easy to change in future.
I introduced the concept of $HOME/.config/base16-project as the config path for base16-* repos. That way we don't litter the $HOME directory unnecessarily.

I have some questions about your PR:
Why did you add this? It isn't used anywhere or mentioned in the readme, was it for testing?
alias reset="command reset && [ -f ~/.base16_theme ] && .~/.base16_theme"

No, I added it so the theme was reapplied after a terminal reset.

What exactly is this for? I understand the concept but could you elaborate on the use case? Could you add something about this that I can put in the readme?
if [ -n "$BASE16_DEFAULT_THEME" ] && [ ! -f ~/.base16_theme ]; then
  ln -s "$BASE16_SHELL/scripts/base16-$BASE16_DEFAULT_THEME.sh" \
    "~/.base16_theme"

This is how I use it...
https://github.com/j-c-m/dotfiles/blob/master/.sh/05-base16.sh
So on any new systems where I deploy my dotfiles to it will set a default based on environment.

You didn't mention anything about hooks in your PR or in the readme, could you explain a bit why (maybe in such a way that I can add it to the readme) it's necessary and how it's useful?
  if [ -n ${BASE16_SHELL_HOOKS:+s} ] && [ -d "${BASE16_SHELL_HOOKS}" ]; then
    for hook in $BASE16_SHELL_HOOKS/*; do
      [ -f "$hook" ] && [ -x "$hook" ] && "$hook"
    done
  fi

The hooks stuff was previously existing, I only removed the .vimrc_background preceding it.

Thanks for going over it. I should have added the comments to the code lines itself to remove confusion. Creating a PR which is actually mostly someone else's PR and having them check the PR is confusing in itself though haha.
I've simplified the changes a lot (I'll put the other changes in a different PR), what do you think about the commit I have on top of yours? I've removed alias reset=... since that can be added by people themselves and put into their shellrc file.

I would leave the reset alias in, I believe it is the desired and expected reset behavior when a theme is in use.
(1. call the bult-in terminal reset command 2. re-apply theme)
To make it easier to review future changes I would merge in only my changes + the single readme change around the DEFAULT variable. Follow on with seperate PR or commits for additional changes (neovim, and helper changes etc). I already noticed more dirname and readlink's sneaking back in.

@j-c-m ok I've stripped it down to the bare essentials here. Have a look at https://github.com/base16-project/base16-shell/pull/8/commits/4d519c96aeb073ccb71659bcf03d294c75490c0d to see a comparison. I've added what I would either ask you to add/fix in your PR.


Docs updated for buttons

Improved documentation regarding buttons, their actions and how to use them in other ways with Angular

Thanks so much for the help with the docs!


TLS cookie without secure flag set

Hi,
I've got shinyproxy behind nginx reverse proxy with https.
I recently noted that TLS cookie set by shinyproxy is without secure flag set, what is recommended in this case.
I think it would be good to have some option in config file to inform shinyproxy that we are behind secure connection.
Tested on shinyproxy 2.5.0.

Hello @nbbn
See https://shinyproxy.io/documentation/configuration/#security
Best,
Tobias

This is what I need, thank you!


count all once submitted forms as submitted for statistics

 [QAE16IMP] Applications submitted dashboard table

:+1:


Development quantum storage

Related Issue

#575

Work Done

added overview, deployment planning, manual deployment and recover steps for qsfs

Thanks for the review. Will discuss this with @scottyeager and let you know + update the PR.

Thanks for the review. Will discuss this with @scottyeager and let you know + update the PR.

@Mik-TF any updates ?

Fixed some basic typos. Scott is checking on his side too.

Hi @A-Harby, thanks for having a go with this and for your comments. I went ahead and resolved anything that was a simple fix. Let me know if any of my responses or changes don't make sense.

Scott will create a new PR with the latest docs for QSFS.


feat(core): fix #1024, #513, #995, add a helper lib to configure root zone

fix #1024, #513, #995
Add a help lib to configure root zone. It is a monkey-patch to zone (some kind of hack). And it is a lib need to be loaded by user themselves, so zone public API will not be damaged.

this is not a public api or formal feature of zone.js
it will not be included in future tc39 proposal,
and it is not by design, it is just a helper method to let you customize rootZone for some test and suppose to change in the future, please use it on your own risk

@mhevery , please review the idea is ok or not, I know it is not correct according to the design of Zone, but there a some use cases that user want to do that, so with or without this lib, user can still monkey-patch Zone to customize root zone, so I just provide the helper tool for them. thank you.

Not sure how I feel about this. Let me think about it...

FWIW, we ended up needing to customize a root zone in in GCP Console, but we currently do it via monkey-patching.
For us, it bridges the gap in the Zone.js API where interception is based purely on the current zone, but  zone configuration is fairly static. For Angular, it captures the 'outer' zone at start up, so any code calling NgZone.runOutsideAngular() would fall back to that and escape the interceptors added on by forking the 'inner' Angular zone.


added bucket sort file

Can you take input for the array from the user?
Also mention the issue you are solving in the description of the PR. It makes handling everything really easy for me

Sure

I have committed the changes, as asked by you.

LGTM! Merging into master. Thanks for the contribution!


Expose onPageChange via window.barometer

Resolves #16 . This will allow other applications to benefit from the algorithm to detect when a page transition has finished.

I'm not sure about the name of the exposed function and there are conflicts but otherwise 👍

Maybe onPageChangeIdle

I know its not directly related to this PR but, 25ms for maxLag seems arbitrary add brittle. simple apps and/or powerful machines might not trigger this reliably. time out to not worry about it might be better.

I think it's the tense that seems slightly off. Javascript events trigger before their consequences are known - in this instance, we're triggering an event after the fact. How about it we change the tense from onPageChange (suggests the page is about to change) to onPageChanged (suggests the past has finished changing).
I'm keen to avoid mentioning idle - it may be how the page-change algorithm is currently implemented, but it's not what we're really measuring. If we were to change the algorithm to detect it differently, the naming would be wrong.

What about the implementation though? Currently the durations set mean that this won't get fired on a bare minimum page.

If you were to drop barometer on a page that doesn't have any clientside JS, then no you won't get an onPageChanged event. You wouldn't get an onPageChangeIdle either. The README is clear on the definition of what we consider PageChanged to be.

I'm just saying that definition seems like it might be brittle. Maybe we can make an improvement. The first thing I can think of is to say if it never got busy to just fire the event after 100 ms (or some other number) I think it's better to err on occasionally firing too early or too late than it is to occasionally not fire at all.

We can definitely reconsider the specifics once we get an idea of how this performs in production. I'd rather we ship what we need and come back for the bits we don't need at some point in the future.

Thinking about this from the point of view of the bandwidth stats but I think this also applies @djbeaumont's request. I understand why you don't want to put Idle in the function name, but I think that is fundamentally what those two use cases want. "Tell me when the page is idle so that I can do the thing I need to do without impacting the page" they don't actually care about page changes. What we are after is actually quite different from the onPageChange function.

That's not really true - the browser will jump between idle and busy all the time - think about form validation, autocompletion, etc. We want an event that tells us that we've just navigated to a new page and everything has finished loading.
I discussed the requirements with Dave in person before he raised the issue, plus we're also a consumer of this functionality.

The bandwidthStats' requirements don't align with that and, without having spoken to Dave, I'm not sure scripts that use the exposed function will either. They don't care about navigation, their concern is interfering with the main application. What if I hook into onPageChange for an app that doesn't change hash, url or push state? It will never get fired.
What I think we need is an onPageIdle which triggers when the lag is low enough, if the lag is already low, it will fire immediately. It will only ever fire the provided event once. This can be used to fire functions in the background in an attempt to not interfere with the application, regardless of navigation.
This is distinct from onPageChange which may use onPageIdle internally to workout we things have died down but is fundamentally different in that it is concerned about navigation events.

That's fine, the functionality you're after is only a couple of lines. It can be added in another pull request.


append extra data to Components such as Form.Select

Follow-up from Gitter

Hello, I am trying to append extra data to the Form.Select options, for use upon selecting an option, as such:

const productOptions = this.props.products.map(function(p) {
  return {
    'text': p.label,
    'id': p.id,
    'value': p.label
  }
});

handleProductChange(e, selected) {
  console.log("changed product:");
  console.log(selected.value);
  console.log(selected.id);
}

products is an array of product objects that contain fields for id and label.
following the docs, 'value' is printing correctly, but 'id' is undefined.

Is there any way to do this, to identify which item was selected? (label may not be unique)

Reply from @levithomason

We are currently working to standardize all callbacks to include all the data one might need.

Thanks!

Confirmed, per https://github.com/Semantic-Org/Semantic-UI-React/issues/623#issuecomment-261018287, we're updating all callbacks to follow the signature (event, data) where data includes as much information as possible.  This will usually be a combination of props and state.
The Select is a variation of the Dropdown.  Currently, the Dropdown onChange callback only passes back { name, value } of the newly active item. We simply need to spread the item's props in the callback here:
https://github.com/Semantic-Org/Semantic-UI-React/blob/master/src/modules/Dropdown/Dropdown.js#L416
Then update the onChange prop description per the new callback spec, shown in https://github.com/Semantic-Org/Semantic-UI-React/issues/623#issuecomment-261018287.
Finally, we need to add a Dropdown onChange test that asserts that extra item props are passed back onChange.

As I began work on this, I realized this has come up before and I'm not sure we should make this change.  See #754.
@jcarbo do you have any input on this?  The issue I linked just above has a succinct description of the issue and my initial conclusion.  We can technically support this and it would make the the callback signature more consistent with other components, but I think it also means we'd need to change the Dropdown value prop for multiple from an array of values to an array of option objects.  This way, we're either using all "primitive values" or all "object literals" for the value and callbacks.  I don't think we should mix and match the two.

IMHO, I think we're conflating the handlers for onClick in DropdownItem and onChange in Dropdown:

DropdownItem's onClick should return the (e, clickedDropdownItemProps). Internally the Dropdown uses this handler to detect changes and library users can tap into this handler directly if they want.
Dropdown's onChange should return (e, { ...dropdownProps, value: dropdownState.value). value will either be an array or a literal depending on the multiple prop. Given the fact that Dropdown is auto-controlled, the value it returns would be the "proposed" value.

I don't think the Dropdown should return any information about the most recently clicked item. It uses the click event to determine what it's next value should be, and that value is what is returned in the data of the onChange.
We should make the following change:
  handleChange = (e, value) => {
    debug('handleChange()')
    debug(value)
-   const { name, onChange } = this.props
-   if (onChange) onChange(e, { name, value })
+   const { onChange } = this.props
+   if (onChange) onChange(e, { ...this.props, value })
  }

Within data there's enough information (the options and value) to derive the necessary information.
I think going down the path of value being an object or array of objects representing the currently selected option(s) would be too complex.

DropdownItem's onClick should return the (e, clickedDropdownItemProps)... Dropdown's onChange should return (e, { ...dropdownProps, value: dropdownState.value)

Ah, of course.  How I didn't see this, I dunno.  This is obviously correct, thanks much.
@Khorkhe we'll close this and call it a duplicate of #754 which includes help on how to get the data you need.  Those suggestions are also future proof against our upcoming changes to standardize all callbacks, detailed in #623.

@levithomason, @jcarbo,
Thanks for the great feedback.  Thinking about it again, having multiple dropdown items with the same value would be a terrible idea. So the workaround presented in #754 will be sufficient, as well as enforcing uniqueness of values on the backend.


Add additional NuGet packages to improve version range selection

Summary
Currently Newtonsoft.Json is a single NuGet package, with several versions available. It is difficult (obviously not impossible) to install any version but the most recent into a project.
One way to solve this is to create two additional metadata-only NuGet packages:

Newtonsoft.Json.5: This package does not contain any assemblies, but it does declare a dependency on Newtonsoft.Json with the version specifier [5.0.8,6.0).
Newtonsoft.Json.6: This package does not contain any assemblies, but it does declare a dependency on Newtonsoft.Json with the version specifier [6.0.6,7.0).

Background
Suppose you have three projects:

Newtonsoft.Json: This is this.
LibFoo: This is a library distributed through NuGet and available for applications to use. It depends on Newtonsoft.Json and is compiled against version 5.0.8.
AppBar: This is an application which is distributed to users. It depends on LibFoo.

Current situation
Suppose LibFoo declares a dependency on Newtonsoft.Json version 5.0.8. After using NuGet to install LibFoo into AppBar, the NuGet Package Manager will report the existence of a new version of the Newtonsoft.Json (6.0.6). If the user installs the update, the application will no longer run properly unless assembly binding redirection is used.
The authors of LibFoo can intentionally avoid this situation by instead declaring the dependency on Newtonsoft.Json version [5.0.8,6.0), which the NuGet Package Manager will recognize and prevent the installation of the newer version. The problem with this situation is it prevents the user from making use of assembly binding redirection to use the new version of Json.NET.
Proposed situation
In the proposed solution, LibFoo would declare a dependency on Newtonsoft.Json version 5.0.8. The authors of AppFoo are given control over the specific version of Json.NET used in their application, because they can install either the Newtonsoft.Json.5 or Newtonsoft.Json.6 package to specify which version of Json.NET is used for the final application. If Newtonsoft.Json.5 is chosen, the NuGet Package Manager will not allow a 6.x version of Json.NET to be added to the project, and assembly binding redirection will not be required. If Newtonsoft.Json.6 is chosen, the application developer is responsible for configuring the assembly binding redirection.

I prefer to be conservative. If something like this is used by other popular packages and it improves user experience then I will consider it then.


Fixes defaultAnchor cloning with Texture.clone

Follow up to #5011, where Texture.clone does not consider  copying defaultAnchor.

@bigtimebuddy
here you go
https://www.pixiplayground.com/#/edit/LfszOC7chpYp_2oHya9dr
So because i was use this way, but now it not possible, i found alternative, but before change , it was possible, so maybe something are break somewhere!
good luck

PIXI.Sprite does not accept BaseTexture objects in the constructor. I'm not sure when this ever worked. But this works fine:
https://www.pixiplayground.com/#/edit/m3qS2eBvf3VRRk0gCNXsX

well ok nice , sorry for the bas issue !


Current urls module isn't compatible with django 1.10

Specifically, django.conf.urls.patterns are removed so the whole module can't be used with 1.10 version of django.
I can make an update but not sure what django versions are suppose to be supported.

Maybe we can have a except ImportError that falls back to the previous import for previous versions?

That worked for my local copy with django 1.10 onboard:
https://github.com/dani0805/django-tinymce4/pull/7

this configuration works for Django 1.10.4:
views.py
`from django.conf.urls import url
from tinymce import views
urlpatterns = [
url(r'^js/textareas/(?P.+)/$', views.textareas_js, name='tinymce-js'),
url(r'^js/textareas/(?P.+)/(?P.*)$', views.textareas_js, name='tinymce-js-lang'),
url(r'^spellchecker/$', views.spell_check, name='spell_check'),
url(r'^flatpages_link_list/$', views.flatpages_link_list),
url(r'^compressor/$', views.compressor, name='tinymce-compressor'),
url(r'^filebrowser/$', views.filebrowser, name='tinymce-filebrowser'),
url(r'^preview/(?P.+)/$', views.preview, name='tinymce-preview'),
]
`

I have post a pull request with changes to support the new vesrions.


Update pom.xml

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3095235115

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3095235115
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3095590505

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3095590505
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3110917753

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3110917753
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3112691573

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3112691573
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/3124879669

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/3124879669
Status: success


CMake Error when installation in Colab

🐛 Bug
CMake Error: The source directory "/content/gdrive/My Drive/habitat-testing/habitat-sim/Drive/habitat-testing/habitat-sim/src" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

after running
!python setup.py install

Commands
Command
# Mount your google drive
from google.colab import drive
drive.mount('/content/gdrive')

Output
Drive already mounted at /content/gdrive; to attempt to forcibly remount, call drive.mount("/content/gdrive", force_remount=True).

Command
cd 'gdrive/My Drive/habitat-testing'

Command
!git clone --branch stable https://github.com/facebookresearch/habitat-sim.git

Output
Cloning into 'habitat-sim'...
remote: Enumerating objects: 736, done.
remote: Counting objects: 100% (736/736), done.
remote: Compressing objects: 100% (313/313), done.
remote: Total 7126 (delta 531), reused 546 (delta 413), pack-reused 6390
Receiving objects: 100% (7126/7126), 31.32 MiB | 14.52 MiB/s, done.
Resolving deltas: 100% (5120/5120), done.
Note: checking out '00cddeee6d66108e277dc5b36006bf3eab03a291'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Checking out files: 100% (380/380), done.

Command
cd 'habitat-sim'

Output
/content/gdrive/My Drive/habitat-testing/habitat-sim

Command
pip install -r requirements.txt

Output
Requirement already satisfied: attrs>=19.1.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 1)) (19.3.0)
Requirement already satisfied: numba in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 2)) (0.47.0)
Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 3)) (1.17.5)
Collecting numpy-quaternion
  Downloading https://files.pythonhosted.org/packages/a6/1e/62ee5115236aafa3d763226da9ad01abc91b8be9cfb843aa0f709ec38f5d/numpy-quaternion-2<IP_ADDRESS>.25.52.tar.gz (50kB)
     |████████████████████████████████| 51kB 3.4MB/s
Requirement already satisfied: pillow in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 5)) (6.2.2)
Requirement already satisfied: scipy>=1.3.0 in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 6)) (1.4.1)
Requirement already satisfied: tqdm in /usr/local/lib/python3.6/dist-packages (from -r requirements.txt (line 7)) (4.28.1)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from numba->-r requirements.txt (line 2)) (45.1.0)
Requirement already satisfied: llvmlite>=0.31.0dev0 in /usr/local/lib/python3.6/dist-packages (from numba->-r requirements.txt (line 2)) (0.31.0)
Building wheels for collected packages: numpy-quaternion
  Building wheel for numpy-quaternion (setup.py) ... done
  Created wheel for numpy-quaternion: filename=numpy_quaternion-2<IP_ADDRESS>.25.52-cp36-cp36m-linux_x86_64.whl size=153317 sha256=05ad13fc1dce0bc143ffc360a3d1ac6ccc8c39f4b19a25c4a08234e03bd89118
  Stored in directory: /root/.cache/pip/wheels/3f/16/3d/a49dc001d0ba4873afeb18803a2e4bc7a3a99a4d9ed65a1b55
Successfully built numpy-quaternion
Installing collected packages: numpy-quaternion
Successfully installed numpy-quaternion-2<IP_ADDRESS>.25.52

Command
!python setup.py install --headless

Output
running install
running bdist_egg
running egg_info
writing habitat_sim.egg-info/PKG-INFO
writing dependency_links to habitat_sim.egg-info/dependency_links.txt
writing requirements to habitat_sim.egg-info/requires.txt
writing top-level names to habitat_sim.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'habitat_sim.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
CMake Error: The source directory "/content/gdrive/My Drive/habitat-testing/habitat-sim/Drive/habitat-testing/habitat-sim/src" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

Command
!python setup.py install

Output
running install
running bdist_egg
running egg_info
writing habitat_sim.egg-info/PKG-INFO
writing dependency_links to habitat_sim.egg-info/dependency_links.txt
writing requirements to habitat_sim.egg-info/requires.txt
writing top-level names to habitat_sim.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'habitat_sim.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
CMake Error: The source directory "/content/gdrive/My Drive/habitat-testing/habitat-sim/Drive/habitat-testing/habitat-sim/src" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

System Info
Google Colab.

Looks like the code breaks the space in ...My Drive... into two strings -- "...My" and "Drive..."?
In Colab,
code is in the following directory:
gdrive/My Drive/habitat-testing

Note that user's files are rooted in gdrive/My Drive.


docs(ng-uirouter-layout): add usage examples

Shouldn't target #931 instead?

Shouldn't target #931 instead?

@antleblanc Could do, but this was in order so PR are not relying on each other


add gantry logging -- ins/outs synchronous, feedbacks async

use message IDs (plus other metadata if needed) as identifiers/keys so that feedbacks can be matched
return emoji counts

on second thought, I/O lives inside the backend, only feedbacks live in the frontend
still want to use the messageID as the identifier though -- passing it to the backend


Command needs correction

Below command needs correction
Set-AzKeyVaultAccessPolicy       -VaultName $keyVault.VaultName
-ObjectId $workSpace.StorageAccountIdentity.PrincipalId `
-PermissionsToKeys wrapkey,unwrapkey,get
There is no dot between StorageAccountIdentity and PrincipalId, it is all one word
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 35cab66c-4b5c-4ab7-981a-303e9ac2e481
Version Independent ID: 9ddc3dce-a63a-2fd7-6b4a-c3779abda51a
Content: Configure customer-managed keys for DBFS using PowerShell - Azure Databricks - Workspace
Content Source: databricks/security/keys/customer-managed-keys-dbfs/cmk-dbfs-powershell.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

Thanks for the Comment. We are actively investigating and will get back to you soon.

Thanks for providing feedback that helps improve our documentation. This issue has been resolved and we are closing the issue.
#please-close

#please-close


pcm-power reported unsupported processor model for ADL

sudo ./pcm-power
Processor Counter Monitor  ($Format:%ci ID=%h$)
Power Monitoring Utility
=====  Processor information  =====
Linux arch_perfmon flag  : yes
Hybrid processor         : yes
IBRS and IBPB supported  : yes
STIBP supported          : yes
Spec arch caps supported : yes
Max CPUID level          : 32
Number of logical cores: 12
Number of online logical cores: 12
Offlined cores:
Num sockets: 1
Core PMU (perfmon) version: 5
Number of core PMU generic (programmable) counters: 8
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 4
Width of fixed counters: 48 bits
Nominal core frequency:<PHONE_NUMBER> Hz
IBRS enabled in the kernel   : yes
STIBP enabled in the kernel  : no
The processor is not susceptible to Rogue Data Cache Load: yes
The processor supports enhanced IBRS                     : yes
Package thermal spec power: 45 Watt; Package minimum power: 0 Watt; Package maximum power: 0 Watt;
INFO: Linux perf interface to program uncore PMUs is present
Unsupported processor model (151).
Cleaning up
Closed perf event handles
Zeroed uncore PMU registers

pcm has many utilities. the "main" pcm utiliy and a few others support cient cpus. In fact the pcm utility shows package power for client cpus (and emory bandwidth, etc).


Write an usage example for the resampling actor

What's needed?
We need to start writing some sort of tutorial-like documentation. For the next release we should have an example on how to use the resampling actor.
Proposed solution
We should include consuming data from the resampling actor and also sending commands, through the power distributor (and maybe something else?).
Use cases
No response
Alternatives and workarounds
No response
Additional context
No response

We will use this example for now: https://github.com/frequenz-floss/frequenz-sdk-python/blob/v0.x.x/examples/sdk_resampling_example.py
We can get a better, more literate example in the future, closing as done for now as having better documentation is a whole topic on itself.


Implement DockerImage Cfgu Type

Description

Add a DockerImage type to the Cfgu type system of Configu.
Using type: DockerImage in a ConfigSchema should enforce a Docker Image NAME[:TAG|@DIGEST] as a config value at upsert or eval.
Example of a DockerImage:

image/tag:v1.0.0
<IP_ADDRESS>:123/image/tag:v1.0.0
your-domain.com/image/tag
your-domain.com/image/tag:v1.1.1-patch1
image/tag
image
image:v1.1.1-patch
ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2

{
  ...
  "CONFIG_KEY": {
    "type": "DockerImage"
  }
  ...
}

Motivation

Extending Configu's type system capabilities.
Additional context

https://stackoverflow.com/questions/39671641/regex-to-parse-docker-tag
https://configu.com/docs/cfgu/
https://github.com/configu/configu/blob/main/types/Cfgu.ts
https://www.docker.com/

Greetings! @rannn505 I would like to pick this up

Hey @Sadaf-A,
Fantastic, I'm thrilled to hear that you're interested in taking this on!
To get started, please follow these steps:

Fork the repository
Create your feature branch (git checkout -b feature/dockerImageType)
Commit your changes (git commit -am 'Add DockerImage Type')
Push to the branch (git push origin feature/dockerImageType)
Open a Pull Request

If you have any questions or need further clarification at any point, please don't hesitate to ask. I'm here to help!
I look forward to reviewing your pull request.
Best,
Ran

Hi, @rannn505
I've made the desired changes and pushed the code to the feature branch
I wanted to run tests with the examples that you have provided
I'm not able to setup a test environment could you please direct me to a resource which provides help regarding same

Hey, @rannn505
I have opened a PR please have a look.


Feature: attach to active clients on setup

Closes #66
This improves the lazy loading capabilities of this plugin. If the user has enabled auto_attach, during the setup the plugin will attach itself to all already active clients. This is an addition to the already existing auto-command that will attach to new clients. This allows to source/load the plugin any time and it will work right away having the contact to all clients.
I actually intended to use a dedicated function with a proper name to reduce the complexity of the setup function etc. But as this needs to call the "modules" attach function and there is the grouping of "private" and "public" methods. So I didn't know where to put it else. 😕

I actually intended to use a dedicated function with a proper name to reduce the complexity of the setup function etc. But as this needs to call the "modules" attach function and there is the grouping of "private" and "public" methods. So I didn't know where to put it else. 😕

No issues, this is perfectly fine to add in setup function.


how to remove ly from my computer..

Remove the service from startup:
systemctl disable ly.service

Remove ly from your computer:
pacman -Rs ly

It depends.

If you installed with a package manager; then uninstalling with the package manager should take care of everything.
If you installed from source; then cd into the source directory and run (as root) make uninstall. If you're curious what it's doing you can open up the makefile in a text editor and find the uninstall section.


Updated get-fsrmquota.md

Updated the help for the Get-FsrmQuota cmdlet correcting typos and removing incorrect referemces to *-FsrmQuotaTemplate cmdlets.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


fix: remove yarn.lock

This PR removes yarn.lock as it seems accidentally added, given we now have both yarn.lock and package-lock.json
If you prefer to keep yarn setup instead let me know, and I can change the PR accordingly

Codecov Report

Merging #159 (10e5dfe) into master (16d2c42) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #159   +/-   ##
=======================================
  Coverage   76.58%   76.58%
=======================================
  Files           2        2
  Lines        1905     1905
  Branches      140      140
=======================================
  Hits         1459     1459
  Misses        446      446

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 16d2c42...10e5dfe. Read the comment docs.

My confusion, we do not have a package-lock here, we just ignore package-lock, but not yarn lock. Closing for now


Your request to provision  "Leadership Connection"  template failed!

Your request to provision
"Leadership Connection"
template failed!
Please report the issue here providing the following provisioning action correlation ID: b3d976ff-a51b-483c-8586-5e0261dbbcdc !
Please Help !!!

Hi,
Thanks for using the Look Book site. Based on the event log, we can see that you applied the template providing the URL of a site that was already in the recycle bin of SharePoint Online. Please, provide a different URL or empty the recycle bin. Thanks.


Possible NPE when switching from 2.2.19 to 2.2.20

OrientDB Version: 2.2.20
Java Version: OpenJDK 8
OS: linux
Expected behavior
There is the following SQL:
select sum(myField.size()) as count from ClassA

"myField" is LINKSET/LINKLIST.
If this field is empty for all documents of ClassA this SQL should return 0
Actual behavior
Starting 2.2.20 this SQL began return "null" which might lead to NPE in consuming code.
Please let me know if starting 2.2.20 it's expected behavior.

Hi @PhantomYdn
I just pushed a fix on 2.2.x. The fix will be released with 2.2.21
Thanks
Luigi


[uvw] build failure

Host Environment

OS: Windows
Compiler: revision

To Reproduce
'vcpkg.json' with uvw dependency.
Failure logs

1> [CMake] CMake Error at C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package):
1> [CMake] Could not find a package configuration file provided by "unofficial-libuv"
1> [CMake] with any of the following names:
1> [CMake]
1> [CMake] unofficial-libuvConfig.cmake
1> [CMake] unofficial-libuv-config.cmake
1> [CMake]
1> [CMake] Add the installation prefix of "unofficial-libuv" to CMAKE_PREFIX_PATH or
1> [CMake] set "unofficial-libuv_DIR" to a directory containing one of the above
1> [CMake] files. If "unofficial-libuv" provides a separate development package or
1> [CMake] SDK, be sure it has been installed.
1> [CMake] Call Stack (most recent call first):
1> [CMake] out/build/windows-msvc-debug-hard-mode/vcpkg_installed/x64-windows/share/uvw/uvw-config.cmake:1 (find_package)
1> [CMake] C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake:824 (_find_package)
1> [CMake] knuckles/CMakeLists.txt:13 (find_package)

Additional context
hi guys i got this error from 'uvw' in vcpkg.
i'm using 'vcpkg.json' and constrained version by specifying builtin-baseline
"builtin-baseline": "98f8d00e89fb6a8019c2045cfa1edbe9d92d3405"
if there are anything that i need to modify to make it work please let me know about it.
https://github.com/microsoft/vcpkg/issues/25563
https://github.com/microsoft/vcpkg/issues/24743
https://github.com/microsoft/vcpkg/pull/24745

Is this come from your custom project or other ports which in vcpkg?
Please use the official libuv targets in your custom project since they are provided by the upstream.

vcpkg.json

{
  "name": "knuckles",
  "version-string": "0.0.1",
  "builtin-baseline": "0d7603c4efc351da97b43c1952ba943e76f9b35f",
  "dependencies": [
    {
      "name": "fmt",
      "version>=": "8.1.1"
    },
    {
      "name": "uvw"
    }
  ],
  "features": {
    "tests": {
      "description": "Build the tests of the package's tests",
      "dependencies": [
        {
          "name": "catch2",
          "version>=": "2.13.8"
        }
      ]
    }
  }
}

cmake
`add_library(knuckles_lib "./src/lib.cpp" )
target_link_libraries(knuckles_lib PRIVATE project_options project_warnings) # link project_options/warnings
Includes
set(knuckles_lib_INCLUDE_DIR "include") # must be relative paths
target_include_directories(knuckles_lib PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${knuckles_lib_INCLUDE_DIR}>"
"$<INSTALL_INTERFACE:./${CMAKE_INSTALL_INCLUDEDIR}>")
Find dependencies:
set(knuckles_lib_DEPENDENCIES_CONFIGURED fmt uvw)
foreach(DEPENDENCY ${knuckles_lib_DEPENDENCIES_CONFIGURED})
find_package(${DEPENDENCY} CONFIG REQUIRED)
endforeach()
Link dependencies:
target_link_system_libraries(knuckles_lib PRIVATE fmt::fmt uvw::uvw)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
target_link_system_libraries(knuckles_lib PRIVATE wsock32 ws2_32)
endif()
if(FEATURE_UNIT_TESTS)
add_subdirectory("./test")
endif()
`

I use 'project_option' for cmake extension besides that I don't know anything about 'unoficial-libuv' I tracked way that i was using uvw. Is there maybe some reason that name value has wrong?

Confirmed. No idea why we don't figure it out in our tests.

Wait. port uvw also be fixed in PR https://github.com/microsoft/vcpkg/tree/master/ports/uvw. Maybe you should update your builtin-baseline.

but i pulled the git in recent version
"builtin-baseline": "98f8d00e89fb6a8019c2045cfa1edbe9d92d3405"
is the HEAD revision i think?

oh wait i updated 'builtin-baseline'
previous commented one is that version that i reverted past builtin-baseline to make it my project work after i found the bug.

it leads same error

Ah, I know why.
Wait a minute.


Python functionality not working if I start Excel with the wrong account

I have two accounts on my Excel: A personal account with gmail that has Office Home & Business 2019 associated with it. And a Microsoft Office developer account (OnMicrosoft) that has Office 365 associated with it.
If I start Excel with my personal account, I can see the python functionality on the ribbon and even use the PY function. But once I hit ctrl + enter it fails. This is expected as my license with this account does not support this functionality. Please see the screenshot below:

But even after I switch to the correct account, this functionality still does not work. Please see the screenshot below:

This also doesn't necessarily seem unreasonable yet. It seems like I could use one of the reset options to reset the runtime. But clicking those does not fix the issue. The only thing I can do is switch to the correct account, close the program, and then reopen the program. When I do that the python functionality works again.

Thank you for the report. Can you share what error you get under #Python? Is it 'unexpected failure'?

Yes that is correct. I am seeing unexpected failure:

Here is the Trace ID shown in the window: 6de7c615f3fa47548f4601d49daf3087

Thank you, we identified the root cause of the bug. To use Python in Excel, this requires you to be signed in with an account that has a Microsoft 365 license associated with it.  We currently have an issue where users will see #Python / Unexpected failure if they aren't signed in.   We'll be making a fix to return #BLOCKED! with the specific error message.
Can you confirm that your @gmail account doesn't have a license associated with it above?

It looks like my gmail account does have an old Microsoft 365 Personal license associated to it from 2018. But that license was only for one year and should now be expired. Other than that I just have a license for Office Home & Business 2019 associated with it.

This fix with the updated error message was deployed. It should now return #BLOCKED if the account you are signed in with doesn't have a Microsoft 365 license. Please let us know if there are still issues you are seeing here.


Please update DRAKE_SUGGESTED_VERSION to v1.24.0

https://github.com/RobotLocomotion/drake/releases/tag/v1.24.0

Done in https://github.com/RobotLocomotion/drake-ros/pull/325/files


Plugin type error after updating Elysia version

I would like to report that I'm experiencing a type error after updating to version 0.3.2.
I have tested the packages @elysiajs/cookie, @elysiajs/static, and @elysiajs/swagger.
import { cookie } from "@elysiajs/cookie";
import { staticPlugin } from "@elysiajs/static";
import { swagger } from "@elysiajs/swagger";
import { Elysia } from "elysia";

new Elysia()
  .use(staticPlugin())
  .use(cookie())
  .use(swagger())

Each plugins has type error like this:
Argument of type 'Promise<(app: Elysia<ElysiaInstance<{ store: Record<string, unknown>; request: {}; schema: {}; meta: Record<unique symbol, {}> & Record<unique symbol, {}> & Record<unique symbol, {}>; }>>) => Elysia<...>>' is not assignable to parameter of type 'Promise<{ default: (elysia: Elysia<any>) => MaybePromise<Elysia<never>>; }> | MaybePromise<(app: Elysia<ElysiaInstance<{ store: Record<string, unknown>; request: {}; schema: {}; meta: Record<...> & ... 1 more ... & Record<...>; }>>) => MaybePromise<...>>'.
  Type 'Promise<(app: Elysia<ElysiaInstance<{ store: Record<string, unknown>; request: {}; schema: {}; meta: Record<unique symbol, {}> & Record<unique symbol, {}> & Record<unique symbol, {}>; }>>) => Elysia<...>>' is not assignable to type 'Promise<{ default: (elysia: Elysia<any>) => MaybePromise<Elysia<never>>; }>'.
    Type '(app: Elysia<ElysiaInstance<{ store: Record<string, unknown>; request: {}; schema: {}; meta: Record<unique symbol, {}> & Record<unique symbol, {}> & Record<unique symbol, {}>; }>>) => Elysia<...>' is not assignable to type '{ default: (elysia: Elysia<any>) => MaybePromise<Elysia<never>>; }'.

Additionally, I have encountered a runtime issue with @elysiajs/swagger.
31 | const typebox_1 = require("../typebox");
32 | const index_1 = require("../custom/index");
33 | const index_2 = require("../format/index");
34 | class TypeSystemDuplicateTypeKind extends Error {
35 |     constructor(kind) {
36 |         super(`Duplicate kind '${kind}' detected`);
            ^
error: Duplicate kind 'File' detected
      at new TypeSystemDuplicateTypeKind (/node_modules/@sinclair/typebox/system/system.js:36:8)
      at CreateType (/node_modules/@sinclair/typebox/system/system.js:56:18)
      at /node_modules/elysia/dist/custom-types.js:1:1031
      at /node_modules/elysia/dist/index.js:1:9516

For your reference, the tested package versions are as follows:
elysia: 0.3.2
@elysiajs/cookie: 0.3.0
@elysiajs/static: 0.3.2
@elysiajs/swagger: 0.3.0

This might sound weird but while I was able to replicate the error, seems like Bun accidentally installed an experimental channel instead of stable randomly causing the type error.
To verify, can you please go into node_modules/@elysiajs/static, the correct results should be no node_modules folder inside, but if so, can you please go inside the<EMAIL_ADDRESS>and see if the version match your installed version.
If this happens, can you try deleting node_modules, and bun.lockb and reinstall again using bun install, restart your IDE if needed, and see if the problem stills persists?
If the issue still persists, can you please try again with either npm / yarn / pnpm to see if the problem still occurs?

Additionally, I found that, this occurs only when you update from elysia version with plugin installed.
So, suppose you previously has Elysia 0.3.1 installed with @elysiajs/cookie, @elysiajs/static, and @elysiajs/swagger, and then update to Elysia 0.3.2, bun install for some reason, will grab the latest release (regardless of channel) instead of reusing the installed module.
Deleting node_modules and bun.lockb solve the problem, for some reason.
Will report this to Bun.

Oh, There was a node_modules folder inside node_modules/@elysiajs/static, and the elysia version inside it was locked at 0.3.1. I resolved the issue by deleting the node_modules and bun.lockb as you wrote. Thank you.

@SaltyAom Hi! After updating elysia from 0.7.21 to 0.8.5 got error:
TypeError: Spread syntax requires ...iterable not be null or undefined
      at _use (/home/mrbye/Documents/GitHub/flow-server/node_modules/elysia/dist/bun/index.js:341:34605)
      at /home/mrbye/Documents/GitHub/flow-server/node_modules/elysia-autoroutes/dist/index.js:10186:5
      at processTicksAndRejections (:61:77)

(Also tested 0.8.3 and 0.8.0 which throwing errors too, but 0.7.31 don't throw)
As you can see I use elysia-autoroutes
Thanks

@SaltyAom Hi! After updating elysia from 0.7.21 to 0.8.5 got error:
TypeError: Spread syntax requires ...iterable not be null or undefined
      at _use (/home/mrbye/Documents/GitHub/flow-server/node_modules/elysia/dist/bun/index.js:341:34605)
      at /home/mrbye/Documents/GitHub/flow-server/node_modules/elysia-autoroutes/dist/index.js:10186:5
      at processTicksAndRejections (:61:77)

(Also tested 0.8.3 and 0.8.0 which throwing errors too, but 0.7.31 don't throw)
As you can see I use elysia-autoroutes
Thanks

@1bye when i used this library, i got same error)
And i release a elysia-autoload plugin
You can use it instead of elysia-autoroutes
https://github.com/kravetsone/elysia-autoload

@kravetsone Hi! Thanks for this plugin, but unfortunately is not working, the same error:
TypeError: Spread syntax requires ...iterable not be null or undefined
      at _use (/home/mrbye/Documents/GitHub/flow-server/node_modules/elysia/dist/bun/index.js:341:34613)

But maybe this error occurs because in your plugin, elysia version is 0.7.31

@kravetsone Hi! Thanks for this plugin, but unfortunately is not working, the same error:
TypeError: Spread syntax requires ...iterable not be null or undefined
      at _use (/home/mrbye/Documents/GitHub/flow-server/node_modules/elysia/dist/bun/index.js:341:34613)

But maybe this error occurs because in your plugin, elysia version is 0.7.31

In my plugin elysia version never been 0.7.31...

@kravetsone Sorry this error was in my project, I've installed your plugin when I had elysia 0.7.21

Could we open this issue again? This is my starter and got linter and type-checking issue when upgrade from 0.7 to 0.8? https://github.com/jellydn/elysia-demo-app/pull/68

I just shot myself on the foot with this one. Gonna switch to pnpm now.


Layout object cannot be used as aliases in DAGcircuit.qasm()

Informations

Qiskit Terra version: master
Python version:
Operating system:

What is the current behavior?
When the StochasticSwap mapper fails, it raises a TranspilerError and passes the Layout to the DAG layer to show the qasm where the error is occurring:
https://github.com/Qiskit/qiskit-terra/blob/186f3bf4fdd2bdcd9d18b2e059aea76209ddda0b/qiskit/transpiler/passes/mapping/stochastic_swap.py#L460
Because the Layout includes values that are integers, the DAGcircuit.qasm routine fails with a TypeError: 'int' object is not subscriptable
Steps to reproduce the problem
What is the expected behavior?
Suggested solutions

I will have a look. In the meanwhile, would you mind to post an example of what aliases suppose to do? It seems that there are no test for that parameter. Did you try using layout.get_physical_bits() or layout.get_virtual_bits()?

There is no usage example, or test for it.  However from the docstrings:
aliases (dict): if not None, aliases contains a dict mapping
                the current qubits in the circuit to new qubit names.
                We will deduce the register names and sizes from aliases.

If the swap mapper fails then the layer that fails is passed to the error along with the initial_layout.  The aliases is building up registers from the Layout values, but has no idea what to do with the int values, and fails.  So just using the Layout values that are tuples of registers is really the fix.

The PR #1759 fixes this issue.

After https://github.com/Qiskit/qiskit-terra/pull/1781, the dag does not have a qasm method (see https://github.com/Qiskit/qiskit-terra/pull/1781/files#diff-d2039341ad623e4c82f0beeec0ad1f87L772) so I'm closing this bug, since it makes sense I think.


[feature request] Golang generator would be awesome

Currently building a OpenAPI REST app and adding amqp functionality, would really like to use a Spec file to build out the code, rather then free hand it.
Asyncapi looks great just missing go :-)

Agree. If you can share some initial cut on how the code would look like it would facilitate things a lot :)

Are we talking about a Golang generator or a Golang template for AMQP? 😄

Correct me if I'm mistaken @andyhowell8, but I think he wants to generate Golang code using AMQP (a Golang template for AMQP).

Correct @fmvilas generate Golang code using

(a Golang template for AMQP).

My terminology might be incorrect.
I've been using go-swagger for some time and really like the way it can build a server, client and models.
Its a nice model, but it would be nice to see something that can build  similar stubs using Asyncapi

@andyhowell8 Can you provide some example code of Go using AMQP? That'd make it much easier for us to create a template.

fyi there is another related issue about Go template #31

Work in progress => https://github.com/asyncapi/go-template/pull/1

Closing this one as any work and feedback should continue here https://github.com/asyncapi/go-template/issues


[Testnet2] Enforce Merkle path length

Motivation
Ensures that the Merkle path is only valid if the path length is equivalent to the depth of the tree. This enforces that Merkle paths are only checking the leaves and prevents verification of inner nodes.
Tracking PR: #679
Test Plan
A test has been added to check that the Merkle path length is valid.

Q: should we also hash the node height at each level? i.e. for the i-th deep node, should we set the hash to be CRH(i || left_child || right_child)?


variables defined in else clause of for statement

This code is legal in Ceylon:
class Cl() {
    for (i in 1..0) {

    }
    else {
        String s = "";
    }
    String s = "";
}

but results in this error:

Ceylon backend error: variable s is already defined in constructor Cl()

Fixed

Thanks!


time: Wrong time.AddDate calculation if months' last date is 31

What version of Go are you using (go version)?

$ go version
go version go1.19.3 darwin/arm64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/immanuel.christianto/Library/Caches/go-build"
GOENV="/Users/immanuel.christianto/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/immanuel.christianto/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/immanuel.christianto/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.19.3/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.19.3/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.19.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/immanuel.christianto/Workspace/go-test/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/jc/_p3v_n897w36p97jwnm4splr0000gp/T/go-build1081775705=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
https://go.dev/play/p/CHijIVQtJS4
Try subtracting one month from any month whose last date is 31.
oneMonthBefore := now.AddDate(0, -1, 0)
What did you expect to see?

Now: 2022-01-31 20:20:20 +0700 WIB, One Month Before: 2021-12-31 20:20:20 +0700 WIB
Now: 2022-03-31 20:20:20 +0700 WIB, One Month Before: 2022-03-03 20:20:20 +0700 WIB
Now: 2022-05-31 20:20:20 +0700 WIB, One Month Before: 2022-05-01 20:20:20 +0700 WIB
Now: 2022-07-31 20:20:20 +0700 WIB, One Month Before: 2022-07-01 20:20:20 +0700 WIB
Now: 2022-08-31 20:20:20 +0700 WIB, One Month Before: 2022-07-31 20:20:20 +0700 WIB
Now: 2022-10-31 20:20:20 +0700 WIB, One Month Before: 2022-10-01 20:20:20 +0700 WIB
Now: 2022-12-31 20:20:20 +0700 WIB, One Month Before: 2022-12-01 20:20:20 +0700 WIB

Hint: instead of going back 1 month, the result seems to subtract the Now date by the number of days in the previous month. Ex, 31 March goes back to 3 March, because February has 28 days. 31-28 = 3

https://pkg.go.dev/time#Time.AddDate

AddDate normalizes its result in the same way that Date does, so, for example, adding one month to October 31 yields December 1, the normalized form for November 31.

It works as intended according to the doc https://pkg.go.dev/time#Time.AddDate

Agreed: this is working as documented.
“One month before” March 31st would be February 31st, which is not a valid date. There are two possible “reasonable” behaviors: clamp to the last valid date of the month, or compute “February 31st” as 30 days after February 1st. time.AddDate does (and is documented to do) the latter.

Can you explain what do you mean by "as intended"?
Here is another example, if I subtract and add again the result will not be the same.
Is this intentional? https://go.dev/play/p/CSkU0Txv78_w
now := time.Date(2022, month, 31, 20, 20, 20, 0, loc)
subtractAndAdd := now.AddDate(0, -1, 0).AddDate(0, 1, 0)
// now != subtractAndAdd, why?
fmt.Printf("Now: %v, After: %v\n", now, subtractAndAdd)


nixos/make-options-doc: skip re-escaping literal expressions

Description of changes
Modifies the CommonMark and AsciiDoc generators to not re-escape literal expressions and other literal types. These strings are escaped when serialized to JSON and should just be unpacked.
@domenkozar

Things done

Built on platform(s)

[ ] x86_64-linux
[x] 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

[ ] 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.05 Release Notes (or backporting 22.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

cc @roberth

I should probably move the object hook logic into the encoder.

cc @ncfavier because I have no idea whether this impacts search.nixos.org.

We're going to need tests for this code. It has too many hacks to just change things without any checks.

cc @ncfavier because I have no idea whether this impacts search.nixos.org.

Nope, we don't use the MD/AD generators, only optionsJSON.

We're going to need tests for this code. It has too many hacks to just change things without any checks.

@roberth, agreed! This would be a good spot to check the output of this, right?
https://github.com/NixOS/nixpkgs/blob/0f538a65499f3668d04e4723040b716319ceb0db/nixos/modules/misc/documentation/test.nix#L40-L49

Yes, that looks like the place to do it. It would be nice if we could make ofborg could pick that up...


Fix failures on typescript@next

PR checklist

[ ] Addresses an existing issue: #0000
[ ] New feature, bugfix, or enhancement

[ ] Includes tests

[ ] Documentation update

Overview of change:
TypeScript has made some breaking changes recently (Microsoft/TypeScript#15486, Microsoft/TypeScript#15594, Microsoft/TypeScript#15887), so tslint must be updated.
Waiting on ajafff/tsutils#3.

@andy-hanson I released<EMAIL_ADDRESS>with your change. That should fix the build


Support *.drawio.png

The MVP only allows to load xml like diagrams (like *.drawio and *.drawio.svg files).
Regardless of the input, the diagram is saved as drawio xml.
It would be nice if diagrams would be saved as png if the file has a .drawio.png/.dio.png extension.
To implement this, don't just directly save the xml property. Rather, check the file extension of the virtual file and use the export action to convert the file (on every autosave).

In addition, I think we have to extract the meta data from the .png file in order to load the diagram.

No we don't. You can send the png content base64 encoded. Look at how I did it in the vscode extension!

thanx. so the base64 encoding does the trick. this makes it a lot easier!

see #23


Add Angular to Bower dependencies

There are many Gulp/Grunt/preprocessor plugins that build a tree using each Bower package's dependencies to determine the proper order of asset loading. Without angular specified as a Bower dependency of this plugin, it's possible that this library will be loaded before Angular and result in an error such as:
angular-stickyfill.js:10 Uncaught TypeError: Cannot read property 'module' of undefined

Thanks!


HIVE-26456: Remove stringifyException Method From Storage Handlers

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

@zabetak Here is another related PR.  This doesn't totally wipe out the usage of stringifyException in these modules, but removes the low-hanging fruit.


[Clean URLs] Fix the plugin..?

yop

The new update uses https://gitlabcom/ClearURLs/Rules instead of relying on Vencord!!!!


Fixing syntax error

Codecov Report

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

@@           Coverage Diff           @@
##           master    #1026   +/-   ##
=======================================
  Coverage   89.44%   89.44%
=======================================
  Files         112      112
  Lines        2662     2662
  Branches       31       31
=======================================
  Hits         2381     2381
  Misses        277      277
  Partials        4        4

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 7d7fa5b...09ad750. Read the comment docs.


Adding Mobula to "Tooling and infrastructure"

Adding Mobula to "Tooling and infrastructure"

@xyeuu could you also update project-words.txt with Mobula, Mobula's, and Octoflow and Octoflow's? See the spelling linter for more info.


Dropping a database starts an "Update database" task

The text here doesn't seem correct

Closing as duplicate of https://github.com/microsoft/azuredatastudio/issues/24188


weight according to initial loss scale

for each regularization loss, before training start, calculate the ratio of this loss term with respect to the task loss (cross entropy for classiifcaiton)
e.g. regularization loss for DANN is https://github.com/marrlab/DomainLab/blob/1df808a151b72a198344df8f0ffec7a4b2f71222/domainlab/models/model_dann.py#L108.
However, we do not need to care about this line above, but rather,
https://github.com/marrlab/DomainLab/blob/1df808a151b72a198344df8f0ffec7a4b2f71222/domainlab/models/a_model.py#L52
This issue is to make a feature for DomainLab such that for each loss term, we have a reference ratio of this loss term over the task loss, then the user input gamma_reg will be interpreted as a multiplication factor only on top of this ratio,  i.e.
list_multiplier[j]*ratio[j], where j is the index for the loss term in question, ratio is something we have to calculate before training starts, here: https://github.com/marrlab/DomainLab/blob/1df808a151b72a198344df8f0ffec7a4b2f71222/domainlab/algos/trainers/train_basic.py#L22
we probalby need to define something like self.list_reg_loss_over_task_loss_ratio in https://github.com/marrlab/DomainLab/blob/1df808a151b72a198344df8f0ffec7a4b2f71222/domainlab/models/a_model.py#L17
then before https://github.com/marrlab/DomainLab/blob/1df808a151b72a198344df8f0ffec7a4b2f71222/domainlab/models/a_model.py#L52
we do new_list_multiplier= [mtuple[0]*mtuple[1] for mtuple in zip(self.list_reg_loss_over_task_loss_ratio, list_multiplier)]

working on a pr https://github.com/marrlab/DomainLab/pull/863


Allow the extensibility for W2DGraphicsView

Allow the extensibility for W2DGraphicsView. PlatformGraphicView in the rest of the platforms is not sealed.
Fixes https://github.com/dotnet/maui/issues/9460

@jsuarezruiz this change should be made here
https://github.com/dotnet/maui/blob/5e68060c9552b2cd5ad1dc06a7008669ef479408/src/Graphics/src/Graphics.Win2D/W2DGraphicsView.cs#L12


VRG Status is unconditionally updated all the time, causing the reconciliation to run nonstop

In every iteration, the VRG status is updated even when nothing has been changed. That's because the LastUpdateTime is always updated. In a production environment, the reconciler will run nonstop.
We have not seen that in our e2e environment or the unit test for that matter because in those systems, the time it takes for reconciliation to run is very fast, and the current LastUpdateTime most of the time will be the same as the previous reconciliation LastUpdateTime.  In that case, the update to the VRG status will not change, and the reconciliation stops.
The following git diff shows the VRG unit test change that reproduces this problem. The test will fail because I forced the LastUpdateTime to always have a different timestamp.
diff --git a/controllers/volumereplicationgroup_controller.go b/controllers/volumereplicationgroup_controller.go
index 5140518..03e39d6 100644
--- a/controllers/volumereplicationgroup_controller.go
+++ b/controllers/volumereplicationgroup_controller.go
@@ -21,6 +21,7 @@ import (
        "fmt"
        "reflect"
        "regexp"
+       "time"

        "github.com/go-logr/logr"

@@ -1619,6 +1620,8 @@ func (v *VRGInstance) getStorageClass(namespacedName types.NamespacedName) (*sto
        return storageClass, nil
 }

+var CallCounter = 0
+
 func (v *VRGInstance) updateVRGStatus(updateConditions bool) error {
        v.log.Info("Updating VRG status")

@@ -1629,8 +1632,9 @@ func (v *VRGInstance) updateVRGStatus(updateConditions bool) error {
        v.updateStatusState()

        v.instance.Status.ObservedGeneration = v.instance.Generation
+       time.Sleep(time.Second * 1)
        v.instance.Status.LastUpdateTime = metav1.Now()
-
+       CallCounter++
        if err := v.reconciler.Status().Update(v.ctx, v.instance); err != nil {
                v.log.Info(fmt.Sprintf("Failed to update VRG status (%s/%s/%v)",
                        v.instance.Name, v.instance.Namespace, err))
diff --git a/controllers/volumereplicationgroup_controller_test.go b/controllers/volumereplicationgroup_controller_test.go
index 764bbe7..c493034 100644
--- a/controllers/volumereplicationgroup_controller_test.go
+++ b/controllers/volumereplicationgroup_controller_test.go
@@ -62,6 +62,9 @@ var _ = Describe("Test VolumeReplicationGroup", func() {
                                v.promoteVolReps()
                                v.verifyVRGStatusExpectation(true)
                        }
+                       time.Sleep(time.Second * 180)
+                       Expect(vrgController.CallCounter < 180).To(BeTrue(),
+                               fmt.Sprintf("********************** UpdateVRGStatus call counter %d", vrgController.CallCounter))
                })
                It("cleans up after testing", func() {
                        for c := 0; c < len(vrgTestCases); c++ {

The fix is to guard against an unneeded status update

done


Node w/ experimental modules not recognizing uPort modules

Current Behavior
Based on the documentation I should be able to import uport-js into a node project like this import { Credentials, SimpleSigner } from 'uport'. link
What actually happens
import { Credentials, SimpleSigner } from 'uport';
         ^^^^^^^^^^^
SyntaxError: The requested module 'uport' does not provide an export named 'Credentials'
    at ModuleJob._instantiate (internal/modules/esm/module_job.js:89:21)

Steps to Reproduce

npm init (with defaults)
npm install --save express uport
Create the following under index.mjs

import { Credentials, SimpleSigner } from 'uport';
import express from 'express';
static app = express();
app.get('/', function(req, res){
    let signer = this.signer = SimpleSigner("5acea265dcbf01355956b36f82793a13caf1be650bb74ca7a40da74b412d44b5");
    res.send(signer != null);
});

run node --experimental-modules index.mjs
You should see the error

Environment Details

OSX

Node v11.0.0-pre

uPort 0.6.2

Thank you for reporting this issue we will get back to you shortly

My mitigation didn't work FYI
ReferenceError: signer is not defined
    at new UPortBase (file:///Users/jackiegleason/Code/secondave-private/webtask/uPort/uportBase.mjs:8:21)

Also
import UPort from 'uport';
console.log(JSON.stringify(UPort));

Prints

{"JWT":{}}

and printing the SimpleSigner returns undefined.

I think the issue here is you are using babel for some things when you should be using Webpack.
For example, if you are using a browser with ES2017 built in why would you want to transpile down to ES2015? Now if a browser doesn't have a feature you need (say the 2019 spec) then it makes perfect sense to use Babel for that. However, when you are doing things like linting it should be done through the library that is used (eslint) without a intermediary. Webpack is way closer to that paradigm.
It isn't just you guys though some of your dependencies have issues as well. It seems it is an issue with the entire React Community and probably comes down to cut and paste. I have had to patch a couple other libraries and I am working on a solution...
https://github.com/jrgleason/uport-js/tree/68
Let me know what you think, I am mainly worried about confirming that linting, etc are still configured/working right.

BTW I am trying to prove it but I think the main fix is adding this to the index.js...
export { Credentials, SimpleSigner, Contract, ContractFactory, JWT }

But I figure that is redundant and there has to be a better way.

@jrgleason Thanks for reporting this! I will take a look at what might be causing this issue.

Maybe thisish?
Object.defineProperty (exports, "__esModule", {
value: true
});
exports.default = MyDefaultExportedClass;
https://stackoverflow.com/questions/43859231/babel-js-using-import-and-export-not-working

Sorry @jrgleason but we are not able to support using the --experimental-modules flag at this time.


Add new Style/RedundantEach cop

Follow up https://github.com/rubocop/rubocop-rails/pull/812/files#r994033301.
This PR adds new Style/RedundantEach cop that checks for redundant each.
This cop is unsafe, as it can produce false positives if the receiver is not an Enumerable.
# bad
array.each.each { |v| do_something(v) }

# good
array.each { |v| do_something(v) }

# bad
array.each.each_with_index { |v, i| do_something(v, i) }

# good
array.each.with_index { |v, i| do_something(v, i) }

# bad
array.each.each_with_object { |v, o| do_something(v, o) }

# good
array.each.with_object { |v, o| do_something(v, o) }

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

I like the suggestion, but I'm wondering if this is not more of a Lint cop.

I like the suggestion, but I'm wondering if this is not more of a Lint cop.

I was a little worried, but it's unsafe, so I chose Style over Lint. It's also because the original code is not a dangerous problem. For example, reverse_each.each_with_index would be a favorite style to eliminate the redundant expression each rather than a definite mistake.

Thanks!


Add category Pass

tyope "Pass" and  CompanyPass" "AragoPass"

adding category
Show/hide category in drawer menu
displayed by default
update enum of catogires

finally more than S ;-)


Remove splunklogging.emit_data

No need for these manual instances now that we have
hubblestack.log.emit_to_splunk
Note, these will now show up under different logger names in splunk --
rather than logging under the module name, they will log under the
new names hubblestack.osquery_timing and
hubblestack.osquery_disk_usage.

@praksinha You should probably review this as well -- since you haven't accepted the org invite I can't add you as a reviewer directly yet.

@praksinha You should probably review this as well -- since you haven't accepted the org invite I can't add you as a reviewer directly yet.

Seems good to me.