Add Pop-up Help

I wanted to add the capability for a pop-up help text and wanted to solicit suggestions on the best way to handle that? I know how to format it but I want it to be defined as another option for the form elements.  I guess it is possible to extend all of the form types I use to create a new form type such as was done to create "currency" as an extension of "number", but that is a lot work and code debt.  Any suggestions on an approach?
Thanks,
Ray

Hi @rayhooker using the new builder it is possible to add a builder that adds an attribute or element and then add that to each item in the decorator that it is relevant for. That would be the easiest way to do it for everything.

Anthropic,  That makes sense. I am sorting through the docs and examples.  Is there an example of someone doing that, to add a field.  I see examples to add new add-ons but not to modify an item in a decorator.

@rayhooker you would need to grab the decorator repo you are using and add it there, it isn't currently a built in option. The src/bootstrap-decorator.js file is the one that lists them all. I may convert this to an issue for adding the ability to apply a builder function to a list of types.

Okay so I think the fog is clearing.  I already had noted the bootstrap-decorator file. That lists all of the standard decorator item. I also know the list of add-ons I have added to my project.  Perhaps I have missed it, but other than editing the list of builders in each file, how can I add this new builder (e.g., "helptext" or "popuphelp") to the applicable items in the decorators?

The easiest way, if it applied to absolutely everything, would be to add it to the default builder list toward the top of the decorator file. Well you would probably do that anyway, but if it doesn't apply to everything then the function you add would need to confirm as its first action that it was a valid field type to append information to.

I am having trouble adding and triggering a new builder... I am using version 0.8.13 BTW.  Though it is best to make changes to the development version of  angular schema form and run gulp to build the version, as a test I was tracing the "dist" version.  I added a new builder to builder (line 81) called popup help with the item to add it to at least one decorator item and test it:
popuphelp: function(args) {
// Do we have a pop up help
if (args.form.popuphelp) {
console.log("Popuphelp: ", args.form.popuphelp);
  }

},
The question is how to add it to the decorator items. I tried tracing for "condition" that is triggered by an option in the form item.  It appears that say adding an "condition" to an email field though triggers code in the old builder where the check is hardcoded and in line (e.g., line 568).
I see in the angular-schema-form-bootstrap-develop that the bootstrap-decorator.js has a defined list of builders for each decorator item but in the actual distributed versions of schema-form.js (or the minified version0 and bootstrap-decorator.js, I do not see any indication of mapping.  What am I missing?
Ray

@rayhooker is may help to make a basic plunker so I can see what you have tried and suggest next steps?

Okay FWIW I loaded my currrent version and my changes to your dist versions of code at:
https://plnkr.co/edit/mtVpJfLqlkEWPe5cbPHA?p=preview
As you can see, on line 89 of schema-form, I added a builder called "popuphelp" with only a console.log line to see what is passed.  This is almost identical to the "condition" builder that processes a condition item on a form field.  I also added a console.log in that builder.
It turns out that the legacy/ deprecated code is being called for "condition".  For example, a console log on 589 shows that the current condition on the email form item does not use the new builder but the hardcoded if statement in the deprecated builder.  Also my new code popuphelp is not triggered by the presence of the popuphelp on the "comment" form item.
Further I see none of the mappings for the builders to decorator items in this dist version of the code nor any indication how I might add the mapping.  It does appear in the development versions of bootstrap-decorator.
Ray

BTW when I speak of mapping in the development version, I am referring to the following that does not appear in the dist version:
var defaults = [sfField, ngModel, ngModelOptions, condition];
decoratorsProvider.defineDecorator('bootstrapDecorator', {
textarea: {template: base + 'textarea.html', builder: defaults},
fieldset: {template: base + 'fieldset.html', builder: [sfField, simpleTransclusion, condition]},
array: {template: base + 'array.html', builder: [sfField, ngModelOptions, ngModel, array, condition]},
tabarray: {template: base + 'tabarray.html', builder: [sfField, ngModelOptions, ngModel, array, condition, tabArray]},
tabs: {template: base + 'tabs.html', builder: [sfField, ngModelOptions, tabs, condition]},
section: {template: base + 'section.html', builder: [sfField, simpleTransclusion, condition]},
conditional: {template: base + 'section.html', builder: [sfField, simpleTransclusion, condition]},
actions: {template: base + 'actions.html', builder: defaults},
select: {template: base + 'select.html', builder: [selectPlaceholder, sfField, ngModel, ngModelOptions, condition]},
checkbox: {template: base + 'checkbox.html', builder: defaults},
checkboxes: {template: base + 'checkboxes.html', builder: [sfField, ngModelOptions, ngModel, array, condition]},
number: {template: base + 'default.html', builder: defaults},
password: {template: base + 'default.html', builder: defaults},
submit: {template: base + 'submit.html', builder: defaults},
button: {template: base + 'submit.html', builder: defaults},
radios: {template: base + 'radios.html', builder: defaults},
'radios-inline': {template: base + 'radios-inline.html', builder: defaults},
radiobuttons: {template: base + 'radio-buttons.html', builder: defaults},
help: {template: base + 'help.html', builder: defaults},
'default': {template: base + 'default.html', builder: defaults}
}, []);

@rayhooker that code comes from the decorator. In the new version I am working on I have added version number to the code because in a situation like this I have no idea which version you are working with, but it isn't the current one. It may be that npm is out of date, but if you look at the documentation for defining-a-decorator you will find that it loads sfBuilderProvider. Take a look at the current bootstrap-decorator.js and you can see how a function can be added and then joined into the array that operates on the teplate fragment.

Oh my, you are correct!  What happened is that bower (not sure about npm) continued to deliver the old bootstrap-decorator.js (and min version) with the notification "WHERE_IS_BOOTSTRAP_DECORATOR.md".  So I did not notice it had moved and I should also install the new one.  I will double check that the other artifacts were updated but I think it just did not remove the old bootstrap decorator files.. so I continued to use those.  I have pulled in the new files and the builders are now being fired... so now to work.  Thanks..

Is it bower version 0.8.13?

Actually it looks like bower only has 0.8.12.. hmmm.  I will make sure I get 0.8.13 for sure. BTW I explicitly asked for 0.8.13 and received "not found".

Ok I will look into it, maybe didn't publish as expected

BTW it looks like npm is up to date but bower is out of sync.  I already started using npm for some of my testing framework, and perhaps should switch to it.  At least for base schema-form I am using npm.

I got everything working quickly with the proper versions.  Basically the approach is almost the same as condition builder exception that I insert a button after the form item label with call to toaster passing the help text string.  This does require me to make constant updates to the base code when every a new version of schema form comes out.  I am not sure how to make it stand alone.  So any input on:

How could I make it stand alone or is this something I could propose as an update to base, perhaps an alternative to the current help field?
Do you have any thoughts on a way not require as many dependencies?  Right now I need toaster added to the Angular module and to insert  to imbed an anchor for the popup.  I also need to pass toaster to the controller and since my code runs where there does not appear to be a handle to the scope, I had to configure and store a reference to toaster as window.toaster.

Here is how to use it:
{
"key": "comment",
"type": "textarea",
"placeholder": "Make a comment",
"popuphelp": "This is help text"
},
Here is a screen shop where I clicked the icon several times.  As you probably know this pops up a window that goes away:

@rayhooker well what I was saying earlier is that at the moment there isn't an easy way to make it future proof, however I am working on a method for appending/prepending builders to specific fields, that would make it much easier. I will make a new ticket fo ryou to be able to follow, if it isn't in the next release it will be in the one after that.

In the meantime I can't see many changes happening to the latest decorator file so you shouldn't have to make many tweaks to that if the builder is stand alone enough.

Please re-open if you do not feel the question has been answered sufficiently.


Populate available operations by default

Use the config to populate the available operations on startup without calling reload named operations.

Migration Steps
If a developer wishes to not load the NamedOperations on startup, they must set the operations.loadOnStartup flag to true in the config. For Example:
{
  "operations": {
    "loadOnStartup": false
  }
}

If the developer forgets to set the flag or sets it to true, the Named Operations will be loaded, as long as the Named Operations are supported by the store.

Merged into develop.


Error at running in isomorphic application

Hi, I'm trying to use toolbpx in isomorphic application. But have some troubles...
Here is my webpack config:
import path from 'path';
import webpack from 'webpack';
import merge from 'lodash.merge';

import ExtractTextPlugin from 'extract-text-webpack-plugin';

const DEBUG = !process.argv.includes('release');
const VERBOSE = process.argv.includes('verbose');
const WATCH = global.WATCH === undefined ? false : global.WATCH;
const AUTOPREFIXER_BROWSERS = [
  'Android 2.3',
  'Android >= 4',
  'Chrome >= 35',
  'Firefox >= 31',
  'Explorer >= 9',
  'iOS >= 7',
  'Opera >= 12',
  'Safari >= 7.1',
];
const GLOBALS = {
  'process.env.NODE_ENV': DEBUG ? '"development"' : '"production"',
  __DEV__: DEBUG,
};
const JS_LOADER = {
  test: /\.jsx?$/,
  include: [
    path.resolve(__dirname, '../node_modules/react-routing/src'),
    path.resolve(__dirname, '../src'),
  ],
  loader: 'babel-loader',
};

//
// Common configuration chunk to be used for both
// client-side (app.js) and server-side (server.js) bundles
// -----------------------------------------------------------------------------

const config = {
  output: {
    publicPath: '/',
    sourcePrefix: '  ',
  },

  cache: DEBUG,
  debug: DEBUG,

  stats: {
    colors: true,
    reasons: DEBUG,
    hash: VERBOSE,
    version: VERBOSE,
    timings: true,
    chunks: VERBOSE,
    chunkModules: VERBOSE,
    cached: VERBOSE,
    cachedAssets: VERBOSE,
  },

  plugins: [
    new webpack.optimize.OccurenceOrderPlugin(),
  ],

  resolve: {
    extensions: ['', '.webpack.js', '.web.js', '.js', '.jsx', '.scss'],
  },

  module: {
    loaders: [
      {
        test: /\.json$/,
        loader: 'json-loader',
      }, {
        test: /\.txt$/,
        loader: 'raw-loader',
      }, {
        test: /\.(png|jpg|jpeg|gif|svg|woff|woff2)$/,
        loader: 'url-loader?limit=10000',
      }, {
        test: /\.(eot|ttf|wav|mp3)$/,
        loader: 'file-loader',
      },
    ],
  },

  postcss: function plugins() {
    return [
      require('postcss-import')({
        onImport: files => files.forEach(this.addDependency),
      }),
      require('postcss-nested')(),
      require('postcss-cssnext')({ autoprefixer: AUTOPREFIXER_BROWSERS }),
    ];
  },
};

//
// Configuration for the client-side bundle (app.js)
// -----------------------------------------------------------------------------

const appConfig = merge({}, config, {
  entry: [
    ...(WATCH ? ['webpack-hot-middleware/client'] : []),
    './src/app.js',
  ],
  output: {
    path: path.join(__dirname, '../build/public'),
    filename: 'app.js',
  },

  // Choose a developer tool to enhance debugging
  // http://webpack.github.io/docs/configuration.html#devtool
  devtool: DEBUG ? 'cheap-module-eval-source-map' : false,
  plugins: [
    ...config.plugins,
    new ExtractTextPlugin('app.css'),
    new webpack.DefinePlugin(GLOBALS),
    ...(!DEBUG ? [
      new webpack.optimize.DedupePlugin(),
      new webpack.optimize.UglifyJsPlugin({
        compress: {
          warnings: VERBOSE,
        },
      }),
      new webpack.optimize.AggressiveMergingPlugin(),
    ] : []),
    ...(WATCH ? [
      new webpack.HotModuleReplacementPlugin(),
      new webpack.NoErrorsPlugin(),
    ] : []),
  ],
  module: {
    loaders: [
      WATCH ? {
        ...JS_LOADER,
        query: {
          // Wraps all React components into arbitrary transforms
          // https://github.com/gaearon/babel-plugin-react-transform
          plugins: ['react-transform'],
          extra: {
            'react-transform': {
              transforms: [
                {
                  transform: 'react-transform-hmr',
                  imports: ['react'],
                  locals: ['module'],
                }, {
                  transform: 'react-transform-catch-errors',
                  imports: ['react', 'redbox-react'],
                },
              ],
            },
          },
        },
      } : JS_LOADER,
      ...config.module.loaders,
      {
        test: /(\.scss|\.css)$/,
        loader: ExtractTextPlugin.extract('style', 'css?sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass?sourceMap'),
      },
    ],
  },
});

//
// Configuration for the server-side bundle (server.js)
// -----------------------------------------------------------------------------

const serverConfig = merge({}, config, {
  entry: './src/server.js',
  output: {
    path: './build',
    filename: 'server.js',
    libraryTarget: 'commonjs2',
  },
  target: 'node',
  externals: [
    function filter(context, request, cb) {
      const isExternal =
        request.match(/^[a-z][a-z\/\.\-0-9]*$/i) &&
        !request.match(/^react-routing/) &&
        !context.match(/[\\/]react-routing/);
      cb(null, Boolean(isExternal));
    },
  ],
  node: {
    console: false,
    global: false,
    process: false,
    Buffer: false,
    __filename: false,
    __dirname: false,
  },
  devtool: 'source-map',
  plugins: [
    ...config.plugins,
    new webpack.DefinePlugin(GLOBALS),
    new webpack.BannerPlugin('require("source-map-support").install();',
      { raw: true, entryOnly: false }),
  ],
  module: {
    loaders: [
      JS_LOADER,
      ...config.module.loaders,
      {
        test: /(\.scss|\.css)$/,
        loader: 'css/locals?module&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass?sourceMap',
      },
    ],
  },
});

export default [appConfig, serverConfig];

Actually building of bundle is done without errors, but when I try to run server.js - I get error:
Error: Cannot find module './style'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/some-path/node_modules/react-toolbox/lib/font_icon/index.js:15:14)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

In my server.js I do not using hot-middleware.

Right now the files are calling css without an extension so you need to have scss resolve automatically as a module extension in webpack.
@javivelasco @soyjavi I encountered this myself, a significant number of people don't auto-resolve their scss/css extensions as modules and the .scss in the import statement is more expressive. Thoughts?

Actually I found solution, but here is another problem. When I add react-toolbox stuff to server.js - it loads whole dependency list into it. Is anybody use already react-toolbox in iso applications?

@asynxis that's a big issue. Please tell us details if you can't get it working properly

I've added u in repo, when pull. install, start. It pack whole react-toolbox in build/server.js. And size of it become 700+kb and hot reload can take up to 15 sec...

@asynxis
Can you add me to the repo?

Done!

@asynxis Which repo? I'm seeing "This repository is empty." for the react isomorphic boilerplate.

https://github.com/asynxis/uma-e3-summit.org

@asynxis Thanks, I'll try take a look this evening

@nathanmarks thanks!

@asynxis Just letting you know I haven't forgotten this -- had a very busy week at work

Is it a bug? Did you get it resolved? If so, I'd like to close the issue to reduce noise.
Thanks!

I'm facing the same issue - isomorphic app with both dev and hot middleware on.

@nocon is it the same setup? As in creating a server side bundle?
Forgive me for my ignorance as I don't use a bundle for my server side stuff (you can still leverage webpack using webpack isomorphic tools) but isn't the idea of a bundle that the dependencies get bundled up too?
I don't bundle my node apps so I'm not sure what the intended outcome is. Are you importing react toolbox in its entirety or are you importing modules directly from the components or lib folders?

I guess what I'm asking is when creating a server side node bundle, what should and shouldnt be in there? The idea of bundling the server app is foreign to me. I just use webpack-isomorphic-tools to get webpack goodies on the server

Hmm, I think I only use bundling for the client side, but I'm not sure. I've started working with React only recently, and have been following some isomorphic app tutorials. Here's my server.js:
import express                   from 'express';
import React                     from 'react';
import { renderToString }        from 'react-dom/server'
import { RoutingContext, match } from 'react-router';
import createLocation            from 'history/lib/createLocation';
import routes                    from 'routes';
import { Provider }              from 'react-redux';
import * as reducers             from 'reducers';
import promiseMiddleware         from 'lib/promiseMiddleware';
import fetchComponentData        from 'lib/fetchComponentData';
import { createStore,
         combineReducers,
         applyMiddleware }       from 'redux';
import path                      from 'path';
import webpackDev                from './webpack.dev';
import injectTapEventPlugin from 'react-tap-event-plugin';

const app = express();

if (process.env.NODE_ENV !== 'production') webpackDev(app);
else app.use(express.static(path.join(__dirname, 'dist')));

app.use( (req, res) => {
  const location = createLocation(req.url);
  const reducer  = combineReducers(reducers);
  const store    = applyMiddleware(promiseMiddleware)(createStore)(reducer);

  match({ routes, location }, (err, redirectLocation, renderProps) => {
    if(err) {
      console.error(err);
      return res.status(500).end('Internal server error');
    }

    if(!renderProps)
      return res.status(404).end('Not found');

    function renderView() {
      delete process.env.BROWSER;

      const InitialView = (
        <Provider store={store}>
          <RoutingContext {...renderProps} />
        </Provider>
      );

      const componentHTML = renderToString(InitialView);
      const initialState = store.getState();
      const HTML = `
      <!DOCTYPE html>

          <meta charset="utf-8">
          <title>Work title</title>
          <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
          <link href="/bundle.css" rel="stylesheet">

${componentHTML}

      `;

      return HTML;
    }

    fetchComponentData(store.dispatch, renderProps.components, renderProps.params)
      .then(renderView)
      .then(html => res.end(html))
      .catch(err => res.end(err.message));
  });
});

export default app;

@nocon Sorry, I was replying on my phone and mixed this up with another issue related to server side use!
Ignore what I said about the bundle -- not relevant for this thread.
What's the exact issue you're having? is it the style issue?

Yes, it's the style issue:
Error: Cannot find module './style'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/some-path/node_modules/react-toolbox/lib/font_icon/index.js:15:14)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

Now, I did manage to fix it by switching to [this boilerplate] (https://github.com/erikras/react-redux-universal-hot-example). I can only assume the issue was caused by wrong webpack config or lack of some library (webpack-isomorphic-tools maybe?)

Actually, I'm still getting style issue, even with the new boilerplate. App, Slider, Autocomplete throw an exception on render: Cannot read property 'root' of undefined (undefined being the style object imported from './style'). Input and Dropdown don't, but they are not working correctly anyway - Input floating label overlaps value box, and dropdown doesn't expand at all.

@nocon Yeah, your webpack config may have been funky. I saw you had a webpack.dev.js file being imported but without seeing it I had no idea what it was doing.

Actually I found solution, but here is another problem.

@asynxis Can you share what the solution was to your initial issue? I'm having the same exact problem, my server code builds fine, but when I try to run it I get the Error: Cannot find module './style' in the App component. I have the correct resolve.extensions config.

Could you please post the whole error message so we can check if it's looking in the correct folder?
Normally the solution should be to use something like this:
resolve: {
    root: paths.base(config.dir_client),
    extensions: ['', '.js', '.jsx', '.scss']
  },

the important part is the .scss.

Here's the relevant part of my webpack config:
resolve: {
    extensions: ['', '.js', '.jsx', '.scss'],
    modulesDirectories: [
      'node_modules',
      path.join(__dirname, '..', '/node_modules')
    ],
  },

And the error I'm getting when running the Node server:
Error: Cannot find module './style'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/nickwientge/Desktop/universal-react/node_modules/react-toolbox/lib/app/App.js:13:14)
    at Module._compile (module.js:434:26)
    at Module._extensions..js (module.js:452:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/nickwientge/Desktop/universal-react/node_modules/babel-cli/node_modules/babel-register/lib/node.js:138:7)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

@SimonSelg @asynxis I found the solution to my issue.
I'm following these posts for building my server side code with Webpack. The instructions have you add all the node_modules to Webpack's externals config:
const nodeModules = {};
fs.readdirSync('node_modules').filter((x) => {
  return ['.bin'].indexOf(x) === -1;
}).forEach((mod) => {
  nodeModules[mod] = 'commonjs ' + mod;
});

Which means react-toolbox is not being bundled with the built code. As a temporary solution I've added delete nodeModules['react-toolbox']; after these lines and things are working fine so far.

I'm seeing the same issue with style, also using universal-hot-example boilerplate
==> 🚧  Webpack development server listening on port 3001
[webpack-isomorphic-tools] [error] asset not found: ./~/react-toolbox/lib/ripple/style.scss
[webpack-isomorphic-tools] [error] asset not found: ./~/react-toolbox/lib/checkbox/style.scss
[piping] can't execute file: /app/bin/server.js
[piping] error given was: TypeError: Cannot read property 'ripple' of undefined
	 at Object.<anonymous> (/app/node_modules/react-toolbox/lib/checkbox/Check.js:42:32)
	 at Module._compile (module.js:425:26)
	 at Module._extensions..js (module.js:432:10)
	 at require.extensions.(anonymous function) (/app/node_modules/babel-core/lib/api/register/node.js:214:7)
	 at Object._module3.default._extensions.(anonymous function) [as .js] (/app/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:250:71)
	 at Module.load (module.js:356:32)
	 at Module._load (module.js:313:12)
	 at Function.module._load (/app/node_modules/piping/lib/launcher.js:32:16)
	 at Module.require (module.js:366:17)
	 at require (module.js:385:17)
[piping] further repeats of this error will be suppressed...
[webpack-isomorphic-tools] [error] asset not found: ./~/react-toolbox/lib/ripple/style.scss
[webpack-isomorphic-tools] [error] asset not found: ./~/react-toolbox/lib/checkbox/style.scss
[webpack-isomorphic-tools] [error] asset not found: ./~/react-toolbox/lib/ripple/style.scss
[webpack-isomorphic-tools] [error] asset not found: ./~/react-toolbox/lib/checkbox/style.scss
[webpack-isomorphic-tools] [error] asset not found: ./~/react-toolbox/lib/ripple/style.scss

That project is using webpack isomorphic tools and probably they don't have configure by default the inclusion of CSS modules files from node_modules.
The way to solve this is to make sure they are doing it. An alternative to webpack isomorphic tools would be to use the require hook

i believe your implementation of material design to be the cleanest to date. /bow
a possible solution here for integrating with what i believe to be the 'best' redux implementations to date:
https://github.com/erikras/react-redux-universal-hot-example
becomes:
https://github.com/bdefore/universal-redux
becomes:
https://github.com/bdefore/universal-redux-starter
with:
https://github.com/bdefore/universal-redux#customization
and in a new, config folder at the root of universal-redux-starter clone,
add the file: universal-redux.config.js
e.g. config/universal-redux.config.js
perhaps using the stencil:
https://github.com/bdefore/universal-redux/blob/master/config/universal-redux.config.js#L231
one can add the following resolve object :
resolve: {
extensions: ['.scss' ]
}
e.g. a total config/universal-redux.config.js file description:
module.exports = {
webpack: {
config: {
resolve: {
extensions: ['.scss' ]
}
}
}
};
cmd line:
^C
npm run dev
humanly:
rejoice
P.S. this solution makes sense at:
"react-addons-css-transition-group": "^0.14.7",
"react-toolbox": "^0.14.1",
"universal-redux": "3.0.0-rc30"
"react": "^0.14.6",
"react-dom": "^0.14.6",
"react-redux": "4.3.0",
"react-router": "2.0.0",
"react-router-redux": "3.0.0"
/deep thanks to the project and library owners


nixos/modules/testing/minimal-kernel does not build

Issue description
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/testing/minimal-kernel.nix
kernel configuration does not build
Steps to reproduce
set that to your nixos config and try to build it:
building Nix...
building the system configuration...
error: anonymous function at pkgs/os-specific/linux/kernel/generic.nix:9:1 called without required argument 'buildPackages'

This is still (or again) true.

obviated by #207095, which removes the module in question.

Suggest close this issue. Whatever problem the OP linked to originally is gone now.


Stops working on second floor of CoX raids

Since the latest version, the smart metronome stops for me every time I enter floor 2 of a raid.

Sorry about that! I've pushed an update


Camel_case to Str::camel (Laravel 6 compatability)

The following also needs to be updated:
private function getNameUsingKey() : string
{
    return Str::title(str_replace('_', ' ',Str::snake($this->getKey())));
}


Draft: Refactor code so that users can add their own serializers

Feature added but we need to add some tests before merging.

Codecov Report

Merging #29 (f95cd2b) into master (67ad752) will decrease coverage by 0.26%.
The diff coverage is 91.54%.

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
- Coverage   90.25%   89.98%   -0.27%
==========================================
  Files           5        6       +1
  Lines         708      739      +31
==========================================
+ Hits          639      665      +26
- Misses         39       44       +5
  Partials       30       30

Impacted Files
Coverage Δ

attr_serializers.go
44.44% <44.44%> (ø)

json.go
87.50% <91.66%> (ø)

ksql.go
88.62% <100.00%> (+0.44%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


MOB-H-3: iOS Key Material Stored in Insecure Fashion

Analysis of the Attack
The iOS mobile application stores the applications private key unencrypted within the applications container. This key is used as part of the communications exchange between the application and server when submitting the Exposure Notification API data.
An adversary would have to compromise the device to retrieve the key material, but they would then be readily available with no additional compensating controls.
Recommendation
The iOS application should leverage either:
• Secure Enclave stored keys
• iOS keychain
The Secure Enclave affords the highest level of security that is currently available within iOS. This mechanism generates keys directly inside the Secure Enclave and prevents them from being exposed within memory. The algorithms supported are restricted. See https://developer.apple.com/documentation/security/certificate_key_and_trust_services/keys/stor ing_keys_in_the_secure_enclave for official guidance.
iOS allows user data to be stored in an encrypted database called a keychain. The keychain is automatically unlocked when the user unlocks the device and then locked when the device is locked. An application can access only its own keychain items, or those shared with a group to which the app belongs. The affected iOS application should consider using the keychain for storing its key material. See https://developer.apple.com/documentation/security/keychain_services for official documentation.

Noting that the enclave may not align with the existing methods we're using currently, so we will have to take this under advisement. Similar issues related to the selection of crypto libraries was raised by CCCS as well. Will link tickets once I get them triaged.

We are using the react-native-sensitive-info package to store the keys generated by the tweetnacl.
https://github.com/cds-snc/covid-shield-mobile/blob/afb73c590737ca00fee5bea65b990a842bb783ed/src/services/ExposureNotificationService/ExposureNotificationService.ts#L170
The react-native-sensitive-info does use the iOS keychain to store the data. It uses the SecItemAdd method to store the keys.
https://github.com/mCodex/react-native-sensitive-info/blob/df602becbdb466b80235f5e4ea9852a45dbb1a41/ios/RNSensitiveInfo/RNSensitiveInfo.m#L147

Marking as closed. Thanks.


Allow custom date format

Dates are shown as m/d/y. It'd be nice if it good be changed to d/m/y and/or y-m-d as well

Fixed by #2523


Create jordan-skophammer.html

Your pull request looks good, and is ready for merging!
Thank you for being a part of Open Source, I hope you continue to help other repositories in the future!
This is an automated response, beep boop.
if you think there is a mistake, contact a maintainer

a00d2d3c1a1e2a62dc5a01cba20f712d9eac8194


Working on composing images and characters

Hi,
I was working on composed images and characters feature, something related with issue #66  .
I already started a branch here : https://github.com/fsvieira/Monogatari/tree/fv-css-assets .
My idea is to be able to use css classes instead of images, like this: https://github.com/fsvieira/Monogatari/blob/fv-css-assets/dist/js/script.js#L69 , if image is an array then its considered as css classes and it will generate a div with each children having a class from images classes. This way we can use z-index and position.
This was working ok until the latest changes, because visuals element seems to have lost its aspect ratio size, so every element inside is unpredictable in matter of size and position.
Do you have any suggestion how should I achieve this in Monogatari?

Without knowing the images size, or relying on percentage image sizes is very difficult to put this to work.
So I give up.


'Capybara::Webkit::CrashError:' interacting with element in 'within_frame' block

  ruby '2.0.0', :patchlevel => '598'
  gem 'rails', '~> 4.1.1'
.
.
.
  gem 'capybara', '~>  2.4.4 '
  gem 'capybara-webkit', '~>  1.6.0'

config:
Capybara.configure do |c|
  c.ignore_hidden_elements  = true
  c.default_driver          = :webkit
  c.javascript_driver       = :webkit_debug
  c.default_wait_time       = 8
end

error:
 Failure/Error: within_frame frame_name do
     Capybara::Webkit::CrashError:
       The webkit_server process crashed!

         Connection reset by peer

       This is a bug in capybara-webkit. For help with this crash, please visit:

       https://github.com/thoughtbot/capybara-webkit/wiki/Reporting-Crashes
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.6.0/lib/capybara/webkit/browser.rb:215:in `rescue in command'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.6.0/lib/capybara/webkit/browser.rb:205:in `command'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.6.0/lib/capybara/webkit/browser.rb:90:in `frame_focus'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.6.0/lib/capybara/webkit/driver.rb:141:in `ensure in within_frame'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.6.0/lib/capybara/webkit/driver.rb:141:in `within_frame'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-2.4.4/lib/capybara/session.rb:327:in `within_frame'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-2.4.4/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
     # ./spec/acceptance/candidate_spec.rb:28:in `block (2 levels) in <top (required)>'

code:
source1 = page.html

within_frame frame_name do
    source2 = page.html
    find(:xpath, '//somevalidxpath').click
end

I validated source 2 is the frame I am wanting to interact with and source 1 is the original page.
I made sure that this code executes written in Python's selenium webdriver bindings with Chrome Driver
I also was experiencing this error in older versions of capybara-webkit with the error
     Failure/Error: within_frame frame_name do
     Errno::EPIPE:
       Broken pipe
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.5.2/lib/capybara/webkit/connection.rb:30:in `write'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.5.2/lib/capybara/webkit/connection.rb:30:in `puts'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.5.2/lib/capybara/webkit/connection.rb:30:in `puts'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.5.2/lib/capybara/webkit/browser.rb:205:in `command'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.5.2/lib/capybara/webkit/browser.rb:89:in `frame_focus'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.5.2/lib/capybara/webkit/driver.rb:130:in `ensure in within_frame'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-webkit-1.5.2/lib/capybara/webkit/driver.rb:130:in `within_frame'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-2.4.4/lib/capybara/session.rb:327:in `within_frame'
     # /Users/nathanreynolds/.rvm/gems/ruby-2.0.0-p598/gems/capybara-2.4.4/lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
     # ./spec/acceptance/candidate_spec.rb:29:in `block (2 levels) in <top (required)>'

Debug JS driver didnt give me anything useful.
Any guidance here would be great!  I didn't find anything anywhere else, besides users going between tests/threads, not within a test.

Closing due to age - We can reopen if this is still happening with current release and away to replicate is provided


[Event Request] Wrap calls to Dimension Management's EditDimensionSet (with dim fields overload) with event and IsHandled pattern

We have in out solution the need to pass additional information into the Dimension Management's overloaded EditDimensionSet procedure that passes in the two dimension fields.  I have looked at this procedure to possibly add events in it, but it is not possible based on our needs.  There are also other events in some of the procedures that call EditDimensionSet, but we can't use them as we need to;, procedure overriding events (inaccessible local procedures) and events after the procedure call (unable to override the procedure call).
My request is to have the places where the specific overloaded EditDimensionSet call is made to add an event and IsHandled pattern wrapping only the call to this procedure.  Here is an example of the change:
table 900 "Assembly Header"
...
    procedure ShowDimensions()
    var
        DimMgt: Codeunit DimensionManagement;
        OldDimSetId: Integer;
        IsHandled: boolean;  // NEW VAR
    begin
        OldDimSetId := "Dimension Set ID";

        // NEW CODE - event and IsHandled check wrapping the call
        OnShowDimensionOnBeforeEditDimensionSet(Rec, IsHandled);
        if not IsHandled then
        // END NEW CODE, next statement indented
            "Dimension Set ID" :=
            DimMgt.EditDimensionSet(
                "Dimension Set ID", StrSubstNo('%1 %2', "Document Type", "No."),
                "Shortcut Dimension 1 Code", "Shortcut Dimension 2 Code");

        if OldDimSetId <> "Dimension Set ID" then begin
            SetCurrentFieldNum(FieldNo("Dimension Set ID"));
            AssemblyLineMgt.UpdateAssemblyLines(Rec, xRec, FieldNo("Dimension Set ID"), false, CurrFieldNo, CurrentFieldNum);
            ClearCurrentFieldNum(FieldNo("Dimension Set ID"));
            Modify(true);
        end;
    end;

    // NEW EVENT DEFINITION
    [IntegrationEvent(false, false)]
    local procedure OnShowDimensionOnBeforeEditDimensionSet(var AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)
    begin
    end;

I would prefer that only the procedure be wrapped, as some of the places that it is called from has other code in the procedure that either does not need modification or is local in scope and can't be called from my event handlers without further modifications.
Here is a list of the places (object and procedure name) that the EditDimensionSet procedure with the two dimensions passed in is being called, which I am requesting the change for.  The code changes in each is very similar to the above example in all cases, and these are all the cases I found which I suggest should all be changed for consistency:
table 901 "Assembly Line"
procedure ShowDimensions()
table 273 "Bank Acc. Reconciliation"
procedure ShowDocDim()
table 10121 "Bank Rec. Line"
procedure ShowDimensions()
table 846 "Cash Flow Worksheet Line"
procedure ShowDimensions()
table 10140 "Deposit Header"
procedure ShowDocDim()
table 5615 "FA Allocation"
procedure ShowDimensions()
table 5621 "FA Journal Line"
procedure ShowDimensions()
table 302 "Finance Charge Memo Header"
procedure ShowDocDim()
table 221 "Gen. Jnl. Allocation"
procedure ShowDimensions()
table 5635 "Insurance Journal Line"
procedure ShowDimensions()
table 5850 "Invt. Document Header"
procedure ShowDocDim()
table 5851 "Invt. Document Line"
procedure ShowDimensions()
table 83 "Item Journal Line"
procedure ShowDimensions()
table 5875 "Phys. Invt. Order Header"
procedure ShowDocDim()
table 5876 "Phys. Invt. Order Line"
procedure ShowDimensions()
table 99000829 "Planning Component"
procedure ShowDimensions()
table 10124 "Posted Bank Rec. Line"
procedure ShowDimensions()
table 5407 "Prod. Order Component"
procedure ShowDimensions()
table 5406 "Prod. Order Line"
procedure ShowDimensions()
table 5405 "Production Order"
procedure ShowDocDim()
table 295 "Reminder Header"
procedure ShowDocDim()
table 246 "Requisition Line"
procedure ShowDimensions()
table 207 "Res. Journal Line"
procedure ShowDimensions()
table 5965 "Service Contract Header"
procedure ShowDocDim()
table 5900 "Service Header"
procedure ShowDocDim()
table 5901 "Service Item Line"
procedure ShowDimensions()
table 751 "Standard General Journal Line"
procedure ShowDimensions()
table 753 "Standard Item Journal Line"
procedure ShowDimensions()
table 5997 "Standard Service Line"
procedure ShowDimensions()
extra code
table 5740 "Transfer Header"
procedure ShowDocDim()
This list is like above, but currently (19.4) also has an event/IsHandled pattern that covers the entire procedure, but because of additional code in the calling procedure that is not accessible from an extension's event handler, I am also requesting that the EditDimensionSet call be wrapped here as well:
table 81 "Gen. Journal Line"
procedure ShowDimensions()
table 38 "Purchase Header"
procedure ShowDocDim()
table 39 "Purchase Line"
procedure ShowDimensions()
table 36 "Sales Header"
procedure ShowDocDim()
table 37 "Sales Line"
procedure ShowDimensions()
table 5902 "Service Line"
procedure ShowDimensions()
Thank you,
Denis

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

Hello!
We have received feedback that this requests is not yet implemented and therefore reactivate it. I can see that we have event OnBeforeEditDimensionSet(DimSetID, NewCaption, NewDimSetID, IsHandled) in codeunit DimensionManagement as generic possibility to alter standard processing, but this procedure does not provide Rec as parameter.
We can either implement suggested event in 41 tables, or add parameter Rec (as Variant) into new implementation of procedure EditDimensionSet in codeunit DimensionManagement. Please provide your thoughts on this suggestion.

After recheck. We have addressed this ask but in more generic way. New version of procedure EditDimensionSet have been added, with parameter RecVariant, and handled event. You can use this event to address any table:
procedure EditDimensionSet(RecVariant: Variant; DimSetID: Integer; NewCaption: Text[250]; var GlobalDimVal1: Code[20]; var GlobalDimVal2: Code[20]): Integer
var
    DimSetEntry: Record "Dimension Set Entry";
    EditDimSetEntries: Page "Edit Dimension Set Entries";
    NewDimSetID: Integer;
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeEditDimensionSet2(DimSetID, NewCaption, GlobalDimVal1, GlobalDimVal2, NewDimSetID, IsHandled, RecVariant);
    if IsHandled then
        exit(NewDimSetID);

Hello Alexander,
Thank you for reviewing this.  The variant parameter we should be able to use to access our extra extension fields for our processing, so I believe this change will work for our needs.  Thank you for finding a more appropriate change!
Denis


503 response in /trades for a single IP only

What version are you using?
1.10.1
What did you do?
There's a weird behaviour affecting a single IP streaming /trades endpoint. It sends streaming requests every 10 seconds, /trades responds with 503 HTTP status after 10 sec. I tried to reproduce the behaviour with ab (also sending streaming requests) and all responses were successful (200 HTTP status):
Percentage of the requests served within a certain time (ms)
  50%    668
  66%    678
  75%    696
  80%    698
  90%    701
  95%    704
  98%    709
  99%    730
 100%    730 (longest request)

The underlying error is: canceling statement due to user request.
What did you expect to see?
The error indicates the cancelled request that can be triggered by timeout middleware. However, I'm not sure why the request cannot be finished it it works for me. If this is a client issue (like reading response too slowly) it should be a 4xx error.
What did you see instead?
200 OK response.

This can be an instance of https://github.com/stellar/go/issues/3710.

Fixed in #3710.


Rework the tests

I'd like to rework the tests like this (in multiple steps):

change the topmost test namespace from Sabberworm\CSS  to  Sabberworm\CSS\Tests  so that tests have their own namespace (so that one namespace does not map to two different directories)
add PSR-4 dev-autoloading for the tests
change the test names from using the test´  prefix (e.g., testStringQuotingType) to use the @test´ annotation so that the tests names are shorter and can later be reworded to be statements like emptyStringDoesNotProduceAnyRules (as a made-up example)
reword the test names to be sentences describing the tested behavior
split up some test methods so that each test (in the optimal case) tests exact one piece of behavior (which makes the tests easier to understand, and which also helps debug the cause of a problem if a test fails)
change $this->assert* to self::assert* (as the assert methods are static, and think that it's cleaner to call static methods statically)

@sabberworm @westonruter Would these changes be okay for you?

Sounds good, thanks. Thanks for tackling this.


Can database backups created from a Managed Instance be restored on premise?

... if so, what is the minimum on-premise version?
... or are the backup files only compatible with the Managed Instance service?

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

ID: 4b8c7fe7-9597-6ea8-54d3-b85f3cc7b1d3
Version Independent ID: 29b59670-62c1-7309-ab2a-ec44fb5e4746
Content: Azure SQL Database Managed Instance T-SQL Differences
Content Source: articles/sql-database/sql-database-managed-instance-transact-sql-information.md
Service: sql-database
Product: unspecified
GitHub Login: @jovanpop-msft
Microsoft Alias: jovanpop

@cbailiss Thanks for the feedback. We are actively investigating and will get back to you soon.

No, Azure SQL Managed Instance is the latest version of SQL Server, so you cannot restore database backup on older versions (even if you have the latest SQL Server 2017). The same problem you will face if you try to restore a backup taken from SQL Server 2016 to some older version, for example SQL Server 2012. Use .bacpac files from cross platform migration if your database is not very big.


Support custom GET parameters when retrieving images

Would it be possible to support sending additional parameters when retrieving images? _http_get_multipart_application_dicom already has a params parameter to add "Additional HTTP GET query parameters", but it is not used by the retrieve functions that call this method.
Background: We are developing a custom DICOMweb API server (OpenRadX ADIT) that can process additional parameters (e.g. for pseudonymization).
Would you accept a PR for such a feature?

Would you accept a PR for such a feature?

Sounds reasonable to me, so long as it's backwards compatible and uses basically standard web features.

The custom parameters are used to share underlying code between the "standard variants" of retrieving studies/series/images. E.g. adding the /metadata or /rendered parameters. But this is not exposed to allow other "non-standard variants" currently. The retrieve_study, retrieve_series, retrieve_instance methods have clearly-defined standard meanings.
In my opinion therefore, it may be better to add new public methods that allow adding custom parameters (like retrieve-tudy_metadata and retrieve_instance_frames_rendered also do) rather than add parameters to the existing methods as this could be less confusing to the user.

I wonder (even if we have no direct use for it in ADIT right now) if it should be possible to provide optional parameters to all functions (e.g., also for the search functions). But this would lead to much code duplication and a bloated API for an optional, server-specific parameter. As a user, I would prefer to have an optional params parameter added to each method. That said, I am okay with both options and would implement what you decide.


Added fixed frame pose data to the optimization problem and pose graph

I tried to do what was suggested here https://github.com/googlecartographer/cartographer_ros/issues/835#issuecomment-383504222.
The recommended compilation test was passed and messages when running cartographer_ros appear which set the initial coordinates. I'm not at all sure that my solutions is correct, I would wish some feedback since I am currently using this in a college project.

Hi, thanks a lot for the PR. Did you see that #1580 implemented something very similar? I'm closing this in favor of the other PR. If you think this decision is wrong, please let me know.


Organization Admin settings dropdown

https://github.com/zulip/zulip/issues/20415

In Organization settings > Organization settings
I have moved setting to a new line beneath their label.

@skpatro23 can you please comment on why you're submitting a new PR for this issue? There is a PR currently under review: #20445

Closing, since I think we've merged a fix for the original issue #20415.


NO module named rrpn_outputs

sir while running the train.py i am unable to see the rrpn_outputs at the location you specified as /home/ece/Documents/SDP/sid/MVDNET/MVDNet-main/detectron2/detectro

n2/modeling/proposal_generator

hi，i have a same question， Do you solve it？

sir while running the train.py i am unable to see the rrpn_outputs at the location you specified as /home/ece/Documents/SDP/sid/MVDNET/MVDNet-main/detectron2/detectro  n2/modeling/proposal_generator

i have solve the problem ,you can find rrpn_outputs through https://programtalk.com/vs4/python/JosephKJ/iOD/detectron2/modeling/proposal_generator/

Thank you for your response it means a lot to me.
On Thu, 9 Feb 2023, 8:24 am tianjiake, @.***> wrote:

sir while running the train.py i am unable to see the rrpn_outputs at the
location you specified as
/home/ece/Documents/SDP/sid/MVDNET/MVDNet-main/detectron2/detectro [image:
Screenshot from 2022-11-21 11-21-14]
https://user-images.githubusercontent.com/59868895/202977416-a5a3ce2e-02ce-4d18-a6a4-49df7ac74283.png
n2/modeling/proposal_generator [image: Screenshot from 2022-11-21
11-36-07]
https://user-images.githubusercontent.com/59868895/202977410-848fc98e-6e4f-4a4b-88d3-dbb0ff526ca3.png
i have solve the problem ,you can find rrpn_outputs through
https://programtalk.com/vs4/python/JosephKJ/iOD/detectron2/modeling/proposal_generator/
—
Reply to this email directly, view it on GitHub
https://github.com/qiank10/MVDNet/issues/12#issuecomment-1423546276, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOIYNXZ7AXWAQU6EFIDQSATWWRL5XANCNFSM6AAAAAASGIZPVU
.
You are receiving this because you authored the thread.Message ID:
@.***>

It's here. https://github.com/qiank10/detectron2/tree/alt-0.1.1

Thank you!
On Thu, 23 Feb 2023, 6:03 pm Afreshbird, @.***> wrote:

It's here. https://github.com/qiank10/detectron2/tree/alt-0.1.1
—
Reply to this email directly, view it on GitHub
https://github.com/qiank10/MVDNet/issues/12#issuecomment-1441693498, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOIYNX2KIYMH5BACVCMXZB3WY5KLJANCNFSM6AAAAAASGIZPVU
.
You are receiving this because you authored the thread.Message ID:
@.***>


DependenciesDownloadHelper#downloadArtifactMetaData() handles header case incorrectly

Describe the bug
Found this problem while upgrading Jenkins Artifactory plugin from 3.11.0 to 3.11.1. It in turn switches from version 2.26.0 to 2.26.2 of this library.
In 67cefb2 the method downloadArtifactMetaData in DependenciesDownloadHelper is refactored for some reason. Unfortunately the refactoring leads to incorrect handling of HTTP headers. Previously the header name was treated case-insensitively, but after the change it requires a certain case of the header name. If the header name doesn't mach, then, the file isn't downloaded due to the code in downloadArtifact() (which assumes that an artifact is a folder if no md5 or Sha1 is found).
Normally this isn't a problem since Artifactory produces the headers in expected case (X-Checksum-Md5 and X-Checksum-Sha1). But, in our case we have an HAProxy in between which transforms all headers to lower case (due to HTTP2 compliance). And thus the Jenkins Artifactory plugin fails to download the artifacts since the header isn't found by this library.
To be honest I don't see the point in the refactoring done to downloadArtifactMetaData(). The previous implementation relied on HttpResponse#getFirstHeader() to resolve header name to header value, which works perfectly fine. HttpResponse is a well tested and trusted implementation of header handling. Implementing your own header handling is, in my opinion, just unwise!
To Reproduce
Try to download artifacts using this library through a proxy which transforms the response headers to lowercase.
Expected behavior
That this library follows HTTP specification and ignores case of the HTTP response headers.
Versions
2.26.2 of this library
HAProxy 2.2
Additional context
It is possible to work around the issue by setting the following config parameters to HAProxy (i.e. it will ensure the headers have expected format:
default:
 option h1-case-adjust-bogus-client
global:
 h1-case-adjust accept-ranges Accept-Ranges
 h1-case-adjust content-disposition Content-Disposition
 h1-case-adjust content-length Content-Length
 h1-case-adjust content-type Content-Type
 h1-case-adjust last-modified Last-Modified
 h1-case-adjust x-artifactory-filename X-Artifactory-Filename
 h1-case-adjust x-artifactory-id X-Artifactory-Id
 h1-case-adjust x-artifactory-node-id X-Artifactory-Node-Id
 h1-case-adjust x-checksum-md5 X-Checksum-Md5
 h1-case-adjust x-checksum-sha1 X-Checksum-Sha1
 h1-case-adjust x-checksum-sha256 X-Checksum-Sha256
 h1-case-adjust x-jfrog-version X-JFrog-Version

This is not a permanent fix though. This library should really follow the HTTP standard and ignore header case.

@jonsten
Jenkins Artifactory plugin 3.12.5 is released.
This version includes the fix for this issue.
We'd appreciate your feedback on that.

Thanks for the quick role out of the fix. Unfortunately we have already deployed the broken version to one of our major Jenkins instances, which isn't scheduled for upgrade/restart for at least a month. So we can't undo workaround for our HAProxy until then. In any case, I will let you know as soon as I have tested it, but it might take a while.


Slack calling doesnt work

Describe the bug
Slack calling doesn't work. If I call someone or join a call the call is opened in a browser window
To Reproduce
Steps to reproduce the behavior:

Be in a slack workspace
Call someone or be called by someone

Expected behavior
In a previous release calling work flawlessly, I don't have any version number for that though.
Desktop (please complete the following information):

OS: Linux
Browser Firefox (what is this used for?)
Version 5.3.3

Additional context
The issue is pretty straight forward, and (for me) reliably reproducible.

This is a duplicate of issue 1603. https://github.com/meetfranz/franz/issues/1603

ok, closing now, I searched the issues but nothing related came up :/


fluttericon.com - Invalid params: - data.config is required (undefined)

picked icon and click download has popup error dialog message Invalid params: - data.config is required (undefined) in fluttericon.com

Facing the same error.

Same error happens to me also
I have 52 custom icons from svg and no built-in font selected

Yea, #meTo

Facing the exact same error.

I got the same error

Got the same error with 32 custom icons and no built-in one

Facing the same.

Yes. facing the same error, even with only 1 or 2 icons. I have tried with different class names, but always the very same. Any solution?

Repaired.  Sorry for the downtime.

@ilikerobots is the Flutter Icon down again?

same error is happening to me as well.

Repaired.


ecds: Wasm unblocks warming prematurely

It appears the init target is marked ready as soon as xDS config is received. The constructor for Wasm filter takes up to half a second to complete. Between the two events, 500 NFCF is returned because workers are accepting but Wasm is not ready.

cc /stevenzzzz


Check out GitHub - hosted websites

The web site is live: https://bow4290.github.io/
Check out documentation: https://pages.github.com/

Updated to use the "Dinky" theme...terrible name. Docs found here: https://github.com/pages-themes/dinky


"There's a problem communicating with google servers"

Read vanced guides under vanced repository for solutions to this problem.


Add rollIn animation

Thanks for the script. Here is a minor contribution developed while working on one of my personal projects.
Add animation to roll in. Ported from Animate.css.

 Roll in from left

 Roll in from right

 Roll in from top

 Roll in from bottom

@satrun77,
Instead of porting animation effects one by one, can it be done like I'm suggesting here?
https://github.com/julianlloyd/scrollReveal.js/issues/120

Thanks @satrun77
I need a little more time to decide how to proceed, but @HybridSolutions raises a good point — it makes the most sense to add support for the entire library, instead of one by one.

I agree. It would be nice to support the entire Animate.css library.

Until this is figured out, I’m working on a rotation keyword for the next minor update; I’m thinking something like…

 Foo

One thing that comes up, is that if I want to include 3d rotation (i.e. support pitch and yaw as well), rotation would be the first with 3 different keywords for 1 transformation. To illustrate the problem:
// if support for the other 2 axis were added…

 Foo

 Foo

// but then what type of rotation does 'hustle' imply?

 Bar

It is nice idea to have different rotation keyword based on the direction.
I may have misunderstood you, but it should be possible to have the rotation and hustle in the same statement. I have created a demo page: http://scrollreveal.my.geek.nz/ that demonstrate using the new keywords with/without ease-in-out and with hustle.
The script is modified to include the 3 keywords that are used to generate the rotate3d property.
Animation with hustle:

 Foo

Also, it is possible to simulate the rollIn animation with something like:

 Bar

Would this be a good option?

This looks awesome @satrun77! :beers:
Do you want to add these changes to your PR, so I can take a closer look?

I have updated PR with the new changes.

I’ve created a new branch v2.2.x-WIP with your changes. I’ll do a little work on it, and we’ll get this merged into master.
Thanks again for this @satrun77

I’ve created a new branch v2.2.x-WIP with your changes. I’ve got a little work to do on it for the v2.2.0 release, but this is awesome.
Thanks again for this @satrun77

Thanks @julianlloyd for accepting my PR :smile: :beers:. My Twitter username is @satrun77

Hey @satrun77
Just pinging you to let you know I’m getting close to releasing v2.2.0, which includes your PR. Check out the changes I made, I’ve added support for multiple axes—for example:

 Foo

 Bar

 Baz

Thanks again!
:beers:

Looks good :)


[Feature] Timestamp

Just a suggestion....perhaps a timestamp could be appended to the events for swipe?

I don't think I am willing to add features that could be achieved so simply: Date.now(). But thanks for asking anyways


receive_cb returning 0 on success

Shouldn't this function return 0 on success?
Same would go for http_client.c tsctp.c etc.

I don't think the return code is being used, see: https://github.com/sctplab/usrsctp/blob/de0630dfeee51edb3a4b6119c9954a89ab87da21/usrsctplib/netinet/sctputil.c#L4856
Not sure why it exists in the first place to be honest.

Yes, the return values is just ignored. Would have been better to declare it as void (*rcv_cb)(), but that is too late...


[DO NOT MERGE] Auto PR to update dependencies of istio

This PR will be merged automatically once checks are successful.

/lgtm

/lgtm

/approve


Respect commit.manifest.min-count-to-merge while appending manifests

I think we should respect commit.manifest.min-count-to-merge while appending new manifests via appendManifests. Right now, cachedNewManifest in MergingSnapshotProducer remains null if we append manifests directly that triggers merging of manifests.

Sounds good to me.


Improve BaseApiClient example

Improve the typing of the stub: the mypy-protobuf plugin generates a XxxAsyncStub class for each service, which have proper type information to be used with async. This still needs some hacks (type ignore) to make it work, but it's better than using the normal stubs and having to cast on each call.
Add channel_defaults.

Converting to draft because I'm finding issues at runtime with this approach, because the XxxAsyncStub doesn't really exist at runtime :worried:

It looks like we need this accepted to make it work:

https://github.com/nipunn1313/mypy-protobuf/pull/631/files

Otherwise we can't use the AsyncStub as a generic parameter when inheriting from BaseApiClient.
If this doesn't get updated and we want to still use the async stub, I guess we need to take out the stub from the BaseApiClient class and each sub-class will need to handle it manually on their own.

A quick hack is:
    def __init__(...) -> None:
        super().__init__(
            server_url,
            microgrid_pb2_grpc.MicrogridStub,
            connect=connect,
            channel_defaults=channel_defaults,
        )
        self._async_stub: microgrid_pb2_grpc.MicrogridAsyncStub = self.stub  # type: ignore

And then just use self._async_stub internally.

Superseded by:

#92

The improvement of the documentation to include defaults will be done in a separate PR.


Update with_sensitive to remove PII

Should have options to remove a user-specified list of files or files of a certain type (e.g. all free speech files).

Design approaches:

Exclude files during conversion process.

memory-efficient
disk-efficient
requires later reconversion if someone changes their mind

Create second Bids tree without PII.

disk inefficient

Exclude in data bundling.

includes files in non-bundled data
memory efficient
somewhat disk inefficient

Going to go with 3.

Interface options:
1.with_sensitive parameter

Requires separate parameter for the specific files or classes of files to remove.
Simple.

Path to file with list of UUIDs or files to exclude:

Annoying if you want to exclude a class of files.

Path to file with list of patterns to exclude:

Class based and individual file based control.
Might exclude more than intended.

3 requires a bit of carefulness, but it offers the best balance of simplicity and customization.


feat: add post age notification banner

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Improvement (refactoring and improving code)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update

Description

This change adds a banner to posts over a specified age. Useful for technical bloggers where the data could become out of date over time.
adds new configuration:
post_age_banner:
  enabled: true # Enables banner on posts to show age warning
  age_months: 6 # The age in months for a banner to be shown

displays banner:

Additional context

Thank you for your interest in contributing to this project.
I'm not going to merge this feature because it's not necessary for the blog — if you want to receive feedback from readers correcting outdated content, turning on comments will fulfill that need.


Support to upload multiple folders at a time using 'Upload Folder' dialog

Storage Explorer Version: 1.7.0_20190401.1
Platform/OS: Linux Ubuntu/macOS High Sierra/Windows 10
Architecture: ia32/x64
Regression From: Not a regression
Actually:
We can drag multiple folders at the same time to one blob container/file share. And the selected folders can be uploaded successfully.
Suggestion:
Can we support to upload multiple folders using 'Upload Folder' dialog?

Based on our current knowledge this is only possible on non-Windows OSs. Windows file explorer limits us to selecting 1 folder at a time. Will leave it that way for all platforms for now for consistency. Will revisit if customers ask for this as well.

This functionality would be extremely helpful!

Unfortunately "drag & drop" option is not so obvious... I had to use "Upload folder" button couple of times until I've google it and found that is there a better way. :)


Connecting to audio in a call returns The operation couldn’t be completed. (OSStatus error -50.)

Description
Once in a while making an outbound call doesn't connect the audio in the device.
Trying later during the call to change audio port throws error The operation couldn’t be completed. (OSStatus error -50.)
try audioSession.overrideOutputAudioPort(isMicOn ? .speaker : .none)

Since this happened we tried according to some articles we found to implement a recovery using the following code:
try audioSession.setMode(.voiceChat)
try audioSession.setCategory(.playAndRecord)
try audioSession.overrideOutputAudioPort(.speaker : .none)

but this action also fails with the same error.
This is very hard to reproduce so we weren't able to debug a solution, but when it does happens it really bothers our clients.
Is there any advice for anything we can do to either avoid this error or to recover from it after it happens?
Steps to Reproduce
I am not sure what exact steps can reproduce this, though from what I saw it only happens with outgoing calls.
Reproduces How Often
Happens about twice a day for the affected users
Twilio Call SID(s)
CA77581c11071259972cbee70785ec126c, CA77581c11071259972cbee70785ec126c, CA77581c11071259972cbee70785ec126c
*the examples are all from the same client that is very troubled by this issue
Logs
  Workiz              0x10067340c  VoiceManager.setDefaultAudioRoute (VoiceActions.swift:229)
  Workiz              0x100c35760  VoiceManager.provider (VoiceProviderDelegate.swift:26)
  Workiz              0x100c346a4  VoiceManager.provider
  CallKit             0x1c399425c  __57-[CXProvider handleAudioSessionActivationStateChangedTo:]_block_invoke
  libdispatch         0x1aa8c76a4  _dispatch_call_block_and_release
  libdispatch         0x1aa8c92fc  _dispatch_client_callout
  libdispatch         0x1aa8d7994  _dispatch_main_queue_drain
  libdispatch         0x1aa8d75ac  _dispatch_main_queue_callback_4CF
  CoreFoundation      0x1a290d018  __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
  CoreFoundation      0x1a2909d24  __CFRunLoopRun
  CoreFoundation      0x1a2909474  CFRunLoopRunSpecific
  GraphicsServices    0x1e5e624f4  GSEventRunModal
  UIKitCore           0x1a4d2d628  -[UIApplication _run]
  UIKitCore           0x1a4d2cc64  UIApplicationMain

In our breadcrumbs we usually have something like that:
Error starting audio session The operation couldn’t be completed. (OSStatus error -50.)
Setting audio route to voice chat
provider did activate
POST https://eventgw.twilio.com/v4/EndpointEvents [200] -- (few more of those)
Call started ringing
POST https://eventgw.twilio.com/v4/EndpointEvents [200] -- (usually few of those)
{ action: UIKeyboardDidHideNotification }
provider start call action
Reporting call to CallKitProvider

Versions
Voice iOS SDK
6.10.0 via CocoaPods
Xcode
15.2
iOS Version
17.x (most of them are from 17.2.1)
iOS Device
A lot of different versions, most of them relatively new (14, 14 pro max, 13, etc)

Thanks for reaching out @rakefetWorkiz. We will have a look and try to reproduce and investigate.

@bobiechen-twilio have you been able to find something?


Building issue / undefined reference to libusb

When I tried to build ttwatch, I get the following errors after the 'make' command. It shows undefined reference to libusb. The cmake . command works and gives no errors. Is there any solution to this? I'm try to install it on a Raspberry Pi 3b+.

pi@raspberrypi:~/ttwatch $ make
[ 34%] Built target libttbin
[ 34%] Built target libttwatch
[ 34%] Linking CXX executable ttwatchd
/usr/bin/ld: CMakeFiles/ttwatchd.dir/src/ttwatchd.c.o: in function register_callback': /home/pi/ttwatch/src/ttwatchd.c:178: undefined reference to libusb_hotplug_register_callback'
/usr/bin/ld: CMakeFiles/ttwatchd.dir/src/ttwatchd.c.o: in function main': /home/pi/ttwatch/src/ttwatchd.c:353: undefined reference to libusb_init'
/usr/bin/ld: /home/pi/ttwatch/src/ttwatchd.c:356: undefined reference to libusb_has_capability' /usr/bin/ld: /home/pi/ttwatch/src/ttwatchd.c:359: undefined reference to libusb_exit'
/usr/bin/ld: /home/pi/ttwatch/src/ttwatchd.c:368: undefined reference to libusb_exit' /usr/bin/ld: /home/pi/ttwatch/src/ttwatchd.c:377: undefined reference to libusb_handle_events_completed'
/usr/bin/ld: libttwatch.a(libttwatch.cpp.o): in function send_packet(TTWATCH*, unsigned char, unsigned char, unsigned char const*, unsigned char, unsigned char*)': /home/pi/ttwatch/src/libttwatch.cpp:245: undefined reference to libusb_interrupt_transfer'
/usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:256: undefined reference to libusb_interrupt_transfer' /usr/bin/ld: libttwatch.a(libttwatch.cpp.o): in function ttwatch_enumerate_devices':
/home/pi/ttwatch/src/libttwatch.cpp:311: undefined reference to libusb_get_device_list' /usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:324: undefined reference to libusb_free_device_list'
/usr/bin/ld: libttwatch.a(libttwatch.cpp.o): in function ttwatch_open': /home/pi/ttwatch/src/libttwatch.cpp:332: undefined reference to libusb_get_device_list'
/usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:339: undefined reference to libusb_free_device_list' /usr/bin/ld: libttwatch.a(libttwatch.cpp.o): in function ttwatch_open_device':
/home/pi/ttwatch/src/libttwatch.cpp:355: undefined reference to libusb_get_device_descriptor' /usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:368: undefined reference to libusb_open'
/usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:383: undefined reference to libusb_kernel_driver_active' /usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:385: undefined reference to libusb_detach_kernel_driver'
/usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:388: undefined reference to libusb_claim_interface' /usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:411: undefined reference to libusb_get_string_descriptor_ascii'
/usr/bin/ld: libttwatch.a(libttwatch.cpp.o): in function ttwatch_close': /home/pi/ttwatch/src/libttwatch.cpp:452: undefined reference to libusb_release_interface'
/usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:455: undefined reference to libusb_attach_kernel_driver' /usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:456: undefined reference to libusb_close'
/usr/bin/ld: libttwatch.a(libttwatch.cpp.o): in function ttwatch_get_serial_number': /home/pi/ttwatch/src/libttwatch.cpp:771: undefined reference to libusb_get_device'
/usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:771: undefined reference to libusb_get_device_descriptor' /usr/bin/ld: /home/pi/ttwatch/src/libttwatch.cpp:773: undefined reference to libusb_get_string_descriptor_ascii'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/ttwatchd.dir/build.make:210: ttwatchd] Fout 1
make[1]: *** [CMakeFiles/Makefile2:116: CMakeFiles/ttwatchd.dir/all] Fout 2

I have a similar (the same?) issue on Ubuntu 22.04.
I have installed libusb libusb-1.0-0-dev from ubuntu repos.
It is found by cmake, with the output
-- Found libusb-1.0: --  - Includes: /usr/include/libusb-1.0 --  - Libraries: /usr/lib/x86_64-linux-gnu/libusb.so
However, make fails at "Linking CXX executable ttwatch
/usr/bin/ld: CMakeFiles/ttwatch.dir/src/ttwatch.c.o: in function `main':"
with undefined references to libusb_init , libusb_exit, libusb_get_device_list , and so on.

I installed libusb-dev because it was not compiling. With bots libusb-dev and libusb-1.0-dev compiles and works fine.

I installed libusb-dev because it was not compiling. With bots libusb-dev and libusb-1.0-dev compiles and works fine.

That did the trick for me too, thanks!


Add vim-sqflint-ale to README.md

Add vim-sqflint-ale linter integration to README.md
Correct capitalization of AtomLinter and SublimeLinter

Coverage remained the same at 98.932% when pulling d0af70aa97fd8b689d1b83b3f139e4249284726d on jonpas:patch-1 into dbc0021edd7491f2483bd663efa3b573d2e7351e on LordGolias:master.


roofs have dissapeared during agility course how do i get them back

A screenshot would be incredibly helpful.

This is caused by the low detail plugin, try disabling it.

Duplicate of #1481


Support creating rbac based role in our helm charts

Current Behavior
Users can only config existing cluster role for binding in values.yaml
Proposed Behavior
Support creating a new role with the required permissions
cc @tianweidut

#783


Execution order of getMutators

When Having a getMutator and a relation of the same name, standard Eloquent behaviour would prioritise the mutator. However, when the relation is embedOneOrMany, the relation would have the priority over the mutator.
Calling $model->foo on the following would return an ordered collection
public function getFooAttribute(){
//this will never be called
        return $this->foo()->sortBy('created_at','desc');
    }
public function
        return $this->embedsMany('Foo');
    }

However it would have a different behaviour for other relations

This is not a library related issue
@iceheat You may use Eloquent Query Scopes. (They are fully supported by laravel-mongodb
One simple approach is applying a global scope to Foo model, so every query on it (thus any relation) will return sorted form :)
App\Foo.php
class Foo extends Moloquent
{

    protected static function boot()
    {
        parent::boot();
        static::addGlobalScope('sorted_scope', function (Builder $builder) {
            $builder->orderBy('created_at', 'desc');
        });
    }

@pi0
Thank you for the reply. Query Scopes are a good tool, but in the specific case I have more than query adjustment to be done.  I did track down the problem to Mongodb\Eloquent\Model@getAttribute. The problem is that the method searches for relationships before it passes to parent:getAtttribute(). Only the parent method checks for hasGetMutator($key).
My current hack is to add
   public function getAttribute($key)
    {
        // Check for get mutator first
        return $this->hasGetMutator($key)
            ? $this->getAttributeValue($key)
            : parent::getAttribute($key);
    }

to my BaseModel class

@pi0 I had a look at your commit. Unfortunately, this wouldn't solve the problem since it is run at the end of the method. hasGetMutator should run before checking for embedded relations.

@iceheat Please checkout 6a536f67277927e5a778ca1fe4ab108d079977ec ;)

That looks perfect!!
Don't you think overriding the parent method makes more sense than extending it in this case?

@iceheat  Would you please explain more about that ? ( or opening PR on Moloeunt )


CLI: Allow setting environment at runtime

I would like the ability to specify the environment of the API when running the CLI to control which appsettings files get used. Currently, it defaults to Production, but our production values are tucked away into secrets and loaded outside the appsettings file. I'd like to point it to Development.
dotnet run has the ability to set environment via --environment  and has the ability to set environment variables in general using =.  It also can pull the ASPNETCORE_ENVIRONMENT from the launchSettings.json
I can still set ASPNETCORE_ENVIRONMENT at the user/system level, but I'd prefer the flexibility of one of these other options.

I don't see --environment as an option for dotnet run:

Also, I don't understand how the introduction of such a parameter would provide any more flexibility over passing ASPNETCORE_ENVIRONMENT as an environment variable to the command as follows:
> ASPNETCORE_ENVIRONMENT=development dotnet swagger tofile --output wwwroot/api-docs/v1/swagger.json bin/Debug/netcoreapp2.0/MyAPI.dll v1

So it turns out the dotnet run call just takes in additional arguments which are then added to the app configuration object. You can see this option here

ASPNETCORE_ENVIRONMENT just happens to be translated to the environment configuration option. So by using --environment Development or environment=Development at the end of the dotnet run command, you are setting the environment configuration. Adding --foo bar or foo=bar would set foo to bar in the configuration usable during startup.
The additional flexibility comes from trying to use the command inside the csproj file like so
 <Target Name="SwaggerToFile" AfterTargets="AfterBuild">     <Exec Command="dotnet swagger tofile --output $(OutputPath)swagger.json $(OutputPath)$(AssemblyName).dll v1" />   </Target>
For whatever reason, I can't have two commands (e.g. set = && dotnet swagger tofile) in the same command which means I can't set the environment variable this way, hence why I'd like it as part of the actual tofile command.
It is a niche case, but I figured I'd ask.

Just ran into this missing option to set environment. Seems to be needed when using the Manage User Secrets feature of VS, then without the environment = Development setting, the "dotnet swagger tofile..." command embedded in a .csproj fails if you use config properties for oauth2 setup in the Startup.cs.

I have a similar use case where we wish to use the CLI to create contract diffs during PRs. Unfortunately we access secrets in our Startup.cs file that are not available at build time and are only available when we deploy. This causes a particular piece of our Startup to error because it's attempting to use a configuration variable that's null.
Being able to specify configuration options similar to the Environment would allow us to use the CLI without making code changes.

I have the same use case as persalmi. I'm using Manage User Secrets with a script in the .csproj file
<Target Name="SwaggerToFile" AfterTargets="AfterBuild">
    <Exec Command="dotnet swagger tofile --output swagger.json $(TargetPath) v1" />
  </Target>

I finally able to make it work
Set env variable like this

Notice there is NO && ^ between setting env variable and calling dotnet swagger
Within the project, dont forget to put the appsettings.Development.json

If using the CLI as part of you build pipelines on Azure DevOps, you can do it like this:
- task: CmdLine@2
  displayName: 'Generating swagger json'
  inputs:
    script: |
      set ASPNETCORE_ENVIRONMENT=Development
      swagger tofile --serializeasv2 --output swagger.json MyService.Dll 1.0
    workingDirectory: <your dotnet publish directory>

@nascosto  - it seems there's very reasonable solutions here, can this be closed?

Yeah. Let's close this for now. Thanks.

Just if anybody still looks for a solution to make it work in .csproj:
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="dotnet tool restore" />
    <Exec Command="dotnet swagger tofile --output swagger.json $(OutputPath)$(AssemblyName).dll v1" EnvironmentVariables="ASPNETCORE_ENVIRONMENT=Development" />
</Target>

Just if anybody still looks for a solution to make it work in .csproj:
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="dotnet tool restore" />
    <Exec Command="dotnet swagger tofile --output swagger.json $(OutputPath)$(AssemblyName).dll v1" EnvironmentVariables="ASPNETCORE_ENVIRONMENT=$(Configuration)" />
</Target>

With this instruction I'm getting "Debug" and not the Environment Variable, how is this supposed to work?

Just if anybody still looks for a solution to make it work in .csproj:
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="dotnet tool restore" />
    <Exec Command="dotnet swagger tofile --output swagger.json $(OutputPath)$(AssemblyName).dll v1" EnvironmentVariables="ASPNETCORE_ENVIRONMENT=$(Configuration)" />
</Target>

With this instruction I'm getting "Debug" and not the Environment Variable, how is this supposed to work?

What are you trying to do?
The environment variable is set according to the targeted configuration.

I'm trying to compile the project and I need the environment to be able to connect to the correct key vault.
This means that I have to create a new configuration and call it "Development"? And when I run my pipeline I should create also a configuration to define the environment

Just if anybody still looks for a solution to make it work in .csproj:
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
    <Exec Command="dotnet tool restore" />
    <Exec Command="dotnet swagger tofile --output swagger.json $(OutputPath)$(AssemblyName).dll v1" EnvironmentVariables="ASPNETCORE_ENVIRONMENT=$(Configuration)" />
</Target>

With this instruction I'm getting "Debug" and not the Environment Variable, how is this supposed to work?

What are you trying to do? The environment variable is set according to the targeted configuration.

Well then simply use the variable: https://stackoverflow.com/questions/48618357/how-to-get-environment-variable-in-csproj-file

Trying to do this using gitlab pipelines without much success:
`- dotnet tool install --tool-path tools Swashbuckle.AspNetCore.Cli --version 6.4.0 && set myvar=https://example.com

./tools/swagger tofile --output swagger.json MyProject.dll v1`
Tried many variations without success
`- dotnet tool install --tool-path tools Swashbuckle.AspNetCore.Cli --version 6.4.0

set myvar=https://example.com && ./tools/swagger tofile --output swagger.json MyProject.dll v1`

`- dotnet tool install --tool-path tools Swashbuckle.AspNetCore.Cli --version 6.4.0

set myvar=https://example.com
./tools/swagger tofile --output swagger.json MyProject.dll v1`

passing environment variables working?

Trying to do this using gitlab pipelines without much success:
- dotnet tool install --tool-path tools Swashbuckle.AspNetCore.Cli --version 6.4.0 && set myvar=https://example.com
- ./tools/swagger tofile --output swagger.json MyProject.dll v1

Tried many variations without success:
- dotnet tool install --tool-path tools Swashbuckle.AspNetCore.Cli --version 6.4.0
- set myvar=https://example.com && ./tools/swagger tofile --output swagger.json MyProject.dll v1

- dotnet tool install --tool-path tools Swashbuckle.AspNetCore.Cli --version 6.4.0
- set myvar=https://example.com
- ./tools/swagger tofile --output swagger.json MyProject.dll v1

is this working or any other options above?


feat: complete tq quest

Checklist

[x] I only edited the _data/pixels.json file.
[x] I entered the username in the pixels.json that I'm also using to create this pull request.
[x] I acknowledge that all my contributions will be made under the project's license.

i mean im waiting for a review


Customize Elemental Install doesn't explain how to add registration yaml

https://elemental.docs.rancher.com/customizing#create-a-custom-bootable-installation-media explains how to create a custom ISO image, but doesn't include instructions for adding the machine registration yaml to the ISO. We probably need to add something like what's already in https://elemental.docs.rancher.com/quickstart-cli/#preparing-the-installation-seed-image to download initial-registration.yaml, plus xorriso -indev elemental-teal-amd64.iso -outdev elemental-teal-amd64-mycluster.iso -map ./initial-registration.yaml /livecd-cloud-config.yaml -boot_image any replay to get it into the image.

Oh, wait, I've just found the "Download Configuration File" button on the Registration Endpoint page in the UI, so that's an alternative to wget, but I think we still need the instructions on getting that thing into the ISO.


YAML: allow to give description to groups tasks

I have this task (group) defined via YAML:
tasks:
  deploy:
    - deploy:prepare
    - deploy:publish

after:
  deploy:prepare:
    - typo3:create_default_folders
    - typo3:update:databaseschema
    - typo3:flush:caches
    - typo3:setup:extensions
    - typo3:flush:caches

  deploy:failed:
    - deploy:unlock

I'm trying to find a way to set the description of this task group so that deployer dep list shows a nice description and not only the key of the task.
Is there any way to do this?
Originally posted by @oliverklee in https://github.com/deployphp/deployer/discussions/3504

Maybe you can try something like that :
tasks:
  deploy:
    - deploy:prepare
    - deploy:publish

after:
  deploy:prepare:
    desc: 'description'
    script:
       - typo3:create_default_folders
      - typo3:update:databaseschema
      - typo3:flush:caches
      - typo3:setup:extensions
      - typo3:flush:caches

  deploy:failed:
    - deploy:unlock


Swapped out phantomjs-prebuilt fork with upstream

Was struggling to build a prerender service on linux due to 2.0.0 binary not existing. Managed to get it working by referencing a newer version of phantomjs-prebuilt. Got a feeling that I'm missing something here but figured if I put it on the table, you'll at least let me know what it'll take to achieve this :)

phantomjs-prebuilt is just phantomjs after they renamed their library.
Prerender does not yet work with PhantomJS 2.1 since there is an error that prevents our node -> phantomjs bridge from working.
We'll make this change when we eventually get everything working with 2.1

weird, I'm using 2.1 and it's been working for 44hrs already :) had to disable web-security, but all looks good to me.
My Dockerfile for that if it helps:
FROM node:4

RUN apt-get update -y
RUN apt-get install -y \
    python2.7 python-pip \
    libfreetype6 libfontconfig

RUN cd / && git clone https://github.com/intellix/prerender && cd /prerender && git checkout phantomjs2-prebuilt-nowebsecurity
RUN cd /prerender && npm install

EXPOSE 3000

RUN sed -i '/server.start()/i server.use(prerender.s3HtmlCache());' /prerender/server.js

CMD node /prerender/server.js

Yeah the web security issue is what I meant. It's not great, security wise, to disable web security so we want to try to fix the issue that requires that currently.


error when fetching account balance

stacktrace: transaction version 144 is unknown

Closed by a312a7339eca52921ba3dd365c25a74a9d0d85f8.
We now consume transactions with unknown versions as OpaqueTransactions, which means we might miss some data (coin outputs) but at least the app will continue to work.
Will log a warning though, so as developer we are aware of this.


Lamps are changing back to Adaptive Light color after setting a scene that is exposed as switch

Issue
Hi, first of all thanks a lot for your great work!
I have one issue/question: As long as adaptive Light is enabled for some lamps in a room and I'm setting a new scene that is exposed as a switch, the lights change to that scene, but then directly changing back to the Adaptive light color. Is there any chance in disabling Adaptive light before setting the scene via switch in HomeKit. Because for now using Adaptive light is completely useless for me, as I can't set scenes by voice afterwards, as they are changing back... I hope it is understandable.

Adaptive lighting should be disabled automatically when you change the colour.  As per the specs, it should also be disabled when manually setting the colour temperature, but Homebridge Hue doesn’t honour that.  I had a hard time distinguishing that from adaptive lighting changing the colour temperature.  I think I managed to correct that in Homebridge deCONZ

Ok, so I’m using a Hue Bridge. Will this also work in Homebridge Huev2?

Yes, I'll use the same logic for Homebridge Hue 2.
Did you enable adaptive lighting on a group accessory?  I could probably disable that rather easily.  If you mean disable adaptive lighting on each of the accessories corresponding to lights in that group: that won't be doable.

Ok, sounds great!
Yes, I activated it on a group accessory.
For instance my room: „Arbeitszimmer“ is exposed as a group as I set groups: true and rooms: true in config. If I now set my group „Arbeitszimmer“ to adaptive light and after that recall a scene, that is exposed under this group accessory as a switch, the scene sets just fine, but it gets overwritten by the adaptive light color after some seconds again.
I have one other little question at this point: The scenes that are exposed as switch (under a group accessory) don’t count to the 150 accessory’s limit, right? So I can expose all my 200 hue scenes without hitting any HomeKit limit this way?

Each scene is exposed as additional service on the group accessory.  There is a limit of 100 services per accessory, so with the Accessory Information and Lightbulb services, there’s only room for 98 scenes per group.

Ok, that’s far enough for me. My maximum is 36 scenes in one room 👍

In v0.13.38.

Wow, thank you! Will test it later :)

Perfectly working!


Add adaptive brightness functionality

wluma could be a great candidate for an easy to install and setup adaptive brightness solution, we could support it by including a waybar module and a default configuration for it.

allow to provide a default config, preferably not inside userspace (needs to be implemented upstream, https://github.com/maximbaz/wluma/pull/45). The minimal default configuration should use video0 (which should work on most notebooks and computers with a webpack) as a sensor and mostly stick to the example config otherwise.
provide waybar module on top of a little script:

show only if wluma is installed
read status from systemd unit
click: toggle active status of systemd unit

Add wluma to the optional dependencies of our settings package
Add a hint to our support.md about how installing and configuring it

Hi @boredland, I did the PR to be able to support xdg dirs. For config and data. I hope this will help your integration in manjaro.
You can also find some inspiration @maximbaz and myself use in waybar, https://github.com/maximbaz/dotfiles/blob/master/.config/waybar/config#L119 and https://github.com/maximbaz/dotfiles/blob/master/.local/bin/waybar-movie

I've just cut the 4.2.0 release of wluma with the requested functionality - enjoy 🥳

thanks for the hints @maximbaz! for the waybar modules I did to not too different paths:
https://github.com/manjaro-sway/desktop-settings/blob/sway/community/sway/usr/share/sway/scripts/wluma.sh#L1-L27
https://github.com/manjaro-sway/desktop-settings/blob/sway/community/sway/usr/share/sway/templates/waybar/config.jsonc#L329-L342


SMS OTP As MFA Redirects with oauth2 in the path

Describe the issue:
When SMS is used as the second factor, once the basic authentication is successful, it should redirect to the sms authenticator endpoint with the URL https://localhost:9443/smsotpauthenticationendpoint/smsotp.jsp. Instead, it's redirecting to https://localhost:9443/oauth2/smsotpauthenticationendpoint/smsotp.jsp, which causes a 404 not found error.
How to reproduce:

Setup SMS OTP as an MFA option. https://is.docs.wso2.com/en/5.10.0/learn/configuring-multifactor-authentication/
Try out an authorization request.

Ex: https://localhost:9443/oauth2/authorize?response_type=code&client_id=5zWpziLxNVRynDVMln2MZvVKzi8a&redirect_uri=google.com

Complete basic auth.
404 error will appear.

Environment information:

Product Version: IS 5.10.0 WUM, IS 5.9.0 WUM
OS:  Linux

Note:
If we use openid scope in the authorize URL, the flow works without any issues.

Checked the flow with wso2is-5.12.0-alpha6. Works as expected.


Webpack 4 support

I tried upgrading to webpack 4 but I am seeing this error:
TypeError: compiler.applyPlugins is not a function
    at (cwd)\node_modules\autodll-webpack-plugin\lib\plugin.js:142:20
    at <anonymous>

Looks like the error might be from this line:
https://github.com/asfktz/autodll-webpack-plugin/blob/master/src/plugin.js#L86
compiler.applyPlugins('autodll-stats-retrieved', stats, source);

I am not sure if you are working on this upgrade already (as webpack 4 made several breaking changes to the plugin system) -- but I would be happy to help.

Hey @mhheise, thanks for bringing this up! It would be very much welcome if you could make a PR with the changes required for webpack 4.

I was trying to fix this issue as well, but I couldn't figure out yet what's the correct API to use here.
/cc @ooflorent @TheLarkInn Any hint on how to fix this? Also, is the "old" compiler.plugin API still working or does it need to be upgraded as well?
Thanks 🙏

First, you must add a custom hook the compiler:
compiler.hooks.autodllStatsRetrieved = new SyncHooks(["stats", "source"]);

Then you can replace applyPlugins by:
compiler.hooks.autodllStatsRetrieved.call(stats, source);

@ooflorent many thanks!
@sudo-suhas would you like to take care of this? Otherwise I'll try to open a PR.
It would be good to have webpack@4 support soon ;)

I have started work on my own fork -- I can push it up for review soon once tests are passing 😄

@mhheise awesome! 🙌

@asfktz @sudo-suhas I have changes underway and will push a WIP PR shortly, but I am seeing this error when I am testing my changes with the examples directory:
Error: ENOENT: no such file or directory, open 'C:\Git\autodll-webpack-plugin\examples\recommended\node_modules\.cache\autodll-webpack-plugin\development_instance_0_1dc0c813842ea3b964c005e53b6b3ea3\vendor.manifest.json'

Any thoughts? I know that the file is not present on my machine, but I am not quite sure how to generate it so that an npm run build would succeed.

Hi @mhheise!
First, thanks a lot for taking this  🙏
I'll take a look at it tomorrow and see what I can do to help (:

Hi @mhheise, I've left I few notes in the PR

Any update on this? html-webpack-plugin has been upgraded

I got html-webpack-plugin working. Please verify so it can get merged to the main package sooner:
https://www.npmjs.com/package/autodll-webpack-plugin-webpack-4
yarn add --dev autodll-webpack-plugin-webpack-4

Just found a little bug in version 4 of webpack . On first run (without nothing in cache .cache)
The compilation stop processing to next step a callback is never called...
is just added some return in watchrun did the trick for me
var watchRun = function watchRun(compiler, callback) {
compileIfNeeded(function () {
return (0, _webpack2.default)(dllConfig);
}).then(function (a) {
return a;
}).then(handleStats).then(function (_ref) {
var source = _ref.source,
stats = _ref.stats;
if (compiler.hooks) {
here  ->        return compiler.hooks.autodllStatsRetrieved = new _tapable.SyncHook(['stats', 'source']);
here  ->        return compiler.hooks.autodllStatsRetrieved.call(stats, source);
} else {
return compiler.applyPlugins('autodll-stats-retrieved', stats, source);
}

@faceyspacey There is a little problem about the autodll-webpack-plugin-webpack-4 plugin.
npm i -S autodll-webpack-plugin-webpack-4 and  build with the plugin, it's error.
Maybe you can try with a new demo.  (do not install autodll-webpack-plugin and use it )

Hi everybody,
A new version released with webpack 4 support.
Thanks for @mhheise & @faceyspacey for making it happen ❤

Can't this be closed then? :+1:


allow target_class parameter in evidence filter endpoint

there is a target_class parameter in the association endpoint.
It would be nice if there was a similar parameter in the public/evidence/filter endpoint too.

Hi @PriyankaW are you working on it?

Hello, @gkos-bio , yes i am working on the evidence endpoint - will incorporate target_class param too.

@gkos-bio : Need to confirm if requirement still and priority/value.

Issue moved to opentargets/platform #102 via ZenHub


drawables fail

When the viewmodel is refreshed when returning from another viewmodel the drawable will not toggle to show the list in expanded or contracted.

Thank you for reporting your issue. In order to look into it, can you please provide a sample project and clear steps to reproduce?

will do asap, thankyou for the reply.
On Thu, Apr 2, 2020 at 9:13 AM Evan Tatarka<EMAIL_ADDRESS>wrote:

Thank you for reporting your issue. In order to look into it, can you
please provide a sample project and clear steps to reproduce?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/evant/binding-collection-adapter/issues/185#issuecomment-607943313,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFTTT4EYG7TL3YHA7DKEKLRKS2UNANCNFSM4L2TSBLQ
.

--
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=c3Bvd2FnZTI3NTk%3D

Closing this because not enough info was provided, feel free to re-open if you are still having issues.


Add dsc-linux to list of supported extensions

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

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

@cynthn
Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#reassign @ju-shim

#sign-off

Invalid command: '#sign-off'. Only the assigned author of one or more file in this PR can sign off. @cynthn

@Jak-MS - there is no listed author currently in the metadata, can you merge this? We will find the appropriate content author and add that info at a later date. But for now, we have approved and would like to sign off on this PR. Thank you.

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


Fix formatting in the behavioral.md file

The behavioral.md file uses – instead of - on two lines, resulting in slightly broken formatting.

Thank you!