text:
Docs: Add sampling and RAM to FAQ

@eyalkoren - adapted Felix's responses here to apply broadly and added to FAQ. Please double check for technical accuracy.

Codecov Report

Merging #366 into master will increase coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #366      +/-   ##
============================================
+ Coverage     72.39%   72.44%   +0.05%
  Complexity     1195     1195
============================================
  Files           131      131
  Lines          4484     4478       -6
  Branches        459      456       -3
============================================
- Hits           3246     3244       -2
+ Misses         1029     1025       -4
  Partials        209      209

Impacted Files
Coverage Δ
Complexity Δ

.../java/co/elastic/apm/servlet/ServletApiAdvice.java
6.66% <0%> (-3.02%)
2% <0%> (ø)

...lastic/apm/servlet/FilterChainInstrumentation.java
100% <0%> (ø)
7% <0%> (ø)
:arrow_down:

.../elastic/apm/servlet/ServletTransactionHelper.java
73.01% <0%> (ø)
38% <0%> (ø)
:arrow_down:

...a/co/elastic/apm/servlet/AsyncInstrumentation.java
78.94% <0%> (+13.72%)
7% <0%> (ø)
:arrow_down:

Continue to review full report at Codecov.

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

Thanks @eyalkoren! See my comments above. As for sample vs sampling - I did a little research and "sample" seems to be the prevalent term, therefor, I've changed the title and references to "sample". I'm not sure there's a right answer here, so if you feel strongly the other way, just let me know.

repo: elastic/apm-agent-java


text:
pubsublite(consumer): Fix AtLeastOnce re-delivery

Description
Fixes the previously Acked / Nacked failed to process events. Implements a simple dead-lettering of 2 processing attempts, after which the event will be nacked and logged.
Related issues
Fixes the PubSub Lite failures from #116

@kruskall That is because the consumer will stop consuming after the context is cancelled (after 60s). The timeout needs to be increased to at least 90s, possibly better to 120s.
The first message is consumed in 35-40s (This is because the PubSub consumer is a bit slow to initialize, docs point to up to 60s for initialization, after that it's low-latency high throughput), and the second one is consumed in the same timeline, which means that it would consume the unacknowledged message in at least 70-80s.

Understood! Thanks for the details! :bow:

source: gharchive/pull-request

authors: kruskall marclop

repo: elastic/apm-queue

license_type: permissive

license_source: github-api


text:
Filter.Term vs Filter.Terms parameter types

The api is inconsistent in between Term and Terms.
For example I can do this
Filter<T>.Term("age", 21);

but not
Filter<T>.Terms("age", new int[] { 21, 22 });

Please note that this is an example of the inconsistencies...

Agreed, it should be Terms<K>
We have a few other inconsistencies (https://github.com/elastic/elasticsearch-net/issues/1549) that we're aware of- this is something we're definitely going to address for 2.0 alpha.
Thanks for raising this.

See last attached commit

source: gharchive/issue

authors: Mpdreamz gmarz niemyjski

repo: elastic/elasticsearch-net


text:
Unable to get the records using POST

NEST/Elasticsearch.Net version  : 6.0.0:
Elasticsearch version : 6.0.0:
Description of the problem including expected versus actual behavior:
I am able to get the values using GET call but unable to get the same values using post call using below code.
string elasticsearchUrl = "";
string indexName = "";
Uri node = new System.Uri(elasticsearchUrl);
ConnectionSettings settings = new ConnectionSettings(node);
settings.DefaultIndex(indexName)
.PrettyJson()
.DisableDirectStreaming();
IElasticClient esClient = new ElasticClient(settings);
var response = esClient.Search(s => s.Size(2).Query(q => q.MatchAll()));
var count= response.Documents.Count;
Provide ConnectionSettings (if relevant):
Debug Information:
Invalid NEST response built from a unsuccessful low level call on POST: /<index_name>/providers/_search?pretty=true&typed_keys=true
Audit trail of this API call:

[1] BadRequest: Node: http://<server_url>/ Took: 00:00:01.2758549

OriginalException: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync()
at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Elasticsearch.Net.HttpConnection.Request[TResponse](RequestData requestData) in c:\Projects\elastic\net-master\src\Elasticsearch.Net\Connection\HttpConnection-CoreFx.cs:line 73
Request:
{"query":{"match_all":{}},"size":2}
Response:

Hi @anaparthi-k
The issue appears to be in the code on lines;
string elasticsearchUrl = "";
string indexName = "";

Usually I would expect there to be values in these two variable assignments, for example;
string elasticsearchUrl = "http://localhost:9200";
string indexName = "my_index";

Can you please try again with the correct values in your environment?

I have placed the valid values but for security reasons I removed from there. Imagine the above code with valid URL and Index is provided in respective values. By the way I can able to the results for get call method but not for POST call.

OK, thank you for clarifying.
I can see that you are using version 6.0.0 of the client, would you be able to try using the latest (at time of writing 6.8.4) and see if the problem still persists? https://www.nuget.org/packages/NEST/6.8.4
I have a few additional questions:

Presumably you are able to access Elasticsearch through the web browser (using a GET to "/")?
Have you tried an alternate POST operation? Perhaps a bulk request?
Are you using a proxy, or are you in an environment, where HTTP POST is blocked?
Are you able to POST using curl, as opposed to the client? Please try:

curl -X GET "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
{
    "query": {
        "match_all": {}
    }
}

'

We’re closing this issue due to inactivity; if you’re still in need of resolution, feel free to re-open with the additional details and we'd be glad to help you out 👍

authors: anaparthi-k codebrain russcam


text:
Fix/7.x/clean up type extensions

Make sure unused code with quite some complexity is removed

the failing tests don't look related to this change. Merging in

authors: Mpdreamz russcam


text:
Make architecture configurable

This allows to set the apt architecture.

I have signed the CLA. But i am not sure, if we already have one for my company. How to proceed?

repo: elastic/puppet-elastic-stack


text:
feat: Add hotkey/menu item to open new window when 0 windows open on macOS

Summary
Resolves #14.
Adds the ability to open a new window with the hotkey CMD/CTRL+N, intended for the macOS behavior where the application has 0 open windows but continues to run.
This UX differs from other platforms, but since it will only run when there are 0 windows open (and therefore the process should have already terminated), I didn't think we needed to add OS-specific checks.
The inspiration for this mirrors other electron applications like Slack or VS Code; when all of their windows are closed and the app is focused, CMD+N triggers a re-opening of the app with a fresh window.
Implementation details
This is WIP for the reasons explained below:
One way this could improve is to disable the menu option when there is > 1 window available. This might entail rebuilding the menu when certain handlers fire on the electron side, but in my initial investigations I couldn't resolve this quickly. It's probably worth doing to ensure we're maximizing the UX value here. We might also want to consider a different hotkey as we may want to use CMD+N for something different in the future.
How to validate this change

Run the recorder on macOS. Close the recorder window with CMD+W, or by use of the mouse. Send CMD+N and see that a new window appears.
Do this again, but use the menu in the OS's top bar and see it also reopens the window.
Ensure that this functionality does nothing when a window is already open.

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-04-11T16:39:11.150+0000

Duration: 15 min 57 sec

:robot: GitHub comments
To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

I'm going to defer merging this until #243 is closed.

authors: apmmachine justinkambic

repo: elastic/synthetics-recorder

license: MIT


text:
Add journey.duration.us to the JSON spec

To keep it consistent with step duration calculation, Synthetics should write journey.duration.us and get rid of start and end  values.
We also need to add this to the heartbeat fields spec - https://github.com/elastic/beats/blob/b9ced47dba8bb55faa3b2b834fd6529d3c4d0919/heartbeat/_meta/fields.common.yml#L164
We will also need to add this to the Elastic Synthetics integration field spec

Closing as it isn't something we'll act on soon.

authors: andrewvc vigneshshanmugam

repo: elastic/synthetics


text:
[3] Tutorial: Compliant Kubernetes on Exoscale SKS

Acceptance criteria:

https://compliantkubernetes.io/operator-manual/lifecycle/exoscale-sks contains prose and code which allows someone to set up Compliant Kubernetes on Exoscale SKS.
Said document contains code that can be copy-pasted.
Said code has all "hard-coded" file locations, paths, key names, cluster names, etc. in shell variables.

Still relevant?

I'd say no. @tordsson

authors: OlleLarsson cristiklein

repo: elastisys/compliantkubernetes-apps


text:
apps sc: Use emptyDir with log-manager compaction

What this PR does / why we need it:
So it has space for files. (Else it would write to a tmpfs mount which is normally in memory, which is accounted towards it resources usage.)
Checklist:

[x] Added relevant notes to WIP-CHANGELOG.md
[x] Proper commit message prefix on all commits
[ ] Updated the public facing documentation
Is this changeset backwards compatible for existing clusters? Applying:

[x] is completely transparent, will not impact the workload in any way.
[ ] requires running a migration script.
[ ] will create noticeable cluster degradation.
E.g. logs or metrics are not being collected or Kubernetes API server
will not be responding while upgrading.
[ ] requires draining and/or replacing nodes.
[ ] will change any APIs.
E.g. removes or changes any CK8S config options or Kubernetes APIs.
[ ] will break the cluster.
I.e. full cluster migration is required.

Chart checklist (pick exactly one):

[ ] I upgraded no Chart.
[ ] I upgraded a Chart and determined that no migration steps are needed.
[ ] I upgraded a Chart and added migration steps.

Pipeline config (if applicable)
If you change some config options (e.g. add/rename variable or change the default value) you may need to update the config used by the pipeline in pipeline/config.

Error creating: admission webhook "validation.gatekeeper.sh" denied the request: [volumes-fluentd-system-log-manager] The volume type emptyDir is not allowed

Error creating: admission webhook "validation.gatekeeper.sh" denied the request: [volumes-fluentd-system-log-manager] The volume type emptyDir is not allowed

Must've missed to add that change when committing. :sweat_smile:

authors: aarnq crssnd


text:
Add Eslint to the project and create a linting script

This pull request adds Eslint to the project, creates basic eslint rules, implements two script for linting checks and fixes and add linting to the tests during the end-to-end tests in the Test Github workflow. As part of this pull request, all the eslint errors that appeared after adding the rules has been fixed.

coverage: 100.0%. remained the same
when pulling 0b99ea17a2c5952225d8f2cc91100ac5090abe98 on implement_linting_script
into a9df6c8419b2ba63fd3b577372afb92c8429aef9 on master.

authors: coveralls elchininet

repo: elchininet/custom-sidebar


text:
Added Alacritty Theme

basically what the title says.

Do you want to move repo into org?

yes.

repo: eldritch-theme/eldritch


text:
Error Compiling platform.ini and main.cpp

This is my error Error: Invalid '/Users/riley/Downloads/DSTIKE-NTP-Wristwatch-master-3/platformio.ini' (project configuration file): 'While reading from '/Users/riley/Downloads/DSTIKE-NTP-Wristwatch-master-3/platformio.ini' [line 18]: option 'lib_deps' in section 'env:esp07' already exists

Interesting. In fact, there is an error, because "lib_deps" should only be called once. I don't know why it compiled without error message so far.
anyway, it should be called like this in the Platformio.ini:
lib_deps =
28 ; Adafruit NeoPixel
2978 ; ESP8266 and ESP32 OLED driver for SSD1306 displays
Many thanks for the hint

repo: electricidea/DSTIKE-NTP-Wristwatch


text:
Fix patch sm audio

For some reason the Patch SM is missing PB_11 in PinMap_I2C_SDA in PeripheralPins_DAISY_PATCH_SM.c
I've got a more legit patch in for that here, but in the meantime here's a workaround.
Test Procedure
Checked audio works on:
Patch SM/Triplesaw
Daisy Pod/Synth Voice
Daisy Patch/VCO

Similar test here, including letting the Patch SM sit unpowered briefly between firmware swaps to make sure the codec gets configured from a cold start.
I think it's good.
We'll need to update library version, etc. before releasing.

authors: beserge stephenhensley

repo: electro-smith/DaisyDuino


text:
Electron packager should throw error if package.json not found in source directory

[ X ] I have read the contribution documentation for this project.
[ X ] I agree to follow the code of conduct that this project follows, as appropriate.
[ X ] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:
When building windows exe file using node if package.json is not found in source directory (dir), electron-packager tries
to find it by going to parent folder recursively until finds any package.json.
If found package.json has "electron" dependency electron-packager it
just builds that parent folder where package.json is found.
I think that proper way should be throwing an error if you source folder is not
prepared properly, not trying to build something else and finish with success.

What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the packager() function?
dir: string,
out: string,
platform: 'darwin',
overwrite: true,
arch: 'x64'

Thanks for filing an issue, but this behavior is by design - there are use cases where this is desired. Please see https://github.com/electron-userland/electron-packager/issues/37 where the feature was first discussed, and https://github.com/electron-userland/electron-packager/pull/94 where the initial implementation was discussed.

in #37 I see that the problem was configuring package.json in too many places.
But I am not sure why whould electron-packager even try to build wrong path where package.json is found.
Current project structure is something like this: apps/app1, apps/app2
Apps folder has package.json and I am trying to build app1. Since electron-packager is recursively trying to find package.json it thinks that it needs to build "apps" folder, not "apps/app1". So it doesn't build my app, but builds somehow apps folder which creates executable file which is errored.
I am worried that this kind of behaviour could be misleading.

It should only select a given package.json if electron is found in either dependencies or devDependencies. Why does your top-level package.json have electron as a dependency if it's not an Electron app?

Because in apps folder there are many similar electron applications which share the same package.json. In this case it doesn't make sense to separately init npm in all applications, so we use apps folder for this.

You may be better off using an internal (private) module that contains common dependencies, rather than a top-level package.json.

Thank you for advice.
I would propose that if package.json is not found in source directory than electron-packager should at least output a warning in console saying something like

package.json not found in source dir, searching recursively.

Just for information for user.

Unfortunately, Electron Packager doesn't know that information, all of that logic is delegated to get-package-info.

authors: bonzzy malept

repo: electron-userland/electron-packager

license_source: bigquery


text:
Update std:move call to fix macOS compiler error

Refs #266

/cc @deepak1556 does this look right?

repo: electron/brightray


text:
feat: ability to trigger work via commands in comments

Suggested by @clavin here; giving it an issue so that the idea doesn't get lost

Maybe I'm thinking too far head, but question: should this bot be proactive in identifying things it can run in an issue, or should it instead be invoked like a command? The benefit of the latter is that we can easily activate the bot after some back-and-forth, e.g. asking the reporter to create a fiddle.

This could be useful when we need to kick off Fiddle runs manually, the same way we do with Trop when it gets stuck.

I think this ended up being our original implementation anyways. Closing.

authors: ckerr erickzhao

repo: electron/bugbot


text:
Compile with c++11 on Linux as well

The new version of node-minidump does not compile on Linux as there was one flag missing to enable c++11 features.
I would have used -std=c++11 instead of -std=c++0x, but for the support of older GCC version, the later one works better.
Bug reporting the issue:
https://github.com/electron/electron/issues/7892
Tested on:
OS: Ubuntu 12.04 (old I know but had no choice)
Compiler: GCC 4.9.4

Thanks for this 🚢 Published in 0.11.0

authors: kevinsawicki pierrefourgeaud

repo: electron/node-minidump


text:
Move to new Fortran API

@mtaillefumier @simonpintarelli @AdhocMan @haampie
I plan to update the Fortran API. I propose to merge everything which is stable to master branch and tag it. Then I will update the develop branch with the new API and make a new pre-release. At this moment, QE and CP2K need to be adjusted to the new pre-release. Do you seen any obvious problems that I missed?

Seems fine to me. Is there any advantage of keeping the develop branch around actually?

@haampie Yes, it helps to test new functionality. We had a short discussion here
https://github.com/electronic-structure/SIRIUS/issues/464

It seems fine to me as well. I will adjust cp2k when the new interface is in develop.

authors: haampie mtaillefumier toxa81

repo: electronic-structure/SIRIUS


text:
Cannot GET /

Problem Description
I get this error Cannot GET / when trying to start with yarn start
Steps To Reproduce
Initial: Get the docker compose file provided by elegant themes here.

docker-compose up -d
docker-compose exec -u 1000 wordpress divi-dev setup
docker-compose exec -u 1000 wordpress /bin/bash
navigate to the plugin directory
run yarn start
navigate to localhost:3000

Screenshot and/or gif

Sorry for the delay response. Are you still experiencing this issue?

repo: elegantthemes/create-divi-extension


text:
在网页内占用大量css

在网页内占用大量css，希望优化

This is a new feature of Nuxt 3.6.0
export default defineNuxtConfig({
  modules: [ElementPlus],
  experimental: { inlineSSRStyles: false },
})

authors: LiangDream tolking

repo: element-plus/element-plus-nuxt


text:
🛑 Plex is down

In aa2a74b, Plex (https://plex.lepallec.tv/web/index.html) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Plex is back up in 1dd60ba.

repo: elepallec/upptime


text:
Multiple auteurs

BESOIN FONCTIONNEL

Quel est le besoin ?

Pouvoir afficher plusieurs auteurs pour un article

Comment valider ?

Voir plusieurs auteurs pour un article
SPECIFICATION TECHNIQUE
J'ai vu plusieurs solutions :
http://www.codingpedia.org/ama/how-to-handle-multiple-authors-in-jekyll/
https://stackoverflow.com/questions/15189008/how-can-i-have-multiple-authors-for-one-post-in-jekyll
https://gist.github.com/ravasthi/1834570
En gros c'est pas trop dur, faut juste définir comment on utilise le champ author dans nos posts et après modifier le template
Vous en pensez quoi ?
Ex : https://eleven-labs.github.io/fr/retour-symfony-live-paris-2017/ on est 2 à avoir écrit l'article et aucun auteur ne s'affiche

ce que propose https://stackoverflow.com/questions/15189008/how-can-i-have-multiple-authors-for-one-post-in-jekyll me parait parfait :)

ca a cassé la liste des articles pour un auteur

il est dessus :)

Cey bon :)

authors: CaptainJojo VEBERArnaud snroki

license: mit


text:
🛑 MCU - GRH is down

In 8836ed9, MCU - GRH (http://produccion.cdeluruguay.gob.ar/GRH/forms/login.jsp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MCU - GRH is back up in b7c35b0.

repo: elfoche/monitoreo


text:
🛑 UCU - Koha is down

In 91507b2, UCU - Koha (http://biblioteca.ucu.edu.ar/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: UCU - Koha is back up in cbf4031 after 19 minutes.


text:
🛑 UNER - DDJJ is down

In bf657e6, UNER - DDJJ (https://autogestion.uner.edu.ar/) was down:

HTTP code: 502
Response time: 1508 ms

Resolved: UNER - DDJJ is back up in 98a2cb3 after 7 minutes.


text:
Open source Apple Music plugin

Picking up from https://x.com/ElgatoSupport/status/1860025327025816031
I'd like to have dial support for the Apple Music plugin owned by Elgato at https://marketplace.elgato.com/product/apple-music-719b94df-ee43-47b3-a7c0-a3ea176ebbec. I noticed it's not open-sourced, making it difficult for anybody else to contribute dial support for Apple Music. Would you consider open sourcing that on here and adding a dial for music volume?

Hi @bradgessler, I'm afraid we don't have plans to open source the Apple Music plugins at this time.
If you were interested in creating a new plugin that has expanded Apple Music functionality, we would love to see it on Marketplace! For more information on creating plugins, you can refer to our SDK documentation, or if you have any questions, please feel free to join our Marketplace Makers community Discord.

I would if I had time, but I don't. Was hoping this could be open sourced and a dial could be quickly added.
Could you run up the propriety chain a request to add a volume dial for Apple Music? That's my objective—I don't actually care if it's OSS or not.

No problems — I've added your feature request to our plugin board. I appreciate you taking the time to provide us with feedback.

authors: GeekyEggo bradgessler

repo: elgatosf/streamdeck


text:
Prefer to use FETCHCONTENT_BASE_DIR when specifying include directories from FetchContent (Dawn)

This variable controls the point under which all content population directories are collected, also when not changed it points to it. If it was changed target_include_directories would now include nonexistent directory.
Now that I looked at it, ${dawn_SOURCE_DIR} was also defined. Either of them would work

This one

Good catch, thanks! Fixed by 35bad0c

authors: NoctemCat eliemichel

repo: eliemichel/WebGPU-distribution


text:
Property setter don't work in QCard descendant

I have created my own component as a descendant of QCard which has a property interval. My code looks like this:
    class TimePicker(jp.QCard):
    ....
    def get_interval(self):
        return self.__interval
    def set_interval(self, val):
        ....
        self.__interval = val
    interval = property(get_interval, set_interval)
    ....

When I create an instance picker = TimePicker() and I do an assignment, e.g. picker.interval=5, the setter function is not invoked. No error raised, nothing. Just the function is not called (and the assignment does not happen).
A direct call to picker.set_interval(5) produces the desired result. There is no issue with that function.
Just to narrow down the issue, I changed the mother class from jp.QCard to jp.Div. Surprisingly, then the property setter works as it should. So there seems to be a problem in the implementation of jp.QCard with the execution of property setter functions.

Performed some deeper analysis and found a bug in quasarcomponents.py
Inside class jp.QDiv, ancestor of jp.QCard, function __setattr__ is overridden
    def __setattr__(self, key, value):
        if key in self.slots:
            q_slot = key[:key.index('_slot')].replace('_', '-')
            self.add_scoped_slot(q_slot, value)
        else:
            super().__setattr__(key, value)
#            self.__dict__[key] = value

The last line (which I commented out)  was the problem. Instead of directly writing value into __dict__, better call the method of the parent class  super().__setattr__(key, value). I inserted that line.
Now property setters work with Quasar classes.

Thank you very much for catching this. I made the change and it will be in the new version.

repo: elimintz/justpy


text:
How to handle multiple row (de)selection in ag.Grid?

In the grid options I have enabled multiple selection:
'rowSelection': 'multiple',

For one one the columns I have enabled checkbox selection:
 'columnDefs': [
                {'headerName': "Title", 'field': 'title', 'checkboxSelection': True},
:

I have setup an event handler for the selectionChanged event. And indeed it gets called when one or more rows are selected.
However, I'm at a loss on how to get the selected rows. According to the ag.Grid docs I have to call api.getSelectedNodes() or api.getSelectedRows() to get them.
I have tried to do something like this (and some variations):
result = await comp.run_method('this.api.getSelectedNodes()', msg.websocket)

but that only returns True.
Any suggestions?

I have not implemented yet the run_method for ag-grid, but in this case you don't need it. Please see example below.
import justpy as jp

grid_options = """
{
    rowSelection: 'multiple',
    defaultColDef: {
        filter: true,
        sortable: true,
        resizable: true,
        cellStyle: {textAlign: 'center'},
        headerClass: 'font-bold'
    },
      columnDefs: [
      {headerName: "Make", field: "make"},
      {headerName: "Model", field: "model"},
      {headerName: "Price", field: "price"}
    ],
      rowData: [
      {make: "Toyota", model: "Celica", price: 35000},
      {make: "Ford", model: "Mondeo", price: 32000},
      {make: "Porsche", model: "Boxter", price: 72000}
    ]
}
"""

def row_selected(self, msg):
    print(msg.selected, msg)
    wp = msg.page
    if msg.selected:
        wp.selected_rows[msg.rowIndex] = msg.data
    else:
        wp.selected_rows.pop(msg.rowIndex)
    s = f'Selected rows {sorted(list(wp.selected_rows.keys()))}'
    for i in sorted(wp.selected_rows):
        s = f'{s}\n Row {i}  Data: {wp.selected_rows[i]}'
    if wp.selected_rows:
        wp.rows_div.text = s
    else:
        wp.rows_div.text = 'No row selected'

def grid_test():
    wp = jp.WebPage()
    wp.selected_rows = {}  # Dictionary holding selected rows
    grid = jp.AgGrid(a=wp, options=grid_options, style='height: 200px; width: 300px; margin: 0.25em')
    grid.options.columnDefs[0].checkboxSelection = True
    grid.on('rowSelected', row_selected)
    wp.rows_div = jp.Pre(text='Data will go here when you select rows', classes='border text-lg', a=wp)
    return wp

jp.justpy(grid_test)

The basic idea is to keep a dictionary of the selected rows. Note that msg.selected is True if the row is selected and False if it is deselected.
Let me know if something is not clear.

Keeping track of the selected items oneself is a fine solution. Thx.
Is the call_method something that has to be supported on the Vue side?

Yes. Also, the added twist is that you need to communicate back again with the server. It is doable, but I haven't gotten around to it yet.

So even where the call_method is implemented it does not return anything?

When I implement it, it will return a value via some event handler. I have not thought out all the details yet.

OK, thx

authors: elimintz mjmare


text:
Profile data lookups and processing

It has been a while since we did some performance analysis of the data processing in Ecto. There might be some room for a few optimizations, especially now that all processing happens under Ecto's control and not inside an adapter.

I have done this and speed up things about 30%. There is some improvement here but a good chunk of the time now is spent on the datetime processing. I believe the calendar processing in Elixir is faster than the one in Erlang but we can't migrate Postgrex to use it before Elixir v1.5.
Here is the data for loading 5000 records from the benchmark suite.
:fprof.apply_start_stop/4                                            0    2385.651       0.018
anonymous fn/0 in :elixir_compiler_10.__FILE__/1                     1    2385.621       0.003
Ecto.Bench.PgRepo.all/2                                              1    2385.618       0.002
Ecto.Repo.Queryable.all/3                                            1    2385.616       0.009
Ecto.Repo.Queryable.execute/4                                        1    2385.578       0.017
Enum.map/2                                                           5    1365.533       0.009
Enum."-map/2-lists^map/1-0-"/2                                   10013    1365.524      63.624
Ecto.Repo.Assoc.query/4                                              1    1301.425       0.002
anonymous fn/6 in Ecto.Repo.Queryable.preprocessor/3              5000    1272.459      23.710
Ecto.Repo.Queryable.process_source/6                              5000    1205.635      23.426
Ecto.Schema.__adapter_load__/5                                    5000    1155.227      10.531
Ecto.Schema.adapter_load/6                                       45000    1144.688     203.779
Ecto.Adapters.Postgres.execute/5                                     1    1019.784       0.002
Ecto.Adapters.SQL.execute/5                                          1    1019.782       0.005
Ecto.Adapters.SQL.execute!/4                                         1    1019.767       0.003
Ecto.Adapters.SQL.sql_call/5                                         1    1019.764       0.007
Ecto.Adapters.Postgres.Connection.execute/4                          1    1019.742       0.008
Postgrex.execute/4                                                   1    1019.734       0.002
DBConnection.execute/4                                               1    1019.726       0.014
DBConnection.run/6                                                   1    1017.524       0.009
anonymous fn/5 in DBConnection.execute/4                             1    1017.280       0.002
DBConnection.run_execute/5                                           1    1017.278       0.004
DBConnection.Holder.handle/4                                         1    1017.270       0.002
DBConnection.Holder.handle_or_cleanup/5                              1    1017.268       0.004
DBConnection.Holder.holder_apply/4                                   1    1017.261       0.007
Postgrex.Protocol.handle_execute/4                                   1    1017.244       0.004
Postgrex.Protocol.handle_execute_result/4                            1    1017.233       0.004
Postgrex.Protocol.handle_prepare_execute/4                           1    1017.224       0.006
Postgrex.Protocol.bind_execute/4                                     1    1015.662       0.012
Postgrex.Protocol.recv_execute/4                                     1    1014.725       0.002
Postgrex.Protocol.recv_execute/5                                     1    1014.723       0.008
Postgrex.Protocol.rows_recv/4                                        3    1014.700       0.029
Postgrex.Types.decode_rows/4                                         3    1012.929       0.010
Postgrex.DefaultTypes.decode_rows/3                                  3    1012.919       0.009
Postgrex.DefaultTypes.decode_rows/4                               5003    1012.910      11.454
Postgrex.DefaultTypes."Elixir.Postgrex.Extensions.Int8"/6         5000    1012.900      12.826
Postgrex.DefaultTypes."Elixir.Postgrex.Extensions.Raw"/6         15000    1012.891      59.785
Postgrex.DefaultTypes."Elixir.Postgrex.Extensions.Time"/6         5000    1012.814      21.628
Postgrex.DefaultTypes."Elixir.Postgrex.Extensions.Date"/6         5000    1012.692      20.767
Postgrex.DefaultTypes."Elixir.Postgrex.Extensions.Timestamp"      5000    1012.438      21.211
Postgrex.DefaultTypes."Elixir.Postgrex.Extensions.UUID"/6         5000    1012.119      31.058
Postgrex.Protocol.rows_recv/5                                        2    1005.014       0.054
Ecto.Schema.adapter_load!/5                                      40000     892.712     144.742
Ecto.Type.adapter_load/3                                         40000     745.476     211.729
Ecto.Type.process_loaders/3                                      35000     374.290     116.916
Postgrex.Extensions.Timestamp.microsecond_to_elixir/1             5000     372.574      19.764
:calendar.gregorian_days_to_date/1                               10001     337.429      48.789
Postgrex.Extensions.Date.day_to_elixir/1                          5000     286.043      18.694
Ecto.Type.load/3                                                 20000     256.690      80.565
Postgrex.Extensions.Timestamp.split/1                             5000     226.892      10.463
Postgrex.Extensions.Timestamp.split/2                             5000     216.407      16.095
:calendar.gregorian_seconds_to_datetime/1                         5001     200.362      25.917
:calendar.day_to_year/1                                          10001     188.547      50.306
NaiveDateTime.from_erl!/2                                         5000     125.876       9.334
:calendar.dty/3                                                  30003     120.951      89.684
NaiveDateTime.from_erl!/3                                         5000     116.533      15.651
Postgrex.Extensions.Time.microsecond_to_elixir/1                  5000     108.574      20.762
NaiveDateTime.from_erl/3                                          5000     100.868      19.539
:calendar.year_day_to_date/2                                     10001      99.657      48.296
Date.from_erl!/1                                                  5000      96.694      10.666
Date.from_erl!/2                                                  5000      85.812      17.561
Time.from_erl!/2                                                  5000      79.221       9.457
Ecto.Type.type/1                                                 15000      74.078      51.354
NaiveDateTime.new/7                                               5000      73.426       9.801
Time.from_erl!/3                                                  5000      69.764      16.056
Date.from_erl/2                                                   5000      67.710      17.959
Ecto.Repo.Preloader.query/6                                          1      64.066       0.004
NaiveDateTime.new/8                                               5000      63.625      26.002
Ecto.Type.of_base_type?/2                                        40000      58.862      58.663
Time.from_erl/3                                                   5000      53.708      20.699
Ecto.Type.load_fun/1                                             20000      49.986      39.785
Calendar.ISO.valid_date?/3                                       10000      49.004      35.373
:calendar.dy/1                                                   30003      47.239      42.142
:garbage_collect                                                    77      45.372      45.372
Ecto.Repo.Queryable.preprocess/4                                 10000      43.061      35.071
Date.new/4                                                        5000      42.422      16.606
anonymous fn/1 in Ecto.Type.load_fun/1                            5000      39.629      10.700
anonymous fn/1 in Ecto.Type.load_fun/1                            5000      38.961      10.547
:calendar.is_leap_year/1                                         10001      34.681      19.934
Map.new/1                                                         5000      30.679      18.734
Enum.reverse/1                                                    5005      30.328      17.150
anonymous fn/3 in Ecto.Repo.Queryable.postprocessor/4             5000      28.980      19.437
Ecto.Type.load_time/1                                             5000      28.894      20.034
Ecto.UUID.load/1                                                  5000      28.586      11.094
:binary.copy/1                                                   20000      28.478      28.478
Ecto.Type.load_naive_datetime/1                                   5000      28.394      20.277
Ecto.Schema.__struct_load__/3                                     5000      26.587      19.234
Ecto.Adapters.Postgres.loaders/2                                 15000      24.503      22.684
Time.new/5                                                        5000      23.926      16.700
Ecto.Type.primitive?/1                                           15000      22.239      22.133
anonymous fn/1 in Ecto.Type.load_fun/1                            5000      18.670      10.744
Ecto.UUID.encode/1                                                5000      17.249      16.854
Ecto.Repo.Queryable.process/4                                    10000      17.195      16.935
Ecto.Type.truncate_usec/1                                        10000      16.895      16.377
:calendar.year_day_to_date2/2                                    10001      16.433      14.902
Calendar.ISO.valid_time?/4                                       10000      15.492      14.669
:calendar.seconds_to_time/1                                      10001      14.385      14.170
:calendar.is_leap_year1/1                                        10001      14.060      14.052
Calendar.ISO.days_in_month/2                                     10000      13.557      13.531
:suspend                                                           410      12.675       0.000
:maps.from_list/1                                                 5000      11.217      11.217
:maps.merge/2                                                     5000      10.406      10.406
:erlang.make_fun/3                                                5000       8.721       8.721
Time.convert/2                                                    5000       8.158       7.499
Ecto.Type.dump_binary/1                                           5000       7.916       7.631
NaiveDateTime.convert/2                                           5000       7.872       7.855
:lists.reverse/2                                                  5011       7.844       7.844
Ecto.Bench.User.__schema__/1                                      5002       7.315       7.315
Date.convert/2                                                    5000       7.301       7.292
:gen_tcp.recv/3                                                      4       2.929       0.025
:inet_tcp.recv/3                                                     4       2.876       0.011
:prim_inet.recv/3                                                    4       2.865       0.008
:prim_inet.recv0/3                                                   4       2.857       0.036
Postgrex.Protocol.msg_recv/3                                         9       2.046       0.056
Postgrex.Protocol.msg_recv/4                                         2       1.803       0.025
Enum.reduce/3                                                       11       1.702       0.018
Enum."-reduce/3-lists^foldl/2-0-"/3                                 43       1.692       0.102
Postgrex.Protocol.close_parse_describe_flush/3                       1       1.543       0.012
DBConnection.log/4                                                   1       1.449       0.006
DBConnection.log/5                                                   1       1.443       0.010
DBConnection.log/2                                                   1       1.375       0.003
anonymous fn/4 in Ecto.Adapters.SQL.with_log/3                       1       1.372       0.003
Ecto.Adapters.SQL.log/4                                              1       1.369       0.017
Ecto.LogEntry.apply/2                                                1       1.304       0.003
anonymous fn/2 in Ecto.LogEntry.apply/2                              1       1.292       0.003
Ecto.LogEntry.log/1                                                  1       1.289       0.006
Logger.__do_log__/3                                                  1       1.256       0.014
:prim_inet.async_recv/3                                              4       1.196       0.025
:prim_inet.ctl_cmd/3                                                 4       1.165       0.027
:erlang.port_control/3                                               4       1.138       0.086
Postgrex.Protocol.recv_close/3                                       1       1.068       0.005
Postgrex.Protocol.recv_bind/3                                        1       0.756       0.004
DBConnection.decode/4                                                1       0.715       0.033
Logger.normalize_message/2                                           1       0.700       0.005
anonymous fn/1 in Ecto.LogEntry.log/1                                1       0.695       0.005
Ecto.LogEntry.to_iodata/1                                            1       0.690       0.025
DBConnection.Query.decode/3                                          1       0.675       0.008
DBConnection.Query.Postgrex.Query.decode/3                           1       0.660       0.006
DBConnection.Query.Postgrex.Query.decode_map/2                       1       0.654       0.006
:erts_internal.port_control/3                                        4       0.560       0.560
Logger.truncate/2                                                    1       0.359       0.003
:erlang.iolist_to_binary/1                                           6       0.357       0.357
Logger.Utils.truncate/2                                              1       0.356       0.006
Logger.Utils.truncate_n/2                                           42       0.350       0.086
Logger.Utils.truncate_n_list/3                                      48       0.347       0.224
Ecto.LogEntry.time/3                                                 3       0.343       0.023
Postgrex.Protocol.msg_send/3                                         2       0.330       0.009
Kernel.inspect/2                                                     2       0.307       0.031
Postgrex.Protocol.recv_parse_describe/4                              1       0.278       0.008
Ecto.Query.Planner.query/5                                           1       0.268       0.002
:io_lib_format.fwrite_g/1                                            3       0.260       0.040
Ecto.Query.Planner.plan/4                                            1       0.252       0.006
Postgrex.Protocol.recv_describe/4                                    2       0.234       0.008
Ecto.LogEntry.ok_source/1                                            1       0.219       0.006
Postgrex.Protocol.msg_decode/1                                       9       0.214       0.032
Kernel.inspect/1                                                     1       0.213       0.002
Ecto.Query.Planner.plan_cache/4                                      1       0.209       0.005
Inspect.Algebra.to_doc/2                                             2       0.198       0.006
Ecto.Query.Planner.traverse_exprs/4                                  1       0.193       0.003
Inspect.inspect/2                                                    2       0.192       0.013
Postgrex.Messages.parse/3                                            7       0.182       0.025
DBConnection.checkout/3                                              1       0.171       0.037
anonymous fn/3 in Ecto.Query.Planner.traverse_exprs/4               12       0.160       0.055
Inspect.BitString.inspect/2                                          1       0.154       0.013
anonymous fn/2 in Postgrex.Protocol.msg_send/3                       7       0.153       0.025
Postgrex.Protocol.do_send/3                                          2       0.147       0.008
:gen_tcp.send/2                                                      2       0.139       0.005
Postgrex.Messages.decode_row_fields/2                                9       0.132       0.037
:io_lib_format.fwrite_g_1/3                                          3       0.128       0.009
Postgrex.Protocol.maybe_encode_msg/1                                 7       0.128       0.015
:inet_tcp.send/2                                                     2       0.125       0.004
DBConnection.Holder.checkout/2                                       1       0.125       0.009
:prim_inet.send/3                                                    2       0.121       0.007
:io_lib_format.scale/7                                               3       0.119       0.031
:erlang.port_command/3                                               2       0.114       0.009
Postgrex.Messages.encode_msg/1                                       7       0.113       0.029
:erts_internal.port_command/3                                        2       0.105       0.105
Logger.Utils.timestamp/1                                             1       0.100       0.007
Postgrex.Messages.decode_row_field/1                                 8       0.095       0.022
Postgrex.Messages.decode_string/1                                    9       0.092       0.050
:calendar.now_to_local_time/1                                        1       0.091       0.007
DBConnection.Holder.checkout/5                                       1       0.086       0.003
Code.Identifier.escape/3                                             1       0.083       0.003
DBConnection.Holder.checkout_call/5                                  1       0.082       0.011
Code.Identifier.escape/4                                             1       0.080       0.003
anonymous fn/6 in Ecto.Query.Planner.plan_cache/4                   12       0.079       0.028
:calendar.now_to_universal_time/1                                    1       0.078       0.003
Code.Identifier.escape/5                                             6       0.077       0.047
:calendar.now_to_datetime/1                                          1       0.075       0.002
Postgrex.Messages.encode/1                                           7       0.075       0.016
:calendar.system_time_to_datetime/1                                  1       0.073       0.003
Logger.into_metadata/2                                               1       0.072       0.003
Logger.into_metadata/3                                               8       0.069       0.037
Postgrex.Protocol.columns/1                                          1       0.067       0.002
DBConnection."-run/6-after$^0/0-0-"/1                                1       0.064       0.003
DBConnection.checkin/1                                               1       0.061       0.004
System.convert_time_unit/3                                           3       0.060       0.028
:io_lib_format.fixup/7                                               3       0.059       0.013
Keyword.get/3                                                       11       0.058       0.039
DBConnection.Holder.checkin/1                                        1       0.057       0.006
DBConnection.LogEntry.new/5                                          1       0.054       0.005
Ecto.Query.Planner.merge_cache/6                                    12       0.051       0.025
DBConnection.LogEntry.parse_times/2                                  1       0.049       0.009
:lists.reverse/1                                                     9       0.047       0.034
:io_lib_format.generate/6                                            7       0.046       0.028
DBConnection.Holder.done/4                                           1       0.040       0.013
String.printable?/2                                                  1       0.039       0.003
Postgrex.Protocol.rows_msg/3                                         1       0.039       0.004
:io_lib_format."-fwrite_g/1-lc$^0/1-0-"/1                           10       0.038       0.038
Keyword.get/2                                                        5       0.038       0.011
:inet_db.lookup_socket/1                                             6       0.037       0.025
String.recur_printable?/2                                            6       0.036       0.027
:io_lib_format.insert_decimal/2                                      3       0.034       0.011
Kernel.struct/2                                                      2       0.034       0.006
Access.get/3                                                         3       0.034       0.028
Inspect.Algebra.format/2                                             2       0.031       0.006
:lists.keydelete/3                                                   7       0.030       0.018
:binary.match/2                                                      9       0.030       0.030
Postgrex.Protocol.recv_parse/3                                       1       0.030       0.003
anonymous fn/2 in Postgrex.Messages.encode/1                         8       0.030       0.022
Inspect.Algebra.color/3                                              2       0.029       0.011
:lists.keyfind/3                                                    17       0.028       0.028
Kernel.struct/3                                                      3       0.028       0.013
String.Chars.to_string/1                                             1       0.027       0.006
Logger.__should_log__/1                                              1       0.027       0.011
Inspect.Algebra.format/3                                             6       0.025       0.025
:lists.unzip/1                                                       1       0.024       0.001
:lists.unzip/3                                                       9       0.023       0.016
:lists.split/2                                                       1       0.021       0.005
:ets.update_element/3                                                3       0.021       0.021
Ecto.Query.Planner.plan_sources/2                                    1       0.021       0.009
anonymous fn/1 in Code.Identifier.escape/3                           5       0.021       0.013
:erlang.convert_time_unit/3                                          3       0.020       0.014
System.monotonic_time/1                                              2       0.018       0.011
Inspect.List.inspect/2                                               1       0.017       0.003
DBConnection.maybe_encode/4                                          1       0.017       0.002
:lists.split/3                                                       5       0.016       0.014
Ecto.Repo.Registry.lookup/1                                          2       0.016       0.006
:maps.put/3                                                         13       0.015       0.015
:io_lib_format.int_pow/2                                             3       0.015       0.006
System.normalize_time_unit/1                                         8       0.015       0.015
String.Chars.Postgrex.Query.to_string/1                              1       0.015       0.005
Postgrex.Protocol.recv_ready/3                                       1       0.015       0.005
Postgrex.Protocol.done/5                                             1       0.015       0.006
DBConnection.Query.encode/3                                          1       0.015       0.003
anonymous fn/2 in DBConnection.LogEntry.parse_times/2                3       0.015       0.009
DBConnection.event/2                                                 3       0.015       0.010
Ecto.Repo.Queryable.attach_prefix/2                                  1       0.014       0.010
Ecto.Query.Planner.query_with_cache/7                                1       0.014       0.005
Enum.map_reduce/3                                                    6       0.013       0.007
Ecto.Queryable.to_query/1                                            1       0.013       0.005
DBConnection.Holder.start_deadline/5                                 1       0.013       0.005
DBConnection.Holder.cancel_deadline/1                                1       0.013       0.005
:maps.get/2                                                         12       0.012       0.012
:lists.keydelete3/3                                                  7       0.012       0.012
:io_lib_format."-fwrite_g/1-lc$^1/1-1-"/2                            6       0.012       0.012
:fprof."-apply_start_stop/4-after$^1/0-0-"/3                         1       0.012       0.012
:erlang.split_binary/2                                               9       0.012       0.012
:erlang.port_get_data/1                                              6       0.012       0.012
anonymous fn/1 in Postgrex.Protocol.columns/1                        8       0.012       0.012
Ecto.Query.Planner.plan_combinations/4                               1       0.012       0.009
DBConnection.Holder.checkout_result/2                                1       0.012       0.010
DBConnection.Holder.abs_timeout/2                                    1       0.012       0.003
:ets.lookup_element/3                                                3       0.010       0.010
:erlang.++/2                                                         8       0.010       0.010
Logger.notify/2                                                      1       0.010       0.002
Inspect.Algebra.group/1                                              2       0.010       0.006
Ecto.Query.Planner.finalize_cache/4                                  1       0.010       0.004
Ecto.Adapters.SQL.put_source/2                                       1       0.010       0.002
DBConnection.Query.impl_for!/1                                       2       0.010       0.006
:io_lib_format.int_pow/3                                             4       0.009       0.009
:ets.lookup/2                                                        3       0.009       0.009
:erlang.iolist_size/1                                                7       0.009       0.009
String.decrement/1                                                   5       0.009       0.009
Logger.Config.__data__/0                                             1       0.009       0.005
DBConnection.Query.Postgrex.Query.encode/3                           1       0.009       0.003
Code.Identifier.escape_char/1                                        5       0.009       0.009
:io_lib_format.mantissa_exponent/1                                   3       0.008       0.008
:gen_event.notify/2                                                  1       0.008       0.002
:erlang.cancel_timer/2                                               1       0.008       0.008
Postgrex.Messages.format/1                                           8       0.008       0.008
Keyword.put/3                                                        1       0.008       0.003
Inspect.impl_for!/1                                                  2       0.008       0.004
Ecto.Query.Planner.query_lookup/6                                    1       0.008       0.003
Ecto.Adapters.SQL.with_log/3                                         1       0.008       0.002
Code.Identifier.escape_map/1                                         5       0.008       0.008
:math.log10/1                                                        3       0.007       0.007
:io_lib_format.int_ceil/1                                            3       0.007       0.007
:ets.give_away/3                                                     1       0.007       0.007
:erlang.monotonic_time/0                                             4       0.007       0.007
Postgrex.Protocol.notify/1                                           1       0.007       0.003
Postgrex.Protocol.decode_tag/1                                       1       0.007       0.004
Keyword.fetch/2                                                      2       0.007       0.005
GenServer.whereis/1                                                  2       0.007       0.003
DBConnection.meter/1                                                 1       0.007       0.002
:prim_inet.enc_time/1                                                4       0.006       0.006
:gen_event.send/2                                                    1       0.006       0.006
:erts_internal.time_unit/0                                           3       0.006       0.006
:erlang.universaltime_to_localtime/1                                 1       0.006       0.006
String.Chars.impl_for!/1                                             1       0.006       0.005
Postgrex.Types.encode_params/3                                       1       0.006       0.002
Postgrex.Protocol.query_put/2                                        1       0.006       0.003
Postgrex.Protocol.query_delete/2                                     1       0.006       0.004
Postgrex.Protocol.mode/1                                             1       0.006       0.002
Postgrex.Messages."-parse/3-lc$^0/1-0-"/1                            1       0.006       0.006
Postgrex.defaults/1                                                  1       0.006       0.002
Keyword.pop/3                                                        1       0.006       0.003
Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3                           6       0.006       0.006
Ecto.Query.Planner.prepend_if/3                                      3       0.006       0.006
DBConnection.LogEntry.parse_time/2                                   3       0.006       0.006
:lists.keymember/3                                                   1       0.005       0.005
:erlang.min/2                                                        3       0.005       0.005
:erlang.list_to_bitstring/1                                          3       0.005       0.005
Process.get/1                                                        1       0.005       0.003
Postgrex.Protocol.query_member?/2                                    1       0.005       0.003
Ecto.Query.Planner.plan_from/2                                       1       0.005       0.003
Ecto.Adapters.SQL.get_conn_or_pool/1                                 1       0.005       0.003
:erlang.start_timer/4                                                1       0.004       0.004
:erlang.monotonic_time/1                                             2       0.004       0.004
Process.whereis/1                                                    1       0.004       0.003
Postgrex.DefaultTypes.encode_params/2                                1       0.004       0.001
Keyword.put_new/3                                                    1       0.004       0.003
Inspect.Algebra.group/2                                              2       0.004       0.004
Inspect.impl_for/1                                                   2       0.004       0.004
Ecto.Queryable.Atom.to_query/1                                       1       0.004       0.003
Ecto.Queryable.impl_for!/1                                           1       0.004       0.003
Ecto.Query.Planner.source_cache/2                                    1       0.004       0.003
Ecto.Query.Planner.plan_assocs/1                                     1       0.004       0.003
Ecto.Query.Planner.cast_and_merge_params/5                           1       0.004       0.001
DBConnection.Query.impl_for/1                                        2       0.004       0.004
:ets.insert/2                                                        1       0.003       0.003
:erlang.binary_to_integer/1                                          1       0.003       0.003
Process.get/2                                                        2       0.003       0.003
Postgrex.DefaultTypes.encode_params/3                                1       0.003       0.002
anonymous fn/2 in Kernel.struct/2                                    1       0.003       0.003
Inspect.Opts.__struct__/0                                            2       0.003       0.003
Ecto.Query.Planner.plan_joins/4                                      1       0.003       0.002
DBConnection.entry_result/1                                          1       0.003       0.003
:os.timestamp/0                                                      1       0.002       0.002
:ets.delete/2                                                        1       0.002       0.002
:erlang.send/2                                                       1       0.002       0.002
:erlang.monitor/2                                                    1       0.002       0.002
:erlang.make_ref/0                                                   1       0.002       0.002
:erlang.demonitor/2                                                  1       0.002       0.002
Postgrex.Protocol.parse_describe_msgs/1                              1       0.002       0.002
Postgrex.Protocol.done/6                                             1       0.002       0.002
Logger.compare_levels/2                                              1       0.002       0.002
Ecto.Query.Planner.plan_source/3                                     1       0.002       0.002
Ecto.Query.Planner.merge_cache/3                                     2       0.002       0.002
Ecto.Query.Planner.ensure_select/2                                   1       0.002       0.002
Ecto.LogEntry.ok_error/1                                             1       0.002       0.002
Ecto.Adapters.SQL.sql_color/1                                        1       0.002       0.002
Ecto.Adapters.SQL.log_result/1                                       1       0.002       0.002
:erlang.whereis/1                                                    1       0.001       0.001
:erlang.list_to_tuple/1                                              1       0.001       0.001
:erlang.group_leader/0                                               1       0.001       0.001
String.Chars.impl_for/1                                              1       0.001       0.001
Ecto.Repo.Queryable.preprocessor/3                                   1       0.001       0.001
Ecto.Repo.Queryable.postprocessor/4                                  1       0.001       0.001
Ecto.Queryable.impl_for/1                                            1       0.001       0.001
Ecto.Query.Planner.plan_joins/8                                      1       0.001       0.001
Ecto.Query.Planner.plan_assocs/3                                     1       0.001       0.001
Ecto.Query.Planner.expr_to_cache/1                                   1       0.001       0.001
Ecto.Query.Planner.build_meta/2                                      1       0.001       0.001
Ecto.Adapters.SQL.key/1                                              1       0.001       0.001
DBConnection.log_result/1                                            1       0.001       0.001
:undefined                                                           0       0.000       0.000

authors: fishcakez josevalim

repo: elixir-ecto/ecto


text:
Warn on :pool_timeout option

Ref https://github.com/elixir-ecto/ecto/issues/2833#issuecomment-440400022

Thank you! :heart:

authors: michalmuskala wojtekmach


text:
add support for map as expression

Add struct equivalent
iex(2)> df = DF.new(%{a: [1, nil, 3], b: ["a", "b", nil]})
#Explorer.DataFrame<
  Polars[3 x 2]
  a s64 [1, nil, 3]
  b string ["a", "b", nil]
>
iex(3)> DF.mutate(df, c: %{a: a, b: b, lit: 1, null: is_nil(a)})
#Explorer.DataFrame<
  Polars[3 x 3]
  a s64 [1, nil, 3]
  b string ["a", "b", nil]
  c struct[4] [
    %{"a" => 1, "b" => "a", "lit" => 1, "null" => false},
    %{"a" => nil, "b" => "b", "lit" => 1, ...},
    %{"a" => 3, "b" => nil, ...}
  ]
>

Note: Hiding original text as it is stale as per https://github.com/elixir-explorer/explorer/pull/855#issuecomment-1937523811

Original text
Add `struct` expression.
df = DF.new(%{a: [1, 2, 3], b: ["a", "b", "c"]})
#Explorer.DataFrame<
  Polars[3 x 2]
  a s64 [1, 2, 3]
  b string ["a", "b", "c"]
>
DF.mutate(df, c: struct([a: a, b: b]))
#Explorer.DataFrame<
  Polars[3 x 3]
  a s64 [1, 2, 3]
  b string ["a", "b", "c"]
  c struct[2] [
    %{"a" => 1, "b" => "a"},
    %{"a" => 2, "b" => "b"},
    %{"a" => 3, "b" => "c"}
  ]
>

Explorer.Series.struct(a: df["a"], b: df["b"])
#Explorer.Series<
  Polars[3]
  struct[2] [
    %{"a" => 1, "b" => "a"},
    %{"a" => 2, "b" => "b"},
    %{"a" => 3, "b" => "c"}
  ]
>

Could we implement this without adding a struct function? Could we automatically convert maps to structs instead?

@josevalim currently %{}  works in mutate as a top-level expression.
DF.mutate(df, c: %{a: a, b: b}) # works
DF.mutate(df, c: %{a: is_nil(a), b: is_nil(b)}) # works
DF.mutate(df, c: is_nil(%{a: a, b: b})) # fails

Can you suggest on how to tackle this ?

I am on my phone, but somewhere in lazy series we handle all literals, we should probably add map handling in there. The code will probably be pretty similar to the one you added to data frame, so we should probably find a way of sharing those as well.

I took a Quick Look and I was wrong. We only allow casting in specific operations in series.ex. For example, we could begin supporting maps in the comparison operators, if comparison is supported between structs. Outside of that, we most likely won’t support passing maps. There may be an argument we should allow literal (such as integers and maps) on is_nil, but that’s probably not the case today

There are some convenient use cases of https://docs.pola.rs/user-guide/expressions/structs/#practical-use-cases-of-struct-columns .
Should we support passing struct to a series ? These would add value to mutating, filtering without mutating, etc

The question is: which operations should we support in on? For example, it doesn't make sense to support them on add or multiply. So I'd do operation per operation, at least initially.

Ok, let me explore more on this question and come back later.
I think this PR is complete for now.

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:

authors: josevalim lkarthee

repo: elixir-explorer/explorer


text:
Adds the option to do a count distinct query

allows the atom ":distinct" to be passed to the count macro
implements count distinct for postgres and mysql
issue #874

@parkerl we just need docs, as you said. They can be added to Ecto.Query.API. :)

@josevalim like that?

@josevalim sorry I missed your comment earlier. Also found another bit of cruft.

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:

Thank you for improving Ecto!

authors: josevalim parkerl

repo: elixir-lang/ecto


text:
Protocol.UndefinedError

Environment

Elixir & Erlang versions (elixir --version): Elixir 1.14.2 (compiled with Erlang/OTP 25)
Elixir Language Server version: 25dc8f0
Operating system: macOS Ventura 13.0.1
Editor or IDE name (e.g. Emacs/VSCode): neoVim
Editor Plugin/LSP Client name and version: Coc

Current behavior
An error saying that Elixir LS has crashed rises every time I open an Elixir file.
[Error - 09:23:07.740] GenServer ElixirLS.LanguageServer.Experimental.SourceFile.Store terminating
** (Protocol.UndefinedError) protocol Enumerable not implemented for %ElixirLS.LanguageServer.Experimental.SourceFile.Document{lines: {{:line, "defmodule MyApp.MixProject do", "\n", 1, true}, {:line, "  use Mix.Project", "\n", 2, true}, {:line, "", "\n", 3, true}, {:line, "  def project do", "\n", 4, true}, {:line, "    [", "\n", 5, true}, {:line, "      app: :my_app,", "\n", 6, true}, {:line, "      version: \"0.1.0\",", "\n", 7, true}, {:line, "      elixir: \"~> 1.14\",", "\n", 8, true}, {:line, "      elixirc_paths: elixirc_paths(Mix.env()),", "\n", 9, true}, {:line, "      start_permanent: Mix.env() == :prod,", "\n", 10, true}, {:line, "      aliases: aliases(),", "\n", 11, true}, {:line, "      deps: deps()", "\n", 12, true}, {:line, "    ]", "\n", 13, true}, {:line, "  end", "\n", 14, true}, {:line, "", "\n", 15, true}, {:line, "  # Configuration for the OTP application.", "\n", 16, true}, {:line, "  #", "\n", 17, true}, {:line, "  # Type `mix help compile.app` for more information.", "\n", 18, true}, {:line, "  def application do", "\n", 19, true}, {:line, "    [", "\n", 20, true}, {:line, "      mod: {MyApp.Application, []},", "\n", 21, true}, {:line, "      extra_applications: [:logger, :runtime_tools]", "\n", 22, true}, {:line, "    ]", "\n", 23, true}, {:line, "  end", "\n", 24, true}, {:line, "", "\n", 25, true}, {:line, "  # Specifies which paths to compile per environment.", "\n", 26, true}, {:line, "  defp elixirc_paths(:test), do: [\"lib\", \"test/support\"]", "\n", 27, true}, {:line, "  defp elixirc_paths(_), do: [\"lib\"]", "\n", 28, true}, {:line, "", "\n", 29, true}, {:line, "  # Specifies your project dependencies.", "\n", 30, true}, {:line, "  #", "\n", 31, true}, {:line, "  # Type `mix help deps` for examples and options.", "\n", 32, true}, {:line, "  defp deps do", "\n", 33, true}, {:line, "    [", "\n", 34, true}, {:line, "      {:phoenix, \"~> 1.7.0-rc.0\", override: true},", "\n", 35, true}, {:line, "      {:phoenix_html, \"~> 3.0\"},", "\n", 36, true}, {:line, "      {:phoenix_live_reload, \"~> 1.2\", only: :dev},", "\n", 37, true}, {:line, "      {:phoenix_live_view, \"~> 0.18.3\"},", "\n", 38, true}, {:line, "      {:heroicons, \"~> 0.5\"},", "\n", 39, true}, {:line, "      {:floki, \">= 0.30.0\", only: :test},", "\n", 40, true}, {:line, "      {:esbuild, \"~> 0.5\", runtime: Mix.env() == :dev},", "\n", 41, true}, {:line, "      {:tailwind, \"~> 0.1.8\", runtime: Mix.env() == :dev},", "\n", 42, true}, {:line, "      {:telemetry_metrics, \"~> 0.6\"},", "\n", 43, true}, {:line, "      {:telemetry_poller, \"~> 1.0\"},", "\n", 44, true}, {:line, "      {:jason, \"~> 1.2\"},", "\n", 45, ...}, {:line, "      {:plug_cowboy, \"~> 2.5\"},", "\n", ...}, {:line, "      {:faker, \"~> 0.17.0\"},", ...}, {:line, ...}, {...}, ...}, starting_index: 1} of type ElixirLS.LanguageServer.Experimental.SourceFile.Document (a struct). This protocol is implemented for the following type(s): Date.Range, File.Stream, Floki.HTMLTree, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Jason.OrderedObject, List, Map, MapSet, Range, Scrivener.Page, Stream
    (elixir 1.14.2) lib/enum.ex:1: Enumerable.impl_for!/1
    (elixir 1.14.2) lib/enum.ex:230: Enumerable.slice/1
    (elixir 1.14.2) lib/enum.ex:4379: Enum.slice_forward/4
    (elixir 1.14.2) lib/enum.ex:468: Enum.at/3
    (language_server 0.12.0) lib/language_server/experimental/source_file/document.ex:36: ElixirLS.LanguageServer.Experimental.SourceFile.Document.fetch_line/2
    (language_server 0.12.0) lib/language_server/experimental/source_file/conversions.ex:73: ElixirLS.LanguageServer.Experimental.SourceFile.Conversions.to_elixir/2
    (language_server 0.12.0) lib/language_server/experimental/source_file/conversions.ex:28: ElixirLS.LanguageServer.Experimental.SourceFile.Conversions.to_elixir/2
    (language_server 0.12.0) lib/language_server/experimental/source_file.ex:138: ElixirLS.LanguageServer.Experimental.SourceFile.apply_change/2
Last message (from ElixirLS.LanguageServer.Experimental.Server): {:update, "file:///Users/myuser/projects//my_app/mix.exs", #Function<1.80531545/1 in ElixirLS.LanguageServer.Experimental.Server.State.apply/2>}
State: %ElixirLS.LanguageServer.Experimental.SourceFile.Store.State{source_files: %{"file:///Users/myuser/projects//my_app/mix.exs" => %ElixirLS.LanguageServer.Experimental.SourceFile{uri: "file:///Users/myuser/projects//my_app/mix.exs", path: "/Users/myuser/projects//my_app/mix.exs", version: 1, dirty?: false, document: %ElixirLS.LanguageServer.Experimental.SourceFile.Document{lines: {{:line, "defmodule MyApp.MixProject do", "\n", 1, true}, {:line, "  use Mix.Project", "\n", 2, true}, {:line, "", "\n", 3, true}, {:line, "  def project do", "\n", 4, true}, {:line, "    [", "\n", 5, true}, {:line, "      app: :my_app,", "\n", 6, true}, {:line, "      version: \"0.1.0\",", "\n", 7, true}, {:line, "      elixir: \"~> 1.14\",", "\n", 8, true}, {:line, "      elixirc_paths: elixirc_paths(Mix.env()),", "\n", 9, true}, {:line, "      start_permanent: Mix.env() == :prod,", "\n", 10, true}, {:line, "      aliases: aliases(),", "\n", 11, true}, {:line, "      deps: deps()", "\n", 12, true}, {:line, "    ]", "\n", 13, true}, {:line, "  end", "\n", 14, true}, {:line, "", "\n", 15, true}, {:line, "  # Configuration for the OTP application.", "\n", 16, true}, {:line, "  #", "\n", 17, true}, {:line, "  # Type `mix help compile.app` for more information.", "\n", 18, true}, {:line, "  def application do", "\n", 19, true}, {:line, "    [", "\n", 20, true}, {:line, "      mod: {MyApp.Application, []},", "\n", 21, true}, {:line, "      extra_applications: [:logger, :runtime_tools]", "\n", 22, true}, {:line, "    ]", "\n", 23, true}, {:line, "  end", "\n", 24, true}, {:line, "", "\n", 25, true}, {:line, "  # Specifies which paths to compile per environment.", "\n", 26, true}, {:line, "  defp elixirc_paths(:test), do: [\"lib\", \"test/support\"]", "\n", 27, true}, {:line, "  defp elixirc_paths(_), do: [\"lib\"]", "\n", 28, true}, {:line, "", "\n", 29, true}, {:line, "  # Specifies your project dependencies.", "\n", 30, true}, {:line, "  #", "\n", 31, true}, {:line, "  # Type `mix help deps` for examples and options.", "\n", 32, true}, {:line, "  defp deps do", "\n", 33, true}, {:line, "    [", "\n", 34, true}, {:line, "      {:phoenix, \"~> 1.7.0-rc.0\", override: true},", "\n", 35, true}, {:line, "      {:phoenix_html, \"~> 3.0\"},", "\n", 36, true}, {:line, "      {:phoenix_live_reload, \"~> 1.2\", only: :dev},", "\n", 37, true}, {:line, "      {:phoenix_live_view, \"~> 0.18.3\"},", "\n", 38, ...}, {:line, "      {:heroicons, \"~> 0.5\"},", "\n", ...}, {:line, "      {:floki, \">= 0.30.0\", only: :test},", ...}, {:line, ...}, {...}, ...}, starting_index: 1}}}}
Client ElixirLS.LanguageServer.Experimental.Server is alive

    (stdlib 4.1.1) gen.erl:256: :gen.do_call/4
    (elixir 1.14.2) lib/gen_server.ex:1035: GenServer.call/3
    (language_server 0.12.0) lib/language_server/experimental/server/state.ex:24: ElixirLS.LanguageServer.Experimental.Server.State.apply/2
    (stdlib 4.1.1) timer.erl:235: :timer.tc/1
    (language_server 0.12.0) lib/language_server/experimental/server.ex:76: ElixirLS.LanguageServer.Experimental.Server.apply_to_state/2
    (language_server 0.12.0) lib/language_server/experimental/server.ex:66: ElixirLS.LanguageServer.Experimental.Server.handle_notification/2
    (language_server 0.12.0) lib/language_server/experimental/server.ex:41: ElixirLS.LanguageServer.Experimental.Server.handle_cast/2
    (stdlib 4.1.1) gen_server.erl:1123: :gen_server.try_dispatch/4
[Warn  - 09:23:08.079] ** (exit) exited in: GenServer.call(ElixirLS.LanguageServer.JsonRpc, {:packet, %{"jsonrpc" => "2.0", "method" => "$/cancelRequest", "params" => %{"id" => 5}}}, 5000)
    ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (elixir 1.14.2) lib/gen_server.ex:1027: GenServer.call/3
    (elixir 1.14.2) lib/stream.ex:481: anonymous fn/4 in Stream.each/2
    (elixir 1.14.2) lib/stream.ex:1651: Stream.do_element_resource/6
    (elixir 1.14.2) lib/stream.ex:1811: Enumerable.Stream.do_each/4
    (elixir 1.14.2) lib/stream.ex:689: Stream.run/1
    nofile:1: (file)
    (stdlib 4.1.1) erl_eval.erl:748: :erl_eval.do_apply/7
[Error - 09:23:09.128] ~/projects/elixir/elixir-ls/release/language_server.sh exited with code: 1

Expected behavior
The server shouldn't crash.

👆 came here to report this as well. (happening with nvim-lspconfig too, not just coc.nvim).

This isn't due to protocol consolidation, it's due to a project's builds tainting elixir_ls's modules. When a project builds, it overwrites all the enumerable protocols that elixir_ls outputs. I removed document's protocol implementations because of this, as there's no way to work around this reliably.
Landing https://github.com/elixir-lsp/elixir-ls/pull/773/files will fix this, though I'm struggling to understand how the experimental protocol was enabled in the first place.

Maybe we should disable protocol consolidation on the project build?

hmm, interesting, I don't know if that'll fix it, because it will re-make the protocol dispatch module, which might have the same effect as consolidation.
Now that I'm thinking a bit more, the default build mix env is test, which by default doesn't consolidate protocols.
The fix is to carry forward without document defining the Enum protocol (which is a crying shame, because that's so convenient)

I, too, came to report this.  Doom emacs on Ubuntu; asdf: 1.14.0-otp-25  Tried rebuilding - there are various warnings - but I'm new to this game.  Crashes whenever a character is input.

I'm struggling to understand how the experimental protocol was enabled in the first place

@scohen Experimental.Server is started as an app child and PacketRouter was dispatching messages to both old and experimental servers. I disabled the experimental one for now.

Thanks for the fix - working now.

authors: BigMassive bigardone lukaszsamson megalithic scohen

repo: elixir-lsp/elixir-ls


text:
[BUG] timeout too low for eg https://github.com/Axarva/dotfiles-2.0 powermenu.sh

on Axarva's github is this issue https://github.com/Axarva/dotfiles-2.0/issues/83 that the powermenu.sh isn't working.
it can be resolved with this workaround https://github.com/Axarva/dotfiles-2.0/issues/83#issuecomment-886145342
It seems the timeout set here https://github.com/elkowar/eww/blob/4f59424e0e82eb7ce76badb266974dd3e7ea6d8c/src/widgets/mod.rs#L29 is too low to even enter 'y'.

ohh, I never considered that usecase 😄 I think the reasonable solution would be adding a timeout option on anything that can take a script, no? Something along those lines at least

I was going to report this but kept forgetting... well, at least it's been reported :)

This is fixed since the config rework! there is now a timeout property everywhere where a command can be set, such that the timeout can now be specified depending on what's happening

authors: Axarva elkowar redgloboli

repo: elkowar/eww


text:
Replacing old open import syntax with new

I believe that the proper substitute for import open State is import State exposing (..).

Yes, but note that there is a much more comprehensive pull request (https://github.com/elm-lang/package.elm-lang.org/pull/43) on improving the guideline pages. It includes the bit you fix here, and more. It seems to me that PR of @mgold should be dealt with.

Ah - great! :D! I'll close this one then.

authors: hughfdjackson jvoigtlaender


text:
Скрипта

Преди да мине срока бях качил  task1 и task2, от второ домашно. Всичко беше наред след като бяхте пуснали скрипта и пишеше че имам 14/14 точки. Днес гледам, че  имам 7/14 точки и то само защото съм оставил неизползвана променлива, което не ми беше показано като еррор след като бяхте пуснали скрипта преди крайния срок. Бих искал да ми бъдат дадени точките обратно защото това не е моя грешка.

Линк към вашата папка?

https://github.com/elsys/po-homework/tree/master/G/02/08 Георги Георгиев, номер 8, 10 г клас.

repo: elsys/po-homework


text:
Homework 05; Iva Zahova №12 10A

Homework 05

Evaluating homework 05 on student 12 from A class
Evalutaing task1.c
Test 1 passed
Summary
task1 - 1/1

Имате още време да направите pull request за другата задача

authors: Ivaza tborisova


text:
TTY modes left in inconsistent state when external command is killed

Consider this interactive Elvish scenario:

You run an external command (e.g., an editor such as vim) that modifies the TTY behavior.

That command dies in a manner which doesn't give it an opportunity to restore the TTY behavior that existed before it changed that behavior.

You are now left with an interactive Elvish session that may, or may not, be usable. I noticed this while working on issue #661. See also issue #232 which is essentially the same issue but was limited to what happens when Elvish launches a /bin/sh rescue shell.

Note that this affects the proper setup of the Windows console. Changing the sanitize function in pkg/cli/term/setup_windows.go to call setup(in, out) "fixes" the correct rendering of ANSI color sequences on Windows. See issue #1165. The question is how to properly setup the TTY at both startup and after an external command terminates.

This is still broken. See also issues #732 and #1469.

repo: elves/elvish


text:
ELYRA_RUNTIME_ENV variable is no longer set during pipeline execution or export

Describe the issue
I've noticed that the ELYRA_RUNTIME_ENV variable that was introduced in https://github.com/elyra-ai/elyra/pull/1668 is no longer set to any value. The problem surfaces in all three runtime environment types (local/kfp/aa).
To Reproduce
Steps to reproduce the behavior:

Install 2.3/master
Create a pipeline
Create a notebook | script that dumps the environment variablesimport os
print(os.environ.get('ELYRA_RUNTIME_ENV'))

Add notebook | script to pipeline
Run pipeline and inspect notebook output

Screenshots or log output
Expected behavior
A clear and concise description of what you expected to happen.
ELYRA_RUNTIME_ENV is set properly
Deployment information
Describe what you've deployed and how:

Elyra version: 2.3/master (pulled 5/25)

(I updated the original comment with exact recreate steps)
It took me a while to understand the root cause:

The environment variable detection code discovers that the notebook | script references the ELYRA_RUNTIME_ENV variable, and thus adds it to the list of environment variables for each node.

A user should never set this "system-owned" variable (it'd defeat its purpose) and it remains therefore unset ELYRA_RUNTIME_ENV= when the pipeline runs or is exported.

From a code perspective:

https://github.com/elyra-ai/elyra/blob/master/elyra/pipeline/processor_local.py#L121-L122  (and the same for the other processors)envs['ELYRA_RUNTIME_ENV'] = "local"  # sets
envs.update(operation.env_vars_as_dict()) # overrides with empty value  (see definition below)

https://github.com/elyra-ai/elyra/blob/master/elyra/pipeline/pipeline.py#L152 # sets the variable to the empty string because it was detected in the notebook | script

We need to make sure that the user cannot explicitly or implicitly override this environment variable and any other environment variable that is owned by Elyra.

Ah - good point/catch.  I'll update the tests to handle this case as well.  We should be able to just reverse the initialization sequences such that operation-provided envs are set first and system-owned env values override.

From a back-end point of view yes, but the GUI would still surface the variable(s) in the node's properties panel and give the user the impression that it's okay to override the value(s). Thus the usability problem still applies and perhaps needs a front end change as well.

I agree.  Seems simple enough to filter ELYRA_-prefixed vars (although that isn't necessarily complete as we have a couple AWS_ vars).  That is outside the scope of this issue in my opinion.  I'll be addressing the override of system-owned envs in the server.

authors: kevin-bates ptitzler

repo: elyra-ai/elyra


text:
Descargar ranking

Adjunto fotos de como quedaría el botón y el Excel con los datos del ranking:

Que se me había olvidado antes.

Codecov Report

Merging #48 (93b658a) into master (7cf13fc) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Current head 93b658a differs from pull request most recent head dc1e1df. Consider uploading reports for the commit dc1e1df to get more accurate results

@@            Coverage Diff             @@
##            master       #48    +/-   ##
==========================================
  Coverage   100.00%   100.00%
==========================================
  Files           20        21     +1
  Lines         2618      2781   +163
==========================================
+ Hits          2618      2781   +163

Impacted Files
Coverage Δ

lsql/judge/urls.py
100.00% <ø> (ø)

lsql/judge/tests/test_ranking.py
100.00% <100.00%> (ø)

lsql/judge/views.py
100.00% <100.00%> (ø)

lsql/judge/shell.py
100.00% <0.00%> (ø)

lsql/judge/models.py
100.00% <0.00%> (ø)

lsql/judge/tests/test_shell.py
100.00% <0.00%> (ø)

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 7cf13fc...dc1e1df. Read the comment docs.

Ahora no entiendo muy bien el que falla, si me sale todo al 100%

Ahora no entiendo muy bien el que falla, si me sale todo al 100%

En estos casos vete a la entrada que aparece "Travis CI - Pull Request" que hay justo arriba para ver qué está fallando. Es este caso parece haber dos bloques de líneas que no se llegan a ejecutar: https://travis-ci.com/github/emartinm/lsql/builds/221105484

De hecho, por alguna razón TravisCI recibe un error IndexError en test_download_ranking (judge.tests.test_ranking.RankingTest) en un file = path[6]. Puede ser alguna diferencia Linux/Windows respecto a los ficheros, pero seguro que hay alguna manera de hacer el código para que sea interoperable.

authors: Tamiflu9 codecov-io emartinm

repo: emartinm/lsql


text:
Add support for STM32 input capture filter

This PR adds support for the input capture filter.

This is, i believe, the only thing that was still missing.
I'll add some input capture measurement examples in a followup PR, just finishing testing them on a few variants.

repo: embassy-rs/embassy


text:
rp: Fix indexing for pins >31 on rp235xb

Does not handle using PIO with pins > 31, which is still broken.

spurious failure, forcing merge.

authors: CBJamo Dirbaio


text:
Support for uglify-es

Now that Ember 2.13 has babel browser targeting, the build can contain ES6 code which uglify-js doesn't support. I've been using babili but it takes twice as long and produces larger files than uglify-es.
Someone has already made a branch for this but an official ember-cli packages would be great.
https://github.com/fusion2004/broccoli-uglify-es-sourcemap
https://github.com/fusion2004/ember-cli-uglify-es

Yep, I asked @fusion2004 to submit patches here.  Would love to update the main project.

I will hopefully be getting to that very soon! Sorry I haven't gotten to it sooner.

Sweet!

Resolved by https://github.com/ember-cli/broccoli-uglify-sourcemap/pull/47

repo: ember-cli/broccoli-uglify-sourcemap


text:
404 on https://cli.emberjs.com/

Noticed when trying to get to the CLI Guides from the main Ember guides.
To reproduce:

Simply open https://cli.emberjs.com/

or -

Go to https://guides.emberjs.com/
Open Docs > CLI Guides from dropdown in nav bar (Redirects you to https://cli.emberjs.com/)
Observe 404

This is the link mentioned in the homepage of this repo also so I assume it's still relevant and shouldn't be 404ing 😄

Hello! Fixing this now. Thank you for reporting.
Root cause: https://github.com/ember-learn/cli-guides/pull/267

Fixed! Additionally, the Node version was set to 14 in the NODE_VERSION env variables for Netlify. I set it to 12 and rebuilt.
This is a temporary strategy. We need to get on Node 14 ASAP.

Thanks for fixing it so quickly Jen!

authors: jenweber laurmurclar

repo: ember-learn/cli-guides


text:
WIP: Refactor list-view into proper ember-cli addon

This PR will turn list-view into a full EmberCLI Addon.
TODO

Move demos into dummy app

[x] index.html
[x] mobile.html
[x] mobile_images_large.html
[x] mobile_images_small.html
[x] mobile_images_small_non_recycling_list_item_view.html
[x] multi-height.html
[x] multi-height-multi-view.html
[x] multi-height-virtual.html
[x] pull_to_refresh.html
[x] virtual.html
[x] virtual_strange_ratios.html

Refactor into addon/app directory

[x] addon
[x] app

Refactor tests

[x] content_tests.js
[x] controller_test.js
[x] list_view_test.js
[x] multi_height_list_view_test.js
[x] multi_view_list_view_test.js
[x] num_of_child_views_for_viewport_test.js
[x] recycling_tests.js
[x] scroll_top_test.js
[x] starting_index_test.js
[x] test_helper.js
[x] total_height_test.js
[x] virtual_list_pull_to_refresh_test.js
[x] virtual_list_view_scrollerstart_test.js
[x] virtual_list_view_test.js

Issues

[ ] Multi Height Multi View throws exceptions when scrolling http://g.recordit.co/7LKrqYWMAa.gif
[ ] Not clear how pull-to-refresh should work
[ ] Failing test in phantom.js related to touch events

Closes #193

@stefanpenner there are a few things to fix but a big chunk of this is ready.

I was trying out this PR and found that the zynga-scrollbar dependency wasn't easy to add for the consuming application. My guess is that this library would be added by the blueprint, right?
I could write a shim that would:
-Provide ES6 modules (remove globals)
-Make the libs available through bower, so its available always. You would just add the correct imports to the Brocfile depending on the views used.
Does it sound like a good plan?

My guess is that this library would be added by the blueprint, right?

we should just bundle it i this repo, and the act of using virtual list view should pull it in.

@taras this is like good to merge :)

@stefanpenner push the big green button!

that was extremely satisfying.

That's a lot of PRs in one shot

Wow thanks a lot @taras !

<3

authors: givanse sly7-7 stefanpenner taras

repo: emberjs/list-view


text:
Feature Request: support emoji in config file

Hi, I have a feature request that embulk supports emoji in config file. Now I'm recreating embulk-input-google_spreadsheets, and I found some google spreadsheets use emoji as a worksheet title. So I want to write like below as config.
in:
  type: google_spreadsheets
  auth_method: authorized_user
  json_keyfile: example/authorized_user_credentials.json
  spreadsheets_url: https://docs.google.com/spreadsheets/d/1Cxz-LudQuhRAGZL8mBoHs6mRnpjODpyF4Rwc5UYoV1E/edit#gid=0
  worksheet_title: 🍣 emoji🍣
  start_row: 2
  default_timezone: Asia/Tokyo
  null_string: '\N'
  default_typecast: strict
  columns:
    - {name: _c1, type: boolean}
    - {name: _c2, type: string}
    - {name: _c3, type: long}
    - {name: _c4, type: double}
    - {name: _c5, type: timestamp, format: '%Y-%m-%d %H:%M:%S.%N'}
    - {name: _c6, type: timestamp, format: '%Y-%m-%d'}
out:
  type: stdout

But, I got embulk-core error about snakeyaml.
2017-03-27 09:52:01.368 +0900: Embulk v0.8.18                                                                                [25/5628]
unacceptable character '?' (0xD83C) special characters are not allowed
in "'string'", position 254
        at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(org/yaml/snakeyaml/reader/StreamReader.java:67)
        at org.yaml.snakeyaml.reader.StreamReader.<init>(org/yaml/snakeyaml/reader/StreamReader.java:47)
        at org.yaml.snakeyaml.Yaml.load(org/yaml/snakeyaml/Yaml.java:400)
        at org.embulk.config.ConfigLoader.fromYamlString(org/embulk/config/ConfigLoader.java:66)
        at java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
        at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)
        at org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)
        at RUBY.read_config(uri:classloader:/embulk/runner.rb:131)
        at RUBY.run(uri:classloader:/embulk/runner.rb:55)
        at RUBY.run(uri:classloader:/embulk/command/embulk_run.rb:307)
        at RUBY.<main>(uri:classloader:/embulk/command/embulk_main.rb:2)
        at org.jruby.Ruby.runInterpreter(org/jruby/Ruby.java:850)
        at org.jruby.Ruby.loadFile(org/jruby/Ruby.java:2976)
        at org.jruby.RubyKernel.requireCommon(org/jruby/RubyKernel.java:963)
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:956)
        at org.jruby.RubyKernel$INVOKER$s$1$0$require19.call(org/jruby/RubyKernel$INVOKER$s$1$0$require19.gen)
        at Users.takahiro_dot_nakayama.bin.embulk.embulk.command.embulk_bundle.invokeOther35:require(Users/takahiro_dot_nakayama/bin/embulk/embulk/command/file:/Users/takahiro.nakayama/bin/embulk!/embulk/command/e
mbulk_bundle.rb:30)
        at Users.takahiro_dot_nakayama.bin.embulk.embulk.command.embulk_bundle.<main>(file:/Users/takahiro.nakayama/bin/embulk!/embulk/command/embulk_bundle.rb:30)
        at java.lang.invoke.MethodHandle.invokeWithArguments(java/lang/invoke/MethodHandle.java:627)
        at org.jruby.Ruby.runScript(org/jruby/Ruby.java:834)
        at org.jruby.Ruby.runNormally(org/jruby/Ruby.java:749)
        at org.jruby.Ruby.runNormally(org/jruby/Ruby.java:767)
        at org.jruby.Ruby.runFromMain(org/jruby/Ruby.java:580)
        at org.jruby.Main.doRunFromMain(org/jruby/Main.java:425)
        at org.jruby.Main.internalRun(org/jruby/Main.java:313)
        at org.jruby.Main.run(org/jruby/Main.java:242)
        at org.jruby.Main.main(org/jruby/Main.java:204)
        at org.embulk.cli.Main.main(org/embulk/cli/Main.java:23)

Error: special characters are not allowed

It's not urgent, but in the near future, it will necessary for me, so please consider implementing.

@civitaspo  please take a look #575

Thanks, it works!
config
in:
  type: google_spreadsheets
  auth_method: authorized_user
  json_keyfile: example/authorized_user_credentials.json
  spreadsheets_url: https://docs.google.com/spreadsheets/d/1Cxz-LudQuhRAGZL8mBoHs6mRnpjODpyF4Rwc5UYoV1E/edit#gid=0
  worksheet_title: 🍣emoji🍣
  start_row: 2
  default_timezone: Asia/Tokyo
  null_string: '\N'
  default_typecast: strict
  columns:
    - {name: _c1, type: boolean}
    - {name: _c2, type: string}
    - {name: _c3, type: long}
    - {name: _c4, type: double}
    - {name: _c5, type: timestamp, format: '%Y-%m-%d %H:%M:%S.%N'}
    - {name: _c6, type: timestamp, format: '%Y-%m-%d'}
out:
  type: stdout

[embulk-input-google_spreadsheets] ./embulk run example/config_authorized_user_emoji_worksheet.yml -b .
2017-03-27 15:09:02.391 +0900: Embulk v0.8.18
2017-03-27 15:09:06.000 +0900 [INFO] (0001:transaction): Loaded plugin embulk/input/google_spreadsheets from a load path
2017-03-27 15:09:06.039 +0900 [INFO] (0001:transaction): Using local thread executor with max_threads=16 / output tasks 8 = input tasks 1 * 8
2017-03-27 15:09:06.058 +0900 [INFO] (0001:transaction): {done:  0 / 1, running: 0}
#<Addressable::Template:0x1744 PATTERN:https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}>
{"spreadsheetId"=>"1Cxz-LudQuhRAGZL8mBoHs6mRnpjODpyF4Rwc5UYoV1E"}
#<Addressable::URI:0x1746 URI:https://sheets.googleapis.com/v4/spreadsheets/1Cxz-LudQuhRAGZL8mBoHs6mRnpjODpyF4Rwc5UYoV1E>
2017-03-27 15:09:08.808 +0900 [INFO] (0017:task-0000): `embulk-input-google_spreadsheets`: load data from spreadsheet: 'https://docs.google.com/spreadsheets/d/1Cxz-LudQuhRAGZL8mBoHs6mRnpjODpyF4Rwc5UYoV1E/edit#gid=0', range: '🍣emoji🍣!A2:F1000'
#<Addressable::Template:0x1748 PATTERN:https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}>
{"spreadsheetId"=>"1Cxz-LudQuhRAGZL8mBoHs6mRnpjODpyF4Rwc5UYoV1E", "range"=>"🍣emoji🍣!A2:F1000"}
#<Addressable::URI:0x174a URI:https://sheets.googleapis.com/v4/spreadsheets/1Cxz-LudQuhRAGZL8mBoHs6mRnpjODpyF4Rwc5UYoV1E/values/%F0%9F%8D%A3emoji%F0%9F%8D%A3%21A2%3AF1000>
2017-03-27 15:09:10.272 +0900 [INFO] (0017:task-0000): `embulk-input-google_spreadsheets`: fetched 10 rows in A2:F1000
true,a,1,1.1,2017-02-22 15:03:03.000001000,2017-02-22
false,b,19999999999999,0.0,2017-02-22 15:03:03.000002000,2017-02-23
false,,-4,,2017-02-22 15:03:03.000003000,2017-02-24
,あ,7,,2017-02-22 15:03:03.000004000,2017-02-25
,轟き,,-0.1,2017-02-22 15:03:03.000005000,2017-02-26
,⌛,,-0.1,2017-02-22 15:03:03.000006000,2017-02-26
,☀,,-0.1,2017-02-22 15:03:03.000007000,2017-02-26
,(；´∀｀),,-0.1,2017-02-22 15:03:03.000008000,2017-02-26
,
.1,2017-02-22 15:03:03.000009000,2017-02-26
false,,,,,,,,,,,o,uo.,\\y,\\,-4,,2017-02-22 15:03:03.000010000,2017-02-24
2017-03-27 15:09:10.280 +0900 [INFO] (0001:transaction): {done:  1 / 1, running: 0}
2017-03-27 15:09:10.325 +0900 [INFO] (main): Committed.
2017-03-27 15:09:10.326 +0900 [INFO] (main): Next config diff: {"in":{},"out":{}}

authors: civitaspo hiroyuki-sato

repo: embulk/embulk


text:
Restrict bucket create/delete rights to binding users

Currently bucket bindings (ECS object users) default to FULL_CONTROL privileges.  This also gives the user access to create/remove buckets, which don't fall under the same quota, or could have no quota at all.
When creating bucket bindings, the object-user should not have rights to create or delete buckets through the S3 API.  If this functionality is required, then we can create a namespace, with which the user can create/delete buckets to their heart's content.

@spiegela - I would treat this as a bug and as such +1 on this.

Sounds good. I'm making good progress on #42, I'll start this next.

investigating...

@kravell It turns out that this is a limitation of ECS at the moment.  I've sent an email asking for some details about how this affects your project, so that I can get this in the hands of the ECS product team.

repo: emccode/ecs-cf-service-broker