Contribute to Open Source. Search issue labels to find the right project for you!

Investigate using cache better in CircleCI

allenai/deep_qa

Looks like our build scripts for CircleCI intentionally clear the cache before building the docs, which makes things take longer than they probably need to. It didn’t use to matter much, because Travis was always way slower, but now sometimes CircleCI finishes after Travis. I don’t know why clearing the cache is necessary; @nelson-liu, any particular reason you put that in there?

Updated 29/04/2017 18:55 3 Comments

Migrate dataset reader code from (scala) DeepQA Experiments to DeepQA

allenai/deep_qa

Firstly, Much thanks to this great project, which is what I would like to do; I’ll continuously watch, use, and even contribute to this project.

But when I want to run some pipelines from scratch, but found that the data pre processing steps is in another project: https://github.com/allenai/deep_qa_experiments, the project’s code is scala.

I think the preprocessing steps in another steps is complicated for someone wishing to start the stuff quickly.

Updated 30/04/2017 05:22 2 Comments

Difficulties closing palette when in JavaScript view on small screen

Microsoft/pxt

See screenshot below. When running on a small screen in javascript mode, I can’t seen to find a sensible way to close the palette when it opens with very long names, as the scroll bars don’t scroll outside of the popup region.

screen shot 2017-04-29 at 11 53 01

Tried on both live and beta today.

A small workaround seems to be to press the arrow that expands and collapses the advanced palette, but I found this by chance, and I’m not sure it’s obvious to all users.

Just sending this in as feedback, as I suspect this will affect the mobile experience if anyone goes into javascript view to patch a couple of lines of code when on mobile.

BETA pxt.microbit.org version: 0.12.5 Microsoft MakeCode version: 0.12.63 C++ runtime version: v2.0.0-rc9

LIVE pxt.microbit.org version: 0.9.77 Microsoft MakeCode version: 0.12.25 C++ runtime version: v2.0.0-rc8

Updated 29/04/2017 22:58 2 Comments

Remove deprecated dependency react-addons-css-transition-group

palantir/blueprint

Bug report

  • Package version(s): 1.16.0
  • Browser and OS versions: Chrome 57 on OSX (but it doesn’t matter)

Steps to reproduce

  1. Install Blueprint using YARN

Actual behavior

Requires the deprecated react-addons-css-transition-group package as a peer dependency.

Expected behavior

Allows (preferably, recommends) the react-transition-group fork, as recommended by the README for react-addons-css-transition-group.

Updated 29/04/2017 22:19

Riot is stuck after network switching

vector-im/riot-android

reported by @ThousandParsecs:matrix.org

Stopped receiving notifications then loading forever. Until device is rebooted.

When I’m at home I have my WiFi and mobile data turned on, but my device connects only via WiFi. When I leave my home, I would usually just bring my device without manually turning off my WiFi. So after the WiFi is lost, my device switches to connect via mobile data automatically.

At this point riot would stop working. The app runs fine without crashing but it doesn’t send or receive anything anymore, not messages, not notifications, nothing, “bricked”. Even if I kill the app and start it again, it’s still the same. Until I completely reboot my device.

https://riot.im/bugreports/listing/2017-04-28/014707/details.log.gz

Updated 28/04/2017 12:21 6 Comments

for a room where messages are unread, the name of the room is without emphasis (as if all messages are read)

vector-im/riot-web

Description

2017-04-28 03-08 messages are unread the name of the room is without emphasis is not bold

In the example above, https://riot.im/develop/#/room/#bsd:matrix.org 2017-04-28 03:08 BST:

  • the name of the room ‘bsd’ appeared in a regular typeface (not bold), implying that all messages were read
  • the prompt to jump implied that some messages were unread.

In this case, based on my memory of the content of the room, the prompt to jump is believable but re: https://github.com/vector-im/riot-web/issues/3746#issuecomment-297886785 when clicked, there is no jump.

Steps to reproduce

Basically: in the left hand column, I clicked the room.

That’s far from a set of steps – sorry – but whilst #3746 seems to be a complication of this issue (or vice versa), if I attempt to make things reproducible, I’ll probably become terribly confused.

Version information

  • Firefox 53.0 (64-bit)
  • TrueOS Desktop
$ about

===================
General information
===================

boot environment now (N) … 12.0-CURRENT-up-20170330_080908 NR 2017-03-30
       after restart (R) … 12.0-CURRENT-up-20170330_080908 NR 2017-03-30
boot loader …………………………………… BSD
            type ……………………… EFI
CPU ………………………………………………………… Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz
    number of cores ……………… 4
host ……………………………………………………… momh167-gjp4-hpelitebook850g2-trueos.university.brighton.ac.uk
memory ………………………………………………… 16384 MB available, 2999 MB free
OS git branch ……………………………………………………………………………………… drm-next
OS git revision ………………………………………………………………………………… a009033ff
OS kernel build time ………………………………………………………… Wed 2017 Mar 29 20:13:33 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… CUSTOM
TrueOS version …………………………… TrueOS-Desktop-201703201429
uptime ………………………………………………… 10:03
user  …………………………………………………… grahamperrin

More (TrueOS Desktop):

    desktop environment …… KDE
    sound card driver ………… pcm1: <Realtek (0x0280) (Analog 2.0+HP/2.0)> on hdaa1  (1p:2v/1r:4v) default
    wireless driver ……………… iwm0
    X11 drivers ………………………… intel_drv.so 

$ 
Updated 30/04/2017 10:27 3 Comments

Polymer 2.0 library transpilation using Gulp ES6 to ES5 (Documentation Request)

Polymer/docs

From @myuseringithub on April 19, 2017 7:4

Wasted a lot of days trying to support ES5 browsers when using Polymer 2.0 ES6 (ES2015+) class-syntax. Finally I got it to work, a simple snippet of code & a paragraph could easily guide me to the answer, instead of digging through polymer-cli, webcomponentsjs, polymer-build trying to understand how to support pre-ES6 browsers.

Straight forward points - ES6 -> ES5 Transpilation for supporting older browsers & new browsers that still don’t implement ES6 fully (e.g. stable Safari):

Files to transpile:

  • Polymer/polymer@2.0-preview library should be transpiled to ES5. As it is released for modern browsers supporting ES6 (no separate ES5 release or transpilation included in the library).
  • Officially released webcomponents 2.0-preview (bower_components) should be transpiled to ES5.
  • Your custom elements should be ofcourse also transpiled.
  • webcomponentsjs library should be left untouched (do not transpile).

Scripts to load:

Shims/Polyfills to use for adding new features support: - webcomponents-lite.js should be loaded to add shim for new DOM V1 features and others. - custom-elements-es5-adapter.js is used to support modern ES6 browsers (fixing the class inherence issue after transpiling classes to common js), in case the app is served in ES5 only. As there is an option also to server different distribution codes according to the browsers requesting the app (user-agent), which is the recommended way for getting best performance on modern browsers.

Transpilation tool:

Example of Gulp build for ES5 transpilation using Babel:

const gulp = require('gulp'),
    gulpif = require('gulp-if'),
    HtmlSplitter = require('polymer-build').HtmlSplitter,
    sourcesHtmlSplitter = new HtmlSplitter(),
    babelPresetES2015 = require('babel-preset-es2015'),
    babelPresetES2015NoModules = babelPresetES2015.buildPreset({}, {modules: false}),
    babel = require('gulp-babel')

gulp.task('polymerLibraryTranpilation', () => {
    return gulp.src([
                    './bower_components/polymer/**/*.html'
                ])
        .pipe(sourcesHtmlSplitter.split())
        .pipe( gulpif( /\.js$/, babel({ "presets": [ babelPresetES2015NoModules]}) ) )
        .pipe(sourcesHtmlSplitter.rejoin())
        .pipe(gulp.dest('./bower_components/polymer'))
})

gulp.task('webcomponentsTranspilation', () => {
    return gulp.src([
            './yourCustomWebcomponentsFolder/**/*.html',
                    './bower_components/**/*.html',
            '!' + './bower_components/webcomponentsjs/**/*.html',
            '!' + './bower_components/polymer/**/*.html',
                ])
        .pipe(sourcesHtmlSplitter.split())
        .pipe( gulpif( /\.js$/, babel({ "presets": ['./node_modules/babel-preset-es2015']}) ) )
        .pipe(sourcesHtmlSplitter.rejoin())
        .pipe(gulp.dest('./'))
})

The code snippet is not tested, so expect syntax errors, I actually use a custom very different build, but the concept should be the same.

Versions:

Tested on these versions: - Polymer v2.0.0-rc.6 - Webcomponentsjs v1.0.0-rc.8

In Bower.json (don’t forget to persist the versions, as Bower can be hard to work with sometimes): - "polymer": "Polymer/polymer#2.0.0-rc.6", - "webcomponentsjs": "webcomponents/webcomponentsjs#1.0.0-rc.8"

Hope this helps.

Copied from original issue: Polymer/polymer#4549

Updated 27/04/2017 22:38 3 Comments

[DateRangePicker] Fix hover state when contiguousCalendarMonths = false

palantir/blueprint

<!– Is this a support question? Please post to Stack Overflow with the “blueprintjs” tag instead. –> <!– Delete this template for feature requests. –>

Bug report

  • Package version(s): Datetime v1.14.0

Steps to reproduce

  1. Render <DateRangePicker contiguousCalendarMonths={false} />
  2. Click a date.
  3. Move your mouse over other dates.

Actual behavior (first few seconds)

Expected behavior (last few seconds)

2017-04-27 15 15 23

@leebyp looks like we didn’t merge properly after all!

Updated 27/04/2017 22:18

influxdb_return.py throws exception

saltstack/salt

Description of Issue/Question

Attempting to use –return influxdb with test.ping results in an exception in the minion log, and no data written to influxdb

Setup

# cat /etc/salt/master | grep influxdb
influxdb.host: 'influxdb'
influxdb.db: 'metrics'
influxdb.user: 'writer'
influxdb.password: 'writer'
influxdb.port: 8086

Steps to Reproduce Issue

# salt --return influxdb master test.ping
master:
    True
2017-04-27 19:35:06,141 [salt.minion      ][INFO    ][23662] User root Executing command test.ping with jid 20170427193506130542
2017-04-27 19:35:06,141 [salt.minion      ][DEBUG   ][23662] Command details {'tgt_type': 'glob', 'jid': '20170427193506130542', 'tgt': 'master', 'ret': 'influxdb', 'user': 'root', 'arg': [], 'fun': 'test.ping'}
2017-04-27 19:35:06,157 [salt.minion      ][INFO    ][28564] Starting a new job with PID 28564
2017-04-27 19:35:06,181 [salt.utils.lazy  ][DEBUG   ][28564] LazyLoaded test.ping
2017-04-27 19:35:06,182 [salt.utils.lazy  ][DEBUG   ][28564] LazyLoaded direct_call.get
2017-04-27 19:35:06,182 [salt.minion      ][DEBUG   ][28564] Minion return retry timer set to 9 seconds (randomized)
2017-04-27 19:35:06,182 [salt.minion      ][INFO    ][28564] Returning information for job: 20170427193506130542
2017-04-27 19:35:06,183 [salt.transport.zeromq][DEBUG   ][28564] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'master', 'tcp://127.0.0.1:4506', 'aes')
2017-04-27 19:35:06,183 [salt.crypt       ][DEBUG   ][28564] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'master', 'tcp://127.0.0.1:4506')
2017-04-27 19:35:06,209 [salt.utils.lazy  ][DEBUG   ][28564] LazyLoaded influxdb.returner
2017-04-27 19:35:06,210 [salt.minion      ][ERROR   ][28564] The return failed for job 20170427193506130542 sequence item 1: expected string, int found
2017-04-27 19:35:06,210 [salt.minion      ][ERROR   ][28564] Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 1556, in _thread_return
    minion_instance.returners[returner_str](ret)
  File "/usr/lib/python2.7/dist-packages/salt/returners/influxdb_return.py", line 152, in returner
    serv = _get_serv(ret)
  File "/usr/lib/python2.7/dist-packages/salt/returners/influxdb_return.py", line 130, in _get_serv
    version = _get_version(host, port, user, password)
  File "/usr/lib/python2.7/dist-packages/salt/utils/decorators/__init__.py", line 248, in _memoize
    args_ = ','.join(list(args) + ['{0}={1}'.format(k, kwargs[k]) for k in sorted(kwargs)])
TypeError: sequence item 1: expected string, int found

Versions Report

Salt Version:
           Salt: 2017.5.0-2-gfa2c8f8

Dependency Versions:
           cffi: 1.10.0
       cherrypy: Not Installed
       dateutil: 2.6.0
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.7.2
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: 1.2.3
      pycparser: 2.17
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: Not Installed
         Python: 2.7.6 (default, Oct 26 2016, 20:30:19)
   python-gnupg: Not Installed
         PyYAML: 3.10
          PyZMQ: 14.0.1
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5

System Versions:
           dist: Ubuntu 14.04 trusty
        machine: x86_64
        release: 3.13.0-112-generic
         system: Linux
        version: Ubuntu 14.04 trusty
Updated 28/04/2017 18:25 2 Comments

Is there any way to ignore certain type of errors?

swagger-api/swagger-ui

I am working with version 3.0.7.

I have a spec that reference an external swagger doc which have some missing definitions. These definitions are not directly referenced from my doc. But they are referenced from the definitions referenced by my doc. So when I open the page, I got a list of errors saying: “Could not resolve pointer: …”.

This error doesn’t prevent me from using the swagger doc and those definitions are not currently used. The external doc belongs to a different group which I have no control of. So I cannot remove the missing references. And that group has no intention to add the missing definitions because they are placeholders for future use.

When I used an older version of swagger ui, no error was reported. However with version 3.0.7, I keep getting this error. I would like to ignore this type of error and not display them on top of the page. Is there any way to achieve that?

Thanks.

Updated 28/04/2017 21:43 1 Comments

[DateRangeInput] Fix controlled-popover issues

palantir/blueprint

Checklist

  • [x] Include tests
    • [x] Invokes popoverProps.onInteraction when start input focuses (maybe we should set isOpen=true and invoke onInteraction only if popover is not yet open?)
    • [x] Invokes popoverProps.onInteraction when end input focuses (same question as above)
    • [x] Invokes popoverProps.onInteraction when date range is fully selected
    • [x] Does not invoke popoverProps.onInteraction when date range is fully selected but closeOnSelection={false}
    • [x] Popover opens right away if popoverProps.isOpen={true} (should we also auto-focus in the start field, or just let that happen automatically as soon as the user hovers over a date?)
    • [x] Popover never closes if popoverProps.isOpen={true}
    • [x] Popover never opens if popoverProps.isOpen={false}
  • [ ] Revert example changes once we’ve tested new behavior

Changes proposed in this pull request:

  • Explicitly invoke popoverProps.onInteraction whenever we update isOpen in dRI.tsx.
  • Add an isOpen() helper that returns popoverProps.isOpen if it exists (instead of this.state.isOpen`).

Reviewers should focus on:

  • Should we bother updating this.state.isOpen at all if the popoverProps.isOpen is defined? Currently, I’m updating state but simply ignoring it if the popover is controlled.
  • I’ll revert my DateRangeInputExample changes before merging.
Updated 28/04/2017 17:44 3 Comments

How to default the opblock-tag-section to collapsed?

swagger-api/swagger-ui

I am trying to migrate from version 2.1.5 to version 3.0.7.

With the old version, we set docExpansion: “none”. It seems this parameter is no longer supported in the new version. When we open the page, it seems default to “list”. What can I do to make it displays the same as before?

I was able to manually make changes in swagger-ui-bundle.js file so that it defaults to collapsed. But I would rather find a more elegant way to handle this issue. Thanks.

Updated 28/04/2017 21:44 1 Comments

Configuration merge semantics

googleapis/artman

From @lukesneeringer’s comment on #171:

However, should we consider trying to have a standard format in our YAML for when we have common parameters with potential language overrides? This format seems to be distinct from the format used in artman_{api}.yaml.

I think, of the two, I prefer the other format, which comes down to:

---
common:
  foo: bar
  baz:
    spam: eggs
python:
  foo: bacon
  baz:
    hello: goodbye
node:
  baz:
    spam: weeee!

Which Artman amalgamates together so that in Python, you get:

---
foo: bacon
baz:
  spam: eggs
  hello: goodbye

And in Node you get:

---
foo: bar
baz:
  spam: weeeee!
Updated 27/04/2017 17:20

Swagger encodes multipart/form-data

swagger-api/swagger-ui

Whenever parameters are sent throughout a form with multipart/form-data, Swagger-ui 3.0.7 will encode this form data. This causes some servers to not accept the request, since they do not expect encoded data.

Current behaviour: ``` ——WebKitFormBoundaryfpVH8U4cUAWn1Hg1 Content-Disposition: form-data; name=“file”; filename=“test.zip” Content-Type: application/zip

——WebKitFormBoundaryfpVH8U4cUAWn1Hg1 Content-Disposition: form-data; name=“test”

test%20test ——WebKitFormBoundaryfpVH8U4cUAWn1Hg1– ```

Expected behaviour: ``` ——WebKitFormBoundaryfpVH8U4cUAWn1Hg1 Content-Disposition: form-data; name=“file”; filename=“test.zip” Content-Type: application/zip

——WebKitFormBoundaryfpVH8U4cUAWn1Hg1 Content-Disposition: form-data; name=“test”

test test ——WebKitFormBoundaryfpVH8U4cUAWn1Hg1– The corresponding swagger.yaml: yaml paths: /test: post: consumes: - multipart/form-data parameters: - name: file in: formData required: true type: file - name: test in: formData required: true type: string responses: 200: description: Test ```

I’m not sure whether this is expected behaviour or not, but I could not find anything on this issue. Thanks in advance!

PS: I’m not sure whether it is intended behaviour to only send data as multipart/form-data when there is a parameter with the file-type, but right now I could not get it to work without adding the file-parameter.

Updated 27/04/2017 16:43

Reskin: Clicking on 'View Client' in uploading documents for a client navigates to a wrong page.

openMF/community-app

@santoshmath and @MexinaD, in uploading document page of a client, clicking the breadcrumb ‘View Client’ takes to an empty page, as the link it goes to is not correct. Take a look here - https://demo.openmf.org#/addclientdocument/16

Attached the screenshot below( look at bottom left corner for url it goes to when clicked on ‘view client’) Please clarify the issue, I will fix it as soon as it is clarified. Thanks:)

screen shot 2017-04-27 at 6 56 09 pm

Updated 27/04/2017 14:42 2 Comments

crash in the medias viewer

vector-im/riot-android

Marked as P2 because we cannot reproduce it.

https://riot.im/bugreports/listing/2017-04-24/201239/

reported by @brownc:matrix.org Phone: ASUS_Z00A (227967daca 7.1.1 REL)

thread: main, Activity:im.vector.activity.VectorMediasViewerActivity, Exception: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 at java.util.ArrayList.get(ArrayList.java:411) at android.support.v4.view.ViewPager.getChildDrawingOrder(ViewPager.java:737) at android.view.View.populateAccessibilityNodeInfoDrawingOrderInParent(View.java:7040) at android.view.View.onInitializeAccessibilityNodeInfoInternal(View.java:6993) at android.view.ViewGroup.onInitializeAccessibilityNodeInfoInternal(ViewGroup.java:3069) at android.webkit.WebView.onInitializeAccessibilityNodeInfoInternal(WebView.java:2497) at android.view.View.onInitializeAccessibilityNodeInfo(View.java:6609) at org.chromium.content.browser.accessibility.BrowserAccessibilityManager.createAccessibilityNodeInfo(BrowserAccessibilityManager.java:4656) at org.chromium.content.browser.accessibility.BrowserAccessibilityManager$1.createAccessibilityNodeInfo(BrowserAccessibilityManager.java:118) at android.view.View.createAccessibilityNodeInfoInternal(View.java:6565) at android.view.View.createAccessibilityNodeInfo(View.java:6553) at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:145) at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:119) at android.view.View.onInitializeAccessibilityEventInternal(View.java:6505) at android.webkit.WebView.onInitializeAccessibilityEventInternal(WebView.java:2504) at android.view.View.onInitializeAccessibilityEvent(View.java:6493) at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:6358) at android.view.View.sendAccessibilityEventUnchecked(View.java:6343) at android.view.View$SendViewStateChangedAccessibilityEvent.run(View.java:23679) at android.view.View$SendViewStateChangedAccessibilityEvent.runOrPost(View.java:23712) at android.view.View.notifyViewAccessibilityStateChangedIfNeeded(View.java:9475) at android.view.View.onFocusChanged(View.java:6226) at android.webkit.WebView.onFocusChanged(WebView.java:2575) at android.view.View.clearFocusInternal(View.java:6130) at android.view.View.unFocus(View.java:6163) at android.view.ViewGroup.unFocus(ViewGroup.java:996) at android.view.ViewGroup.unFocus(ViewGroup.java:998) at android.view.ViewGroup.requestChildFocus(ViewGroup.java:735) at android.view.ViewGroup.addViewInner(ViewGroup.java:4449) at android.view.ViewGroup.addView(ViewGroup.java:4258) at android.support.v4.view.ViewPager.addView(ViewPager.java:1413) at android.view.ViewGroup.addView(ViewGroup.java:4198) at im.vector.adapters.VectorMediasViewerAdapter.instantiateItem(VectorMediasViewerAdapter.java:414) at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:943) at android.support.v4.view.ViewPager.populate(ViewPager.java:1125) at android.support.v4.view.ViewPager.populate(ViewPager.java:1025) at android.support.v4.view.ViewPager$3.run(ViewPager.java:254) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874) at android.view.Choreographer.doCallbacks(Choreographer.java:686) at android.view.Choreographer.doFrame(Choreographer.java:618) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6176) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)

Updated 27/04/2017 13:26

Filegroup lead to unexpected data_runfiles

bazelbuild/bazel

Description of the problem / feature request / question:

Filegroups srcs are exposed as data_runfiles in an aspect. This is unexpected IMO because I did not specify the explicit data attribute.

If possible, provide a minimal example to reproduce the problem:

filegroup(
    name = "foo",
    srcs = [
        "foo1.cpp", # This will be a file in `data_runfiles`
    ],
)

Environment info

  • Operating System: Ubuntu 16.04
  • Bazel version (output of bazel info release): 0.4.5

Have you found anything relevant by searching the web?

Original question here: https://stackoverflow.com/questions/43654278/unexpected-data-runfiles-of-filegroup-appearing-in-aspect

Updated 28/04/2017 11:32

As a user I can supress methods from the REST API generated by composer-rest-server

hyperledger/composer

<!— Provide a general summary of the issue in the Title above –>

Context

In some scenarios people would like to supress some of the CRUD methods generated for asset, participants, transactions.

Expected Behavior

Should be able to configure the composer-rest-server so that not all methods are exposed.

Actual Behavior

The REST methods generated are hard coded into the composer-rest-server.

Possible Fix

Some sort of configuration file that can be used to specific which REST verbs are generated for each resource type.

Steps to Reproduce

  1. Deploy a BNA
  2. Expose via REST using the composer-rest-server

Existing issues

<!– Have you searched for any existing issues or are their any similar issues that you’ve found? –> - [x] Stack Overflow issues - [x] GitHub Issues - [x] Rocket Chat history

https://chat.hyperledger.org/channel/fabric-composer?msg=SbMYn4eKXqPmNP3pj

<!– please include any links to issues here –>

Context

It allows people to prevent CRUD access to resources.

Your Environment

<!— Include as many relevant details about the environment you experienced the bug in –> * Version used: 0.5.12 * Environment name and version (e.g. Chrome 39, node.js 5.4): * Operating System and version (desktop or mobile): * Link to your project:

Updated 27/04/2017 10:52

Unhandled exception for data configuration

bazelbuild/bazel

Description of the problem / feature request / question:

When I try to run our build, it results in an unhandled exception. And the error message is not terribly helpful.

Unhandled exception thrown during build; message: Unrecoverable error while evaluating node 'CONFIGURED_TARGET://gof3m_assets/target/uncompressed_debug_high:assets/planets/materials/planet_rigant_moon_003_sparks_001.material.stage1 82b988cccd1a5fb4e16f7165efcd8bb1 (432935828 2023429252)' (requested by nodes 'CONFIGURED_TARGET://gof3m_assets/target/uncompressed_debug_high:all_materials 82b988cccd1a5fb4e16f7165efcd8bb1 (1628497015 2023429252)')
 INFO: Elapsed time: 41.638s
 java.lang.RuntimeException: Unrecoverable error while evaluating node 'CONFIGURED_TARGET://gof3m_assets/target/uncompressed_debug_high:assets/planets/materials/planet_rigant_moon_003_sparks_001.material.stage1 82b988cccd1a5fb4e16f7165efcd8bb1 (432935828 2023429252)' (requested by nodes 'CONFIGURED_TARGET://gof3m_assets/target/uncompressed_debug_high:all_materials 82b988cccd1a5fb4e16f7165efcd8bb1 (1628497015 2023429252)')
at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:448)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:501)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
 Caused by: java.lang.IllegalStateException: /my/gof3m_assets/target/uncompressed_debug_high/BUILD:1383:1: _ae_material attribute data is not configured for the data configuration
at com.google.devtools.build.lib.analysis.RuleContext.checkAttribute(RuleContext.java:1106)
at com.google.devtools.build.lib.analysis.RuleContext.getPrerequisites(RuleContext.java:714)
at com.google.devtools.build.lib.analysis.Runfiles$Builder.getPrerequisites(Runfiles.java:1112)
at com.google.devtools.build.lib.analysis.Runfiles$Builder.addDataDeps(Runfiles.java:982)
at com.google.devtools.build.lib.analysis.Runfiles$Builder.addRunfiles(Runfiles.java:954)
at com.google.devtools.build.lib.rules.SkylarkRuleImplementationFunctions$6.invoke(SkylarkRuleImplementationFunctions.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.devtools.build.lib.syntax.BuiltinFunction.call(BuiltinFunction.java:155)
at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:428)
at com.google.devtools.build.lib.syntax.FuncallExpression.invokeObjectMethod(FuncallExpression.java:616)
at com.google.devtools.build.lib.syntax.FuncallExpression.invokeObjectMethod(FuncallExpression.java:717)
at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:703)
at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:43)
at com.google.devtools.build.lib.syntax.FuncallExpression.evalArguments(FuncallExpression.java:676)
at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:739)
at com.google.devtools.build.lib.syntax.FuncallExpression.invokeGlobalFunction(FuncallExpression.java:726)
at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:703)
at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:43)
at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:79)
at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:428)
at com.google.devtools.build.lib.rules.SkylarkRuleConfiguredTargetBuilder.buildRule(SkylarkRuleConfiguredTargetBuilder.java:84)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:268)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:177)
at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:487)
at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:1109)
at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:254)
at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:374)
... 4 more
 java.lang.RuntimeException: Unrecoverable error while evaluating node 'CONFIGURED_TARGET://gof3m_assets/target/uncompressed_debug_high:assets/planets/materials/planet_rigant_moon_003_sparks_001.material.stage1 82b988cccd1a5fb4e16f7165efcd8bb1 (432935828 2023429252)' (requested by nodes 'CONFIGURED_TARGET://gof3m_assets/target/uncompressed_debug_high:all_materials 82b988cccd1a5fb4e16f7165efcd8bb1 (1628497015 2023429252)')
at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:448)
at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:501)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
 Caused by: java.lang.IllegalStateException: /my/gof3m_assets/target/uncompressed_debug_high/BUILD:1383:1: _ae_material attribute data is not configured for the data configuration
at com.google.devtools.build.lib.analysis.RuleContext.checkAttribute(RuleContext.java:1106)
at com.google.devtools.build.lib.analysis.RuleContext.getPrerequisites(RuleContext.java:714)
at com.google.devtools.build.lib.analysis.Runfiles$Builder.getPrerequisites(Runfiles.java:1112)
at com.google.devtools.build.lib.analysis.Runfiles$Builder.addDataDeps(Runfiles.java:982)
at com.google.devtools.build.lib.analysis.Runfiles$Builder.addRunfiles(Runfiles.java:954)
at com.google.devtools.build.lib.rules.SkylarkRuleImplementationFunctions$6.invoke(SkylarkRuleImplementationFunctions.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.devtools.build.lib.syntax.BuiltinFunction.call(BuiltinFunction.java:155)
at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:428)
at com.google.devtools.build.lib.syntax.FuncallExpression.invokeObjectMethod(FuncallExpression.java:616)
at com.google.devtools.build.lib.syntax.FuncallExpression.invokeObjectMethod(FuncallExpression.java:717)
at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:703)
at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:43)
at com.google.devtools.build.lib.syntax.FuncallExpression.evalArguments(FuncallExpression.java:676)
at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:739)
at com.google.devtools.build.lib.syntax.FuncallExpression.invokeGlobalFunction(FuncallExpression.java:726)
at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:703)
at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:43)
at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:79)
at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:428)
at com.google.devtools.build.lib.rules.SkylarkRuleConfiguredTargetBuilder.buildRule(SkylarkRuleConfiguredTargetBuilder.java:84)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:268)
at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:177)
at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:487)
at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:1109)
at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:254)
at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:374)
... 4 more

If possible, provide a minimal example to reproduce the problem:

I have something like:

def _ae_material(ctx):
    ...
    return struct(
        runfiles=ctx.runfiles(
             [myfile],
             collect_default = True,
        ),
    )

_ae_material = rule(
    attrs = dict({
        ...
        "data": attr.label_list(allow_files = [".myformat"]),
    },

Environment info

  • Operating System: Ubuntu 16.04
  • Bazel version (output of bazel info release): 0.4.5

Have you found anything relevant by searching the web?

Nope

Updated 28/04/2017 11:31 1 Comments

config files lost their inheritance look-and-feel and links

dotnet/docs

I think it was not during this migration, but on the migration to our last tool, that our configuration docs lost some of its formatting.

Compare: https://msdn.microsoft.com/en-us/library/7a151659-b803-4c27-b5ce-1c4aa0d5a823(v=vs.100) https://docs.microsoft.com/en-us/dotnet/articles/framework/configure-apps/file-schema/compiler/compiler-element

image vs. image

I think it’d be good to restore that at some point.

Updated 27/04/2017 07:28

Reskin: Nothing Happens on clicking approve in 'view checker inbox' for updating datatable entry

openMF/community-app

Approve in ‘view checker inbox’ for updation of datatable is not working, on clicking ‘approve’, loading gif comes and then comes back without anything happening. Here is an example - https://demo.openmf.org#/viewcheckerinbox/14130 @MexinaD and @santoshmath , Could you please clarify on this.? Here is the screenshot of that page. screen shot 2017-04-27 at 12 25 35 pm

Updated 28/04/2017 09:10

showEndTickLabels does nothing

palantir/plottable

NumericAxis calls _hideOverflowingTickLabels which hides all tick labels that are outside of the Axis bounding box. Then, we do exactly that logic again, on the end ticks, iff showEndTickLabels() is false. This means showEndTickLabels does nothing. We should either remove the API endpoint or change _hideOverflowingTickLabels.

Updated 26/04/2017 23:30

Inconsistent Markdown Newlines

swagger-api/swagger-ui

In the info description, newlines work as expected, producing a blank line between Something in a line and And something in a **new** line but in operation descriptions, the blank line doesn’t appear. The schema below illustrates.

{
  "swagger" : "2.0",
  "info" : {
    "description" : "Something in a line  \n  \nAnd something in a **new** line.",
    "version" : "V2.0.0",
    "title" : "Newline behavior"
  },
  "host" : "localhost:1234",
  "tags" : [ {
    "name" : "Tag1"
  } ],
  "schemes" : [ "http" ],
  "consumes" : [ "application/json", "application/xml" ],
  "produces" : [ "application/json", "application/xml" ],
  "paths" : {
    "/" : {
      "get" : {
        "tags" : [ "Tag1" ],
        "summary" : "operation",
        "description" : "Something in a line  \n  \nAnd something in a **new** line.",
        "operationId" : "getVersions",
        "produces" : [ "application/json" ],
        "parameters" : [ ],
        "responses" : {
          "200" : {
            "description" : "successful operation",
            "schema" : {
              "type" : "object",
              "additionalProperties" : {
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }
            },
            "headers" : { }
          }
        }
      }
    },

  },
  "definitions" : {
  }
}
Updated 27/04/2017 16:47 2 Comments

Failure in driver and neutron-lbaas tempest scenario tests

F5Networks/f5-openstack-lbaasv2-driver
  • Details: we need to fix the failing driver and neutron-lbaas tempest scenario test.

Description

As part of debugging and fixing tempest scenario test failures, we need to make modification on how we install test infrastructure. Also we need to get the pin the branch of upper constraint file we get from openstack global requirement erpo.

OpenStack Release

stable/mitaka

Bug Severity

For bugs enter the bug severity level. Do not set any labels.

Severity: <Fill in level: 1 through 5>

Severity level definitions: 1. Severity 1 (Critical) : Defect is causing systems to be offline and/or nonfunctional. immediate attention is required. 2. Severity 2 (High) : Defect is causing major obstruction of system operations. 3. Severity 3 (Medium) : Defect is causing intermittent errors in system operations. 4. Severity 4 (Low) : Defect is causing infrequent interuptions in system operations. 5. Severity 5 (Trival) : Defect is not causing any interuptions to system operations, but none-the-less is a bug.

Updated 27/04/2017 20:29

DHCP6 Client should be optional

openthread/openthread

With the recent update to the build environment, the dhcp6_client.cpp file missed its enable macro check.

The macro check and matching “endif” should be added to the file. Also, if not present, the openthread-config.h header must also be included, wrapped with the if/else/endif scheme noted in the below comment and example in this ticket.

#ifdef OPENTHREAD_CONFIG_FILE
#include OPENTHREAD_CONFIG_FILE
#else
#include <openthread-config.h>
#endif

//...

#if OPENTHREAD_ENABLE_DHCP6_CLIENT
//...
#endif
Updated 28/04/2017 05:59 4 Comments

Swagger-editor should not reject multiple template parameters in a single URI segment

swagger-api/swagger-editor

Version: 3.x (http://editor.swagger.io/#/)

It looks like swagger-editor now rejects any path that contains multiple template parameters in a single URI segment (see Assertion 6 in https://github.com/swagger-api/swagger-editor/blob/master/src/plugins/validation/semantic-validators/validators/paths.js).

This means that specs like the following now fail validation: json { "info": { "title": "Sample", "version": "0.1.0" }, "paths": { "/path/{param1},{param2}": { "get": { "parameters": [ { "description": "The first parameter.", "in": "path", "name": "param1", "required": true, "type": "string" }, { "description": "The second parameter.", "in": "path", "name": "param2", "required": true, "type": "string" } ], "responses": { "default": { "description": "Some response." } }, "summary": "Some operation." } } }, "swagger": "2.0" }

Why are such paths now considered illegal, though? The Swagger spec does not seem to bar a single URI segment from containing multiple template parameters. Moreover, the sample specification above still passes validation when used in the older version of swagger-editor or using validator-badge.

Updated 27/04/2017 17:18 1 Comments

Yeoman Angular generator assumes composer-rest-server using namespaces

hyperledger/composer

Context

If you run the composer-rest-server and select the option to not use namespaces then the generated Angular application does not work (due to 404s contacting the composer-rest-server)

Expected Behavior

Generated Angular app works, irrespective of whether the composer-rest-server is

Actual Behavior

Generated app does not display any data. No error messages.

Possible Fix

Update the Angular code generator to discover models from the Loopback Swagger? Ask the user whether they launched composer-rest-server using namespace support?

Steps to Reproduce

  1. Deploy a BNA
  2. Start the composer-rest-server, selecting the “no namespaces” option
  3. Use Swagger UI to create some assets
  4. Generate Angular app
  5. Start the app, no data will be displayed

Existing issues

<!– Have you searched for any existing issues or are their any similar issues that you’ve found? –> - [x] Stack Overflow issues - [x] GitHub Issues - [x] Rocket Chat history

<!– please include any links to issues here –>

Context

I like the REST API without namespaces. I like the Angular generator. I cannot use them together.

Your Environment

  • Version used: 0.5.12
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your project:
Updated 26/04/2017 12:41

Support for a relative url parameter is not complete in 3.0.7

swagger-api/swagger-ui

Hi, when I enter a relative ‘url’ parameter in a browser, when requesting Swagger UI (3.0.7), I still see 3 minor issues: 1. Relative url value is still shown the Explore window, in UI 2.x it was correctly converted to the absolute URL 2. Application Link text (directly under a [Base url …]) still shows a relative url, while the actual link value is correct 3. Online Validator fails because a relative url is submitted to it

I can provide the attachments if it can help, thanks

Updated 26/04/2017 15:17

win.blur() doesn't work on linux

nwjs/nw.js

nw.js version: v0.22.0 os version: ubuntu 14.04 the following is code:

<button onclick="moveFocusAway()">Move Focus Away</button>
<script>

var win_1 = nw.Window.get();
var win_2 = null;
nw.Window.open('secondapp.html', {
  "title": "Second App",
  "position": "mouse"
  }, function(w) {
    win_2 = w;
    win_1.focus();
  }
)
function moveFocusAway() {
  win_1.blur();
}

</script>

win_1.blur() doesn’t move focus away to secondapp.html when clicking button.

Updated 27/04/2017 06:58 3 Comments

Style module issues in Edge/IE11

Polymer/polymer

Description

The PSK includes a shared styles module that only sets standard CSS properties which seem to work in all supported browsers. Since I had problems in my real project with IE11/Edge, I tried to repro the problem with a fresh PSK and just changing the text color. I don’t know whether I have to include something special for IE11/Edge? I did only find the note that custom-style would be needed in document level styles but that is not the case here.

Steps to Reproduce

  • Create a new PSK project
  • Open shared-styles.html and comment out the color property settings for the .card class and the h1 tag.
  • Add :root { color: red; }

Expected Results

In all browsers the titles and texts in the views should be red.

Actual Results

Chrome/FF behave as expected. IE11/Edge ignore the setting, the text color stays black

Browsers Affected

<!– Check all that apply –> - [ ] Chrome - [ ] Firefox - [x] Edge - [ ] Safari 9 - [ ] Safari 8 - [x] IE 11

Versions

<!– Polymer.version will show the version for Polymer bower ls or npm ls will show the version of webcomponents.js or webcomponents-lite.js –> - Polymer: polymer#2.0.0-rc.7 - webcomponents: webcomponentsjs#1.0.0-rc.11

Updated 27/04/2017 22:27 4 Comments

Better Filters

haslo/lists_juggle_browser

Via FFG Forums:

Every time I use it I’ve been looking for a way to filter out some of the smaller events to try and reduce the noise a bit. Is there a feature to not include data from tournaments under X players I’m missing somewhere? And if not, there’s a feature request for you :)

Indeed, having some advanced filters would be nice.

Updated 25/04/2017 22:41

Onboard Cohort 2 through Webinar

mozilla/Reps

Goal:

The Cohort 2 (11 applicants) is onboarded through the Webinar.

Related Issues & Links:

[Cohort 1 tracking] #154

Roles:

Responsible: @MichaelKohler Accountable: Reps Council Supporting: @couci Consulted: Informed:

Required:

  • [x] Create Webinar wiki page for this Cohort (link to previous Webinar with a few additions) (@MichaelKohler, Due: May 3rd)
  • [x] Cohort tracking sheet is updated to include Cohort 2 (@MichaelKohler, Due: May 3rd)
  • [ ] Send out notification on application bugs (@MichaelKohler, Due: May 3rd)
  • [ ] All received plans are given feedback on (@MichaelKohler, Due: May 30th)
  • [ ] All onboarding Reps are evaluated and Orientation Period is finished or extended (@MichaelKohler, Due: July 30th)
Updated 25/04/2017 21:15 1 Comments

Aspect example isn't doing what is reasonably expected when generating output file names

bazelbuild/bazel

https://bazel.build/versions/master/docs/skylark/aspects.html#implementation-functions

The code in question: outputs = [ctx.new_file(f.short_path + ".metal") for f in proto_sources]

Reading this I would expect this to generate files in the same directory as the proto sources but with a longer suffix. Instead since short_path is The path of this file relative to its root. but ctx.new_file says it Creates a file object with the given filename, in the current package., this results in the package path getting duplicated in the resulting output.

https://bazel.build/versions/master/docs/skylark/lib/File.html#short_path https://bazel.build/versions/master/docs/skylark/lib/ctx.html#new_file(filename)

Updated 28/04/2017 16:14 4 Comments

Windows: bootstrapping doesn't work under Cygwin

bazelbuild/bazel

Related to https://github.com/bazelbuild/bazel/issues/2725

Bootstrapping doesn’t work under Cygwin.

I already discovered the following problems and fixed them in a pending change (https://bazel-review.googlesource.com/c/10470/): - the bootstrap scripts don’t expect uname to return “cygwin*” - JAVA_HOME default value in scripts/bootstrap/buildenv.sh is computed using msys path (/c/...) instead of cygwin path (/cygdrive/c/...) - we pass ${PWD} as --client_cwd and --workspace_directory in scripts/bootstrap/compile.sh:run_bazel_jar but WindowsFileSystem.java doesn’t understand /cygdrive/c/... and attempts to make it relative to the MSYS root (c:/cygwin64/) but this doesn’t exist

Updated 25/04/2017 13:10

skylark: rule.outputs is underdocumented

bazelbuild/bazel

(originally reported by @alandonovan) The documentation at https://bazel.build/versions/master/docs/skylark/lib/globals.html#parameters-22 is vague. It should answer the following questions:

  • What are valid attribute types in %{attr}?
  • How is each type of attribute converted to a string by %{attr}?
  • What happens if the attribute is a sequence, such as %{deps}?
  • What happens if multiple sequence attributes appear in the same template?
  • What’s the typical significance of the dict key?

Peeking at the implementation, the answers appear to be: - Only strings and lists of strings. - strings are unchanged; lists of strings are expanded elementwise - “%{x}-%{y}” produces the cross product of lists x and y - if the cross product is greater than 1, it’s an error. if it’s empty, there are no implicit outputs. otherwise the sole member of the cross product is used.

All this begs the question: what’s the point of the cross-product logic if the resulting set has at most one element?

Also: why is it that the ‘implicit outputs’ function has access to whichever attributes it wants through its parameters AND returns a dict of templates “%{name}-%{srcs}.x” that are then subject to further attribute expansion? It seems redundant.

There are not one but three ad-hoc conversion processes here: 1. existing_rule 2. the mechanism that converts rule attributes into arguments to the rule.outputs function 3. the attributesValue function that converts a rule and a %{foo} pattern to a list of strings.

Ideally there would be one (clearly documented) conversion from attributes to Skylark values to replace #1 and #2. #3 would be replaced by an extremely simple conversion such as “%s” recursively applied to each Skylark value. Anything else—dirname, basename; removal of files extensions, etc) should be done by writing Skylark logic.

Users do not have to write output functions very often. It is better to make them explicit than concise, and doing so lets you simplify the implementation and the spec.

Updated 25/04/2017 11:30

The safari doesn't display the error message when the type of parameter is not right in the block "show string"

Microsoft/pxt

Repro steps: • Navigate to https://pxt.microbit.org/beta •Drag blocks like the follow gif • Click “start the simulator” under the simulator

Expect result: the safari should show the tips like the firefox Actual result: the safari don’t show the tips like the firefox firefox result: firefox

safari result: safari

Updated 26/04/2017 01:49

Bazel crashes with unrecoverable error when aspect has two actions for same file

bazelbuild/bazel
endobson@yggdrasil () ~/proj/racket/yaspl2 % bazel build --aspects libraries/yaspl-lint.bzl%yaspl_lint //libraries:io                                                                                                                     (0)
INFO: Reading 'startup' options from /Users/endobson/.bazelrc: --watchfs
Unhandled exception thrown during build; message: Unrecoverable error while evaluating node 'ASPECT:[]#//libraries:yaspl-lint.bzl%yaspl_lint 97ae9fe0de510a358fc34e4fa09cf85b 97ae9fe0de510a358fc34e4fa09cf85b {}' (requested by nodes 'LOAD_SKYLARK_ASPECT:com.google.devtools.build.lib.skyframe.AspectValue$SkylarkAspectLoadingKey@5a9039')
INFO: Elapsed time: 0.147s
java.lang.RuntimeException: Unrecoverable error while evaluating node 'ASPECT:[]#//libraries:yaspl-lint.bzl%yaspl_lint 97ae9fe0de510a358fc34e4fa09cf85b 97ae9fe0de510a358fc34e4fa09cf85b {}' (requested by nodes 'LOAD_SKYLARK_ASPECT:com.google.devtools.build.lib.skyframe.AspectValue$SkylarkAspectLoadingKey@5a9039')
        at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:448)
        at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:501)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: com.google.devtools.build.lib.actions.MutableActionGraph$ActionConflictException: for libraries/lint, previous action: action 'Writing file libraries/lint', attempted action: action 'Generating libraries/lint'
        at com.google.devtools.build.lib.skyframe.ActionLookupValue.filterSharedActionsAndThrowRuntimeIfConflict(ActionLookupValue.java:46)
        at com.google.devtools.build.lib.skyframe.ActionLookupValue.<init>(ActionLookupValue.java:51)
        at com.google.devtools.build.lib.skyframe.AspectValue.<init>(AspectValue.java:323)
        at com.google.devtools.build.lib.skyframe.AspectFunction.createAspect(AspectFunction.java:460)
        at com.google.devtools.build.lib.skyframe.AspectFunction.compute(AspectFunction.java:291)
        at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:374)
        ... 4 more
Caused by: com.google.devtools.build.lib.actions.MutableActionGraph$ActionConflictException: for libraries/lint, previous action: action 'Writing file libraries/lint', attempted action: action 'Generating libraries/lint'
        at com.google.devtools.build.lib.actions.Actions.maybeFilterSharedActionsAndThrowIfConflict(Actions.java:125)
        at com.google.devtools.build.lib.actions.Actions.filterSharedActionsAndThrowActionConflict(Actions.java:111)
        at com.google.devtools.build.lib.skyframe.ActionLookupValue.filterSharedActionsAndThrowRuntimeIfConflict(ActionLookupValue.java:43)
        ... 9 more
java.lang.RuntimeException: Unrecoverable error while evaluating node 'ASPECT:[]#//libraries:yaspl-lint.bzl%yaspl_lint 97ae9fe0de510a358fc34e4fa09cf85b 97ae9fe0de510a358fc34e4fa09cf85b {}' (requested by nodes 'LOAD_SKYLARK_ASPECT:com.google.devtools.build.lib.skyframe.AspectValue$SkylarkAspectLoadingKey@5a9039')
        at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:448)
        at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:501)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: com.google.devtools.build.lib.actions.MutableActionGraph$ActionConflictException: for libraries/lint, previous action: action 'Writing file libraries/lint', attempted action: action 'Generating libraries/lint'
        at com.google.devtools.build.lib.skyframe.ActionLookupValue.filterSharedActionsAndThrowRuntimeIfConflict(ActionLookupValue.java:46)
        at com.google.devtools.build.lib.skyframe.ActionLookupValue.<init>(ActionLookupValue.java:51)
        at com.google.devtools.build.lib.skyframe.AspectValue.<init>(AspectValue.java:323)
        at com.google.devtools.build.lib.skyframe.AspectFunction.createAspect(AspectFunction.java:460)
        at com.google.devtools.build.lib.skyframe.AspectFunction.compute(AspectFunction.java:291)
        at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:374)
        ... 4 more
Caused by: com.google.devtools.build.lib.actions.MutableActionGraph$ActionConflictException: for libraries/lint, previous action: action 'Writing file libraries/lint', attempted action: action 'Generating libraries/lint'
        at com.google.devtools.build.lib.actions.Actions.maybeFilterSharedActionsAndThrowIfConflict(Actions.java:125)
        at com.google.devtools.build.lib.actions.Actions.filterSharedActionsAndThrowActionConflict(Actions.java:111)
        at com.google.devtools.build.lib.skyframe.ActionLookupValue.filterSharedActionsAndThrowRuntimeIfConflict(ActionLookupValue.java:43)
        ... 9 more

My aspect rule. ``` def _yaspl_lint_impl(target, ctx): if (ctx.rule.kind == “yaspl_library”): outputs = [ctx.new_file(“lint”) for src in ctx.rule.attr.srcs for file in src.files] for output in outputs: print(output) ctx.file_action(output, “Contents”) ctx.action(command = “satehastuh”, outputs=[output])

return struct()

yaspl_lint = aspect( implementation = _yaspl_lint_impl, attr_aspects = [], ) ```

Updated 26/04/2017 12:00

ctx.new_file gives awful error message when called with 0 arguments

bazelbuild/bazel
def _yaspl_lint_impl(target, ctx):
  ctx.new_file()

yaspl_lint = aspect(
  implementation = _yaspl_lint_impl,
  attr_aspects = [],
)

When I run this aspect I get the following error: ERROR: /Users/endobson/proj/racket/yaspl2/libraries/BUILD:266:1: in //libraries:yaspl-lint.bzl%yaspl_lint aspect on yaspl_library rule //libraries:io: Traceback (most recent call last): File "/Users/endobson/proj/racket/yaspl2/libraries/BUILD", line 266 //libraries:yaspl-lint.bzl%yaspl_lint(...) File "/Users/endobson/proj/racket/yaspl2/libraries/yaspl-lint.bzl", line 3, in _yaspl_lint_impl ctx.new_file() Too many arguments (in function new_file() of ctx).

I have supplied 0 arguments, I don’t know how this could be too many.

Updated 26/04/2017 12:01

When using --aspects, using a non existent aspect gives poor error message.

bazelbuild/bazel
$ bazel build //libraries/... --aspects libraries/yaspl-lint.bzl%bogus
INFO: Reading 'startup' options from /Users/endobson/.bazelrc: --watchfs
ERROR: bogus from //libraries:yaspl-lint.bzl is not an aspect.
INFO: Found 267 targets...
ERROR: command succeeded, but not all targets were analyzed.
INFO: Elapsed time: 0.108s, Critical Path: 0.00s

The yaspl-lint.bzl file exists but the aspect bogus does not. The error message makes it looks like it exists and is a different type of object. My original issue was that I misspelled my aspect and thus it took a bit to figure out what the actual error was.

Updated 26/04/2017 20:17

Uncontrolled EditableText should not update value to defaultValue on rerender

palantir/blueprint

<!– Is this a support question? Please post to Stack Overflow with the “blueprintjs” tag instead. –> <!– Delete this template for feature requests. –>

Bug report

  • Package version(s): 1.15.0
  • Browser and OS versions: Chrome 57.0.2987.133 (64-bit) macOS Sierra 10.12.4 (16E195)

Steps to reproduce

  1. Create an EditableText in Uncontrolled mode (defaultValue set)
  2. Use onChange to cause a rerender whenever the event is fired

Actual behavior

The EditableText value changes back to the defaultValue on every rerender

Expected behavior

The value should not be affected by rerenders. DefaultValue should only affect the initial render.

Updated 26/04/2017 20:20

Hover type information on some identifiers is "any"

sourcegraph/javascript-typescript-langserver
  • https://sourcegraph.com/github.com/NativeScript/NativeScript/-/blob/apps/app/cuteness.io/app.ts#L9:13-9:18
  • https://sourcegraph.com/github.com/NativeScript/NativeScript/-/blob/tests/app/pages/fonts-test.ts#L7:37-7:53
  • https://sourcegraph.com/github.com/NativeScript/NativeScript/-/blob/tests/app/pages/file-load-test.ts#L12:43-12:59
  • https://sourcegraph.com/github.com/NativeScript/NativeScript/-/blob/tests/app/pages/file-load-test.ts#L20:29-20:41
  • https://sourcegraph.com/github.com/NativeScript/NativeScript/-/blob/tests/app/pages/page17.ts#L12:31-12:41
  • https://sourcegraph.com/github.com/NativeScript/NativeScript/-/blob/tests/app/pages/page13.ts#L27:24-27:30
  • https://sourcegraph.com/github.com/sahat/satellizer/-/blob/src/shared.ts#L52:52-52:57
  • https://sourcegraph.com/github.com/sahat/satellizer/-/blob/src/shared.ts#L52:52-52:57
  • https://sourcegraph.com/github.com/sahat/satellizer/-/blob/src/utils.ts#L41:34-41:40
  • https://sourcegraph.com/github.com/sahat/satellizer/-/blob/src/oauth.ts#L56:10-56:15
Updated 27/04/2017 19:16 4 Comments

Move to npm orgs?

GoogleChrome/sw-helpers

Library Affected: all

See https://docs.npmjs.com/misc/orgs

I can see the benefit of grouping all the “official” modules under @workbox.

It would also be nice to manage permissions on the organization level, rather than having to manually add all the folks who potentially might need to publish to npm to each individual package.

Updated 28/04/2017 06:05 8 Comments

Parameter provider is required in module nxos_vrf

ansible/ansible

<!— Verify first that your issue/request is not already reported on GitHub. Also test if the latest release, and master branch are affected too. –>

ISSUE TYPE

<!— Pick one below and delete the rest: –> - Bug Report

COMPONENT NAME

<!— Name of the module/plugin/task/feature –> nxos_vrf

ANSIBLE VERSION

<!— Paste verbatim output from “ansible –version” between quotes below –> ubuntu@ubuntu-xenial:/vagrant/ansible-nxos$ ansible --version ansible 2.3.0.0 config file = /vagrant/ansible-nxos/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] ubuntu@ubuntu-xenial:/vagrant/ansible-nxos$

CONFIGURATION

<!— Mention any settings you have changed/added/removed in ansible.cfg (or using the ANSIBLE_* environment variables). –>

OS / ENVIRONMENT

<!— Mention the OS you are running Ansible from, and the OS you are managing, or say “N/A” for anything that is not platform-specific. –> Ubuntu

SUMMARY

<!— Explain the problem briefly –>

STEPS TO REPRODUCE

<!— For bugs, show exactly how to reproduce the problem, using a minimal test-case. For new features, show how the feature would be used. –>

<!— Paste example playbooks or commands between quotes below –> ```yaml

The following playbook produces error tasks: - name: Create vrfs nxos_vrf: vrf: test-vrf

This is working properly vars: prov:
transport: cli

tasks: - name: Create vrfs nxos_vrf: vrf: test-vrf provider: “{{ prov }}” ```

<!— You can also paste gist.github.com links for larger files –>

EXPECTED RESULTS

<!— What did you expect to happen when running the steps above? –>

ACTUAL RESULTS

<!— What actually happened? If possible run with extra verbosity (-vvvv) –>

<!— Paste verbatim command output between quotes below –> ``` ubuntu@ubuntu-xenial:/vagrant/ansible-nxos$ ansible-playbook -i hosts test1.yml -u cisco -k SSH password:

PLAY [vlan testing] ************************************************************************************************************************************************************************************************************************************************

TASK [Create vrfs] *************************************************************************************************************************************************************************************************************************************************

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: ‘NoneType’ object has no attribute ‘getitem’ fatal: [sp2]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “Traceback (most recent call last):\n File \”/tmp/ansible_BBb2AR/ansible_module_nxos_vrf.py\“, line 326, in <module>\n main()\n File \”/tmp/ansible_BBb2AR/ansible_module_nxos_vrf .py\“, line 269, in main\n existing = get_vrf(vrf, module)\n File \”/tmp/ansible_BBb2AR/ansible_module_nxos_vrf.py\“, line 215, in get_vrf\n body = execute_show_command(command, module)\n File \”/tmp/ansible_BBb2AR/ansible_module_nxos_vrf.py\“, line 12 9, in execute_show_command\n transport = module.params[‘provider’][‘transport’]\nTypeError: ‘NoneType’ object has no attribute ‘getitem’\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE”, “rc”: 0} An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: ‘NoneType’ object has no attribute ‘getitem’ fatal: [sp1]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “Traceback (most recent call last):\n File \”/tmp/ansible_4Mqx2r/ansible_module_nxos_vrf.py\“, line 326, in <module>\n main()\n File \”/tmp/ansible_4Mqx2r/ansible_module_nxos_vrf .py\“, line 269, in main\n existing = get_vrf(vrf, module)\n File \”/tmp/ansible_4Mqx2r/ansible_module_nxos_vrf.py\“, line 215, in get_vrf\n body = execute_show_command(command, module)\n File \”/tmp/ansible_4Mqx2r/ansible_module_nxos_vrf.py\“, line 12 9, in execute_show_command\n transport = module.params[‘provider’][‘transport’]\nTypeError: ‘NoneType’ object has no attribute ‘getitem’\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE”, “rc”: 0} to retry, use: –limit @/vagrant/ansible-nxos/test1.retry

PLAY RECAP *********************************************************************************************************************************************************************************************************************************************************

sp1 : ok=0 changed=0 unreachable=0 failed=1 sp2 : ok=0 changed=0 unreachable=0 failed=1


It looks like although provider is an optional parameter, it is required in configuration because of line 129 in source code.

```

Updated 28/04/2017 13:10 2 Comments

Time slider

tcpd/lokdhaba

We should be able to select a range of years between 1962-2017.

As @chinuhub suggested that it should be continuous, we can always create a pop up if there is discontinuity in the selection of years from the user’s end.

If there is any other way to sort this please let me know @hangal .

Updated 27/04/2017 14:23 1 Comments

New visualizations

tcpd/lokdhaba
  1. We need to add a new visualization for vote share. In a stand alone election we should be able to calculate vote share of a party only for the seats that they have contested.

  2. We need to add a strike rate visualization. The logic for strike rate would be; total seats won/total seats contested.

These two visualizations should be done for individual elections. In here the parties should be represented on the x-axis.

Updated 27/04/2017 14:27 1 Comments

Visualization change:

tcpd/lokdhaba

We need to have a limit set on the number of parties that can be displayed in a graph. The limit is 10.

If the user selects anything more than 10, a pop up should be displayed saying. “Only 10 values can be selected for representation”

Updated 27/04/2017 14:31 1 Comments

Vote share logic

tcpd/lokdhaba

For calculating vote share across time we need to have the previous logic; total votes polled for a party/total votes polled in the election.

Updated 24/04/2017 14:11

Steam overlay doesn't work

nwjs/nw.js

Hello. If the application is run from a steam client, one can press Shift+Tab to open an overlay. nwjs 19-22 simply freeze application untill Shift+Tab is pressed again. The issues allies to both linux x64, windows (7, 10) (mac I guess too, but I didn’t test it)

Chromium flags --in-process-gpu or --disable-gpu don’t help. Also updating the screen in a requestAnimationFrame don’t help too.

Updated 28/04/2017 08:26 6 Comments

Cannot enable group chat notifications

vector-im/riot-android

@gcthomas:matrix.org reported

The toggle to enable notifications in group chats goes back to off position as soon as you leave the settings via the back arrow. No notifications are received for group chats, but are for a one to one chat. https://riot.im/bugreports/listing/2017-04-22/161521

Updated 24/04/2017 07:21 1 Comments

hovering over e2e message in notification panel causes it to shift right

vector-im/riot-web

Description

In the notification panel on the right-hand side, when you hover over an e2e message, a yellow bar appears and the left margin (or padding?) increases.

no hover: screenshot - 230417 - 11 10 01 pm

hover: screenshot - 230417 - 11 09 06 pm

Steps to reproduce

  • receive an e2e message that mentions you
  • open the notification panel on the right
  • mouse over

Describe how what happens differs from what you expected.

I would expect the left margin to remain the same

Log: not sent

<!– Include screenshots if possible: you can drag and drop images below. –>

Version information

<!– IMPORTANT: please answer the following questions, to help us narrow down the problem –>

  • Platform: desktop

For the desktop app:

  • OS: Debian
  • Version: 0.9.8 <!– check the user settings panel if unsure –>
Updated 24/04/2017 13:36

Blockly Sample Application Memory Leaks

google/blockly-ios

Hi, I have been having alot of trouble with memory leaks related to blockly i through that they where related to my application but the demo application provided here “BlocklySample” produce the same memory leaks

Here is an image of the momery leaks in the leaks insturment

<img width=“1275” alt=“screenshot at apr 23 22-57-24” src=“https://cloud.githubusercontent.com/assets/10016580/25317398/41dda868-2878-11e7-8689-f4be2504a472.png”>

Here is a link for the trace zip file https://drive.google.com/open?id=0B7p-Y_jYkZ_0M0ZndUhtM1dITXM

I am using ios 8.0 on iPadAir Simulator on mac os sierra version 10.12 on Xcode 8.3.2

Am i doing something wrong? or is that normal

Updated 25/04/2017 00:13 2 Comments

Polls: add open-choice polls

andrewlin16/duckbot

Allow polls with just a question and no choices, where voters can add their own choices.

If we really want this feature/enhancement, we’ll need to make sure to handle the input to /vote commands properly and how to handle cases (e.g. do we do number => vote for existing choice and string => vote for new choice, do we still allow substring matches in that case, should we overload /vote for new choices instead of adding a new command for adding poll choices, …).

Updated 23/04/2017 21:29

See if masking makes a difference with a CNN encoder

allenai/deep_qa

It’s standard to just ignore masking when using a CNN on word / character sequences, because the max pooling can effectively ignore the padding tokens, anyway. It’d be interesting to actually verify that this is true, by implementing masking for our CNN and seeing what difference it makes, if any.

Pretty low priority, though. Just getting a thought out of my head and into an issue tracker.

Updated 23/04/2017 21:29

bazel run adds $PYTHONPATH to paths while bazel test does not

bazelbuild/bazel

echo $PYTHONPATH -> /usr/lib/spark/python:/usr/lib/spark/python/build:/usr/lib/spark/python/lib/py4j-0.10.4-src.zip

bazel test –spawn_strategy=standalone –test_output=errors –force_python=PY3 –host_force_python=PY3 //src/model:utils_test -> print(sys.path) yields [‘/home/ubuntu/mono/src/model’, ‘/home/ubuntu/.cache/bazel/bazel_ubuntu/a668d06d6b766d20e5a2cc9d6a3f6fb6/execroot/mono/bazel-out/local-py3-fastbuild/bin/src/model/utils_test.runfiles’, ‘/home/ubuntu/.cache/bazel/bazel_ubuntu/a668d06d6b766d20e5a2cc9d6a3f6fb6/execroot/mono/bazel-out/local-py3-fastbuild/bin/src/model/utils_test.runfiles/pavlov’, ‘/usr/lib/python3.5’, ‘/usr/lib/python3.5/plat-x86_64-linux-gnu’, ‘/usr/lib/python3.5/lib-dynload’, ‘/usr/local/lib/python3.5/dist-packages’, ‘/usr/local/lib/python3.5/dist-packages/setuptools-33.1.1-py3.5.egg’, ‘/usr/lib/python3/dist-packages’]

bazel run –spawn_strategy=standalone –test_output=errors –force_python=PY3 –host_force_python=PY3 //src/model:utils_test -> print(sys.path) yields [‘/home/ubuntu/mono/src/model’, ‘/home/ubuntu/.cache/bazel/bazel_ubuntu/a668d06d6b766d20e5a2cc9d6a3f6fb6/execroot/mono/bazel-out/local-py3-fastbuild/bin/src/model/utils_test.runfiles’, ‘/home/ubuntu/.cache/bazel/bazel_ubuntu/a668d06d6b766d20e5a2cc9d6a3f6fb6/execroot/mono/bazel-out/local-py3-fastbuild/bin/src/model/utils_test.runfiles/pavlov’, ‘/usr/lib/spark/python’, ‘/usr/lib/spark/python/build’, ‘/usr/lib/spark/python/lib/py4j-0.10.4-src.zip’, ‘/usr/lib/python3.5’, ‘/usr/lib/python3.5/plat-x86_64-linux-gnu’, ‘/usr/lib/python3.5/lib-dynload’, ‘/usr/local/lib/python3.5/dist-packages’, ‘/usr/local/lib/python3.5/dist-packages/setuptools-33.1.1-py3.5.egg’, ‘/usr/lib/python3/dist-packages’]

753 seemed to imply that running tests in standalone should allow pythonpath to filter through but this doesn’t seem to be the case.

Environment info

  • Operating System: ubuntu 14.04

  • Bazel version (output of bazel info release): release 0.4.5

Updated 24/04/2017 13:23

Fork me on GitHub