about datasets

Hello:
I found that there are no datasets in hvacl_offline_rl. Could you upload it?
By the way,  could you tell me  what is the datase made of?
I have sucessfully made an Online RL test based on simulation(energyplus)&RL， and I want to deploy the trained model into practice enviroment by offline RL. But how to make dataset for this objectibve?
Best regards;
agl
common                                              --common utility functions for two buildings
energym_wrapped
|____src                                            --environment codes
|____main                                           --running codes
|____datasets                                       --dataset location
ibm_datacenter
|____src                                            --environment codes
|____main                                           --running codes
|____datasets                                       --dataset location

The datasets are large files and depend on different settings. Therefore, we do not provide any files.
However, the generation codes can refer to generation_runs in running codes, where the saving of online transitions is realized with d3rlpy.
Duplicate of #

The datasets are large files and depend on different settings. Therefore, we do not provide any files.
However, the generation codes can refer to generation_runs in running codes, where the saving of online transitions is realized with d3rlpy.

The datasets are large files and depend on different settings. Therefore, we do not provide any files.
However, the generation codes can refer to generation_runs.py in running codes, where the saving of online transitions is realized with d3rlpy.


Discourage encryption v1.0

Document the version ID as insecure and link to further documentation.
Hide the version ID from intellisense.
Addresses https://github.com/Azure/azure-sdk-for-net/pull/28870#discussion_r897388312.
Part of #29305

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Storage.Common


Importing from phpBB 3.1.4

I had two unknown column errors importing from phpBB 3.1.4.  I'm assuming they changed the table schema whilst upgrading.
The errors were in the topics table, with the field topic_approved missing, and in the posts table with the field post_approved missing.  I fixed it by running these SQL commands..
ALTER TABLE phpbb_topics ADD topic_approved INT;
UPDATE phpbb_topics SET topic_approved = 0;
ALTER TABLE phpbb_posts ADD post_approved INT;
UPDATE phpbb_posts SET post_approved = 0;
Essentially I just created the missing columns, and set them to 0. Re-ran the import and it worked!

Cool :) I'll move this information into the wiki/docs, thanks for letting me know

I see this is a closed issue, but the flaw still exists. After googling around I found a few dodgy sources mentioning 'topic_approved'. Seems this is renamed to 'topic_visibility' in 3.1.0.
Since 3.1.X is the latest and greatest from phpBB, shouldn't the importer be updated? Or set to check phpBB version and handle both or something.
PS: topic_approved = 0 should mean that the topic is invisible in phpBB. Same for post. I guess the importer doesn't handle this but setting it to '1' instead makes it consistent with phpBB.
https://wiki.phpbb.com/Practical.Displaying_posts_and_topics_on_external_pages
https://www.phpbb.com/community/viewtopic.php?f=461&t=233

@tiazzz i don't see why we can't fix that, publish and document which version of importer to use with which phpbb version -
@psychobunny can you add me as a collaborator here so i won't have to bother you with the changes?

@akhoury done, thanks

I've done the hack @antstanley suggested and still see some errors in the import. I commented out some code that the import got stuck on, with output.log looking like this:
importer.warn purgeCategories+Topics+PostsStart : [[error:no-privileges]]
[nodebb-plugin-import] importer.warn purgeCategories+Topics+PostsStart : [[error:no-privileges]]
importer.progress { count: 1, total: 1, percentage: 100 }
importer.phase { phase: 'purgeCategories+Topics+PostsDone', data: undefined }
importer.phase { phase: 'purgeUsersStart', data: undefined }

I got an error with plugins directly from npm:
25/10 21:20 [22859] - error: TypeError: Object 78 has no method 'toUpperCase'
at /home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import-phpbb/index.js:204:61
at Array.forEach (native)
at Query._callback (/home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import-phpbb/index.js:203:22)
at Query.Sequence.end (/home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import-phpbb/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at Query._handleFinalResultPacket (/home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import-phpbb/node_modules/mysql/lib/protocol/sequences/Query.js:143:8)
at Query.EofPacket (/home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import-phpbb/node_modules/mysql/lib/protocol/sequences/Query.js:127:8)
at Protocol._parsePacket (/home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import-phpbb/node_modules/mysql/lib/protocol/Protocol.js:270:23)
at Parser.write (/home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import-phpbb/node_modules/mysql/lib/protocol/Parser.js:77:12)
at Protocol.write (/home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import-phpbb/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import-phpbb/node_modules/mysql/lib/Connection.js:82:28)

I tried commenting out line 204 in index.js in nodebb-plugin-import-phpbb and the import goes a bit further, but then get stuck later on:
nodebb-plugin-import] importer.success Importing 26142 topics.
25/10 21:30 [23074] - error: TypeError: Object Nytt forum!! has no method 'replace'
at Object.module.exports.utils.slugify (/home/stcn/node_modules/nodebb/public/src/utils.js:81:14)
at /home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import/server/importer.js:1325:32
at /home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import/node_modules/async/lib/async.js:251:17
at done (/home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import/node_modules/async/lib/async.js:132:19)
at /home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import/node_modules/async/lib/async.js:32:16
at /home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import/node_modules/async/lib/async.js:248:21
at /home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import/node_modules/async/lib/async.js:572:34
at /home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import/server/importer.js:1232:12
at /home/stcn/node_modules/nodebb/node_modules/nodebb-plugin-import/server/data.js:265:5
at try_callback (/home/stcn/node_modules/nodebb/node_modules/redis/index.js:573:9)

"Nytt forum!!" is the first topic created in the forum I'm trying to import.
Any ideas?


Enhancement: Improve Error Handling, Input Validation, and Security in User Routes

I propose several enhancements to the user routes in our Express.js application to improve error handling, input validation, and security.
Suggestions for Improvement:
Error Handling Improvement:
Enhance error messages to provide more descriptive information, giving users a clearer understanding of encountered issues.
Input Validation:
Implement robust input validation to ensure that only valid data is accepted by the routes. This includes validating user IDs, passwords, and any other user input.
@anmode  , I'm interested in working on this issue. Could you please assign it to me? I'll start working on the suggested enhancements right away. Thank you!

@Sameer413 need to check server folder test api and could add input validations is it okay for you ?

Can I work on this issue??

yupp go ahead @amanjaiswal7236

Can I use Zod for Input validation?


Subflows with RayTaskManager

Prefect 2.0 supports subflows which is a great new addition. There is a bug when using nested flows with the same RayTaskManager(), in essence it crashes complaining about calling ray.init() twice.
It would be nice if this workcase would be supported since it would allow combining different parallel flows.
To reproduce, use:
from prefect import task, flow
from prefect_ray import RayTaskRunner

@task
def some_task(input):
    return input

@flow(task_runner=RayTaskRunner())
def my_subflow():
    some_task.submit(1)
    some_task.submit(2)
    some_task.submit(3)

@flow(task_runner=RayTaskRunner())
def some_flow():
    my_subflow()
    some_task.submit(4)

some_flow()

The error is:
09:15:38.789 | INFO    | prefect.engine - Created flow run 'terrestrial-bird' for flow 'some-flow'
09:15:38.789 | INFO    | prefect.task_runner.ray - Creating a local Ray instance
2022-08-17 09:15:40,455	INFO services.py:1470 -- View the Ray dashboard at http://<IP_ADDRESS>:8265
09:15:42.168 | INFO    | prefect.task_runner.ray - Using Ray cluster with 1 nodes.
09:15:42.168 | INFO    | prefect.task_runner.ray - The Ray UI is available at <IP_ADDRESS>:8265
09:15:42.355 | INFO    | Flow run 'terrestrial-bird' - Created subflow run 'small-marten' for flow 'my-subflow'
09:15:42.356 | INFO    | prefect.task_runner.ray - Creating a local Ray instance
09:15:42.357 | ERROR   | Flow run 'small-marten' - Crash detected! Execution was interrupted by an unexpected exception.
09:15:42.390 | ERROR   | Flow run 'terrestrial-bird' - Encountered exception during execution:
Traceback (most recent call last):
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/engine.py", line 557, in orchestrate_flow_run
    result = await run_sync(flow_call)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/utilities/asyncutils.py", line 56, in run_sync_in_worker_thread
    return await anyio.to_thread.run_sync(call, cancellable=True)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "/home/robbert/programming/python/altoida/altoida_ml/altoida_ml/robbert/snippits/prefect_bugs/ray_run_manager.py", line 25, in some_flow
    my_subflow()
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/flows.py", line 390, in __call__
    return enter_flow_run_engine_from_flow_call(
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/engine.py", line 156, in enter_flow_run_engine_from_flow_call
    return run_async_from_worker_thread(begin_run)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/utilities/asyncutils.py", line 136, in run_async_from_worker_thread
    return anyio.from_thread.run(call)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/from_thread.py", line 49, in run
    return asynclib.run_async_from_thread(func, *args)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 970, in run_async_from_thread
    return f.result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 444, in result
    return self.__get_result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/client.py", line 104, in with_injected_client
    return await fn(*args, **kwargs)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/engine.py", line 450, in create_and_begin_subflow_run
    task_runner = await stack.enter_async_context(flow.task_runner.start())
  File "/usr/lib/python3.8/contextlib.py", line 568, in enter_async_context
    result = await _cm_type.__aenter__(cm)
  File "/usr/lib/python3.8/contextlib.py", line 171, in __aenter__
    return await self.gen.__anext__()
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/task_runners.py", line 168, in start
    await self._start(exit_stack)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect_ray/task_runners.py", line 195, in _start
    context = ray.init(*init_args, **self.init_kwargs)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/ray/_private/client_mode_hook.py", line 105, in wrapper
    return func(*args, **kwargs)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/ray/worker.py", line 977, in init
    raise RuntimeError(
RuntimeError: Maybe you called ray.init twice by accident? This error can be suppressed by passing in 'ignore_reinit_error=True' or by calling 'ray.shutdown()' prior to 'ray.init()'.
09:15:45.181 | ERROR   | Flow run 'terrestrial-bird' - Finished in state Failed('Flow run encountered an exception.')
Traceback (most recent call last):
  File "/home/robbert/programming/python/altoida/altoida_ml/altoida_ml/robbert/snippits/prefect_bugs/ray_run_manager.py", line 29, in <module>
    some_flow()
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/flows.py", line 390, in __call__
    return enter_flow_run_engine_from_flow_call(
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/engine.py", line 152, in enter_flow_run_engine_from_flow_call
    return anyio.run(begin_run)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/_core/_eventloop.py", line 70, in run
    return asynclib.run(func, *args, **backend_options)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 292, in run
    return native_run(wrapper(), debug=debug)
  File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
    return await func(*args)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/client.py", line 104, in with_injected_client
    return await fn(*args, **kwargs)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/engine.py", line 228, in create_then_begin_flow_run
    return state.result()
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/orion/schemas/states.py", line 145, in result
    raise data
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/engine.py", line 557, in orchestrate_flow_run
    result = await run_sync(flow_call)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/utilities/asyncutils.py", line 56, in run_sync_in_worker_thread
    return await anyio.to_thread.run_sync(call, cancellable=True)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "/home/robbert/programming/python/altoida/altoida_ml/altoida_ml/robbert/snippits/prefect_bugs/ray_run_manager.py", line 25, in some_flow
    my_subflow()
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/flows.py", line 390, in __call__
    return enter_flow_run_engine_from_flow_call(
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/engine.py", line 156, in enter_flow_run_engine_from_flow_call
    return run_async_from_worker_thread(begin_run)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/utilities/asyncutils.py", line 136, in run_async_from_worker_thread
    return anyio.from_thread.run(call)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/from_thread.py", line 49, in run
    return asynclib.run_async_from_thread(func, *args)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 970, in run_async_from_thread
    return f.result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 444, in result
    return self.__get_result()
  File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/client.py", line 104, in with_injected_client
    return await fn(*args, **kwargs)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/engine.py", line 450, in create_and_begin_subflow_run
    task_runner = await stack.enter_async_context(flow.task_runner.start())
  File "/usr/lib/python3.8/contextlib.py", line 568, in enter_async_context
    result = await _cm_type.__aenter__(cm)
  File "/usr/lib/python3.8/contextlib.py", line 171, in __aenter__
    return await self.gen.__anext__()
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect/task_runners.py", line 168, in start
    await self._start(exit_stack)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/prefect_ray/task_runners.py", line 195, in _start
    context = ray.init(*init_args, **self.init_kwargs)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/ray/_private/client_mode_hook.py", line 105, in wrapper
    return func(*args, **kwargs)
  File "/home/robbert/.virtualenvs/altoida/lib/python3.8/site-packages/ray/worker.py", line 977, in init
    raise RuntimeError(
RuntimeError: Maybe you called ray.init twice by accident? This error can be suppressed by passing in 'ignore_reinit_error=True' or by calling 'ray.shutdown()' prior to 'ray.init()'.

I solved the problem in my private package by using a modified RayTaskRunner. In particular, I modified the _start_function to start with:
if self.address:
    self.logger.info(
        f"Connecting to an existing Ray instance at {self.address}"
    )
    init_args = (self.address,)
elif not ray.is_initialized():
    self.logger.info("Creating a local Ray instance")
    init_args = ()

Note the ray.is_initialized call.

Thanks for reporting this! Would you like to try making a PR to fix this?

Maybe in the future, currently very busy trying to get work done. The problem is simple enough to just fix it next time you dive into the code, no?

Yep, just wanted to see if you were interested first. Thanks again for the report!


improve testnet faucet page

This form needs more information to be more user friendly.
https://app.telos.net/testnet/developers
The requirements will be specified later.

"Groomed" on #259 and #260.

Done in this PR


Bump dependencies, refactor hash() option

Apologies for combining all of this into one PR :) First couple commits update some dev dependencies, add linting and clean up some whitespace. I've also removed unused spies from the tests.

The real meat of this PR is replacing the hash option. Both AVA and nyc use this option to ensure some extra data is included in the hash, and to store a mapping from the hash to a file.
Overriding the hash function in order to achieve these goals seems too error-prone, especially since it relies on the consuming code to properly invoke md5-hex. This PR replaces the hash option by a hashData function an an onHash callback:

hashData receives the original input and additional data and may return a string, buffer or array of either. This is then included in the hash.

onHash is called with the input, additional data, and the resulting hash. Calling code can use this to maintain mappings.

I've tried this locally with AVA and it works fine. Plus AVA no longer needs a dependency on md5-hex which is nice.
This is a breaking change though!

With the above changes it becomes possible to include a package hash for caching-precompiler itself, which should be useful if the storage format is changed. I believe that'll be necessary for https://github.com/bcoe/nyc/pull/217, which requires multiple files to be generated for a single input.

Coverage remained the same at 100.0% when pulling 106f900e2b0821d316e2bb3697e27a8b6c5a6d78 on novemberborn:update-and-hash-refactor into 508395eb3e785c5010d091fc05d93b7024201414 on jamestalmage:master.

@jamestalmage force-pushed to bump XO to 0.15.0. Let me know what you want me to do with the if conditions. Have your concerns about package-hash been alleviated?

Coverage remained the same at 100.0% when pulling c74af0fa825f116b490baa339d1b228b2328d7dd on novemberborn:update-and-hash-refactor into 508395eb3e785c5010d091fc05d93b7024201414 on jamestalmage:master.

A few comments on the docs. if statements are fine as is until we find a better linter rule.
Otherwise, LGTM

Force-pushed again. Updated readme (and fixed an existing typo). Bumped package-hash to the freshly published 1.2.0.

Coverage remained the same at 100.0% when pulling 45d43dc7ae3874f57a2326780435227ca1d772f7 on novemberborn:update-and-hash-refactor into 508395eb3e785c5010d091fc05d93b7024201414 on jamestalmage:master.


Canvas to image improvements / Safari images fix

Summary
This fixes Safari missing images issue due to unfinished image decoding (the library was waiting an arbitrary 100ms to take the "screenshot", after an exhaustive investigation it turns out that adding more delay (and doing various other things), only partially fixes the issue [it happened less often]).
Thanks to that discovery we can also remove the 100ms delay, speeding up all html-to-image usages (Presets/Text Sets smart color + Eyedropper + Thumbnails caching) 🎉
Relevant Technical Choices

To-do

[ ] Upstream PRs

User-facing changes

Testing Instructions

[ ] This is a non-user-facing change and requires no QA

This PR can be tested by following these steps:
Can be also tested on other browsers but the Safari is the main goal.

Enable thumbnails caching in the Experiments
Create a story and insert a few pages with images
Check if thumbnails are generated properly (images not missing)

Reviews
Does this PR have a security-related impact?

Does this PR change what data or activity we track or use?

Does this PR have a legal-related impact?

Checklist

[x] This PR addresses an existing issue and I have linked this PR to it in ZenHub
[ ] I have tested this code to the best of my abilities
[ ] I have verified accessibility to the best of my abilities (docs)
[ ] I have verified i18n and l10n (translation, right-to-left layout) to the best of my abilities
[ ] This code is covered by automated tests (unit, integration, and/or e2e) to verify it works as intended (docs)
[ ] I have added documentation where necessary
[x] I have added a matching Type: XYZ label to the PR

Fixes #8923

@merapi Some tests seem to be failing (not sure if related?) and there are conflicts to resolve now, too.

An upstream PR and then a ticket here to update it & remove the patch would be nice

An upstream PR and then a ticket here to update it & remove the patch would be nice

Upstream: https://github.com/bubkoo/html-to-image/pull/194
Remove patch: https://github.com/google/web-stories-wp/issues/9229


Inconsistent enum usages when enum key is not exact the custom value

Describe the bug

We are building our graphql schemes with typescript for a nodejs backend.
A strange inconsistency occurs while generating enums where a enum key does not match its "custom" value.
If key and value property of an enum are the same the enum is correctly generated in "CamelCase" and used.
If the custom value differs from the key, the references to that enum in the generated types is "camelCase". With a leading lowercase character.
To Reproduce
Steps to reproduce the behavior:

My GraphQL schema:

export const stateType = new GraphQLEnumType({
  description: 'Available and valid states',
  name: 'stateType',
  values: {
    Approved: {
      value: 'approved'
    },
    Canceled: {
      value: 'canceled'
    },
    ChangesRequested: {
      value: 'changesRequested'
    },
    Created: {
      value: 'created'
    },
    Declined: {
      value: 'declined'
    },
    Draft: {
      value: 'draft'
    },
    Finished: {
      value: 'finished'
    },
    Sent: {
      value: 'sent'
    }
  }
})

My GraphQL operations:

Just add this enum to a field type and add it to your schema

My codegen.yml config file:

schema:
  - "./scripts/code-generator-schema.ts"
overwrite: true
generates:
  ./src/frontend/graphql/generated-types.ts:
    documents:
      - "./src/frontend/**/*.graphql"
    plugins:
      - typescript
      - typescript-operations
      - typescript-apollo-angular
    config:
      avoidOptionals:
        inputValue: false
        object: false
        field: true
      exportFragmentSpreadSubTypes: true
      arrayInputCoercion: false

Results in:
export enum StateType {
  Approved = 'approved',
  Canceled = 'canceled',
  ChangesRequested = 'changesRequested',
  Created = 'created',
  Declined = 'declined',
  Draft = 'draft',
  Finished = 'finished',
  Sent = 'sent'
}

But it is used in other types
{
  stateType: stateType
}

If enum key + custom value are the same it is correctly referenced in the generation output:
{
  stateType: StateType
}

Expected behavior
The enum should be correctly reference the generated enum types. There should not be any strange side effects on the enum usages when defining custom eunm values.
Additional there should not be a transformation of the keys of an enum. Every key is transformed that the first character is in uppercase - even if we define the key as lowercase.
Environment:

OS: Ubuntu 20.04.3 LTS
@graphql-codegen/cli: 2.4.0
@graphql-codegen/typescript: 2.4.2
@graphql-codegen/typescript-apollo-angular: 3.3.2
@graphql-codegen/typescript-operations: 2.2.3
NodeJS: 16.10.0

Hi @KillerCodeMonkey, and thank you for the report!
I understood the symptoms of your problem.
However, in order to efficiently identify the root cause, could you please provide a reproduction?
Either by creating a repository or creating a CodeSandbox by using our template: https://codesandbox.io/s/github/dotansimha/graphql-code-generator-issue-sandbox-template/tree/master/
Sorry but I'm not adding a lot here but just labeling it according to our new Contribution Guide and issue flow.
Thank you!


In Integrators, make _update_displacement an abstract method. Also, in Model, rename _volume to set_volumes

To make the code consistent.

Done in #97. Decided against making _update_displacement into an abstract method, since doing so would be redundant since all _update_displacments for each integrator take different arguments. There may be a way in future to refactor this so it can be done with placeholder arguments.


PersonalizationCSP registrey key locks the lockscreen

Thank you for you script.
Now, with Windows 10,  using PersonalizationCSP registrey key locks the lockscreen background image, it is impossible for the user to modify the image. Is it possible to fix it ?
Thank you, and sorry for my english, I'm french

Hello, @FredislandCocci10! Sorry for the delay. I've been looking into it and it's not possible to apply the images the way the script does without blocking wallpaper changes. PersonalizationCSP was the only way I found that worked for Windows Home and Pro, but if any alternatives come along, I'll be happy to consider them.


handle typescript by default

Summary
Now that we've landed Babel 7, I think we should handle TypeScript by default, next to JS, JSX and Flow.
See https://2018.stateofjs.com/javascript-flavors/overview/ for why I think this should be #0C

Test plan
We have an integration test with Babel and typescript, so I just removed its config.

/cc @kulshekhar @huafu @GeeWee.
I think we might have to change some docs on the ts-jest side, but I don't think it'll be an issue for us. I think the others will have a better idea however.

Awesome! I think docs and maybe the preset (as it won't have to set moduleFileExtensions etc). But it shouldn't break anything as you'll just overwrite our defaults, it's just unnecessary.

Yeah that's what I'm thinking as well.

Codecov Report

Merging #7533 into master will decrease coverage by 0.01%.
The diff coverage is 83.33%.

@@            Coverage Diff            @@
##           master   #7533      +/-   ##
=========================================
- Coverage   67.71%   67.7%   -0.02%
=========================================
  Files         247     247
  Lines        9501    9504       +3
  Branches        5       5
=========================================
+ Hits         6434    6435       +1
- Misses       3065    3067       +2
  Partials        2       2

Impacted Files
Coverage Δ

packages/jest-cli/src/lib/init/questions.js
100% <ø> (ø)
:arrow_up:

packages/jest-cli/src/lib/init/index.js
87.8% <ø> (-1.09%)
:arrow_down:

packages/jest-config/src/ValidConfig.js
100% <ø> (ø)
:arrow_up:

packages/jest-config/src/Defaults.js
100% <ø> (ø)
:arrow_up:

packages/jest-config/src/constants.js
100% <100%> (ø)
:arrow_up:

...ages/jest-cli/src/lib/init/generate_config_file.js
100% <100%> (ø)
:arrow_up:

packages/jest-config/src/normalize.js
83.01% <80%> (-0.13%)
:arrow_down:

Continue to review full report at Codecov.

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

For people coming to this thread, it has been released in 24.0.0-alpha.9, tagged as jest@beta. Feedback very much welcome 🙂

I know this is very early, but does this patch include support for TS features like path mapping? (Not sure if this is covered by Babel) 🙂

We rely on Babel for our default TS support. If you need something more advanced, then ts-jest is a way to go like it always was.

if you want to use a tsconfig at all you need to use ts-jest

@thymikee @SimenB thanks for clarification. I was just checking if I can get rid of ts-jest 🙂

As someone who only writes TS, love this. <3


Ability to sort collections by date modified or other fields

- Do you want to request a feature or report a bug?
Feature request
It would be nice to be able to sort collections by fields other than the title. When a collection grows large enough it becomes more difficult to navigate.
- Please mention your versions where applicable.
Netlify CMS version: 1.7.0
Browser version: Chrome 66

This seems like a duplicate of https://github.com/netlify/netlify-cms/issues/54?

Oops, you're right, I somehow missed that one. Closing as a duplicate of #54.


fix: rename LogIn request to GetAccessToken

What this PR does:
Renames LogIn request to GetAccessToken to be more descriptive
Which issue(s) this PR fixes:
Fixes onepanelio/core#
Special notes for your reviewer:
Checklist
Please check if applies

[ ] I have added/updated relevant unit tests
[ ] I have added/updated relevant documentation

Required

[x] I accept to release these changes under the Apache 2.0 License

Facing multiple issues with this change:

Logged in as a non-admin user, there are buttons that I had access to before that are missing. For example "Workspace Templates" and "Workflow Templates"
CVAT is now not able to log in since it uses the old is_valid_token API.


[T2A3] [W09_A2] Nguyen Quoc Bao

Ready for review.

@bqnguyen94  Some comments added. Please close the PR after reading comments.

@bqnguyen94 Some comments added. Please close the PR after reading comments. Don't forget to change your prof pic.

@bqnguyen94 Some comments added. Please close the PR after reading comments. Good job for doing the assignment, make sure next time each commit address one task only.


Provide more detailed explanation of database types

In pg_tune there is an option to set the database type:
-T or --type : Specifies database type. Valid options are: DW, OLTP, Web, Mixed, Desktop
It would be helpful to provide more detailed explanation of the database types and what a user should consider when choosing one option over the others.
Thank you for all your hard work on pg_tune.

My guess, based on what I see in the differences these "operation modes" put out:
DW = DataWarehouse => Your box is doing mostly warehouse-like db work.  Results in giving biggest maintenance_work_mem, checkpoint_segments, default_statistics_target.  Average work_mem.
OLTP = Online Transaction Processing => Your box is getting hit hard with lots of little small-data transactions.  Bigger work_mem, smaller maintenance_work_mem, average check_point_segments.
Web = Generic Web Server => Balanced, similar to OLTP, but fewer checkpoint_segments.
Mixed = Mixed usages => work_mem like DW, checkpoint_segments like Web, maintenance_work_mem like OLTP, Web.
Desktop = Standalone usage => minimize footprint.  Small default_statistics_target, maintenance_work_mem like OLTP, web, Mixed, default checkpoint_completion_target (undefined), smaller effective cache size, smaller work_mem, fewer checkpoint_segments, smaller shared_buffers.
In all cases, it seems to recommend wal_buffers = max, and roughly follows the shared_buffers 75% of shmax recommendation I've seen elsewhere.

I was also looking for a good explanation for the terms and found a good overview in the pgtune documentation included with chef-postgresql, provided by @davidc-donorschoose:
# dw -- Data Warehouse
#   * Typically I/O- or RAM-bound
#   * Large bulk loads of data
#   * Large complex reporting queries
#   * Also called "Decision Support" or "Business Intelligence"
#
# oltp -- Online Transaction Processing
#   * Typically CPU- or I/O-bound
#   * DB slightly larger than RAM to 1TB
#   * 20-40% small data write queries
#   * Some long transactions and complex read queries
#
# web -- Web Application
#   * Typically CPU-bound
#   * DB much smaller than RAM
#   * 90% or more simple queries
#
# mixed -- Mixed DW and OLTP characteristics
#   * A wide mixture of queries
#
# desktop -- Not a dedicated database
#   * A general workstation, perhaps for a developer


locale.Error: unsupported locale setting

I have error when I install CIBOX on ubuntu:
failed: [<IP_ADDRESS>] => (item=ansible==1.9.4) => {"cmd": "/usr/local/bin/pip install ansible==1.9.4", "failed": true, "item": "ansible==1.9.4"}
msg:
:stderr: Traceback (most recent call last):
File "/usr/local/bin/pip", line 9, in
load_entry_point('pip==8.1.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python2.7/dist-packages/pip-8.1.1-py2.7.egg/pip/init.py", line 215, in main
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.7/locale.py", line 579, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
And I solve by these commands:
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales

Thanks for reporting this
@tamnv what Ubuntu version are you using?
Looks like sort of limited/changed one

Hi @podarok,
Ubuntu version: Ubuntu 14.04.4 LTS

@tamnv custom installed or provided by some hosting?

@podarok I try to install to hosting provided by Digital Ocean.

heh, looks like a new bug according to .4 version.

I must mention that the locale was set on local ubuntu machine running ansible, not on ansible hosts. Maybe it's a specific Ubuntu settings causing it, the ansible was ran from a local ubuntu, not a digital ocean, DO was one of ansible hosts.

local machine should not break remote execution @asgorobets so looks like we need to address it anyway
We are doing provisioning from different hosts , like ubuntu, debian, osx, so if there is a state for ubuntu when provisioning fails - it is a bug


April Project Maintenance

April Project Maintenance

paid

This item belongs to payment request #8AB9CE on OnlyDust:

from drspacemn to phklive
1 item included
$1,000 for 2 days of work


[OPENJDK-2595] fix docs labels for JDK21

https://issues.redhat.com/browse/OPENJDK-2595

The failing tests are all the ones that use the undertow-servlet quickstart, and the failure reason is to do with certificates relating to one of the redhat maven repositories:

Could not transfer artifact org.jboss.logmanager:jboss-logmanager:pom:2.0.3.Final-redhat-1 from/to redhat-ga-repository (https://maven.repository.redhat.com/ga/): transfer failed for https://maven.repository.redhat.com/ga/org/jboss/logmanager/jboss-logmanager/2.0.3.Final-redhat-1/jboss-logmanager-2.0.3.Final-redhat-1.pom: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


Binding Dll does not contain anything but Dll sucessfully Generated

I tried Xamarin.GradleBindings to add library from gradle. The dll is successfully created and that dll also added into my android project automatically. But the dll does not contain anything.
I cannot also added namespace of the Dll into my Activity by using 'using mybinding_projectname'.
Please provide some suggestion regarding this issue

As it says in the step 3, you may need to fix issues with the binding before using it in your project.
Many projects will work by just adding the reference in your project, but more often than not you'll have to fix the issues.

I library project doesn't have any issues and binding project dll successfully generated.But that binding project dll doesn't have anything.
please check the following gradle library me.angrybyte.slider:slider:1.3.0 . Check and let me know the details

Hi @EgorBo,
Please give any suggestion for this issue. It will helpful for my production.

Most of the 3rd party libs may require some additional actions like adding additional references (support libs, etc) resolving issues via Metadata.xml etc - that is not add-in's fault 😢 - it just creates an Android Binding project with the binary you asked it inside. Try to build the project and see full logs for warnings/errors. Also read https://developer.xamarin.com/guides/android/advanced_topics/binding-a-java-library/#Resolving_API_Differences


POC: test cypress optimization

Codecov Report
Patch and project coverage have no change.

Comparison is base (8e18c5c) 88.03% compared to head (3657752) 88.03%.

:exclamation: Current head 3657752 differs from pull request most recent head 1e9931f. Consider uploading reports for the commit 1e9931f to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #558   +/-   ##
=======================================
  Coverage   88.03%   88.03%
=======================================
  Files          32       32
  Lines        1287     1287
  Branches      505      505
=======================================
  Hits         1133     1133
  Misses        154      154

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Added support for swapchain resize

Thank you! Useful stuff. Integrating "as is" but DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT requires changes around SetMaximumFrameLatency.

This also requires changes to the resize function itself (you need to store a separate event that is raised when the DXGI presentation completes).

I learned the API a bit:

DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT usage is recommended, but pSwapChain2->GetFrameLatencyWaitableObject must be used in conjunction with this flag
I don't want to introduce a new function, like WaitForFrame... we already have AcquireNextSwapChainTexture! It looks like a perfect place!
no changes in VK, because "acquiring" uses semaphores under the hood

Does it sound good? Gonna implement this for D3D11/D3D12 right now...

I think this is a good idea! And maybe also add a flag for the no wait function if possible.

Currently I'm against adding a flag for "not wait", because DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT actually made behavior similar to VK, which is always waitable.

Implemented in v1.106. Just today noticed that ResizeBuffers was not added to the swap chain function table in validation. Fixed in my local version.

@vertver I'm about to remove ResizeBuffers because it's the same as:
// By spec
NRI.WaitForIdle(*m_CommandQueue);

// If created, destroy descriptors for old swapchain textures
NRI.DestroyDescriptor(*backBuffer.colorAttachment);

// Destroy old swapchain
NRI.DestroySwapChain(*m_SwapChain);

// Create new swapchain
nri::SwapChainDesc swapChainDesc = {...};
NRI.CreateSwapChain(*m_Device, swapChainDesc, m_SwapChain);

// Optionally create new descriptors for new swapchain textures
uint32_t swapChainTextureNum = 0;
nri::Texture* const* swapChainTextures = NRI.GetSwapChainTextures(*m_SwapChain, swapChainTextureNum);
...

My points:

Resize implicitly changes internal textures, what leads to confusion and crashes
WaitForIdle is needed in any case
VK implementation uses Destroy-Create  under the hood

What do you think?

I implemented this functionality for D3D12 (and especially D3D11) because there were problems with resizing buffers in real time (ImGui docking branch as reference). When I did this via Destroy and Create, I was getting weird validation errors on D3D12 with texture layout (in very rare cases, but still). So I decided to create the resize functionality and after that it disappeared.

Your argumentation sounds like you wanted to find a workaround for a specific problem. It should not invoke API changes, IMO. Let's focus on fixing your problem - can you share the error reported by D3D debug layer, please? Plus, from the ResizeBuffers doc:
You can't resize a swap chain unless you release all outstanding references to its back buffers. You must
release all of its direct and indirect references on the back buffers in order for ResizeBuffers to succeed.

it implies WaitForIdle. In my case resizing to / from a specific resolution in one step works fine with the code I posted above. Dynamic resizing (with up to +/- 1 pixel step) is very unfriendly to modern APIs and must be avoided at all costs. As a workaround, you can create a swapchain, which is larger then window. It will allow you to freely resize the window without touching the swapchain.

Let's focus on fixing your problem - can you share the error reported by D3D debug layer, please?

Can't do this right now, rewriting some rendering code to support BeginRendering/EndRendering :)

it implies WaitForIdle

Fair point, but it doesn't solve my problem with application resizing. Mainly because GDK doesn't really like to recreate the swapchain when resizing (for example: when you change the quality settings from "Performance" to "Quality", it might also change the swapchain output resolution from FHD to QHD or UHD). "ResizeBuffers" is mainly designed for Windows platforms, so if we can find a solution for them - then we don't need additional functionality for resizing.

As a workaround, you can create a swapchain, which is larger then window.

Not a deal for Vulkan applications (check an (VK_KHR_swapchain)[https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_swapchain.html] with VK_SUBOPTIMAL_KHR for more information). You can't create a surface with other size than a window working rect.

Dynamic resizing (with up to +/- 1 pixel step) is very unfriendly to modern APIs and must be avoided at all costs.

This does not apply to D3D11. D3D11 really don't like recreating swap chains on every resize event, so this change was made specifically for D3D11 and partly for D3D12.

D3D11 really don't like recreating swap chains on every resize event

A-ha. So you try to dynamically adjust window and swapchain size. IMO, better "enter resize" => "resize without touching the swapchain" => "leave resize and update swapchain"
How do you handle swapchain descriptors (SRV, RTV), which become invalid after ResizeBuffers?

"enter resize" => "resize without touching the swapchain" => "leave resize and update swapchain"

I used to do that, but ImGui with docking mode doesn't like it very much. On D3D12 it seems to work (but not perfectly, just blinks a lot), but on D3D11 it randomly crashes with an error that says I haven't released all the swapchain resources, which is not true.

How do you handle swapchain descriptors (SRV, RTV)

  WaitForIdle();

    Viewport* CurrentViewport = GetViewport(NativeWindow);
    if (CurrentViewport == nullptr) {
        Debug::Failure(Debug::Category_Render, "Failed to resize viewport, because it doesn't exist.");
        return false;
    }

    // When resizing, the frame fence must be reset to 0 because the frame counter has also been reset
    if (CurrentViewport->FrameFence != nullptr) {
        RHI::Core::DestroyFence(*CurrentViewport->FrameFence);
        CurrentViewport->FrameFence = nullptr;
    }

    int Width = 0;
    int Height = 0;
    SDL_GetWindowSizeInPixels(CurrentViewport->Window, &Width, &Height);

    if (CurrentViewport->SwapChainHandle != nullptr) {
        RHI::Result Result = RHI::Swapchain::ResizeBuffers(*CurrentViewport->SwapChainHandle, Width, Height);
        if (Result != RHI::Result::SUCCESS) {
            Debug::Failure(Debug::Category_Render, "hey");
            return false;
        }

        std::uint32_t SwapChainTextureNum = 0;
        RHI::Texture* const* SwapChainTextures = RHI::Swapchain::GetSwapChainTextures(*CurrentViewport->SwapChainHandle, SwapChainTextureNum, SwapChainFormat);
        EngineFrameCount = static_cast<std::int32_t>(SwapChainTextureNum);
        std::memcpy(CurrentViewport->SwapChainTextures.data(), SwapChainTextures, sizeof(RHI::SwapChain*) * SwapChainTextureNum);

        CurrentViewport->Width = Width;
        CurrentViewport->Height = Height;
    }

I managed to get "resize" working via "Destroy-Create" for all APIs. Most problematic one was D3D11. The debug layer said:
DXGI ERROR: IDXGIFactory::CreateSwapChain: Only one flip model swap chain can be associate with an HWND,
IWindow, or composition surface at a time. ClearState() and Flush() may need to be called on the D3D11 device
context to trigger deferred destruction of old swapchains. [ MISCELLANEOUS ERROR #297: ]

After hours of debugging I realized that this error happened only if D3D11 deferred contexts were active. The fix is simple (resources were implicitly referenced inside a ID3D11CommandList):
void CommandBufferD3D11::Submit()
{
    m_Device.GetImmediateContext()->ExecuteCommandList(m_CommandList, FALSE);
    m_CommandList = nullptr; <====== add this line
}

In one of last comments you mentioned that D3D12 worked, but D3D11 did not. Please, try this fix on your end. I would really like to drop ResizeBuffers which is needed only for D3D11, which in order is not the 1st class citizen definitely.
BTW, there is a minor issue in D3D11/D3D12 swapchains - background color has 0 alpha, it doesn't look good. Fix is simple:
DXGI_RGBA color = {}; <===== find this
DXGI_RGBA color = {0.0f, 0.0f, 0.0f, 1.0f} <===== replace with this

Waiting for your feedback...

Waiting for your feedback...

Yes, this may work correctly, if this case works for D3D11 - then it can be removed.


(BKR-1217) suppress enable_root on cygwin SUTs

This change takes over the changes of #3 & adds a test for them.

👍


🐛 Bug Report: Techdocs fail for large repositories

📜 Description
Backstage fails to build TechDocs when the repositories are very large. The reason for this is, that when building TechDocs in the repository root, Backstage fetches the whole repository as an archive instead of just fetching the files it needs.
👍 Expected behavior
The described behavior is fine for most use-cases but this doesn't work for one of our repositories. Therefore, I would expect Backstage to only fetch the files it needs (catalog-info.yaml, mkdocs.yaml & the directory that contains the docs).
👎 Actual Behavior with Screenshots
Rendering TechDocs takes ages and then fails with the error Premature close.

👟 Reproduction steps

Have a very large repository
Add TechDocs
🔥

📃 Provide the context for the Bug.
No response
🖥 Your Environment
I reproduced the issue in multiple environments. My current one is in the standard Backstage repo because it makes debugging easier. Therefore, yarn backstage-cli info doesn't yield much results.
OS:   Linux 6.6.8-200.fc39.x86_64 - linux/x64
node: v20.10.0
yarn: 3.2.3
cli:  0.25.1-next.1 (local)
backstage:  N/A

Are you willing to submit a PR?
I am already working on fixing the issue. I just wanted to open this bug first to make sure I'm not missing anything.
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
Yes I am willing to submit a PR!

Hi there, thanks for looking into contributing a fix! The solution you pitched makes sense to me. I'm curious, how large is your repository that is timing out when building the docs?


Update welcome.md

👷 Deploy Preview for rhewlab processing.
🔨 Explore the source changes: df83b1ce28cdaed8d4b75f5b3bc86ba6714c69f9
🔍 Inspect the deploy log: https://app.netlify.com/sites/rhewlab/deploys/61da73aa803b610008fb2477


Callback after LINE sharing complete / failed / cancelled ?

Does LineKit have delegate to let user know sharing is complete / failed / cancelled ?

@shivanraptor No. Unfortunately I don't know there's way to do so. Do you see any other apps has similar functionalities?

Not yet, I'm just asking. Wish my App can know the sharing results.


When I wrap it inside a ScrollVIew, it can not adjust the height automatically

I am nesting my tab screen in the middle of the whole screen using a Scrollview

I need the scrollview can adjust each height automatically

    <Text
        style={{
          fontSize: fontScale * hp(hStr(16)),
          marginHorizontal: wp(wStr(16)),
          marginVertical: hp(hStr(4))
        }}
      >
        {user.profile && user.profile.headline}
      </Text>
        <TutorDetailTabView user={user} />(This is a component of the tab>
    </ScrollView>

For Syntax Highlighting check this link

I have the exact same issue. Here are the versions I'm using:
"react-native-tab-view": "^2.14.4"
"react-native-gesture-handler": "^1.5.0"
"react-native-reanimated": "^1.4.0"

+1

I have the exact same issue.
Here are the versions I'm using:
"react-native-tab-view": "^2.14.4"
"react-native-gesture-handler": "^1.5.0"
"react-native-reanimated": "^1.4.0"

After further investigation, this issue is happening because I have 3 tabs, one of them much longer than the other two. All three tabs are the same height so the two shorter tabs with less content still scroll the full height of the longest tab's content. Any way to stop this?
EDIT: It looks like this library isn't designed to be used like this: #1019
The UI we have requires things to be scrollable before getting to this tab section in the app. Any suggestions on how to do something like this would be ve

I have exactly the same issue, please let me know when you get solutions

@changyu2hao or if the content rendered in the renderTabBar can catch scrolling, then I can avoid wrapping it inside s scrollview.


update table filters into separate chip groups

https://issues.redhat.com/browse/RHOAIENG-12827
Description

How Has This Been Tested?

Manually hitting the different areas of the UI.
Connection type before and after:

Pipelines before and after:

All affected areas:

/connectionTypes
/pipelines/<namespace>
/experiments/<namespace>
/experiments/<namespace>/archived
/executions/<namespace>
/artifacts/<namespace>
/projects

Test Impact

Existing cypress tests.
Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

[x] Included any necessary screenshots or gifs if it was a UI change.
[x] Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

cc @simrandhaliw

Ran thru the filters, works well.
/lgtm

/retest


Add a Gitter chat badge to README.md

gdamore/govisor now has a Chat Room on Gitter
@gdamore has just created a chat room. You can visit it here: https://gitter.im/gdamore/govisor.
This pull-request adds this badge to your README.md:

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

I've already dealt with this using a bade from badges.io.


Optimize the Asc/Desc criteria

When we fetch the Asc/Desc criteria documents, we do not keep the FacetIter iterator between iterations, we only do one iteration and then quit the function. That's a problem when a lot of documents must be retrieved.

Dine in #100.


undefined symbol: main

I have installed the kernel with --sys-prefix argument and now its listed on jupyter kernelspec list
Screen Shot

This is to be expected. Please either add the -c compile option, or add an empty main function.

@Fulguritus  can i use c kernel like xeus-cling ?
means no int main
and where to use add -c option ?

In this case I would like to point you to https://github.com/QuantStack/xeus-cling . This kernel is for C - not C++.


test for Stacked Borrows error during vtable validation

Fixes https://github.com/rust-lang/miri/issues/2123
Needs https://github.com/rust-lang/rust/pull/97761

@bors r+

:pushpin: Commit d9f8312d9ab86828ae7e1890630197d742b7ee3f has been approved by RalfJung

:hourglass: Testing commit d9f8312d9ab86828ae7e1890630197d742b7ee3f with merge 844ada80f8a23c4b842bbe271244da2091e67abe...

:broken_heart: Test failed - checks-actions

@bors r+

:pushpin: Commit 6ed05d976efb98ab01aadddcd22c6628cc37bf08 has been approved by RalfJung

:hourglass: Testing commit 6ed05d976efb98ab01aadddcd22c6628cc37bf08 with merge 03a05ae2114602140403aeb5b14cce4f5964bbe3...

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing 03a05ae2114602140403aeb5b14cce4f5964bbe3 to master...


Error with GetAllFillsAsync()

When I try get all the fills I get this error message:
"query must contained either product_id or order_id"
I'm able to get fills when I query by product id.
This happens on sandbox mode, I have not tried live testing.

hi @axelarati this was deprecated back in 2018.  I had also marked this as Obselete https://github.com/dougdellolio/coinbasepro-csharp/blob/master/CoinbasePro/Services/Fills/FillsService.cs#L22. I will remove completely soon. You will only be able to query by either product or order id.


Music store

I HAVE MADDE A PERSONALIZED MUSIC APP USING HTML CSS AND JS

Please see the above changes fron the link available below


Telegram: Conversations

Hello,
I use botman in a new Laravel 5.3 application. I have tried with the laravel starter, but i couldnt get it to work. So i started with a clean install.
As I am not very familiar with Laravel, I got it working, except the conversations. I have taken the Example conversations from the Laravel Starter.
When I use Start Conversation, the conversation is triggered and the buttons appear in Telegram. When I click a button, nothing happens.
Can it be something with the cache? As i can read in previous issues and documentation, when used in Laravel, caching is automatic handled?
Controller
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Mpociot\BotMan\BotManFactory;
use Mpociot\BotMan\BotMan;
use App\Conversations\ExampleConversation;

class BotManController extends Controller
{
	public function handle(Request $request)
	{
		$botman = app('botman');

		// Simple respond method
		$botman->hears('Hello|hi|Hi', function (BotMan $bot) {
			//Reply
			$bot->reply('Hi there :)');
		});

		$botman->hears('Start conversation', function (BotMan $bot) {
			$bot->startConversation(new ExampleConversation());
		});

		$botman->listen();
	}
}

Conversation
namespace App\Conversations;

use Illuminate\Foundation\Inspiring;
use Mpociot\BotMan\Answer;
use Mpociot\BotMan\Button;
use Mpociot\BotMan\Conversation;
use Mpociot\BotMan\Question;

class ExampleConversation extends Conversation
{
    /**
     * First question
     */
    public function askReason()
    {
        $question = Question::create("Huh - you woke me up. What do you need?")
            ->fallback('Unable to ask question')
            ->callbackId('ask_reason')
            ->addButtons([
                Button::create('Tell a joke')->value('joke'),
                Button::create('Give me a fancy quote')->value('quote'),
            ]);
        return $this->ask($question, function (Answer $answer) {
            if ($answer->isInteractiveMessageReply()) {
                if ($answer->getValue() === 'joke') {
                    $joke = json_decode(file_get_contents('http://api.icndb.com/jokes/random'));
                    $this->say($joke->value->joke);
                } else {
                    $this->say(Inspiring::quote());
                }
            }
        });
    }

    /**
     * Start the conversation
     */
    public function run()
    {
        $this->askReason();
    }
}

Hi!
Have you added the BotManServiceProvider to your config/app.php?
Also, can you tell me what the value of the CACHE_DRIVER environment variable in your .env file is?
It must be at least file - otherwise nothing will be cached and the conversations won't work.

Hi,
Thanks for the quick response.

Yes, I have added the service provider and the alias in config/app.php.
The CACHE_DRIVER in the .env file is FILE.

Is there anything in your storage/logs/laravel.log file?
Just tried it with your example code + Telegram without any issues.

There are no errors in the laravel.log file.
I've tried without buttons and simple text (like the pizza example in the readme) and I have the same issue.
After responding the bots' question, nothing happens. And no error is logged.

Can you and add a simple log function in your answer closure?
Like this:
        return $this->ask($question, function (Answer $answer) {
            \Log::info(print_r($answer,true));
        });

Click a button and see if something got logged in the laravel.log file.

Nothing is logged :-(

Um okay..that's pretty weird.
Could you add this to your handle method to see if Telegram sends you the button click event?
\Log::info(print_r($request->all(),true));

Tried and it does: [data] => quote when i clicked quote

Can you please post the complete log?
You can strip out the IDs if you want :)

Sure, here it is:
[2016-12-15 10:32:46] local.INFO: Array
(
    [update_id] => 888995600
    [callback_query] => Array
        (
            [id] =><PHONE_NUMBER>1572935
            [from] => Array
                (
                    [id] => 00000000
                    [first_name] => Maarten
                    [last_name] => Kumpen
                    [username] => Nickname
                )

            [message] => Array
                (
                    [message_id] => 616
                    [from] => Array
                        (
                            [id] => 55448565
                            [first_name] => MRTN
                            [username] => MRTN_bot
                        )

                    [chat] => Array
                        (
                            [id] => 0000000
                            [first_name] => Maarten
                            [last_name] => Lastname
                            [username] => Nickname
                            [type] => private
                        )

                    [date] =><PHONE_NUMBER>
                    [text] => Huh - you woke me up. What do you need?
                )

            [chat_instance] => -60738844255598537752
            [data] => quote
        )

)

I don't really have a clue what could be wrong here - I still think this has to do with the cache.
Do you have additional services connected / configured?
Have you added the webhook to Telegram (I guess you have, because it gets called)?
Can you try a php artisan cache:clear in your bot directory, type start conversation and see if a cache file got created inside storage/cache?

A cache file is created when I type start conversation, when I push a button the file is deleted.
I have no other services configured. And indeed, I have configured the webhook, normal messages with replies works perfect. Only the conversations do not reply.

This is the content of the cache.
1481801785a:2:{s:12:"conversation";O:37:"App\Conversations\ExampleConversation":2:{s:6:"*bot";O:21:"Mpociot\BotMan\BotMan":6:{s:7:"payload";N;s:8:"*event";N;s:9:"*driver";O:37:"Mpociot\BotMan\Drivers\TelegramDriver":4:{s:10:"*payload";O:45:"Symfony\Component\HttpFoundation\ParameterBag":1:{s:13:"*parameters";a:2:{s:9:"update_id";i:882309609;s:7:"message";a:5:{s:10:"message_id";i:624;s:4:"from";a:4:{s:2:"id";i:12485636;s:10:"first_name";s:7:"Maarten";s:9:"last_name";s:6:"Kumpen";s:8:"username";s:9:"NickNme";}s:4:"chat";a:5:{s:2:"id";i:127805636;s:10:"first_name";s:7:"Maarten";s:9:"last_name";s:6:"Kumpen";s:8:"username";s:9:"NickNme";s:4:"type";s:7:"private";}s:4:"date";i:1481799985;s:4:"text";s:18:"Start conversation";}}}s:8:"*event";O:29:"Illuminate\Support\Collection":1:{s:8:"*items";a:5:{s:10:"message_id";i:624;s:4:"from";a:4:{s:2:"id";i:12485636;s:10:"first_name";s:7:"Maarten";s:9:"last_name";s:6:"Kumpen";s:8:"username";s:9:"NickNme";}s:4:"chat";a:5:{s:2:"id";i:12485636;s:10:"first_name";s:7:"Maarten";s:9:"last_name";s:6:"Kumpen";s:8:"username";s:9:"NickNme";s:4:"type";s:7:"private";}s:4:"date";i:14899944785;s:4:"text";s:18:"Start conversation";}}s:7:"*http";O:24:"Mpociot\BotMan\Http\Curl":0:{}s:9:"*config";O:29:"Illuminate\Support\Collection":1:{s:8:"*items";a:1:{s:14:"telegram_token";s:45:"266242179:AAGgjj3dTqHn41hB1VvOvO30xtHHdmI2gdI";}}}s:10:"*message";O:22:"Mpociot\BotMan\Message":5:{s:10:"*message";s:18:"Start conversation";s:7:"*user";i:14899944785;s:10:"*channel";i:12485636;s:10:"*payload";r:25;s:9:"*extras";a:0:{}}s:28:"Mpociot\BotMan\BotMancache";O:33:"Mpociot\BotMan\Cache\LaravelCache":0:{}s:10:"*matches";a:0:{}}s:8:"*token";N;}s:4:"next";s:228:"C:32:"Opis\Closure\SerializableClosure":182:{a:5:{s:3:"use";N;s:8:"function";s:100:"function (\Mpociot\BotMan\Answer $answer) {
            \Log::info(print_r($answer,true));
        }";s:5:"scope";N;s:4:"this";N;s:4:"self";N;}}";}

Ah..just had another idea.
What's the route you use for your bot logic?
Please make sure to add it to your VerifyCsrfToken middleware!
See: https://github.com/mpociot/botman-laravel-starter/blob/master/app/Http/Middleware/VerifyCsrfToken.php#L14-L17

I had botman, and i ve added botman/*, but I still don't get a response.

The only thing I can tell extra, at the moment, is, when I click one of the buttons a second time in the chat screen, they disappear from the screen. But no logging is added.
Meanwhile I ve tried the logging, as requested earlier, but its still the same.

I need to dig in the code why the conversation is not triggered when an anser is sent. As we said, probably its the caching.
For me it takes some time as i m not very familiar with Laravel (codeigniter dev before the switch to Laravel).
If you have ideas about this issue, let me know I ll provide as much info as I can.
I've written down all my own steps, I want to post a step by step tutorial on my website.

How does your hosting env. look like? Can you tell a bit more about that? Where is your ssl from for example?

Cant get it to work.
Tried clean installs, the laravel starter, same issue with conversations every try.

I really have no idea. It must be some kind of issue on your side.
Have you tried it on a server other than your local development one?

Can confirm this issue happens on a vanilla install of Laravel 5.3.

 I checked this a few days ago using both, the BotMan Laravel starter project as well as a standalone implementation and it worked without any flaws.

I'm currently trying out BotMan on a remote development server. The webhook receives the user's answer but the callback doesn't get executed. Laravel is not logging any errors either.

I have the issue also on shared hosting with cPanel. So not only dev env.

Just trying to guess what could be wrong here...
Which PHP version do you use? And is there any other place for PHP error logs?

The problem lies in $next = unserialize($convo['next']);, line 342 in Mpociot\BotMan\BotMan. The unserialization fails for some reason and the callback never gets executed.

@mpociot The PHP version is 5.6

Same here, PHP 5.6.

Can you try it again with the latest dev-master version?
I'm unable to reproduce this issue and all tests on Travis also pass using 5.6.
@jfern01 if you still encounter this issue - can you please post the content of one of your botman cache files?
It seems like the closure scope is not correctly serialized.

I have tried with the latest dev-master and i ve performed a composer update, and the issue is the same. :-(
The cache is created, when the conversation is started. And when you respons on the question, the cache is removed.

Same issue here with Laravel 5.3, there is my code:
class BotManController extends Controller {

	protected $bot;

	public function __invoke($id) {
		$selected_bot= Bot::findOrFail($id);

		$config = [
			'telegram_token' => $selected_bot->telegram_token
		];

		$this->bot = BotManFactory::create($config, new LaravelCache());
		$this->register_commands();
		$this->bot->listen();
	}

	protected function register_commands() {
		$this->bot->hears('/start', function (Botman $bot) {
			$bot->reply('Hello yourself.');
		});

		$this->bot->hears('/pizza', function (Botman $bot) {
			$bot->startConversation(new PizzaConversation());
		});
	}
}

i'm not using the Botmanserviceprovider, because i need to manage more bots (#56). The PizzaConversation it's the same as the readme example. The bot is replying to the /start, but not to /pizza command.
PHP 7.0.6, Laravel 5.3.

I'm not using Laravel (I'm using Slim) but I have a similar issue, I can start the conversation, but no way to answer.

Serialization of 'Closure' is not allowed

Tried with dev-master but same problem.

@gromez can you tell me which cache driver you use and how your conversation code looks like?
Since BotMan serializes the callback Closure to pick it up later, errors can occur if your callback Closure contains a Closure itself.

@mpociot sure, here is the code I'm using
$cache = new \Symfony\Component\Cache\Adapter\FilesystemAdapter();
$botman = \Mpociot\BotMan\BotManFactory::create($settings, new \Mpociot\BotMan\Cache\SymfonyCache($cache));

$botman->hears('/pizza', function (BotMan $bot) {
    $bot->startConversation(new PizzaConversation);
});

$botman->listen();

I'm using the exactly same PizzaConversation class as in your example.
First problem (related to the Symfony cache) : Cache key "conversation:279775023-279775023" contains reserved characters {}()/\@:
If I replace the : with - it's OK.
Second problem : opis/closure throws Serialization of 'Closure' is not allowed
Thanks for your work!

Please create a separate issue for this as this is not related to Telegram but to the Symfony Cache. Otherwise I can't keep track of this.
Thank you.

I'm closing this issue. Please reopen either this one or a new issue if the problem still occurs for you and you know the steps to reproduce it.

I have a same problem.
L 5.5.2
php 7.0
botman 2
replies working, but in conversations only first question fired.
Replies on this question handled as a new message to bot.

Do you see anything in your Laravel log?

in log I see only received message (request)
Log::info($request->all());

I think it's better to update
"Basic Usage without BotMan Studio" paragraph:
// create an instance
$botman = BotManFactory::create($config);

change to
use BotMan\BotMan\Cache\LaravelCache;

// create an instance
$botman = BotManFactory::create($config, new LaravelCache());

Ah so you got it working?
I thought you use the BotMan studio.
Yeah I have that mentioned after the get started example, because it depends which framework you use.

I’ll make sure to add a link to https://botman.io/2.0/cache-drivers after the basic usage example.

Laravel 5.6
BotMan 2 (not Studio)
PHP 7.1
CACHE_DRIVER=file
Same issue. @theemfs solution work for me:
use BotMan\BotMan\Cache\LaravelCache;

// create an instance
$botman = BotManFactory::create($config, new LaravelCache());

I had the same problem.
I use botman with Symfony and the problem was with loading drivers. For laravel it works perfect cos all drivers were loaded in the Service Provider but for the symfony you have to load all drivers himself.

If you are using BotMan with Laravel without BotMan Studio :
You can simply use $botman = BotManFactory::create($config, new LaravelCache()); to enable caching for Conversations.
Thanks to @theemfs :1st_place_medal:


Support reindexing the sierra_items VHS

These changes allow us to run a reindex on the sierra_items VHS, for example if the sierra_item_merger fails and loses records. It doesn't modify the item merger itself.
Part of #2691. Spun out of #2719.

It passed formatting, so merging without waiting for the rest of Travis to run.


main_display_cam_obj_pose.py error

Thanks for your excellent work. When I try to show camera and object pose using main_display_cam_obj_pose.py, an error occured.
 File "python_utils/main_display_cam_obj_pose.py", line 140, in <module>
    Pts3d = np.dot(obj_mat.T,R.T) + T
  File "<__array_function__ internals>", line 200, in dot
ValueError: shapes (32,5) and (3,3) not aligned: 5 (dim 1) != 3 (dim 0)

Would you please help fix this error? Thanks.

Thank you very much for your feedback. Would it be possible to share your calibration results with us so that we can try to analyze and find the source of the error?


[Protected var request] report 38 "Trial Balance by Period"

We would like the following variables set as protected variables in report 38 "Trial Balance by Period":
    PeriodStartingDate: Date;
    StartDate: array[20] of Date;
    EndDate: array[20] of Date;
    ColumnValuesAsText: array[13] of Text[30];
    RoundingText: Text[80];
    Header: array[13, 2] of Text[100];
    RoundingFactor: Enum "Analysis Rounding Factor";
    MaxCount: Integer;
    Indent: Option "None","0","1","2","3","4","5";

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 10376.


archimedes no longer installs (camlp4 obsolete)

Following the instructions (to install archimedes and jupyter-archimedes) no longer works. It appears that archimedes requires camlp4, which is obsolete.

camlp4 is surely obsolete, but available. I can install camlp4, archimedes and jupyter-archimedes 2.7.2. If you failed to install them, please show me the error message you got.

[archimedes.0.4.19] found in cache
[cairo<IP_ADDRESS>] found in cache
[camlp4.4.10+system] found in cache
[jupyter-archimedes.2.7.2] found in cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
[ERROR] The compilation of camlp4 failed at "/Users/nicksherrard/.opam/opam-init/hooks/sandbox.sh build sh ./make.sh".
[ERROR] The compilation of cairo2 failed at "/Users/nicksherrard/.opam/opam-init/hooks/sandbox.sh build dune build -p cairo2 -j 3".
#=== ERROR while compiling camlp4.4.10+system =================================#
context     2.0.7 | macos/x86_64 | ocaml-system.4.10.0 | https://opam.ocaml.org#3c21183b
path        ~/.opam/default/.opam-switch/build/camlp4.4.10+system
command     ~/.opam/opam-init/hooks/sandbox.sh build sh ./make.sh
exit-code   1
env-file    ~/.opam/log/camlp4-43669-60459a.env
output-file ~/.opam/log/camlp4-43669-60459a.out
output
preexisting installation rather than compile one from scratch).
[...]
If you cannot install a system-wide camlp4, then you can still use OCaml
4.02 by switching to a local installation via opam switch 4.02.0.

Here are some installation instructions for camlp4 if you obtained OCaml
via the OPAM binary packages:

http://software.opensuse.org/download.html?project=home%3Aocaml&package=ocaml

* Debian/Ubuntu: sudo apt-get install camlp4-extra
* RHEL/CentOS/Fedora: sudo yum install ocaml-camlp4

I am having essentially the same problem. It appears I am being told that installation of camlp4 requires camlp4! Here is the entire dialogue:
sudo opam install camlp4
[WARNING] Running as root is not recommended
The following actions will be performed:
∗ install camlp4 4.10+system
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
[camlp4.4.10+system] found in cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
[ERROR] The compilation of camlp4 failed at "/Users//.opam/opam-init/hooks/sandbox.sh build sh ./make.sh".
#=== ERROR while compiling camlp4.4.10+system =================================#
context     2.0.7 | macos/x86_64 | ocaml-system.4.10.0 | https://opam.ocaml.org#3c21183b
path        ~/.opam/default/.opam-switch/build/camlp4.4.10+system
command     ~/.opam/opam-init/hooks/sandbox.sh build sh ./make.sh
exit-code   1
env-file    ~/.opam/log/camlp4-44215-1872ec.env
output-file ~/.opam/log/camlp4-44215-1872ec.out
output
preexisting installation rather than compile one from scratch).
[...]
If you cannot install a system-wide camlp4, then you can still use OCaml
4.02 by switching to a local installation via opam switch 4.02.0.

Here are some installation instructions for camlp4 if you obtained OCaml
via the OPAM binary packages:

http://software.opensuse.org/download.html?project=home%3Aocaml&package=ocaml

* Debian/Ubuntu: sudo apt-get install camlp4-extra
* RHEL/CentOS/Fedora: sudo yum install ocaml-camlp4

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
┌─ The following actions failed
│ λ build camlp4 4.10+system
└─
╶─ No changes have been performed
The packages you requested declare the following system dependencies. Please make sure they are installed before retrying:
camlp4
Run eval $(opam env) to update the current shell environment

@gorgeousNicko I think your error message is not related to ocaml-jupyter kernel and archimedes package. I recommend to open an issue at https://github.com/ocaml/opam-repository/issues .


NEST.dll for .NET Framework 3.5 plz

Hello,
Could someone point me to download the NEST .net client for the target framework 3.5 please.
trying to implement Elasticsearch in SharePoint 2010.
Regards,
Shannu.

Looking for Same


implement support for postgres create/drop schema

Only found out about this on here. How come this isn't documented under http://knexjs.org/#Schema?


eslint + README update

updated config-overrides.js (ESLint rules)
added 3rd step with react-app-rewired

Thanks! :)


Add Support for HTTP only deployment

There currently isn't any documentation around only enabling the HTTP endpoint.
We will be handling SSL at the Load Balancer and then sending traffic to the lrssql HTTP endpoint.
Any recommendations?

Hello @ctm8788,
Unfortunately there is no way to disable the HTTPS port for HTTP-only use, as documented here under the LRSQL_ENABLE_HTTP config var. However, you should be able to just ignore the HTTPS port, without affecting any other config, and it should work fine for your use case.

@kelvinqian00's response is satisfactory, when run behind a load balancer that is terminating HTTPS the instance HTTPS port can be safely ignored.


Implement multiple instances in higher level F3 protocol object

The Granite code executes only a single instance.

Implement repeated instances in an F3 protocol object (currently the Participant). Maintain state of the last finalised tipset.
Prepare to handle new chains pushed from outside, without introducing any concurrency issues
Add testing/simulation infra to be able to drive multi-participant, multi-epoch simulations.

This should be with #13 in mind as a consumer, as well as Lotus integration.

Some design considerations:

Computing a power table representation for an F3 instance will take some computational work. We don't want to do it unless necessary. So Lotus can't push a new power table for every change in EC head that it sees (there could be many per epoch). We only want to do that when F3 is going to use it as a new base.
Lotus's heaviest chain may diverge during the execution of F3, i.e. F3 may finalise something that's not a prefix of Lotus current heaviest (though they will share a base). F3 won't know what the next candidate head is, it needs to wait for Lotus to rebase on the just-finalised tipset and find its next best head.

F3 could pull the next head from Lotus (blocking), or
F3 could notify Lotus and then wait for a push when Lotus has prepared the next head, power table etc

We should probably delay advertising new heads to F3 by an epoch to allow some stabilisation. This is a parameter that could be set higher.

The FIP is unclear about timing assumptions for when the next Granite instance is supposed to start, but at present we're going with "immediately". This might often result in proposing the base chain, and many fast Granite instances that make no progress (but stay in sync). We can probably do something less wasteful, like wait at least 30s (parameter) from the timestamp of the last finalised tipset.

@Kubuxu and I discussed and agreed on the following basic flow:

F3 notifies the host of a new finality decision (push)
F3 waits any delay implied by that decision (e.g. until at least one more EC epoch might have executed)
F3 asks the host for the chain to use as input to the next instance (pull)

At least of (1) or (3) must be blocking in the host to ensure that when F3 asks for the next chain, it is assured a base of the previous finality, no race condition.
The immediate effect on the code is to change the current ReceiveCanonicalChain call from a push to F3 into a pull from the Host, after some bootstrapping initialisation.


Works only on first app run

Hi there!
First of all, thank you for great plugin. It's almost fine, but... works only on first app run.
I use it to download some zip files to local storage after app is installed (to make it more lightweight). So, after one file is downloaded, the other download starts. Everything is working fine, even if I suspend app or turn on airplane mode. But if I exit app (totally exit) - on next run my code tries to download unfinished file one more time - and nothing happens. No error from your functions, simply nothing happens...
Please, help... Maybe, problem is caused by your magical solution, that allows download process to run even when app is closed (you've written this in description)?
window.downloadTopic = function(topic,version){ 			var fileName = topic + ".zip", 			uriString = "https://storage.googleapis.com/myappdownload/" + topic + "_" + version + ".zip"; 			window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem) { 				fileSystem.root.getFile(fileName, { create: true, exclusive: false }, function (targetFile) { 					var downloader = new BackgroundTransfer.BackgroundDownloader(); 					var download = downloader.createDownload(uriString, targetFile); 					app.downloadPromise = download.startAsync().then( 					function(){ 								zip.unzip(targetFile.nativeURL, targetFile.nativeURL.slice(0, -4), function(result){ 									if(result === -1) { 										window.current_topic_downloading = false; 										window.addStatEvent('Download: error while unzip'); 									} else { 										window.localStorage.setItem(window.current_topic_downloading+"_downloaded", 1); 										window.localStorage.setItem(window.current_topic_downloading+"_version", window.current_topic_downloading_version); 										window.current_topic_downloading = false; 										window.downloadNextTopic(); 									} 								}); 					}, 					function(){ 						window.current_topic_downloading = false; 						window.downloadNextTopic(); 						window.addStatEvent('Download: error while downloading'); 					}); 				}, function(){ 					window.current_topic_downloading = false; 					window.downloadNextTopic(); 					window.addStatEvent('Download: error creating local zip file'); 				}); 			}); 		}; 		window.downloadNextTopic = function(){ 			if(!window.current_topic_downloading && (typeof window.topics_to_download !== "undefined")) { 				for (let topic_cur_name in window.topics_to_download) {   					if(!parseInt(window.localStorage.getItem(topic_cur_name+"_downloaded")) || (parseInt(window.localStorage.getItem(topic_cur_name+"_version")) !== parseInt(window.topics_to_download[topic_cur_name]))) { 						window.localStorage.setItem(topic_cur_name+"_downloaded", 0); 						window.current_topic_downloading = topic_cur_name; 						window.current_topic_downloading_version = window.topics_to_download[topic_cur_name]; 						window.downloadTopic(topic_cur_name,window.topics_to_download[topic_cur_name]); 						break; 					} 				} 			} 		}; 		$.getJSON("downloads.json", function(result) { 			window.topics_to_download = result; 			window.current_topic_downloading = false; 			for (let topic_cur_name in window.topics_to_download) {   				if(window.localStorage.getItem(topic_cur_name+"_downloaded") == null) { 					window.localStorage.setItem(topic_cur_name+"_downloaded", 0); 				} 				if(window.localStorage.getItem(topic_cur_name+"_version") == null) { 					window.localStorage.setItem(topic_cur_name+"_version", 0); 				} 			} 			window.downloadNextTopic(); 		});

Sorry, github doesn't correctly show the code with tabs...
The code is attached...
code.zip

I'm very sorry, that was a problem of my code. Everything works perfect! Thank you very much!


Put event listeners behind restricted method system

Exposed for now because our permissions system does not support event listeners yet.

Per the following comment, we have already mapped event listeners to restricted methods: https://github.com/MetaMask/metamask-snaps-beta/pull/55#issuecomment-539765807
See #141 for the continuation of this issue.


Does BUILD_MODE override NODE_ENV?

https://github.com/asika32764/vue-cli-plugin-node-env/blob/f1b0dd759b00cbb742da70330b3b770c693d7efe/index.js#L13
Hello there!
I was wondering about the line above. It seems that it possible to use BUILD_MODE as production and NODE_ENV as staging, for example. But doesn't the variable BUILD_MODE override NODE_ENV?

Yes, the BUILD_MODE will override NODE_ENV , since, Vue will load env.{NODE_ENV} first.
For example
NODE_ENV=staging BUILD_MODE=production
Will load .env.staging file, but build webpack with production mode.


Create main.yl

@Shutch748
Fixes # . Owner
Changes proposed in this pull request:

write
read
@Shutch748

Approved by @Shutch748


How to display the warnings on the status line?

The status line only shows me the number of errors, but does not show me the warnings.
The same happens when I use diagnostic-languageserver with eslint.

Now should be support.

Now should be support.

I had already tried DiagnosticHint and it did not work for me either
I tried the updates you just did and it doesn't work either
I think something is wrong with the Lsp

I had already tried DiagnosticHint and it did not work for me either
I tried the updates you just did and it doesn't work either
I think something is wrong with the Lsp

Seems like diagnostic-languageserver doesn't work with builtin-lsp? can you tried the matt/efm server

Seems like diagnostic-languageserver doesn't work with builtin-lsp? can you tried the matt/efm server

I managed to fix it by modifying three lines of code in the galaxyline plugin. If you want, I can make a pull request, take a look

I managed to fix it by modifying three lines of code in the galaxyline plugin. If you want, I can make a pull request, take a look

of course you can make pr in galaxyline.

of course you can make pr in galaxyline.


Fixing manage.py::amazon_accounts() and adding delete_unjustified_issues()

amazon_accounts() broke when we added AccountType.

Coverage remained the same at 51.515% when pulling<PHONE_NUMBER>94739740485a151384d2258239ba29 on fix_amazon_accounts into ff0517cab6da3e3b4afc708eddab846346ea89ee on develop.


Attempting to import vox into Godot 3.2.1

When I copy the vox model into my project directory I get this error.
Godot Engine v3.2.1.stable.official (c) 2007-2020 Juan Linietsky, Ariel Manzur & Godot Contributors.
--- GDScript language server started ---
Switch Scene Tab
 editor/plugins/asset_library_editor_plugin.cpp:815 - Error getting image file from URL: https://bitbucket.org/arlez80/gdpeg/downloads/icon.png
 editor/plugins/asset_library_editor_plugin.cpp:815 - Error getting image file from URL: https://bitbucket.org/arlez80/godot-midi-player/downloads/icon.png

Oh it looks like plugin wasn't enabled... So this was something else.


Skipping invalid or unsupported rule

Hello,
if i run the Script i get many error for unsupport rule..
can you Help me?
C:\hashcat>hashcat -a 0 -m 1000 hashes.txt passphrases.txt -r passphrase-rule1.rule -r passphrase-rule2.rule -O -w 3
hashcat (v6.2.5) starting
Unsupported AMD HIP runtime version '0.0.3188' detected! Falling back to OpenCL...
 The errors you post above are showing some Javascript code that looks to be hosted by github.com, not the actual content of the rule file.
If you look closely, passphrase-rule1.rule is only 16 lines long. However, your errors above are showing many more lines and are reflecting content that does not exist in the actual rule file.
There are a few easy ways you can get the raw files. In the repository root, you can click "Code -> Download Zip". Or you can go to each rule file linked in the README and then click the "raw" button to make sure you are accessing the actual file and not just the webpage GitHub is hosting it on.
Good luck!


Support Rider 2024.2

2024.2 has been around for some time.

This is blocking my ability to continue development.


stellar-archivist shows duplicated data when reading an archive file

When using the "dumpxdr" command of stellar-archivist, it sometimes shows duplicated data in a place where it shouldn't be.
results-006bc07f.txt
For example, working on the file: results-006bc07f.xdr, taken from S3:
history.stellar.org/prd/core-testnet/core_testnet_001/results/00/6b/c0/results-006bc07f
Some of the transaction ids are duplicated and are in the wrong ledgers.
The transaction hash [93, 239, 45, 233, 97, 76, 223, 52, 226, 88, 7, 30, 244, 36, 148, 216, 53, 202, 46, 157, 111, 190, 191, 205, 135, 221, 119, 148, 248, 209, 78, 72] Or , 5def2de9614cdf34e258071ef42494d835ca2e9d6fbebfcd87dd7794f8d14e48
Appears multiple times across many ledgers in the file, even though it should only be in ledge 7061569 (according to horizon)

Wrote something small in python to read this file, and it confirmed that archivist did read the file wrong, this is the python file:
parseXDR.txt
and the results:
results.txt
You can see that the hash that was specified in the original issue only appears once and in the correct ledger.
I would just want to confirm that this is an actual bug with archivist and not some misunderstanding that I have on how these XDR files work

Released Archivist 0.2.0 with a fix. Big thanks for @nebolsin for finding and fixing a bug!


Access current reduction value

Hi,
I saw that we have common reducers in hipSYCL/SYCL e.g. found here
I need to use the sycl::maximum reducer but need a little modification, e.g. I need to store the index where it found the maximum.
My initial thought was to access the value max but that seems not to be possible.
Small snippet from my adjusted code from the above link
...
  sycl::buffer<int> index_buff{1};
  sycl::buffer<float> max_buff{1};

  q.submit([&](sycl::handler
                   &cgh) {
    auto values_acc = values_buff.get_access<sycl::access_mode::read>(
        cgh);

    sycl::accessor index_acc {index_buff, cgh};
    sycl::accessor max_acc {max_buff, cgh};

    auto maxReduction = sycl::reduction(max_acc, sycl::maximum<float>());

    cgh.parallel_for(sycl::range<1>{1024}, maxReduction,
                     [=](sycl::id<1> idx,, auto &max) {
                       // Doesn't work
                       // auto temp = max;
                       max.combine(values_acc[idx]);
                       // index_acc = temp > max ? index_acc : idx;
                     });

It produces the following error:
error: call to deleted constructor of 'hipsycl::sycl::reducer<hipsycl::glue::hiplike::local_reducer<hipsycl::sycl::detail::accessor_reduction_descriptor<hipsycl::sycl::accessor<float, 1, hipsycl::sycl::access_mode::write, hipsycl::sycl::target::device, hipsycl::sycl::accessor_variant::unranged>, hipsycl::sycl::maximum<float>>>>'                                                             auto temp = max;
Is there any other way to access the current value of the reducer and/or store the index where it found the maximum?
Any help appreciated!
Kind regards

What do you mean by current value of the constructor? This is a parallel reduction, and it is implementation-defined what the reducer actually stores.
There could be one reducer per work-item, or there could be one reducer per executing thread, if multiple work items are mapped to one thread. And there are other implementation options.
I don't think that the term "current value" is well defined. Things may be happening in parallel :-)
If you want to get the index where the maximum was found, it could work by reducing over the indices with a custom predicate. I.e., don't use sycl::maximum(), but a custom function object that returns for  indices i1 and i2  the value of data[i1] > data[i2] ? i1 : i2. Then pass the indices into combine.
It's possible that reductions without known identity operations are not yet supported, so you may have to implement an identity index (e.g. -1) such that operations using the identity index always return the other index.
Once you have the index of the maximum, the value of the maximum can be easily looked up if you need it too.

Hi,
thanks for the suggestions.
The second approach seemed reasonable for my current project, so I first used a reduction to find the maximum value and wanted to look up the index afterwards, but I still ran into some problems with floating point values and their precision.
Your former suggestion about creating my own custom function objects seems very nice and would probably avoid me having floating point issues, but I wouldn't even know how to start with that.
If it's not too much to ask for, could you help me implement that custom function object? Or give me an example/starting point?
Kind Regards and thanks for the help so far on all of my issues! :)


Javascript Time doesn't appear in Recipes#Edit

Jquery was loaded AFTER timepicker function. It's corrected in 2fab040. I moved all javascript in .html.erb tags in separated files


Column type name metadata incorrect for no schema binding views

Driver version
<IP_ADDRESS>
Redshift version
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.49087
Client Operating System
macOS 13.3.1
JAVA/JVM version
OpenJDK Runtime Environment Temurin-11.0.17+8 (build 11.0.17+8)
Table schema
create table test.product_table
(
     product_name VARCHAR(100)
   , net_price NUMERIC(10,2)
);

create view test.product_view as
 select product_name
      , net_price
from test.product_table;

create view test.product_view_nsb as
 select product_name
      , net_price
from test.product_table
with no schema binding;

Problem description
Using DatabaseMetaData#getColumns method over the VIEW product_view_nsb reports incorrect results for the TYPE_NAME. It reports character varying(100) instead of varchar for the column product_name, and  numeric(10,2) instead of numeric for the column net_price
Using the  DatabaseMetaData#getColumns method over both TABLE product_table or the view product_view returns the correct values, varchar for column product_name and numeric for the column net_price

Expected behaviour:
The column TYPE_NAME for the described product_view_nsb view is varchar for column product_name and numeric for column net_price

Actual behaviour:
The column TYPE_NAME for the described product_view_nsb view is character varying(100) for column product_name and numeric(10,2) for column net_price

Any other details that can be helpful:
Looks like the error is in the last part of the query to get the metadata from pg_get_late_binding_view_cols, when it uses columntype as TYPE_NAME instead of columntype_rep

JDBC trace logs
log_nsb_view.log
Reproduction code
try (
    Connection connection = DriverManager.getConnection("jdbc:redshift://host:5439/dev", "user", "pass");
    ResultSet resultSet = connection.getMetaData().getColumns("dev", "test", "product_view_nsb", null);
) {
    while (resultSet.next()) {
        System.out.printf("%s | %s%n", resultSet.getString("column_name"), resultSet.getString("type_name"));
    }
}

Thanks @YotillaAntoni for submitting this issue! I'll take a look and get back to you when I have an update

Any updates on this?

Also seeing an issue where an integer column is coming back as serial even tho it definitely is not. Also seeing isAutoIncrement come back as true for every column even text columns

@bhvkshah sorry for pinging you directy on this one. Is there any way you can fix this? our customers are having issues in Metabase due to this matter

also tagging @bsharifi and @timm4205


Restore assemble behavior by removing unittests for Windows during Jenkins build

Signed-off-by: Peter Zhu<EMAIL_ADDRESS>Description
Restore assemble behavior by removing unittests for Windows during Jenkins build.
Initially we are running gradle assemble which does not run integTest or unittest during compiling.
Now due to integrate with multiple tasks such as windowsscript as well as running cmake through gradle, we have to switch to gradle build which cause the entire build to take around 1 hour plus to complete, compares to the original compile time 30min-40min.
By removing unittest during compilation this restored the original behavior of KNN build on Jenkins, while allowing gradle to take over the trigger of cmake/make.
Thanks.
Issues Resolved
https://github.com/opensearch-project/opensearch-build/issues/2306
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[x] Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Seems like removing the test somehow stopped the lib building.
Closing this.