Sensors unavailable on Buderus TC100.2 (EASYCONTROL)

Describe the bug
When using the integration I can change the temperature of my thermostats just fine, but all their sensors show as unavailable.
Version

HA version: 2022.9.2
HA Bosch component version: 0.18.3

Debug SCAN
https://gist.github.com/ChristophPech/f69b55c356217c946e7a8a1f7aee9162
Error from Logfile
2022-09-13 11:20:01.564 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/bosch/__init__.py", line 417, in thermostat_refresh
await self.component_update(SENSOR, event_time)
File "/config/custom_components/bosch/__init__.py", line 396, in component_update
await entity.bosch_object.update()
File "/usr/local/lib/python3.10/site-packages/bosch_thermostat_client/sensors/crawl.py", line 48, in update
self._data[key][RESULT] = process_result(result.get(VALUE))
File "/usr/local/lib/python3.10/site-packages/bosch_thermostat_client/sensors/crawl.py", line 37, in process_result
if len(result) == 1:
TypeError: object of type 'NoneType' has no len()

Screenshot of the Issue

Did you enable those sensors?

Yes. All of them.

I debugged it a little bit myself, and the error occurs when the sensors "rdevice10", "rdevice11", "rdevice12" and "rdevice13" are tried to be updated, but apparently they don't exist.
I made a bad attempt at fixing it: https://github.com/ChristophPech/bosch-thermostat-client-python/blob/test/bosch_thermostat_client/sensors/crawl.py
But returning 0 will trigger some exception in while the unit conversion is going on. But at least that solves all my problems and all sensors show up correctly.

better to do
if result and len(result) == 1:

I'll fix it in next version

Fixed in 0.19.2.
Basically /devices/device1/ should be fetched one level deeper.
If you need those sensors for some reason feel free to open new issue.

Thanks. It works, and I can see how your fix is better. Send a tip.


Parent element poped when while motiontaost is visible and keyboard is opened.

Thanks for filling this issue I will work on it @Navdeep-Goyal


Transparent background in x-display

Dear authors,
After successfull "one-click" compilation of new Paradis 4.0 (with XLIB_MODE=ON) I've found that it displays the results with some unconvinient transparent background. Any changes in paradis.xdefaults file do not help.
For comparison, in the same tests folder (and with the same .xdefaults parameters) I can run 2.7 version of Paradis - and everything works nice. So, the only thing I can currently propose is that in 4.0 src files there is smth different from 2.7 version which provides wrong display regime.
I will be grateful for any assistance. Thank you for your nice work!
p.s. for illustration I've attached 4.0 and 2.7 tests snapshots - they both are launched from the same folder (i.e. only executable file of Paradise differ).

Source : ParaDis 4.0 User Manual
Try Replacing the File of Earlier Version of ParaDis

@vikramroybarc

Try Replacing the File of Earlier Version of ParaDis

Which files do you kindly propose to replace? As was mentioned in the topic, I have run the same test from the same folder using the same paradis.xdefaults file. By only using different compiled executables (2.x or 4.x of Paradis) I get normal or transparent background, respectively. So, the only difference between two test runs is compiled executable.
If you meant to copy paradis.xdefaults file from nicely working Paradis 2.7 release - then yes, it still gives transparent background for the 4.0 version executable, that was the main point.
May it be that during compilation, 4.0 version is linked to a bit different external libraries (than previous 2.7 version) and therefore visualization regime is changed somehow?
Thank you!

I am trying to familiarize myself with using this, but I have only completed the installation of version 2.5, how should I complete the installation of the new version to use it? Thank you very much for your answer!


Implement Go_to_Top button and Go_To_Bottom button on the feed page

I think it is better just to have go to top, go to bottom is kind of heavy if there are like 1000 sessions on the database

I think it is better just to have go to top, go to bottom is kind of heavy if there are like 1000 sessions on the database

Agree. But i don't want to implement it now since it's not a major feature. I'll code it maybe after due.


Disabled protections superseded by Workspace.RejectCharacterDeletions on new games

Workspace.RejectCharacterDeletions was added in https://devforum.roblox.com/t/action-required-workspacerejectcharacterdeletions/2196175/1 and enabled by default on games on May 1st 2023 https://devforum.roblox.com/t/workspacerejectcharacterdeletions-default-transition/2269179 .
RejectCharacterDeletions does the same thing as settings.AntiHumanoidDeletion, settings.ProtectHats and partially settings.AntiRootJointDeletion/settings.AntiParanoid.
Also do not remove settings.AntiRootJointDeletion explosions and joint breakers can still break the character so some games rely on it!!

Phase 1 ✅ - Remove legacy settings from settings files and suggest alternative in settings file (expect for settings.AntiRootJointDeletion) - Already done in #778
Phase 2 🔄 - Make all games after May 1st have settings.AntiHumanoidDeletion, settings.ProtectHats and settings.AntiRootJointDeletion/settings.AntiParanoid disabled even if they are enabled via settings. - Done when this pull gets merged and Adonis gets updated.
Phase 3 ❌ - Remove the pieces of code totally (maybe notify games that depend on the settings??) - Not yet. Some games may still rely on them, we first have to force disable them on new games

Also here is the first game on may 1st and the first user on may 1st.

But why again. I forgor


[ADD] more test cases for inverse KFAC

Follow up to #156, sorry, missed a test case.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

0 of 0   changed or added relevant lines in 0 files are covered.
45 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-2.6%) to 89.43%

Files with Coverage Reduction
New Missed Lines
%

curvlinops/fisher.py
45
25.76%

Totals

Change from base Build<PHONE_NUMBER>1:
-2.6%

Covered Lines:
1523

Relevant Lines:
1703

💛  - Coveralls


Update tags

This pull request updates tags to get tree-sitter tags working on PHP files.

Looks good, thanks!


Add migration to readme, other updates

This makes a few tweaks to our project readme:

Adds a ## Project has been renamed section, with instructions how to migrate.
Moves the call for maintainers to the ## Contributing section, to avoid making it seem like this is a struggling project.
Adds pnpm installation instructions, including shameful hoisting, and moves Requirements into the installation section.
Updates the "for a new project" section to use npm create vite@latest.
Removes a few mentions of known issues that have been fixed. \o/

Going to self-merge this one, since it's just docs cleanup. Feel free to put up another PR if you think anything should change.


dbt: readme

Signed-off-by: Maciej Obuchowski<EMAIL_ADDRESS>

Codecov Report

Merging #134 (815f8ef) into main (44524cb) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #134   +/-   ##
=======================================
  Coverage   89.13%   89.13%
=======================================
  Files          27       27
  Lines        1454     1454
=======================================
  Hits         1296     1296
  Misses        158      158

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 44524cb...815f8ef. Read the comment docs.


Relaxing Python3.9 Requirement

Would it be possible to relax the requirement of python3.9 in the setup file to an earlier minor version >3.6 for instance. Many applications that want to incorporate this sdk will not be able to utilize it due to this restriction.

It looks like the code needs at least 3.8 due to use of typing.Annotated .

For those interested I created a "legacy" package available for python3.7 users:

https://pypi.org/project/flow-py-sdk-legacy/
https://github.com/justinnout/flow-py-sdk


Add hair_chiang_bsdf closure definition from MaterialX

Description
This just adds a closure definition so the MaterialX project can work on their OSL backend bindings for this new BSDF.
Tests
We don't have an implementation of this closure (nor would be it be easy to provide since testrender doesn't support hair fibers and this model won't work well on triangulated hair. We'll have to rely on MaterialX and renderers implementing this closure for testing.
Checklist:

[x] I have read the contribution guidelines.
[ ] I have updated the documentation, if applicable.
[ ] I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
[x] My code follows the prevailing code style of this project. If I haven't
already run clang-format v17 before submitting, I definitely will look at
the CI test that runs clang-format and fix anything that it highlights as
being nonconforming.

@jstone-lucasfilm for vis.

Related MaterialX issue for posterity: https://github.com/AcademySoftwareFoundation/MaterialX/pull/1968


CASMPET-6733 fix quotes in labels param so cray-nls backend can unmarshall info

Description
When '--labels' parameter is used when creating a NCN rebuild workflow, the cray-nls backend would have the following error.
{"message":"json: cannot unmarshal string into Go struct field CreateRebuildWorkflowRequest.labels of type map[string]string"}
Fixing the quotations around the information that is passed in will resolve this problem.

Checklist

[x] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[x] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[x] My commits or Pull-Request Title contain my JIRA information, or I do not have a JIRA.

/backport release/1.5


EventListener error on correct identical function parameter

TypeScript Version:  3.7.2, 3.5.1, 3.6.3, 3.4.5

Search Terms: Event Listener, addEventListener
Code
document.addEventListener('mousedown', onClick, false)

const onClick = (w: Window, e: MouseEvent): any => {
    // Code here
}

Expected behavior:
If the parameter types are the same, then no error should be emitted unless the syntax is incorrect.
Actual behavior:
Unless the names of the parameters are the same, an error is emitted saying that the function is not compatible.

Playground Link
Related Issues: #28357

This is not a bug, but intended behavior. The this argument is a special kind of argument that is not passed along when calling the function, but instead describes the type of this instance.
The documentation should clear things up for you: http://www.typescriptlang.org/docs/handbook/functions.html#this-parameters-in-callbacks

@MartinJohns Good to know. At least now if someone searches about the issue it will come up more easily :D
But there's a big issue in any case (I'll make a seperate issue if needed).
Playground link
Obviously here type this: Window shouldn't match MouseEvent parameter type. It drew to a weird bug in my code.

It's acceptable to omit the this parameter when it's not needed. It just means you can't access this type-safely in your function. But you can not provide a this parameter with an incompatible type, that will produce a compilation error.

I see, that was super useful, thanx @MartinJohns , and the bug must have came from another source.
Closing the issue.


MOBILE-229 | Modified GetNFTSongs endpoint response to include isStreamToken flag

@wlara we might need to update some unit test before merging


Add support for windows run with cygwin

I removed the php command because there is a cygwin support layer in bin/phpunit. Im no windows guy but looks fine for me?
Error:
purhur@purhur-PC MINGW64 ~/php-compiler (master)
$ docker run -v /c/Users/purhur/php-compiler:/compiler ircmaxell/php-compiler:1
6.04-dev php vendor/bin/phpunit

dir=$(cd "${0%[/\\]*}" > /dev/null; cd '../phpunit/phpunit' && pwd)

if [ -d /proc/cygdrive ]; then
    case $(which php) in
        $(readlink -n /proc/cygdrive)/*)
            # We are in Cygwin using Windows php, so the path must be translated
            dir=$(cygpath -m "$dir");
            ;;
    esac
fi

"${dir}/phpunit" "$@"

With the fix:
purhur@purhur-PC MINGW64 ~/php-compiler (master)
$ docker run -v /c/Users/purhur/php-compiler:/compiler ircmaxell/php-compiler:1
6.04-dev vendor/bin/phpunit
PHPUnit 8.2-g21ee615 by Sebastian Bergmann and contributors.

..........................................................        58 / 58 (100%)

Time: 1.29 minutes, Memory: 6.00 MB

OK (58 tests, 86 assertions)

Without the php it runs fine with Ubutu 16 as host and windows 7 with cygwin docker-for-windows console as host system.

Maybe there should be an Appveyor build to test on Windows too?

It works very easy under windows, even testing.
Git for Windows
Docker for Windows
Make Port for Windows
copy content to ...\Git\mingw64\
And it runs.

It works very easy under windows, even testing.
Git for Windows
Docker for Windows
Make Port for Windows
copy content to ...\Git\mingw64\
And it runs.


Systemd example

Per discussion in https://discord.com/channels/1082302532421943407/1116430490623283200, I propose to add the persistence example to the readme for Unix-based systems so that the lavalink client does not close immediately on console exit.

6G seems a bit excessive, why not 4G like the dockerfile

6G seems a bit excessive for an example, why not 4G like the dockerfile

From the current docs, the java memory options in the docker setup lists 6G

From the current docs, the java memory options in the docker setup lists 6G

https://github.com/lavalink-devs/Lavalink/blob/31ade9087574adf3e657a5f52ed6eeb7c22a5486/LavalinkServer/docker/Dockerfile#L15

they are referring to this: https://github.com/lavalink-devs/Lavalink#docker

So are we going with -Xmx6G or -Xmx4G

Updated to 4G memory option @ooliver1

It can also be run via "pm2" (process manager intended for node processes but works for other processes too)
like that:
pm2 start java --name "Lavalink Node Process Name of your choice" --max-memory-restart 5G -- -jar Lavalink.jar

I absolutely don't want to encourage people to run lavalink with pm2

thank you!


Explain & document: Button variants

This issue is connected to https://github.com/equinor/design-system-tokens/discussions/181 where we are going over the variants and prominence options for actions.


[FLINK-31041][runtime] Fix multiple restoreState when GlobalFailure occurs in a short period.

What is the purpose of the change
This pull request allows DefaultScheduler to skip the restoreState which is a heavy invocation when no task needs to be restarted.
Brief change log

DefaultScheduler#restartTasks return early when verticesToRestart is empty.

Verifying this change
This change added tests and can be verified as follows:

Added test that validates that OperatorCoordinator#resetToCheckpoint will invoke once when fail global twice quickly

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)

@zhuzhurk Please help review the code. thanks

LGTM, thanks @huwh

@flinkbot run azure

Thanks @huwh, seems like all open questions are resolved and CI passes. Merging.


side kick container never gets into started state.

Rancher Versions:
Server: 1.4.1
Docker Version:
1.12.6
OS and where are the hosts located? (cloud, bare metal, etc):
ubuntu 16.04.1 - AWS
Steps to Reproduce:
a side kick container containing a large filesystem
Results:
When starting a container with a lot of data docker takes a while to copy that data.  that happens during "start" so rancher sends the start call,  but times out waiting for the start to finish. We end up trying some 15 seconds later, but in the mean time the container started and then stops...  so the stop event gets sent to cattle and we stop it and cancel the start.  so the container goes to stopped state but we never technically saw it running.  so the startCount is 0 and the state is considered bad.  Rancher doesn't start the container again, which @ibuildthecloud states 'seems like a problem'.
Reach out for repro image and stack yaml

Testing with:
test:
  tty: true
  image: debian
  command:
  - bash
  stdin_open: true
  labels:
    io.rancher.sidekicks: test-data
test-data:
  tty: true
  labels:
    io.rancher.container.start_once: true
  volumes:
  - /big
  command:
  - echo
  - hi
  image: cjellick/big:11g
  stdin_open: true

available on master

Tested with latest build from master:
Created a stack with following yml:
  tty: true
  image: debian
  command:
  - bash
  stdin_open: true
  labels:
    io.rancher.sidekicks: test-data
test-data:
  tty: true
  labels:
    io.rancher.container.start_once: true
  volumes:
  - /big
  command:
  - echo
  - hi
  image: cjellick/big:11g
  stdin_open: true

Sidekick container is "starting" state for a long time until docker copies data from the image to a volume. Once this is done container gets to "stopped" state as expected with green status -checkered pattern circle -  in UI since it is “start_once” and “startCount”: 1 .
Also all  existing automation test cases relating to stopping container from host and waiting for reconcile to get triggered work as expected.


Full-screen mode in modal on IOS (safari and chrome)

Hi,
I use vue-flux on my website. I have a carousel in a modal (https://buefy.org/documentation/modal/) and when I use the full-screen mode on IOS (safari and chrome), the image is not full-screen. I means the size of the image is the size of my modal.
Is it possible the referee for the width calculation is not the rigth referee ?
Thanks
ps: sorry if my English is not very well, I am French ;)

Hello, I understand you great :)
Can you please tell me what version are you using?
When you say full screen, you mean the double click functionality on the slider?
Regards

I use the version 5.1.9 and yes it's the double click functionality on the slider.
I have a 'hack' to my probleme :
set width:100%;height: 100%; to the parent div of vue-flux
add this css :
.vue-flux.fullscreen     {         width: 100%;         .mask          {             width: 100% !important;             height: 100% !important;             >div:first-child              {                 background-size: 100% 100% !important;                 background-position: 0px 0px !important;             }         }     }
But it's not a good solution :)

That is covered is version (5.1.9)[https://github.com/deulos/vue-flux/blob/releases/5.1.9/src/components/VueFlux.vue#L624], but doing some testing I found the issue you are having and you are right. If you set the vue-flux component with styles width and height, then that size will be the final one.
As it can be fixed overwriting the CSS rule, I will not make a new release but I will have it fixed in version 6.X
Thanks a lot for reporting and finding a workaround.


Fetch program data

Added in parameters for start and end times so you can restrict how much data to pull out at once. That part of the PR is very small and ready to roll.
@mklewandowski Part 2 of the PR is a sample of how to get data out - I have it set to fetch data when you click the Reset button because I didn't want to add any extra temporary UI. I included that change as a sample of how you can call the function for testing. The programId I included has about 330 rows of data currently, so you have a reasonable amount of data to play with.

@dstrawberrygirl Not sure which parts of this you want to bring in, but this is looking good.  I've been testing with it and am able to retrieve dataset data.


Cannot pass "filters" to read_hipscat

Working on #127, I've found that I cannot use lsdb.read_hipscat(filters=...) anymore (it worked few version / one month ago). filters is an argument of pd.read_parquet which it passes to pyarrow for applying column filters on fly.
This is an exception I get:
TypeError: read_hipscat() got an unexpected keyword argument 'filters'

@hombit, we have a unit test that explicitly tests this feature:
https://github.com/astronomy-commons/lsdb/blob/12271382ee6953c32d4422f0e777d05c0d1bd8f0/tests/lsdb/loaders/hipscat/test_read_hipscat.py#L26-L29
Can you please share more information about this?

I think I've just forgotten to use engine='pyarrow', thank you!


IDVA6-1601: Update config to remove token permissions checks on users…

Short description outlining key changes/additions
Update config to remove token permissions checks on users endpoint.
JIRA Ticket Number
IDVA6-1601
Type of change

[x] Bug fix
[x] New feature
[x] Breaking change
[x] Infrastructure change

Pull request checklist

[x] I have added unit tests for new code that I have added
[x] I have added/updated functional tests where appropriate
[x] The code follows our coding standards

An exhaustive list of peer review checks can be read here

CI: No security warnings found


Upgraded to TypeScript 2.3.1

... and fixed a couple of type errors on the way

According to the npm documentation we shouldn't use an npm-shrinkwrap.json file:

It's strongly discouraged for library authors to publish this file, since that would prevent end users from having control over transitive dependency updates.

What happened is that a minor update of typescript broke our tool for new users without us even noticing.
So what alternative do you propose instead? Using fixed version numbers?
IMHO Shrinkwrap offers a decent workflow to gradually upgrade.


[ROCm] skip testCategoricalIsInRange

This failure was introduced in commit 7de9cf4 in a weekly sync.
Disable this test for now on ROCm.
@cheshire @chsigg @deven-amd @reza-amd

@googlebot I consent.


0.1.0-alpha

✨ Required Features

[ ] NPCs' behavior system
[ ] Dungeon system (#12)
[ ] Combat system
[ ] XP / Skill system
[ ] Instant system creation
[x] Save / Load System (#5)

[ ] NPC's behavior
[ ] Dungeon
[ ] Combat
[ ] XP / Skill
[ ] Save management

Save / Load System (beta) Completed

Health Display / Damage Indicator (beta) Completed


V2.0.2

All changes from v2.0.2

[Current coverage][cc-pull] is 100% (diff: 100%)

Merging [#72][cc-pull] into [master][cc-base-branch] will not change coverage

@@           master   #72   diff @@
===================================
  Files          11    11
  Lines         172   172
  Methods         0     0
  Messages        0     0
  Branches        0     0
===================================
  Hits          172   172
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update [8d2f67e...34a2bce][cc-compare]
[cc-base-branch]: https://codecov.io/gh/inaka/Jayme/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/inaka/Jayme/compare/8d2f67ea45964bdb66a07922d83814dcba907819...34a2bce5821521393d0c4a0877fec0445ade1d31?src=pr
[cc-pull]: https://codecov.io/gh/inaka/Jayme/pull/72?src=pr

Solves issues #59 and #68


Showing Local GIF

Would you care to explain with an example the procedure of adding a local GIF to your project using react-native-fast-image?

There is an example: https://github.com/DylanVann/react-native-fast-image/blob/32fa98d621462abf1f86051f9fcf6f5f7751eccc/react-native-fast-image-example/src/LocalImagesExample.js#L87


Feature: Unused trait

Remove atoms that do not change the amount of answer sets, they do not occur in any constraints

Remove variables from rules that only occur once in them and replace them with _.
analyze program which predicate position is actually used (except _)
remove all variables in the head that are not used in any other rule
if all positions of a predicate are not used, remove the rule/all rules with this predicate

what about disjunctions, do not know if I could safely remove a part of them, so currently ignore

have an option --protected that protects a set of predicates from being changed, removed

PS:
I can't simply reduce the arity of a predicate, as it could be in use with reduced arity. I would need to rename it.


Incompatibility with ServerCore leading to a crash

The server crashes when using this mod and servercore
carsh log : pastebin link
(see line 156)

I see a code conflict between servercore and the C3H6N6O6 intercept entity tick, this is a principle level conflict and is not fixed by C3H6N6O6.
This issue should be reported to the author of servercore.

i just hope this'll be fixed on servercore's side because i use servercore for disabling spawn chunks completely and some other stuff

@Raphoulfifou please link the issue here after you make it on servercore's repo, i want to keep track of progress

The reason for the crash is that ServerCore is forcing the Mixin check to succeed, and this problem requires turning off ServerCore's Mixin check.

i guess you could make a PR on servercore for a toggle on the mixin check?

This is subject to the opinion of the ServerCore author.

i'll create the issue myself

done

also, @KenRouKoro
quote from that issue:

As a sidenote for the author of cyclonite - I might've missed it but is there any reason as to why it tries to run non-passenger entity ticks async, but it doesn't do the same for passenger entity ticks? Just curious.

I understand. The reason is this: there is no way to parallelize the method tickPassenger(), because the logic of the ride has to be sequential, unless I rewrite the whole ride system (which I obviously can't do).

That overhead indeed probably isn't worth it.
But if I'm not mistaken, Entity#tickRiding() does actually call Entity#tick(), not only riding logic. Meanwhile in the foreach loop on the entityList, before actually calling any tick logic it checks if the entity has a vehicle (is a passenger) - and if that vehicle is not removed and has the ticking entity as passenger (idk why it does a second check, probably some reason for that), it returns there.
Then again though, its only a small amount of entities so its probably not worth it.

Your description is probably an older version. The only specific tick that I can see in version 1.18.2 where I am is in tickPassenger(Entity vehicle, Entity passenger) is passenger.tickRiding().
The method tickPassenger() is called recursively.

There's also the fact that I've seen more than one pointless secondary check in Minecraft's code.
For example, when checking if a message sent by the player is a command, it checks twice if the string starts with a "/", which is really confusing.

Oh, crap, I missed it.
But then again, it's better to leave the recursive call code to run on its own, after all, no one knows what will happen if it's intercepted, and MC has always been consistent in that regard.
——————————————————————————————————————————————————————
I think Github needs to start a private chat feature  lol

Hook this. The old one was deprecated and caused minecart issues.


cannot load library 'pango-1.0': dlopen(pango-1.0, 2): image not found

What I'm trying to achieve
python manage.py runserver <IP_ADDRESS>:8000
Steps to reproduce the problem

python manage.py runserver <IP_ADDRESS>:8000

What I expected to happen
start successfully
Screenshots and logs

/Users/treasersmac/Programming/PythonProjects/saleor/saleor/saleor/settings.py:212: UserWarning: SECRET_KEY not configured, using a random temporary key.
  warnings.warn("SECRET_KEY not configured, using a random temporary key.")
/Users/treasersmac/Programming/PythonProjects/saleor/saleor/saleor/settings.py:212: UserWarning: SECRET_KEY not configured, using a random temporary key.
  warnings.warn("SECRET_KEY not configured, using a random temporary key.")
INFO django.utils.autoreload Watching for file changes with StatReloader [PID:5173:MainThread]
Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/django/utils/autoreload.py", line 53, in wrapper
    fn(*args, **kwargs)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 110, in inner_run
    autoreload.raise_last_exception()
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/django/utils/autoreload.py", line 76, in raise_last_exception
    raise _exception[1]
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/django/core/management/__init__.py", line 357, in execute
    autoreload.check_errors(django.setup)()
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/django/utils/autoreload.py", line 53, in wrapper
    fn(*args, **kwargs)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/django/apps/registry.py", line 122, in populate
    app_config.ready()
  File "/Users/treasersmac/Programming/PythonProjects/saleor/saleor/saleor/plugins/apps.py", line 20, in ready
    self.load_and_check_plugin(plugin_path)
  File "/Users/treasersmac/Programming/PythonProjects/saleor/saleor/saleor/plugins/apps.py", line 24, in load_and_check_plugin
    plugin = import_string(plugin_path)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/django/utils/module_loading.py", line 17, in import_string
    module = import_module(module_path)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/treasersmac/Programming/PythonProjects/saleor/saleor/saleor/plugins/invoicing/plugin.py", line 10, in <module>
    from .utils import generate_invoice_number, generate_invoice_pdf
  File "/Users/treasersmac/Programming/PythonProjects/saleor/saleor/saleor/plugins/invoicing/utils.py", line 8, in <module>
    from weasyprint import HTML
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/weasyprint/__init__.py", line 469, in <module>
    from .css import preprocess_stylesheet  # noqa isort:skip
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/weasyprint/css/__init__.py", line 27, in <module>
    from . import computed_values, counters, media_queries
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/weasyprint/css/computed_values.py", line 15, in <module>
    from .. import text
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/weasyprint/text.py", line 260, in <module>
    pango = dlopen(ffi, 'pango-1.0', 'libpango-1.0-0', 'libpango-1.0.so.0',
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/weasyprint/text.py", line 255, in dlopen
    return ffi.dlopen(names[0])  # pragma: no cover
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/cffi/api.py", line 150, in dlopen
    lib, function_cache = _make_ffi_library(self, name, flags)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/cffi/api.py", line 832, in _make_ffi_library
    backendlib = _load_backend_lib(backend, libname, flags)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_8/lib/python3.8/site-packages/cffi/api.py", line 827, in _load_backend_lib
    raise OSError(msg)
OSError: cannot load library 'pango-1.0': dlopen(pango-1.0, 2): image not found.  Additionally, ctypes.util.find_library() did not manage to locate a library called 'pango-1.0'

System information

Saleor version:

[X] dev (current master)
[ ] 3.0
[ ] 2.11
[ ] 2.10

Operating system:

[ ] Windows
[ ] Linux
[X] MacOS
[ ] Other

Python Version:
Python 3.8.8

No update?

I ran into the same bug. Installing reinstalling xcode cli tools helped.
You can also try sudo port install pango if you haven't already installed it.

me too

Hi there,Thank you for your email. I am currently offline and will not have access to email instantly. If this is urgent, please contact me by phone<PHONE_NUMBER>0. I will do my best to respond promptly to your email when I am on line.Best,

Me three.

Seems like this might be the solution if anyone stumbles upon the issue. For now I'm closing this ticket.

Hi there,Thank you for your email. I am currently offline and will not have access to email instantly. If this is urgent, please contact me by phone<PHONE_NUMBER>0. I will do my best to respond promptly to your email when I am on line.Best,


format angle brackets

@stevestein,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@sankethka This update will get overwritten. The update was made in the docs repo instead of the source repo.

@sdwheeler We have an ongoing email thread on this. We have requested Steve to get the same update in source code.


Sending E-Mails if Users are offline

Hi team,
I could not find a place in the views.py where messages are being written into the database. I would like to send an email from the backend, if a user has written a message, however the second user is offline.
Could you please tell me at which please the chat messages are being saved?
Many thanks.

Hey,
The fact is that views are merely for convenience (e.g. some people may not use them at all).
All the main logic is in consumers.py,
specifically
File message
https://github.com/Bearle/django_private_chat2/blob/master/django_private_chat2/consumers.py#L261
Text message
https://github.com/Bearle/django_private_chat2/blob/master/django_private_chat2/consumers.py#L316
The definitions
https://github.com/Bearle/django_private_chat2/blob/master/django_private_chat2/consumers.py#L111
Thanks for using the project !

Hi delneg! Many thanks for your support - it seems I forgot to write you that this solved my issue! I appreciate your help!


[add-resource] New Plugin/Theme

I would like to add my new theme to the Grav Repository.
https://github.com/Memurame/grav-theme-traveler

Added to GPM for next update


Bugfix issue 665

Platforms affected
Android
Motivation and Context

Fixes #665
Fixes #696
Description

In the processResultFromCamera method, the imageFilePath is used.
https://github.com/apache/cordova-plugin-camera/blob/master/src/android/CameraLauncher.java#L475
It was not restored when the activity was destroyed.
https://github.com/apache/cordova-plugin-camera/blob/b43c78b41997294d08fc8c17a3b286a5eba5fa6d/src/android/CameraLauncher.java#L1356
This resulted in a NullPointerException because the resulting sourcePath was null.
https://github.com/apache/cordova-plugin-camera/blob/b43c78b41997294d08fc8c17a3b286a5eba5fa6d/src/android/CameraLauncher.java#L473
So I've added the imageFilePath to the state Bundle in the saveInstance and the restoreInstance methods.
You can install and test the plugin (on Android) with next command.
npx cordova plugin remove cordova-plugin-camera
npx cordova plugin add https://github.com/PieterVanPoyer/cordova-plugin-camera/#bugfix/issue-665-save-instance-restore-bug

You could test it with next reproduction repo:
https://github.com/PieterVanPoyer/cordova-camera-plugin-testing-app
Testing

Tested it on an Android 10 emulator.
I enabled the developers mode on the emulator and made the activity destroy everytime the camera is shown.
So I forced the resume flow on Android
Checklist

[x] I've run the tests to see all new and existing tests pass
[x] I added automated test coverage as appropriate for this change
[ ] Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
[x] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
[x] I've updated the documentation if necessary

@breautek @jcesarmobile @erisu Is anybody able to review this PR? Kind regards.

@breautek @jcesarmobile @erisu Is anybody able to review this PR? Kind regards.

@breautek @erisu maybe it's time to merge this one. And start a release. Some users report that this PR fixes the linked issues.

@breautek @erisu maybe it's time to merge this one. And start a release. Some users report that this PR fixes the linked issues.

@timbru31 thanks for the review. I did commit your suggestion.

@timbru31 thanks for the review. I did commit your suggestion.

@timbru31 or @breautek can anyone merge this one to the master. Most users report that this PR fixes the linked issues.

@timbru31 or @breautek can anyone merge this one to the master. Most users report that this PR fixes the linked issues.

Generally I like to have 2 green checks, but I'll merge sometime Monday assuming there are no objections. Sooner if I get another green check from a PMC member.

Generally I like to have 2 green checks, but I'll merge sometime Monday assuming there are no objections. Sooner if I get another green check from a PMC member.

Tests are green, and haven't had any objections so merging!
Thank you for your contribution @PieterVanPoyer

Hi there,
Are you planning to update the npm package anytime soon ?
It would be nice...
Thank you guys

Any chance for a merge or at least a comment on https://github.com/apache/cordova-plugin-camera/pull/712 ?

I've also updated the latest plugin 5.0.2, but the same problems occur on Android 10 (device - redme not 7pro). The plugin 5.0.2. Forcefully close the application once we capture a photo. This happens on some specific devices. Please update the new version I'm waiting for the new version
Node -v ----14.16.0
ionic -v  ---- 6.13.1
cordova -v----10.0.0
ionic cordova platform add<EMAIL_ADDRESS>tested   and   both same crash.
I'm waiting for your response, thanks


Link generation: Discard ambient values unless routing to the same address

Today ambient values are handled inconsistently across Conventional and Attribute routing.
Conventional Routing: Ambient values are ignored when trying to link to a different action
Attribute Routing: Ambient values are honored in this case.
We want ambient values to be removed when generating links to addresses other than own.

More detail: https://gist.github.com/rynowak/174c46b31f52d9674b55bf27dbf8b19d


Acceptance tests halt due to run.later scheduling

Given the following app:
// app/routes/application.js

export default Ember.Route.extend({
  actions: {
    sayHello() {
      let flashes = this.get('flashes');
      flashes.info('Hiya');
    }
  }
});

<!-- app/templates/application.hbs -->

<button {{action "sayHello"}}>Say hello</button>

{{#each flashes.queue as |flash|}}
  {{flash-message flash=flash}}
{{/each}}

An acceptance test has the following behaviour:
// tests/acceptance/hello-test.js

test('say hello', function(assert) {
  visit('/');
  click('button:contains("Say hello")');
  // Our test waits here until the run.later scheduled in _destroyLater is flushed
  andThen(() => {
    // By the time we get here the flash message has gone already
    assert.ok(find('Hiya').length);
  });
});

This is tricky both because andThen behaves unintuitively and because the test will pause for the full timeout duration.
I’ve worked around this in my tests with a total hack:
// tests/test-helper.js

import FlashObject from 'ember-cli-flash/flash/object';

FlashObject.reopen({ _destroyLater: null });

This is obviously not ideal but I’m struggling to come up with a reasonable API for this scenario. Any thoughts?
P.S. Love this addon so much :heart:

I've run into the same issue when trying to test the mouseover-ed feature.
I think what could be done is to overload the _destroyLater method instead of removing it.
Then we could for instance do something like this:
if the test should lead to _destroyLater being call:
FlashObject.reopen({_destroyLater: function () { ok(true, 'yes it was called!'); });

or ok(false) if the method shouldn't be called.
that being said... I haven't had time to try coding it since I thought about it and maybe it is a rubbish idea :smile:

A declarative public API for testing would be lovely.
This isn’t a serious suggestion, but food for thought:
test('say hello', function(assert) {
  visit('/');
  click('button:contains("Say hello"));
  pauseFlashes();
  andThen(() => { assert.equal(find(':contains("Hiya")').length, 1); });
  flushFlashes();
  andThen(() => { assert.equal(find(':contains("Hiya")').length, 0); });
});

Thanks for reporting this @jgwhite and @leojpod! Yeah, it is definitely a problem I want to fix. I like the idea of being able to pause / flush flashes in testing, but I think I'd prefer for the flashes to just work in testing (without additional helpers) in a way that you'd expect. I'll investigate over the next few days to figure out the best approach.

Here is another idea. I have ENV.stickyFlash = false set in environment.js then add messages with something like:
Ember.get(this, 'flashMessages').add({
  message: 'Custom message',
  sticky: ENV.stickyFlash
});

This just explicitly sets sticky to the already default false. Now in my test I have ENV.stickyFlash = true so the message is still present inside any andThen

Using Mocha, the run.later for non-sticky flashes causes the _destroyLater hook to run immediately, which causes the tests asserting the existence of a flash to fail, but it's basically the same issue.
From my perspective, the most intuitive approach is to treat flashes as always sticky in test. That's because I almost always want to assert that they were shown, but I have complete faith that if I told ember-cli-flash that they should go away after five seconds, then they will. In the rare instances where you need to make assertions against a clean slate within the same test case, you could provide a clearFlashMessages helper.
Based on that, I think @jgwhite's workaround is the simplest, least surprising option, and I'd consider making it automatic. That way you spend basically zero mental overhead thinking about how your flashes might work differently in test than in development and production.

Yeah, that's a good point @cowboyd, I like that approach and I'm gonna work on implementing that and the helper.
@JarrodCTaylor you can also set sticky: true inside of your dummy app's config/environment


OpenComputers Incompatibility

Okay, so I've had this bug with OpenComputers for a while now (months, even from 1.6.4 -> 1.7.10) where sometimes, seemingly at random, I would become unable to type into a computer. I finally tracked it down to NEI.
If I open a computer I can type into it, however if I close the computer and open my inventory, then close my inventory and go back to the computer, I can no longer type into it. It turns out the issue is that due to my keyboard layout and inventory being bound to the F key, NEI search is coming into focus in the computer GUI. This stops any text from being entered into the computer.

I did some digging, and I think I have a pretty good idea of what's happening now. It's quite the special case. The reason OC fails to capture input in this scenario is that NEI doesn't/can't update its visibility info for OC screens, because that GUI is a simple GuiScreen, not a GuiContainer.
Therefore the LayoutManager apparently keeps the focused element (getInputFocused) to what it was in the last GUI. Which, when binding the inventory key to F is the search box. Why does this even matter? I use LayoutManager.getInputFocused to check if I should ignore input or not. If there's a better way to do this, please let me know!
I can work around this by simply not checking in the normal screens (in other GUIs this isn't an issue because they are GuiContainers, so the state is updated correctly). I'd still suggest resetting the inputFocused field if a GUI is opened that is not a GuiContainer, instead of keeping the old state.

NEI only runs in GuiContainer guis, you probably shouldn't ask NEI for what input element if focused if it's not in control.

Ah, all right. Then the workaround is actually not a workaround but the way to go. Thanks, feel free to close this then!


while deploying windows stack using bosh

C:\Users\wwtadmin\Desktop\tam>generate.exe -outputDir=.\ -boshUrl=https://hm-use
r:hU6eI4J7gf04bWDFVyF4A@<IP_ADDRESS>:25555 -machineIp=<IP_ADDRESS>
BOSH Director does not have exactly one deployment containing a cf and diego rel
ease.
please help me to resolve the issue

zurecfbosh@ocfdev-azurebosh:~$ bosh releases
Acting as user 'admin' on 'bosh'
+-------------------+-----------+-------------+
| Name              | Versions  | Commit Hash |
+-------------------+-----------+-------------+
| cf                | 231*      | f67ebb73+   |
|                   | 239*      | e53f998d+   |
| cflinuxfs2-rootfs | 1.18.0*   | 292eac2e+   |
|                   | 1.25.0    | 62a32ebf+   |
|                   | 1.26.0    | ddc7ebac+   |
| consul            | 80        | 907dca9f+   |
| diego             | 0.1460.0* | 02b2bb8a    |
|                   | 0.1480.0* | 89496125    |
| etcd              | 38*       | af52789b+   |
|                   | 60*       | bf327393+   |
|                   | 65        | c0627ad5+   |
|                   | 66        | b074858e+   |
| garden-linux      | 0.334.0*  | 88f7ec39    |
|                   | 0.339.0*  | 545d890b    |
|                   | 0.341.0   | 6edce831    |
|                   | 0.342.0   | b03a9abc    |
+-------------------+-----------+-------------+

@vijaay What's the output of bosh deployments?

Closing this issue due to inactivity. Let us know if you still encounter a problem.

Hi,
I'm having the same issue. Please find the info asked to the OP below:

Regards,
Ali

@malichishti is it possible for you to move to using BOSH to deploy your windows cells? the Azure stemcell is publicly available on bosh.io: http://bosh.io/stemcells/bosh-azure-hyperv-windows2012R2-go_agent
(the diego windows MSI has been deprecated in favor of BOSH windows deployed with garden-windows-bosh-release)

Do you have instructions for that? I have been following instructions below:
https://github.com/cloudfoundry-incubator/bosh-azure-cpi-release/blob/master/docs/guidance.md
https://github.com/cloudfoundry-incubator/bosh-azure-cpi-release/tree/master/docs/advanced/push-your-first-net-application-to-cloud-foundry-on-azure

@malichishti The methods described in that document are outdated (particularly the third link), you are now able to add a windows cell and deploy it with BOSH, not the MSI installer as that document describes as the MSI has been deprecated.
Going forward, Cloud Foundry is moving towards using cf-deployment as the preferred deployment strategy which offers an easy way to generate manifests, rotate credentials, etc. cf-deployment offers an operations file (like an optional configuration file) that you can use to add a Windows cell to your deployment. If you are unable to use cf-deployment for some reason, you can follow the template in the linked opsfile and add a Windows cell to your deployment with the proper configuration.

Thnak you, i have added the windows cell, what should i do next in order to host an ASP.Net App?

@malichishti that looks like  you just uploaded the stemcell and have not deployed a VM from it yet (there is no * next to the version signifying that it is in use)
You need to create a deployment manifest to deploy the required BOSH jobs onto a cell:

garden-windows -> garden-windows BOSH release
rep_windows -> diego release
consul_agent_windows -> consul release
metron_agent_windows -> loggregator release


Update file-server-smb-overview.md

Rephrasing Windows versions to be more precise.
Tip: why not change the article a little bit to include Windows client? In practice Windows client is mentioned everywhere, except in the title and 'Applies to'.
Sometimes Updated seems more correct than New.
I've added the new features for W11/WS22.
Some minor details.

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


make oci_tarball use an hermetic tar toolchain from bazel-lib

See https://github.com/aspect-build/bazel-lib/issues/470

closing in favor of #328


Allow users to specify nicController for KVM VMs

Like other VM instance properties, add a new property nicController both in template and instance properties to allow users/admins to specify the nic controller of a VM for KVM.
ISSUE TYPE

Feature Idea

COMPONENT NAME

KVM, template, VM

@Pearl1594 has advised nicAdapter vm/template property can be used, and works from API but not UI.


Call hangs in DefaultWebSocketClient.StreamAsync: Web socket connecting...

Hi,
I am using your library to download 1 minute data continuously for further analysis. This works very well, but every few days, the download stops and I need to restart and as a result I miss data.
In the log file I see this:
DefaultWebSocketClient.StreamAsync: Web socket connecting...
but it is never followed by a
DefaultWebSocketClient.OnOpen: Web Socket OPEN.
like in the normal situation.
It just seems to get stuck in this call. Is there a way to use a timeout / retry mechanism, so I don't need to manually monitor whether or not the application is still running?
Thanks for your excellent work,
Peter

@rcbapb, to have a websocket connection timeout you would need to pass a CancellationToken with TimeSpan to the StreamAsync(token) method.
var cts = new CancellationTokenSource(TimeSpan);

The automatic stream control won't do this for you. You would need to control the BinanceWebSocketStream directly, like the advanced examples but with your own retry controller implementation that uses a cancellation token source with timeout (above).
I may consider implementing something like this in the not so soon future; I'm not taking on a new features with 0.2.0. Also, the issue would need to be reproduced and shown that using a connection timeout to abort and reconnect proves to be a solution (that would take some time). Besides, if the underlying issue is network related or otherwise external to the software then, I imagine, a reconnect attempt will just hang too.
If your application just needs notification when this situation occurs, perhaps create a timer on the IWebSocketClient.Close event (and maybe at application startup too) that gets disposed on the Open event. The timer action could then restore the application from a higher level.

@sonvister Thank you for your reply. I could use the CancellationToken approach to simulate a cancelled stream, but when it happened by itself, I never got the IWebSocket.Close event. The call to connect was just hanging forever. I'd probably need some external application or a separate thread that will terminate the connection a try again.

Yes, you mentioned that Connect() did not complete/return and there was no Close event. BTW, if Connect() is cancelled you should not get either an Open or Close event.
The 'separate thread' would be the timer action I suggested that you would initialize at application startup and/or with the Close event during a reconnect attempt (I wasn't sure which to recommend first before as you didn't specify whether there was a preceding Close event).
Also, if this is not a reoccurring issue (as it now sounds like with your last comment), then I would not worry about it.


Update kube-dns 1.14.13 for k8s 1.8 through 1.11

What this PR does / why we need it: See:
https://github.com/kubernetes/dns/releases
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
If applicable:

[ ] documentation
[ ] unit tests
[ ] tested backward compatibility (ie. deploy with previous version, upgrade with this branch)

Release note:

Update kube-dns 1.14.13 for k8s 1.8 through 1.11

/lgtm


level-select [NEXT] crash

Describe the bug
Use of Level-Select [NEXT] triggers a crash on mouse-driven games
UI becomes unresponsive
Reproduction Steps

Load: https://david-pfx.github.io/PuzzleScriptNext/src/editor.html and open browser console
Start playing the example game "Gridblocked" and escape to the level select screen
Click on [NEXT] to try to view more levels

OS & Browser version, desktop/mobile
Desktop/MAC/Chrome  (also observed on ipad)
Screenshots, example projects, other relevant issues, etc.

Fixed. Somehow a few lines of really bad code got deleted but not replaced. Big oops.


Fix up compilation errors

The change of SPiDError to a category broke a few things in the
sample applications. Also, SenTesting is not supporting in XCode 7,
so the "tests" (there aren't really any tests, just test projects)
were converted to the more modern XCTest framework.

Or @mikael-lindstrom

Seems legit 👍


Update postcss-sass

<EMAIL_ADDRESS>depends on<EMAIL_ADDRESS>mathjs versions prior to 3.17.0 have a known security vulnerability. Better to update to<EMAIL_ADDRESS>that doesn't depend on mathjs at all.

I understand that this project is not maintained anymore but would be great to get this update out since rails/webpacker still depends on this project.

Released in 0.7.6 - thanks :)


make-frontend not working: relay-compiler: not found

When I'm trying to run make-frontend or make dev_setup, the process is stopping at the following step
docker-compose run --rm sandbox ./manage.py graphql_schema --out ./frontend/schema.graphql
Creating ix_sandbox_run ... done
Successfully dumped GraphQL schema to ./frontend/schema.graphql
docker-compose run --rm sandbox npm run relay
Creating ix_sandbox_run ... done

><EMAIL_ADDRESS>relay
> relay-compiler

sh: 1: relay-compiler: not found
ERROR: 127
make: *** [compile_relay] Error 127

I'm using docker-compose on MacOS 12.6 (Intel i-9)
Docker version 20.10.17, build 100c701

docker-compose version 1.29.2, build 5becea4c

Currently on master at commit: "310ff930f1af315562a1df9f3a6efbea79fa3875"

@soumym try running make clean and then make frontend again.
relay-compiler is installed via package.json. It's possible your image is out of date but make isn't detecting the change.


roadmap

Hello,
It would be great to see how feature compliant is this library with the graphql spec. Is it possible to maintain an issue or project to get an idea of when one can use certain feature.
thanks.
bsr

I just started the project recently, so there is a lot of WIP. But feel free to list the features/bugs that you'd like to see tackled first and I'll see what I can do. :-)

Thank you. I would list out the features needed for my app to work, which currently uses graphql-go

hi,
There are many frontend implementation for todo mvc app. here is an official relay example. I did a while back the backend for another go graphql library here, and do you think it is worthwhile to use it as an example so we can just use the relay app for frontend ?
here is the schema generated with the relay app
schema {
  query: Root
  mutation: Mutation
}

input AddTodoInput {
  text: String!
  clientMutationId: String
}

type AddTodoPayload {
  todoEdge: TodoEdge
  viewer: User
  clientMutationId: String
}

input ChangeTodoStatusInput {
  complete: Boolean!
  id: ID!
  clientMutationId: String
}

type ChangeTodoStatusPayload {
  todo: Todo
  viewer: User
  clientMutationId: String
}

input MarkAllTodosInput {
  complete: Boolean!
  clientMutationId: String
}

type MarkAllTodosPayload {
  changedTodos: [Todo]
  viewer: User
  clientMutationId: String
}

type Mutation {
  addTodo(input: AddTodoInput!): AddTodoPayload
  changeTodoStatus(input: ChangeTodoStatusInput!): ChangeTodoStatusPayload
  markAllTodos(input: MarkAllTodosInput!): MarkAllTodosPayload
  removeCompletedTodos(input: RemoveCompletedTodosInput!): RemoveCompletedTodosPayload
  removeTodo(input: RemoveTodoInput!): RemoveTodoPayload
  renameTodo(input: RenameTodoInput!): RenameTodoPayload
}

interface Node {
  id: ID!
}

type PageInfo {
  hasNextPage: Boolean!
  hasPreviousPage: Boolean!
  startCursor: String
  endCursor: String
}

input RemoveCompletedTodosInput {
  clientMutationId: String
}

type RemoveCompletedTodosPayload {
  deletedTodoIds: [String]
  viewer: User
  clientMutationId: String
}

input RemoveTodoInput {
  id: ID!
  clientMutationId: String
}

type RemoveTodoPayload {
  deletedTodoId: ID
  viewer: User
  clientMutationId: String
}

input RenameTodoInput {
  id: ID!
  text: String!
  clientMutationId: String
}

type RenameTodoPayload {
  todo: Todo
  clientMutationId: String
}

type Root {
  viewer: User
  node(id: ID!): Node
}

type Todo implements Node {
  id: ID!
  text: String
  complete: Boolean
}

type TodoConnection {
  pageInfo: PageInfo!
  edges: [TodoEdge]
}

type TodoEdge {
  node: Todo
  cursor: String!
}

type User implements Node {
  id: ID!
  todos(status: String = "any", after: String, first: Int, before: String, last: Int): TodoConnection
  totalCount: Int
  completedCount: Int
}

I will raise issues separately and provide above todo example as a PR when I get it to work. thanks.

@bsr203 I've started working on this myself, since it was a good idea. Let's avoid doing the same work twice. I'll commit it soon and give you an update then.

Thanks. I can do the front end stuff as setting up relay could be too time consuming. If you could do the backend, I could take up the rest. thanks again for all your effort. getting super excited :-)

Hi. I saw you starred react-router-relay. @taion commented in few threds about possibly no support for react-router 4, and he is working on alternatives https://github.com/4Catalyzer/found
https://github.com/4Catalyzer/found-relay
I recently migrated from react-router to http://grahammendick.github.io/navigation/
There are plenty of samples, including relay, hot reloading. The relay example is not idiomatic as the author isn't familiar with relay but I could migrate my app without any issue. HTH.

Thanks for making me aware. :)

@neelance sorry for bugging you on this, but did you face any difficulty doing the backend which supports relay. It would be great help before I undergo the migration to this library. thank you.

@neelance Sorry for the noise. But I managed to add it to graphql.org. Just to let you know.
https://github.com/graphql/graphql.github.io/pull/203

@lpalmes Cool, thanks for your effort!

@neelance. I wanted to know if we could get some help with documentation. I couldn't resolve an array of structs because i have to pass a pointer back. And I couldn't figure it out. Maybe it was me. Thanks for working on this

@lpalmes https://github.com/chentsulin/awesome-graphql#lib-go may be a good place as well, if you got time for it.

Oh. Thanks @bsr203 Will do

I already have used github.com/graphql-go/graphql. And successfully. But it was a bit verbose. So I decided to try this one. And I'm lacking some understanding right now I guess. Future docs will help a lot

@lpalmes I am also in the learning phase, and you might have already seen, the example is quite good. Note sure whether you are looking something along this  or this

I've built a introduction while i will try to explain graphql-go, and how to use it, at first it was a bit difficult for me as you can see above, so i would like to ease the pain to newcomers. If you see something wrong or anything please let me know, i want to help this project given that i had gotten so much from it. Thanks!
https://github.com/lpalmes/graphql-go-introduction


Cant run multiple python files at once

Environment data
VS Code version:  1.18.0
Python Extension version:  0.8.0
Python Version:  2.7.6
OS and version: Windows 7 64bit
Actual behavior
Using the "run python in terminal" context menu option on multiple files will not launch extra terminals
Expected  behavior
I would have thought you could have one terminal every time you wanted to run your code
Steps to reproduce:

Create some python file
Create a second python file
Run python file #1
Run python file #2
Only one terminal is running.

Using the "run python in terminal" context menu option on multiple files will not launch extra terminals

How do you do this? How are you selecting multiple files today?

Thanks for the idea, but this is one of those things where you can't make all the people happy all the time because some people don't want a new terminal for every execution (because that would be the option here, not a single terminal for each file, but a new terminal for every execution of code). And since we have not seen an obvious trend towards requesting a new terminal per execution we prefer to stay with the current solution.

How do you do this? How are you selecting multiple files today?

I just meant run one file, and try to start another while file 1 is running. I suppose most people probably use python for small short scripts that dont take long to finish.. but that isnt the case for me. I may just be a rare case..

People use Python for everything, from short scripts to running Instagram. 😃 It's just that in this case you're basically asking us to become a parallel code executor and we would rather not have to maintain such support. If you want to execute multiple files at once you could consider a shell script or using something like subprocess in Python's stdlib to run multiple files simultaneously.

Ah its all good, https://marketplace.visualstudio.com/items?itemName=colinkaopu.externalcommand works fine for me to call python file.py with a shortcut in an external terminal.

I also have this problem. I don't think @elunty was asking for parallel scripts to run, rather he wants to launch a script to process something and then continue working on something else, possibly launching a second script externally or within the integrated terminal.
In my case, we have some heavy algorithmic python scripts that take hours to run depending on the data sets they are processing. Typically we need to make minor tweaks to be able to run them, so opening the script, making a change and then launching it in an external program is all we need. While that one script is running, opening another script to continue working and running is ideal. @elunty suggested using the externalcommand extension and does exactly what he was talking about here, where you can just launch python.exe myfile.py and just let it run.
I guess the problem really stems down on the tasks.json. Having the ability to specify to launch an external program with parameters, and just have it run, not attaching to the output is the ultimate feature request here. For now, the extension will do the job.
Thanks!


How can I create new custom type of chart?

I'm trying to realize this script  in react-chartjs-2 context.
As I understand, The main point of script above is the creating of new custom class and giving it special functionality.
In short, I need to realise something like it
new Chart(ctx, {
  type: 'customChart',
  data: []
})

But it'll be better if I could do React-component with the same sense.
How can I create my own class and use it in JSX?

I've found here the thing I need.
If i could use the same syntax in my code or could import ChartComponent it will be the best solution.
  <ChartComponent         {...this.props}         ref={ref => this.chartInstance = ref && ref.chartInstance}         type='bar'       />

@Charlie91 Hello. I am doing what you have mentioned. Have you reach your goal? Would you like to share some suggestions?


[C++] Fixed the Number of Variables (was showing wrong)

Reference:

https://github.com/Open-Sourced-Olaf/Code-Kindle/issues/8#issuecomment-821754741

After Changes:

Reference:

https://github.com/Open-Sourced-Olaf/Code-Kindle/issues/8#issuecomment-821754741

After Changes:

cpp-pseudogen/main.exe this file should not be committed to GitHub. Please add this gitignore.

Please add this gitignore.

i think i should add .gitingore for C++/Python, i think backend/db.sqlite3 is also not needed

@anjalisoni3655 Please review and merge!


Create new AntiClientIdle setting

yo, i wanna keep premium players for the good robux premium payouts!
stop kicken my players!
i defaulted to false cuz,
uh, why check for idle?

i defaulted to false cuz,
uh, why check for idle?

I disagree about it being turned off by default. It is a good way of detecting many exploits because they execute an anti idle.
Also it seems that you are mistaken in it kicking players for afking. This is not the case, it only kicks players who bypass the 20 minute Roblox AFK barrier, whoch can only be done via exploits.
Also I'm not sure of pulling the setting each time is a good idea. I think we should rather use some caching system for the setting.

Unless this check was fixed, it should be disabled completely. Often the people I see getting kicked for this, I can confirm weren't constantly AFK for 20 minutes.

Also it seems that you are mistaken in it kicking players for afking. This is not the case, it only kicks players who bypass the 20 minute Roblox AFK barrier, whoch can only be done via exploits.

I've been kicked multiple times with the message anti-idle and I don't use an exploit. If a game developer wants to prevent afk for their game, I'm sure they'll be using their own detection system, and probably keep the player on their game with looping place teleporting with a time limit way smaller than a whole 20 minutes.

Unless this check was fixed, it should be disabled completely. Often the people I see getting kicked for this, I can confirm weren't constantly AFK for 20 minutes.

I've never seen thus false firing. If you encounter this false firing please make an issue on github about it so it can be fixed. If you have any more details please tell them also.
I don't think disabling a check merely because it supposedly false fires is good if you first dont make an issue on github.
Anyways I've made a pull request which fixes a bug with anti idle, however the commit hasn't been uploaded to Roblox yet. If you are seeing issues after said commit is uploaded then feel free to make an issue/pull request, however before said commit is merged I don't see why we shouls blindly start disabling things.

I've sent a screenshot on discord just about every time I get sent a screenshot about it. Never have gotten a proper response.

I don't see why we shouls blindly start disabling things.

I'm not blindly disabling things. I'm wanting to disable a feature I don't believe should be locked enabled and unable to turn off unless you fork your own Adonis version.
Adonis is a server moderation and management system created for use on the Roblox platform.
Anti-Exploit additions probably should be a plugin, tbh.

I don't see why we shouls blindly start disabling things.

I'm not blindly disabling things. I'm wanting to disable a feature I don't believe should be locked enabled and unable to turn off unless you fork your own Adonis version.
Adonis is a server moderation and management system created for use on the Roblox platform.
Anti-Exploit additions probably should be a plugin, tbh.

I understand, that there should be a setting to disable this. But disabling it by default is just dumb, instead it would be better to make an issue request on github so the problem can be triangulated.

And even so the issues with anti-kick and anti-idle have been fixed in #715, the reason why such issues are potentially present is because they have not been uploaded to the main module yet! If it's uncertain that the issues are fixed or not, then its not very smart to start go disabling them by default.
Adding an option to disable them is fine, but disabling them by default even though the issue is potentially fixed shouldn't be done.

I don't think there are much hackers using AntiIdle with Premium in games, and there can be a setting, but it shouldn't be disabled by default

Anti-Exploit additions probably should be a plugin, tbh.
Exactly. The Anti.lua module should be dedicated to the protection of Adonis' client and should focus on Adonis-related security measures, the other general checks should be available in a plugin, even if included by default in the MainModule

the reason why such issues are potentially present is because they have not been uploaded to the main module yet

Master was merged with release yesterday. No idea if it actually fixed the issue yet, but time will tell, and I will send another screenshot in discord, and also now in this pull request.

I don't think there are much hackers using AntiIdle with Premium in games

I don't think there are many exploiters using anti idle at all, to be honest. This check seems way too niche to be falsely kicking players, especially when there's no way to disable it. It should follow all other client anti-exploits within adonis, being disabled by default.

I don't think there are many exploiters using anti idle at all, to be honest.

This is actually not the case, while many exploiters don't specifically use anti-idle, a lot of exploits (mainly scripthubs) have an automatic anti-idle, detecting anti-idle is a good catch-all solution to many exploits.
Of course a lot of them use the VirtualUser service instead which means the current detection won't detect them all.

It should follow all other client anti-exploits within adonis, being disabled by default.

The thing is that most of the Adonis AC is enabled by default, only problematic detections like NoClip are disabled by default.

As I know I've now stated multiple times previously: all anti-exploit related things (unless it's impossible to trigger without an exploit) should get a setting which is (for pretty much all of them) disabled by default. We don't/can't control the environment Adonis is running it and have no idea what is or isn't normal behavior, and therefor cannot just assume something isn't going to be tossing false positives. Even if it's only 1% of the time in niche cases, that's still more than enough.

The thing is that most of the Adonis AC is enabled by default, only problematic detections like NoClip are disabled by default.

It definitely shouldn't be and I know I went out of my way previously to default disable all but "Detection" which even then needs to probably be disabled by default. Anything that is out of the scope of protecting Adonis should not be enabled by default.

The thing is that most of the Adonis AC is enabled by default, only problematic detections like NoClip are disabled by default.

It definitely shouldn't be and I know I went out of my way previously to default disable all but "Detection" which even then needs to probably be disabled by default. Anything that is out of the scope of protecting Adonis itself should not be enabled by default. If someone wants those protections they can enable them at their own risk, and if someone is complaining it doesn't detect X then we can tell them to go enable whatever does, but otherwise it's not worth the headache it causes to leave them enabled by default as even occasional/rare false positives from something the place owner didn't even enable themselves is more than enough to push them away or lead to complaints on our end.

We should group all non-adonis related AE checks to a plugin, Anti.lua's purpose is to protect Adonis itself from the Client

So, what now guys?


Phototmetric Loss Estimations

Under the five frame setting for Occlusion map estimation for three frame flow learning, could you please mention between which 2 sets of reference Image and its warped counterpart, the photometric loss is estimated

I_t and [I_(t+1) warped by w_t_to_t+1]
I_t and [I_(t-1) warped by w_t_to_t-1]
I_(t+1) and [I_t warped by w_t+1_to_t]
I_(t-1) and [I_t warped by w_t-1_to_t]
I_(t+1) and [I_(t+2) warped by w_t+1_to_t+2]
I_(t+2) and [I_(t+1) warped by w_t+2_to_t+1]
I_(t-2) and [I_(t-1) warped by w_t-2_to_t-1]
I_(t-1) and [I_(t-2) warped by w_t-1_to_t-2]

Is it only summation of only 1 and 2 or
(1+2+3+4) which also includes the symmetric backward counterparts of 1 and 2 or is it the summation of all 8 pairs.
Any suggestions would be really helpful.

Hi Penpeng,
Sorry for the mistake in the question. I realized that cases 5,6,7 and 8 are not possible because there are no occlusion maps for these cases. So, is it just 1+2 or (1+2+3+4)

For the five-frame setting, you can apply photometric loss between I_t and I_(t-1), I_t and I_(t+1) i.e., (1+2+3+4), because you can compute occlusion maps between them.

Thank you very much for the info.


occasionally output & error files comes back empty

Copied from email thread:
occasionally I do not get the stdout and/or stderr back from the job. i.e. the file listed in the job configuration file with output and error are empty files. (This only happens randomly even when the same job is submitted multiple times.) Is it a known problem and how to fix this?

I may have found the reason: it may be because different output and error from the parallel universe is overwriting each other:
I.e. instead of this:
universe = parallel
log                     = mpi.log
output                  = mpi.out
error                   = mpi.err
...
queue

uses this:
universe = parallel
log                     = mpi.log
output                  = mpi-$(Node).out
error                   = mpi-$(Node).err
...
queue

I.e. My understanding is that different HTCondor processes are transferring a file with the same name mpi.out and overwriting each other. By mere probability sometimes it works, sometimes it don’t. (I thought they would be concat together, but apparently not.)
If indeed this is the fix, then there’s another problem: as we’re running MPI processes, normally only the mpi-0.* would be non-empty. i.e. all those mpi-1., mpi-2. would be empty files transferring back. This seems slightly problematic.


Hap to anglesharp

Anglesharp for MenuParser, TocParser
MarkupConverter now uses HtmlSanitizer package (Anglesharp-based) for cleaning HTML.

MarkupConverter now uses HtmlSanitizer package

good choice! :)

@304NotModified Roadkill took tests from a Microsoft AJAX library, HtmlSanitizer took those tests from Roadkill, Roadkill now uses HtmlSanitizer - the circle of life! I need alternatives to Lucene.net if you know any (in file based)

Why you need an alternative to lucene ? For .net core?
Ps I have contributed to both roadkill and htmlsanitizer O:)

@304NotModified For .net core yeh

4.8 beta is .net Core compatible? http://code972.com/blog/2016/07/98-lucene-net-4-8-is-in-beta-and-we-need-your-help

It's 4.5 unfortunately:
https://www.myget.org/feed/lucene-net/package/nuget/Lucene.Net/<IP_ADDRESS>5-beta
On 28 Sep 2016 5:08 pm, "Julian Verdurmen"<EMAIL_ADDRESS>wrote:

4.8 beta is .net Core compatible? http://code972.com/blog/2016/
07/98-lucene-net-4-8-is-in-beta-and-we-need-your-help
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/roadkillwiki/roadkill/pull/51#issuecomment-250214711,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADWgJUiMhljqKkQ8mnX33vOZDFzQMvvks5qupDfgaJpZM4KEs3a
.


In the sheets index, it can be hard to see which "details" link belongs to which category

Highlight row on mouse over? But then, what about touch screens?

With the planned design, this ticket will be invalidated. Marking invalid but keeping open.


Add Ionic template support (ref #23)

Which packages did you use to test this? A reproduction repository is also ok if you got one

I used comments-ui 0.2.8 and meteor-ionic packages.
A repository I worked on is a private one and I'm not an owner.

Thanks a lot!


Corrected some words and typing mistakes

Ahoy matey!
Thank you for considering our book project. Before you submit your pull request, please make sure to check the following:

[ ] Your changes follow the book's style and conventions
[ ] Your changes have been thoroughly reviewed and do not introduce any errors
[X] You have added appropriate documentation for your changes (if necessary)

Description of changes:
I have made some modifications in the documentation to correct the words and typing mistakes.
Issue(s) closed:
[List the issue(s) that this pull request resolves, if applicable]
Thanks for your contribution! We'll review your changes as soon as we can.
Yarrrr!

Closing re: our messages
Thanks for the contribution and I'll make those suggested changes later today.
Appreciate your help.

Alright. I will make another contribution.


test new export

Overview

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: ABC-123
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.89-alpha.9643ff.0@codecademy/gamut-labs@31.0.1-alpha.9643ff.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://623e095981e73d078c7908ce--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.89-alpha.3d22aa.0@codecademy/gamut-labs@31.0.1-alpha.3d22aa.0<EMAIL_ADDRESS>
📬Published Alpha Packages:@codecademy/gamut-kit@0.6.89-alpha.456de3.0@codecademy/gamut-labs@31.0.1-alpha.456de3.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://623e123ed2397a16f7a852d4--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.89-alpha.66e750.0@codecademy/gamut-labs@31.0.1-alpha.66e750.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://623e18458c8ebe174dc583ca--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.89-alpha.e66800.0@codecademy/gamut-labs@31.0.1-alpha.e66800.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://623e27104a39ca24fc7524dd--gamut-preview.netlify.appDeploy Logs


Copy paste multiple cell

Good morning
If I copy one cell and I paste in multiple cells (for example 10 cells), it will paste only in one cell.
May you fix ?
I use ctrl + C to copy and ctrl + V to paste.
Regards

fixed in #594

Hi, It seems that pull request #594 was never been merged.

Has there been any update on this? as far as I can tell this is still not working in the latest version / latest source.


Output a warning for unknown configuration rules in .swift-format

Summary:

Helps developers surface any errors and typos in their .swift-format config files by showing a warning when running swift-format if the configuration includes invalid rules.
The actual check is in Frontend.swift.
The dictionary of rules for verification is in RuleRegistry, which is made public to be able to import it in swift-format target.

Example output:
 ❯ ../swift-format/.build/debug/swift-format lint Sources/SwiftSyntax/Convenience.swift
/Users/nategadzhi/src/apple/swift-syntax/.swift-format:10:10: warning: Configuration contains an unrecognized rule IAmABrokenRule
/Users/nategadzhi/src/apple/swift-syntax/.swift-format:14:10: warning: Configuration contains an unrecognized rule LolNope

Motivation:

Closes #607

Reviewing

I'm a beginner — pretty please "well actually" me if you see me making mistakes, I'm here to learn ❤
I've made RuleRegistry.rules public. We could in theory use _@spi instead. public seems simple and okay — do you think that's fine? RuleRegistry is now @_spi(Internal).
There are no tests whatsoever, as in the whole swift-format executable target is not tested. See #611. I think I can start us off with a very simple test that tests specifically Frontend.configuration().

Potential improvements

✅  This PR does not report the source location, hence the <unknown> in the warning line. Hypothetically, we could read the configuration into an array of strings, and find the index of the string containing the unsupported rule, and construct the source location from that. Since the performance hit is negligible, that could be a nice touch. Source location reporting is in, but it's sliiiightly ugly.

@allevato, how does that look to you? What else can I improve? If the general direction seems good, I would be happy to invest a bit more time and perhaps provide source locations.

@allevato, I've addressed your first round of feedback:

@_spi for RuleRegistry
Wording

Next up: potentially do source location. If you're happy with what is currently here, it would be okay by me to merge and follow up with an improvement. But, up to you!

Can you remove this and just emit a warning with no location?

Sounds great to me. I felt that it's too much ceremony, but liked the neat detail of having a line number.
I'll do that, and some light cleaning up — that should be ready in a couple of hours.

@allevato, alright, cleaned it up. Pained me to reduce clarity by removing source location, but you're right — re-reading config and doing raw string match is clumsy and buggy.


generic managed objects

provide generic managed objects

I'll close the PR as we did the changes in the generator.


The execution time of tests changes at repeated execution (durationMs), sometimes, at random times, the execution time goes beyond 2 minutes

Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
I am developing a prototype with a remote computer that executes tests against a web page at fixed times, and reports the resulting execution times of the tests to another server (JSON reporter).
The resulting times are saved in a database in the server. The remote computer uses Ubuntu 16.04, and the sole task is to execute the tests. There are no other jobs running on the remote.
I disabled automatic upgrades, or any other tasks that may alter the execution times. The problem is that I get varied result times, and sometimes the execution goes beyond two minutes.
To rule out problems in the web page, I tested with the basic test given as example in the testcafe distribution. I only modified the test names, as I use the test name to associate the duration time to the test in the database, and I included the page-model code in the same file so that the remote executes the test as one module (I include the test code).
The idea is that the server containing the database alerts when the execution times exceeds the expected value, but as it is now, the times do not reflect the response times of the page, but it seems that for some reason the execution of the test get stuck, and the resulting times do not reflect the real behavour of the page.
I attach the graphic with the results of several hours of test. The times are given in ms. Notice that at random times the times goes beyond 120000 (2 minutes).
The name of the variable in the graph coresponds to the test name (dialog = Handle native confirmation dialog)
I timed the process running in the remote, and the total time corresponds to the sum of reported durationMs, so it is not a problem of the value, the test process get stuck sometimes.
What is the expected behavior?
I would expect that at repeated executions, the durationMs should change at most a couple of seconds to reflect the response time of the page,
How would you reproduce the current behavior (if this is a bug)?
See attached code
Provide the test code and the tested page URL (if applicable)
Tested page URL: https://devexpress.github.io/testcafe/example/
Test code
import { Selector } from 'testcafe';

const label = Selector('label');

class Feature {
    constructor (text) {
        this.label    = label.withText(text);
        this.checkbox = this.label.find('input[type=checkbox]');
    }
}

export default class Page {
    constructor () {
        this.nameInput             = Selector('#developer-name');
        this.triedTestCafeCheckbox = Selector('#tried-test-cafe');
        this.populateButton        = Selector('#populate');
        this.submitButton          = Selector('#submit-button');
        this.results               = Selector('.result-content');
        this.macOSRadioButton      = Selector('input[type=radio][value=MacOS]');
        this.commentsTextArea      = Selector('#comments');

        this.featureList = [
            new Feature('Support for testing on remote devices'),
            new Feature('Re-using existing JavaScript code for testing'),
            new Feature('Easy embedding into a Continuous integration system')
        ];

        this.slider = {
            handle: Selector('.ui-slider-handle'),
            tick:   Selector('.slider-value')
        };

        this.interfaceSelect       = Selector('#preferred-interface');
        this.interfaceSelectOption = this.interfaceSelect.find('option');
    }
}
// Must send as one file to execution , so I included page-model instead
// import Page from './page-model';

fixture `A set of examples that illustrate how to use TestCafe API`
    .page `https://devexpress.github.io/testcafe/example/`;

// Page model
const page = new Page();

// Tests
// Changed name of test, as the name is used as field name in database
// test('Text typing basics', async t => {
test('textbasics', async t => {
    await t
        .typeText(page.nameInput, 'Peter') // Type name
        .typeText(page.nameInput, 'Paker', { replace: true }) // Replace with last name
        .typeText(page.nameInput, 'r', { caretPos: 2 }) // Correct last name
        .expect(page.nameInput.value).eql('Parker'); // Check result
});

// test('Click an array of labels and then check their states', async t => {
test('clickarray', async t => {
    for (const feature of page.featureList) {
        await t
            .click(feature.label)
            .expect(feature.checkbox.checked).ok();
    }
});

// test('Dealing with text using keyboard', async t => {
test('textkey', async t => {
    await t
        .typeText(page.nameInput, 'Peter Parker') // Type name
        .click(page.nameInput, { caretPos: 5 }) // Move caret position
        .pressKey('backspace') // Erase a character
        .expect(page.nameInput.value).eql('Pete Parker') // Check result
        .pressKey('home right . delete delete delete') // Pick even shorter form for name
        .expect(page.nameInput.value).eql('P. Parker'); // Check result
});

// test('Moving the slider', async t => {
test('slider', async t => {
    const initialOffset = await page.slider.handle.offsetLeft;

    await t
        .click(page.triedTestCafeCheckbox)
        .dragToElement(page.slider.handle, page.slider.tick.withText('9'))
        .expect(page.slider.handle.offsetLeft).gt(initialOffset);
});

// test('Dealing with text using selection', async t => {
test('textsel', async t => {
    await t
        .typeText(page.nameInput, 'Test Cafe')
        .selectText(page.nameInput, 7, 1)
        .pressKey('delete')
        .expect(page.nameInput.value).eql('Tfe'); // Check result
});

// test('Handle native confirmation dialog', async t => {
test('dialog', async t => {
    await t
        .setNativeDialogHandler(() => true)
        .click(page.populateButton);

    const dialogHistory = await t.getNativeDialogHistory();

    await t.expect(dialogHistory[0].text).eql('Reset information before proceeding?');

    await t
        .click(page.submitButton)
        .expect(page.results.innerText).contains('Peter Parker');
});

// test('Pick option from select', async t => {
test('select', async t => {
    await t
        .click(page.interfaceSelect)
        .click(page.interfaceSelectOption.withText('Both'))
        .expect(page.interfaceSelect.value).eql('Both');
});

// test('Filling a form', async t => {
test('form', async t => {
    // Fill some basic fields
    await t
        .typeText(page.nameInput, 'Bruce Wayne')
        .click(page.macOSRadioButton)
        .click(page.triedTestCafeCheckbox);

    // Let's leave a comment...
    await t
        .typeText(page.commentsTextArea, "It's...")
        .wait(500)
        .typeText(page.commentsTextArea, '\ngood');

    // I guess, I've changed my mind
    await t
        .wait(500)
        .selectTextAreaContent(page.commentsTextArea, 1, 0)
        .pressKey('delete')
        .typeText(page.commentsTextArea, 'awesome!!!');

    // Let's submit our form
    await t
        .wait(500)
        .click(page.submitButton)
        .expect(page.results.innerText).contains('Bruce Wayne');
});

Specify your

operating system: Ubuntu 16.04
testcafe version: 0.19.0
node.js version: 9.6.1

Hello @czdiaz! Thank you for the research done. However, I need time to do similar tests in my environment to check it in more controllable environment.
Also, when a webserver and testing server are on different machines, and they aren't connected in a dedicated LAN segment, network can significantly interfere in testing delays. I would suggest you to try to measure test execution time when both webserver and TestCafe are on the same machine, and maybe a simpler scenario, when only basic HTTP request to the webpage is measured.
Also, I'm implementing capturing video of tests running in Chrome & Firefox (https://github.com/DevExpress/testcafe/issues/2151), it'll be a very insightful feature for your case.

Hello Andrey! Thank you for your answer.
I attach a graph showing the response times for just loading a webpage. That is the reason why I started looking at this problem. In the graph, the normal response time is 4 seconds (time in ms), but sometimes it jumps to 20 seconds, and then 2 minutes !!
I expect that network delays and webserver load may produces changes in the response time of a couple of seconds, not more.
I attach a second graph, where I tested the response time of a web page using the selenium driver instead of testcafe. You may see that the time starts increasing when the webserver load increases at office times, but the difference stays below 2 seconds (time in seconds)

Hi @czdiaz
There are many reasons why the test execution can require different time for your complex system.
For example: database and webserver performance, network delays, browser updates, etc.
I will close the issue.
Try the latest stable TestCafe version (0.19.2).
If the problem persists, feel free to reopen the issue and provide us with a simple example showing it in action.


Wrong text object for [:] as an argument

I noticed this before, doesn't work correctly even with the new branch:
foo(123, [:], 456);

When on [:], pressing daa leads to foo(123, [], 456).

Which language is this? For ruby, this works fine for me, but it matters where the cursor is. If the cursor is on the [, the entire [:] gets deleted. Otherwise, the [ ] is considered a nested list, so : is its first (and only) argument.

hm, you're obviously right. That was an example in Groovy. But yes, of course, when inside the brackets, that should be the result. Sorry for the confusion.

Ok, I'm reopening so I don't open too many issues. :) When there is an empty-list argument ([]) and the cursor is on the closing brace, daa does nothing. On the opening in correctly removes the list.

I think I managed to fix it, in the single-arguments-on-multiple-lines branch (was going to be tricky to merge if I made it in master, and it's enough of an edge case I can afford to wait until I've merged the branch).

I've merged the branch, and it seems to be working well now. I'll close this issue, but feel free to reopen if it turns out there's a related problem.


do not merge Yizha/load uncorrelated events

Closing this as it was just created to help track down a bug; this branch is still in progress.


Strange behavior on ordering collection

Hello,
I get an annoying problem. I set a field (price with float type [1.16]) in header.
price: 1.16
In php code i make :
$collection->order(‘header.price’,“asc”);
All prices are not sort in “asc” direction. I got 2.44 before 1.497 :frowning:
(it’s seems to work well with desc…)
PHP command gettype give double for header.price type. Good for sorting, but does not work.
Any idea to workaround this strange behavior ?
Thanks for help,
Regards.

Rah :)
I think i got it 👍
$collection->order('header.price','asc',null,SORT_NUMERIC);
Changing the PHP flag it works :-).


More complete Size struct, more chat message handling, log datestamp and color

Please sign the CLA.

Note: this is a bug in CLAhub. @cubrr has signed the agreement.

Will test and merge this later today.

Don't know if it was the cause, but fixed the CLA issue by setting my email to public (it was private) and pushing a new commit.

Good to know, thanks.

Please try to submit one change per pull request - a second pull request (on a different branch) is better for the color thing.

Please try to submit one change per pull request - a second pull request (on a different branch) is better for the color thing.

Alright, sorry, reverted the changes. Still trying to get the hang of Git.

No worries, we've all been there.

Can you use git reset --hard HEAD~3 to simply purge the commits from the history, and then git push --force?

Can you use git reset --hard HEAD~3 to simply purge the commits from the history, and then git push --force?

You got it!


patch for dom serializer to emit bower_components as directory base for imports

patched cde_polymer_designer to emit bower_components instead of .. for imports' base directory; added potential todo wrt to importing polymer for every custom element, instead of current behavior which imports iff the imports list is empty.
rational for patch: whenever I use PD I always have to replace the .. base directory with bower_components, (assuming the custom element resides in the top directory).  Since polymer documentation recommends obtaining polymer using bower with something like bower install Polymer/polymer in the base directory, it seems safe to assume polymer will be in a bower_components directory in the top of the project, and hence the use for renaming the base directory for emitted components.

Sorry for taking forever to get to this. I completely agree with your rationale, and actually have done the same manual postprocessing myself many times. However, there are 3 things to consider:

In general, if we are to fix this, we'd better do that outside of the imported Polymer Designer source, which is everything under lib/src/. Modifying lib/src/ will make the process of bringing in an updated version of Polymer Designer very difficult and regression-prone. This consideration was the reason why I modified the Designer's CSS and injected the proxy script into the top page from the outside code, rather than modifying the Designer's code directly (would be much easier!).
On the other hand, this incarnation of Polymer Designer is in limbo, and will likely be replaced by completely new code at some future date.
But: there currently is a newer version which I haven't integrated yet.

So here we are with this. At a minimum, let me try to incorporate the newer Designer first; then we'll decide about your change.

Yea given polymer 1.0 was just released, as well as polymer-starter-kit, might be better to adapt/integrate with the import pattern of the latter?
For example, the current structure looks something  like:
|.
├── app
│   ├── elements
│   │   ├── app-theme.html
│   │   ├── elements.html
│   │   ├── sweet-element
│   │   │   └── sweet-element.html
│   │   └── my-app.html
│   ├── images
│   ├── index.html
│   ├── scripts
│   │   └── app.js
│   └── styles
│        ├── main.css
│        └── styles.css.backup
├── bower.json
├── node_modules
├── bower_components
├── gulpfile.js
├── package.json
└── wct.conf.js

where index.html imports app/elements.html, and elements.html imports everything else, including custom elements.
Moreover, due to this structure and the use of gulp, the imports are all now relative, e.g.: ../bower_components/.
So it might be best to integrate the generated paths for this new method, assuming CDE integrates or provides templates for a polymer-starter-app kind of template?

:+1:  @m4b Might make sense to add all the new element product lines as well - not just paper in order to make it easier to create new codelab projects

I've filed #3977 for this.


Remove custom presentation exchange json schema

Now that presentation exchange has the frame property included we can remove the custom schema included in this spec

Would love PR on this.

todo: remove the embedded json schema and link to the normative json schema.