How to inject token in ajax request

Hi,
sorry for that (maybe) silly question. Im super new to this topic :shipit:
I created a custom authorizer:
import Ember from 'ember';
import Base from 'ember-simple-auth/authorizers/base';
export default Base.extend({
    authorize: function(jqXHR, requestOptions) {
        var accessToken = this.get('session.content.secure.token');
        if (this.get('session.isAuthenticated') && !Ember.isEmpty(accessToken)) {
            jqXHR.setRequestHeader('Authorization', 'Bearer ' + accessToken);
        }
    }
});

And now i want to include the token in a ajax request in my controller (this is my code without the token send):
// app/controllers/workouts.js
import Ember from 'ember';
import config from '../config/environment';

export default Ember.Controller.extend({
  requestEndpoint: config.ServerIp+'/workouts',
  workouts: function() {
        Ember.$.ajax({
            type: "GET",
            url: requestEndpoint
        }).success(function(data) {
            return data;
        })
  }.property()
});

Thank you very much for helping and understanding this great module! :+1:

You use the session service's authorize method to authorize arbitrary code blocks, e.g.:
// app/controllers/workouts.js
import Ember from 'ember';
import config from '../config/environment';

export default Ember.Controller.extend({
  session: Ember.inject.service(),
  requestEndpoint: config.ServerIp+'/workouts',
  workouts: function() {
      this.get('session').authorize('authorizer:oauth2-bearer', (headerName, headerValue) => {
        // inject header here
        Ember.$.ajax({
            type: "GET",
            url: requestEndpoint
        }).success(function(data) {
            return data;
        });
      });
  }.property()
});

Thanks. But now is the session.content.secure.token undefined. I dont know why.. Maybe you have a tip for me?
// authorizers/custom.js
import Ember from 'ember';
import Base from 'ember-simple-auth/authorizers/base';
export default Base.extend({
	session: Ember.inject.service(),
    authorize: function(jqXHR, requestOptions) {
    	console.log(Object.keys(this.get('session')));
        var accessToken = this.get('session.content.secure.token');
        if (this.get('session.isAuthenticated') && !Ember.isEmpty(accessToken)) {
            jqXHR.setRequestHeader('Authorization', 'Bearer ' + accessToken);
        }
    }
});

// authenticators/custom.js
...
    authenticate: function(options) {
        return new Ember.RSVP.Promise((resolve, reject) => {
            Ember.$.ajax({
                type: 'POST',
                url: this.tokenEndpoint,
                data: JSON.stringify({
                    email: options.identification,
                    password: options.password
                }),
                contentType: 'application/json;charset=utf-8',
                dataType: 'json'
            }).then(function(response) {
                Ember.run(function() {
                    resolve({
                        token: response.token
                    });
                });
            }, function(xhr, status, error) {
                var response = xhr.responseText;
                Ember.run(function() {
                    reject(response);
                });
            });
        });
    },
...

session.content.secure was changed to session.data.authenticated in 1.0 so you'll want to get session.data.authenticated.token now.

Ah okay! The development is so fast, that there are just a few tutorials up to date.
I now have the error:
Uncaught TypeError: jqXHR.setRequestHeader is not a function

I dont understand exactly how this jqXHR is filled, anyway....
Danke fürs schnelle Helfen!

The above was really just example code - not sure how you can set request headers in your case but the point is that headerName and headerValue contain the data you need.

Yeah i got that. But the authorizers/custom.js failes at Uncaught TypeError: jqXHR.setRequestHeader is not a function.
So the jqXHR is filled by the module, isnt it?

Ah, I see. The authorizer doesn't get a jqXHR, it only gets the session data and a block that it calls with authorization data if the session is authenticated - see the API docs: http://ember-simple-auth.com/api/classes/BaseAuthorizer.html#method_authorize.

Ah okay! I searched a little bit in jquery docs but didnt find a way to have a good alternative to jqXHR.setRequestHeader(), do you? Or do i have to pass the key and value to the controller to insert it there?

I figured it out. Thanks very much! :+1:

new question -> closing that one

@orgertot I have the same problem, the example you listed with jqXHR used to work on older versions of Simple Auth but the params have changed so that the old example no longer works.
You mentioned that you figured it out, what did you do to modify the request header?

@gte451f thanks!

@marcoow - how about when calling this.store.find... from a route, is it okay to change the adapter in something like:
headers: Ember.computed('session', function() {
        var token = 'Bearer ';
        if (!Ember.isEmpty(this.get('session.data.authenticated.access_token'))) {
            token += this.get('session.data.authenticated.access_token');
        }
        return {
          'Authorization': token,
        };
    })

or is there a better way?

Thanks @gte451f , saved my day (or my days...).

There are lot of tutorials out there with the old jqXHr method. I'm glad I found this thread. However, when I invoke the block() callback, I get a CORS error:
authorize(sessionData, block) {
    if(this.get('session.isAuthenticated')) {
        block('X-Authorization', 'Token: ' + sessionData.token);
    }
}

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:4500/users. (Reason: CORS preflight channel did not succeed).
I have http://localhost:4500/ set in the ENV crossOriginWhitelist.
ENV['ember-simple-auth'] = {
    authenticationRoute: '/',
    store: 'simple-auth-session-store:local-storage',
    authorizer: 'authorizer:custom',
    crossOriginWhitelist: ['http://localhost:4500/'],
    routeAfterAuthentication: '/dashboard'
};

Am I missing something?

This is an issue on your server side that doesn't seem to support CORS. Read more on how CORS works and how to enable it here.
Also be aware that the crossOriginWhitelist option doesn't exist anymore (it's not needed anymore as we're no longer auto-authorizing outgoing requests.)


Review page: Iterate on visual design to make it more distinct from questionnaire

Problem:
People land on the review page and are not sure what the purpose of the page is "Do I have to fill out the form again?"
Solution:
Iterate on the visual design to improve comprehension that this is a distinct step
Alternative:

Add a header #1808
Add navigation and edit buttons so it looks more different #1809

Design mocks (coming soon)

Closing this


[!] Unauthorized (Google::Apis::AuthorizationError)

I am getting this Unauthorized error when running supply on a second Android app.
It works fine on my first app - but is error out on the second one.
I am using the same json-key for both.
New Issue Checklist

[X] Updated fastlane to the latest version
[X] I read the Contribution Guidelines
[X] I read docs.fastlane.tools
[X] I searched for existing GitHub issues

Issue Description
Complete output when running fastlane, including the stack trace and command used

/Library/Ruby/Gems/2.3.0/gems/google-api-client-0.13.6/lib/google/apis/core/http_command.rb:212:in check_status': [!] Unauthorized (Google::Apis::AuthorizationError) 	from /Library/Ruby/Gems/2.3.0/gems/google-api-client-0.13.6/lib/google/apis/core/api_command.rb:118:in check_status'
from /Library/Ruby/Gems/2.3.0/gems/google-api-client-0.13.6/lib/google/apis/core/http_command.rb:183:in process_response' 	from /Library/Ruby/Gems/2.3.0/gems/google-api-client-0.13.6/lib/google/apis/core/http_command.rb:299:in execute_once'
from /Library/Ruby/Gems/2.3.0/gems/google-api-client-0.13.6/lib/google/apis/core/http_command.rb:104:in block (2 levels) in execute' 	from /Library/Ruby/Gems/2.3.0/gems/retriable-3.1.1/lib/retriable.rb:61:in block in retriable'
from /Library/Ruby/Gems/2.3.0/gems/retriable-3.1.1/lib/retriable.rb:57:in times' 	from /Library/Ruby/Gems/2.3.0/gems/retriable-3.1.1/lib/retriable.rb:57:in retriable'
from /Library/Ruby/Gems/2.3.0/gems/google-api-client-0.13.6/lib/google/apis/core/http_command.rb:101:in block in execute' 	from /Library/Ruby/Gems/2.3.0/gems/retriable-3.1.1/lib/retriable.rb:61:in block in retriable'
from /Library/Ruby/Gems/2.3.0/gems/retriable-3.1.1/lib/retriable.rb:57:in times' 	from /Library/Ruby/Gems/2.3.0/gems/retriable-3.1.1/lib/retriable.rb:57:in retriable'
from /Library/Ruby/Gems/2.3.0/gems/google-api-client-0.13.6/lib/google/apis/core/http_command.rb:93:in execute' 	from /Library/Ruby/Gems/2.3.0/gems/google-api-client-0.13.6/lib/google/apis/core/base_service.rb:360:in execute_or_queue_command'
from /Library/Ruby/Gems/2.3.0/gems/google-api-client-0.13.6/generated/google/apis/androidpublisher_v2/service.rb:210:in insert_edit' 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/supply/lib/supply/client.rb:92:in block in begin_edit'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/supply/lib/supply/client.rb:367:in call_google_api' 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/supply/lib/supply/client.rb:92:in begin_edit'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/supply/lib/supply/uploader.rb:6:in perform_upload' 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/supply/lib/supply/commands_generator.rb:38:in block (2 levels) in run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:178:in call' 	from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/command.rb:153:in run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/runner.rb:476:in run_active_command' 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:66:in run!'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.5/lib/commander/delegates.rb:15:in run!' 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/supply/lib/supply/commands_generator.rb:59:in run'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/supply/lib/supply/commands_generator.rb:12:in start' 	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/fastlane/lib/fastlane/cli_tools_distributor.rb:58:in take_off'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.63.0/bin/fastlane:20:in <top (required)>' 	from /usr/local/bin/fastlane:22:in load'
from /usr/local/bin/fastlane:22:in `'
Environment

✅ fastlane environment ✅
Stack

Key
Value

OS
10.13.1

Ruby
2.3.3

Bundler?
false

Git
git version 2.13.0

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.13.1 (17B48)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib

OpenSSL Version
LibreSSL 2.2.7

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
9.1

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL
en_US.UTF-8
✅

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# Customize this file, documentation can be found here:
# https://docs.fastlane.tools/actions/
# All available actions: https://docs.fastlane.tools/actions
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.63.0"

default_platform :android

platform :android do
  before_all do
    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
  end

  desc "Runs all the tests"
  lane :test do
    gradle(task: "test")
  end

  desc "Submit a new Beta Build to Google Play"
  lane :beta do
    gradle(task: "assembleRelease")
    apk_path = Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
    supply(apk: apk_path, track: 'beta')
  end

  desc "Deploy a new version to the Google Play"
  lane :deploy do
    gradle(task: "assembleRelease")
    supply
  end

  # You can define as many lanes as you want

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
  end

  error do |lane, exception|
    # slack(
    #   message: exception.message,
    #   success: false
    # )
  end
end

# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://docs.fastlane.tools/actions

# fastlane reports which actions are used. No personal data is recorded.
# Learn more at https://docs.fastlane.tools/#metrics

`./fastlane/Appfile`
json_key_file "secrets/<json file name redacted" # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name "<package name redacted>" # e.g. com.krausefx.app

fastlane gems

Gem
Version
Update-Status

fastlane
2.63.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.0.0

slack-notifier
1.5.1

CFPropertyList
2.3.5

claide
1.0.2

colored2
3.1.2

nanaimo
0.2.3

xcodeproj
1.5.2

rouge
2.0.7

xcpretty
0.2.8

terminal-notifier
1.8.0

unicode-display_width
1.3.0

terminal-table
1.8.0

plist
3.3.0

public_suffix
2.0.5

addressable
2.5.2

multipart-post
2.0.0

word_wrap
1.0.0

tty-screen
0.5.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander-fastlane
4.4.5

excon
0.59.0

faraday
0.13.1

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20170404

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.0

gh_inspector
1.0.3

json
1.8.3

mini_magick
4.5.1

multi_json
1.12.2

multi_xml
0.6.0

rubyzip
1.2.1

security
0.1.3

xcpretty-travis-formatter
0.0.4

dotenv
2.2.1

bundler
1.15.4

faraday_middleware
0.12.2

uber
0.1.0

declarative
0.0.10

declarative-option
0.1.0

representable
3.0.4

retriable
3.1.1

mime-types-data
3.2016.0521

mime-types
3.1

little-plugger
1.1.4

logging
2.2.2

jwt
1.5.6

memoist
0.16.0

os
0.9.6

signet
0.8.0

googleauth
0.5.3

httpclient
2.8.3

google-api-client
0.13.6

io-console
0.4.5

generated on: 2017-11-03

This was a permission issue on my end. Closing.

I am facing a similar issue - could you tell me, how you solved it?

This seems like it's not a fastlane issue, make sure your permissions are correct, and also search for the error string 👍

I have the same issue, how did you fix it?

So apparently u need to have full account privileges.

@hrushie Yes - that was the issue. I had access only set to the first app. I changed that to give it access to all apps and it worked for me.


fix(735): allow setting fluentd PodSecurityContext

This adds fsGroup as a field that can be set in the CRD and sets it to the kubesphere fluentd image default of 101 if not explicitly configured.

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #735
Does this PR introduced a user-facing change?

Allows setting fsGroup for fluentd pods. Defaults to 101 (matching the kubesphere fluentd image) if not explicitly specified.

Additional documentation, usage docs, etc.:

@erhudy Thank you!


Issue with the Garden Solar Lights

Hey Mate,
I'm running into an issue with two of the garden solar lights after resetting my HA, they're both not getting the correct option when it comes to the device selection screen instead the only light option is the rgbww_lightbulb,
Any ideas what's causing this? the first two paired fine.

With a log message, I might be able to see.

With a log message, I might be able to see.

Sweet, I've just completely reset my HA so I'll get this to you when I get back to the integrations. Will probably be around Tuesday.

Alright mate, first 3 lights are connecting fine, last light is getting "Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect."
I obtained everything from Tiny Tuya which is working for all other devices, which section contains the logs that you're after?

Are these all WiFi devices, or through a hub?  If through a hub it may be that the hub is limited to 3 local connections on the WiFi side.

Are these all WiFi devices, or through a hub? If through a hub it may be that the hub is limited to 3 local connections on the WiFi side.

They're the bluetooth solar lights

Made another attempt today, can confirm the limit to adding solar lights though Tuya local appears to be 3 although the default tuya cloud integration can get all 4.


jcenter() // Warning: this repository is going to shut down soon

if jcenter() will shut down, then AndroidPdfViewer will work with its previous app? Or someone wants to make new one, then what will happen?

Facing the same issue...
Can anyone please help here ?

go to SETTING.GRADLE (PROJECT SETTING)
add under google()
maven{
url ("https://jcenter.bintray.com")
}
//NB: Both places, upside repositories and downside repositories after google();
then, go to GRADLE.PROPERTIES ( PROJECT PROPERTIES)
add this below line to the bottom of the line
android.enableJetifier=ture
then sync your gradle, hopefully your problem may solve nicely. If not, then I am sorry.


block in load_missing_constant': uninitialized constant ContactAttributeProvider (NameError)

whenever I start my rails server and I got this error and I completely followed your steps, please help me that why it give this error
config/initializers/active_dynamic.rb
ActiveDynamic.configure do |config|
  config.provider_class = ContactAttributeProvider
end
lib/contact_attributes_provider.rb
class ContactAttributeProvider
   def initialize(model)
  @model = model
 end
 def call
  ContactAttribute.all.map do |field|
   ActiveDynamic::AttributeDefinition.new(field.name, datatype: field.datatype, required: field.required?)
 end
  end
private
 attr_reader :model
end

I tried a lot to resolve this error and I tried in two of my rails project and it always gives error on this Initializer Constant!!!!


PEgylated bilayer tutorial problem

Couple of issues with this tutorial:

when changeing the default step length from 0.75 to 1 the box is too small so that the brush cannot fit
it seems some waters get placed inside the bilayer even though they should be included; could be a data file issue or a issue with the buildfile

2 appears to be realted to the fact that residue numbering internally starts at 0. I've the feeling this has to do with the difference in resid and metamolcule node index.


Host player doesn't load

When the first player click in host, so others can join, their screen just goes gray, and they aren't load in the scene.
I don't know if I'm doing something wrong or if that's the expected outcome.
I tested locally only and didn't change the ip address.

this happens for me as well, and i even checked that the host was being counted among the players connected - they are.

To run the project, make sure you are using Godot Engine 4.3. Additionally, you need to select the number of instances that will be executed when starting the project (this works as a debug mode simulating client connections).
So, before running the project, you should select the Debug option and set the number of clients that will connect (I left a note about this in the repository's readme).
The gray screen you mentioned is the host's screen, as the camera.current is disabled. I left it this way because the host is not treated as a player in this template, but if you want the host to be a player, you can make a few simple changes, as well as remove some if statements.
Hope this helps.

Got it! I did use godot 4.3, select the number of intances and everything, but I didn't know that the host isn't considered a player in the template. Thank you.


Feat: Secret Store Vault-Like

Support for Hashicorp Vault & OpenBAO

Completed as part of release 0.2.0!


Fix : Original Logo of MELTCD in Readme

Describe the bug
Insert Original Logo for MELTCD in supported by section.

@c4coderandcreator Original logo meaning? Well actually the thing was the logo to be inserted on the website and README is different.


Show what IPs were changes

Instead of dumping out the list of IPs, show what the differences are (add/removed). If there was no change, display the list of IPs for reference.

https://github.com/achieverstech/cloudfront-ip-alert/pull/5


Nightly numpy causes CF datetime64 issues

What happened?
The Satpy project has a CI environment that installs numpy, pandas, and xarray (and a couple other packages) from their unstable sources (nightly builds, github source, etc). In the last week or two this environment has started failing with various datetime64 issues. It all seems to be caused by some recent change in pandas, but I can't place exactly what the problem is nor the commit/PR that started it. It seems there are a couple datetime related PRs.
What did you expect to happen?
Datetime or datetime64 objects should be allowed to be in whatever units they need to be in (days or minutes or nanoseconds. It seems parts of xarray (or pandas) assume datetime64[ns] but a change in pandas is no longer doing this conversion automatically (from datetime64[X] to datetime64[ns].
Minimal Complete Verifiable Example
You should be able to take any environment with modern xarray and install dev pandas with:
python -m pip install --index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple/ --trusted-host pypi.anaconda.org --no-deps --pre --upgrade pandas

Then run this snippet:
import xarray as xr
import numpy as np
from xarray.coding.times import CFDatetimeCoder

a = xr.DataArray(np.arange(1.0), dims=("time",), coords={"time": [np.datetime64('2018-05-30T10:05:00')]})

CFDatetimeCoder().encode(a.coords["time"])

I haven't been able to generate a higher-level MVCE yet, but I'm hoping this little snippet will make the issue obvious to someone familiar with xarray internals.
MVCE confirmation

[X] Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
[X] Complete example — the example is self-contained, including all data and the text of any traceback.
[X] Verifiable example — the example copy & pastes into an IPython prompt or Binder notebook, returning the result.
[X] New issue — a search of GitHub Issues suggests this is not a duplicate.

Relevant log output

----> 1 CFDatetimeCoder().encode(a.coords["time"])

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/coding/times.py:676, in CFDatetimeCoder.encode(self, variable, name)
    672 dims, data, attrs, encoding = unpack_for_encoding(variable)
    673 if np.issubdtype(data.dtype, np.datetime64) or contains_cftime_datetimes(
    674     variable
    675 ):
--> 676     (data, units, calendar) = encode_cf_datetime(
    677         data, encoding.pop("units", None), encoding.pop("calendar", None)
    678     )
    679     safe_setitem(attrs, "units", units, name=name)
    680     safe_setitem(attrs, "calendar", calendar, name=name)

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/coding/times.py:612, in encode_cf_datetime(dates, units, calendar)
    609 dates = np.asarray(dates)
    611 if units is None:
--> 612     units = infer_datetime_units(dates)
    613 else:
    614     units = _cleanup_netcdf_time_units(units)

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/coding/times.py:394, in infer_datetime_units(dates)
    392     print("Formatting datetime object")
    393     reference_date = dates[0] if len(dates) > 0 else "1970-01-01"
--> 394     reference_date = format_cftime_datetime(reference_date)
    395 unique_timedeltas = np.unique(np.diff(dates))
    396 units = _infer_time_units_from_diff(unique_timedeltas)

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/coding/times.py:405, in format_cftime_datetime(date)
    400 def format_cftime_datetime(date):
    401     """Converts a cftime.datetime object to a string with the format:
    402     YYYY-MM-DD HH:MM:SS.UUUUUU
    403     """
    404     return "{:04d}-{:02d}-{:02d} {:02d}:{:02d}:{:02d}.{:06d}".format(
--> 405         date.year,
    406         date.month,
    407         date.day,
    408         date.hour,
    409         date.minute,
    410         date.second,
    411         date.microsecond,
    412     )

AttributeError: 'numpy.datetime64' object has no attribute 'year'

Anything else we need to know?
No response
Environment

INSTALLED VERSIONS
------------------
commit: None
python: 3.9.12 | packaged by conda-forge | (main, Mar 24 2022, 23:25:59)
[GCC 10.3.0]
python-bits: 64
OS: Linux
OS-release: 5.19.0-76051900-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: ('en_US', 'UTF-8')
libhdf5: 1.12.2
libnetcdf: 4.8.1

xarray: 2022.10.0
pandas: 2.0.0.dev0+422.g6c46013c54
numpy: 1.23.4
scipy: 1.10.0.dev0+1848.f114d8b
netCDF4: 1.6.0
pydap: None
h5netcdf: 1.0.0
h5py: 3.7.0
Nio: None
zarr: 2.13.0a3.dev5
cftime: 1.6.2
nc_time_axis: None
PseudoNetCDF: None
rasterio: 1.4dev
cfgrib: None
iris: None
bottleneck: 1.3.5
dask: 2022.10.0+6.gc8dc3955
distributed: None
matplotlib: 3.7.0.dev473+gc450aa7baf
cartopy: 0.20.3
seaborn: None
numbagg: None
fsspec: 2022.5.0
cupy: None
pint: None
sparse: None
flox: None
numpy_groupies: None
setuptools: 65.3.0
pip: 22.2.2
conda: None
pytest: 7.1.1
IPython: 8.2.0
sphinx: 5.0.0

Ah turns out doing to_netcdf on that DataArray is good enough:
a.to_netcdf("/tmp/mytest.nc")

to fail:

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/core/dataarray.py:3752, in DataArray.to_netcdf(self, path, mode, format, group, engine, encoding, unlimited_dims, compute, invalid_netcdf)
   3748 else:
   3749     # No problems with the name - so we're fine!
   3750     dataset = self.to_dataset()
-> 3752 return to_netcdf(  # type: ignore  # mypy cannot resolve the overloads:(
   3753     dataset,
   3754     path,
   3755     mode=mode,
   3756     format=format,
   3757     group=group,
   3758     engine=engine,
   3759     encoding=encoding,
   3760     unlimited_dims=unlimited_dims,
   3761     compute=compute,
   3762     multifile=False,
   3763     invalid_netcdf=invalid_netcdf,
   3764 )

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/backends/api.py:1230, in to_netcdf(dataset, path_or_file, mode, format, group, engine, encoding, unlimited_dims, compute, multifile, invalid_netcdf)
   1225 # TODO: figure out how to refactor this logic (here and in save_mfdataset)
   1226 # to avoid this mess of conditionals
   1227 try:
   1228     # TODO: allow this work (setting up the file for writing array data)
   1229     # to be parallelized with dask
-> 1230     dump_to_store(
   1231         dataset, store, writer, encoding=encoding, unlimited_dims=unlimited_dims
   1232     )
   1233     if autoclose:
   1234         store.close()

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/backends/api.py:1277, in dump_to_store(dataset, store, writer, encoder, encoding, unlimited_dims)
   1274 if encoder:
   1275     variables, attrs = encoder(variables, attrs)
-> 1277 store.store(variables, attrs, check_encoding, writer, unlimited_dims=unlimited_dims)

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/backends/common.py:266, in AbstractWritableDataStore.store(self, variables, attributes, check_encoding_set, writer, unlimited_dims)
    263 if writer is None:
    264     writer = ArrayWriter()
--> 266 variables, attributes = self.encode(variables, attributes)
    268 self.set_attributes(attributes)
    269 self.set_dimensions(variables, unlimited_dims=unlimited_dims)

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/backends/common.py:355, in WritableCFDataStore.encode(self, variables, attributes)
    352 def encode(self, variables, attributes):
    353     # All NetCDF files get CF encoded by default, without this attempting
    354     # to write times, for example, would fail.
--> 355     variables, attributes = cf_encoder(variables, attributes)
    356     variables = {k: self.encode_variable(v) for k, v in variables.items()}
    357     attributes = {k: self.encode_attribute(v) for k, v in attributes.items()}

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/conventions.py:868, in cf_encoder(variables, attributes)
    865 # add encoding for time bounds variables if present.
    866 _update_bounds_encoding(variables)
--> 868 new_vars = {k: encode_cf_variable(v, name=k) for k, v in variables.items()}
    870 # Remove attrs from bounds variables (issue #2921)
    871 for var in new_vars.values():

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/conventions.py:868, in <dictcomp>(.0)
    865 # add encoding for time bounds variables if present.
    866 _update_bounds_encoding(variables)
--> 868 new_vars = {k: encode_cf_variable(v, name=k) for k, v in variables.items()}
    870 # Remove attrs from bounds variables (issue #2921)
    871 for var in new_vars.values():

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/conventions.py:273, in encode_cf_variable(var, needs_copy, name)
    264 ensure_not_multiindex(var, name=name)
    266 for coder in [
    267     times.CFDatetimeCoder(),
    268     times.CFTimedeltaCoder(),
   (...)
    271     variables.UnsignedIntegerCoder(),
    272 ]:
--> 273     var = coder.encode(var, name=name)
    275 # TODO(shoyer): convert all of these to use coders, too:
    276 var = maybe_encode_nonstring_dtype(var, name=name)

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/coding/times.py:676, in CFDatetimeCoder.encode(self, variable, name)
    672 dims, data, attrs, encoding = unpack_for_encoding(variable)
    673 if np.issubdtype(data.dtype, np.datetime64) or contains_cftime_datetimes(
    674     variable
    675 ):
--> 676     (data, units, calendar) = encode_cf_datetime(
    677         data, encoding.pop("units", None), encoding.pop("calendar", None)
    678     )
    679     safe_setitem(attrs, "units", units, name=name)
    680     safe_setitem(attrs, "calendar", calendar, name=name)

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/coding/times.py:612, in encode_cf_datetime(dates, units, calendar)
    609 dates = np.asarray(dates)
    611 if units is None:
--> 612     units = infer_datetime_units(dates)
    613 else:
    614     units = _cleanup_netcdf_time_units(units)

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/coding/times.py:394, in infer_datetime_units(dates)
    392     print("Formatting datetime object")
    393     reference_date = dates[0] if len(dates) > 0 else "1970-01-01"
--> 394     reference_date = format_cftime_datetime(reference_date)
    395 unique_timedeltas = np.unique(np.diff(dates))
    396 units = _infer_time_units_from_diff(unique_timedeltas)

File ~/miniconda3/envs/satpy_py39_unstable/lib/python3.9/site-packages/xarray/coding/times.py:405, in format_cftime_datetime(date)
    400 def format_cftime_datetime(date):
    401     """Converts a cftime.datetime object to a string with the format:
    402     YYYY-MM-DD HH:MM:SS.UUUUUU
    403     """
    404     return "{:04d}-{:02d}-{:02d} {:02d}:{:02d}:{:02d}.{:06d}".format(
--> 405         date.year,
    406         date.month,
    407         date.day,
    408         date.hour,
    409         date.minute,
    410         date.second,
    411         date.microsecond,
    412     )

AttributeError: 'numpy.datetime64' object has no attribute 'year'

NOTE: Just because this clearly fails the check in this line:
https://github.com/pydata/xarray/blob/6cb97f645475bddf2f3b1e1a5f24f0f9de690683/xarray/coding/times.py#L384
It does not seem to be the only problem from my tests. Using datetime64 objects in various parts of a DataArray seem to cause different errors...I think. I need to do more tests.

It's been noticed in #7175 as well.

Ugh how did I miss that issue. Thanks. I'm fine with closing this since the existing tests have caught it.

No worries @djhoese.  I should be able to submit a PR implementing https://github.com/pydata/xarray/issues/7175#issuecomment-1281254828 later today.


Would it be possible to have a new release?

We've got some policies that don't allow us to use :latest, it would be useful if there was a new release. (In particular including #58).
While we can pin to the sha hash, :latest moves on that can be garbage collected by the registry.

I'll poke @rosskukulinski about timing on a refresh run.


Storage

Storage -Easy native de/serialization for structs in Swift :large_orange_diamond:

This one is tricky. It does not fit Core Data, nor Database, nor Cache. :(

We can add this on Utility section, later we can add subcategories on Utility.


[CI] add error codes utility runner workflow

Current Behaviour
Error codes utility runner workflow is not present.
Desired Behavious
Add the error codes utility runner workflow.
Instructions in https://github.com/meshery/meshery-linkerd/issues/213

I can also help this if it's similar

@DelusionalOptimist @bariqhibat Can i also work on this issue ?

@bariqhibat @nehaLohia27 Please share this issue. :smile:

Sure, you can do this instead:) @nehaLohia27
I have a similar task in meshery-istio too.


2017 Copyright Year.

Name tells all.

Bootstrap 3 is essentially in maintenance mode as we focus on working towards a stable v4. As such, we're only accepting changes to v3's code on a case-by-case basis, usually only for critical bug fixes or docs improvements.

This is a saved reply.


Waiting rooms are still buggy

Sometimes when the moderator approved you to joing the meeting, you are instantly kicked from the meeting:

Happens not only for waiting rooms, but generally

Haven't seen this behavior for a long time. So I am going to close it for now.


Error in importing vaccination certificates

Technical details

Device name: Iphone 8
iOS version: 14.6
App version: 2.3.3

My pharmacy issued me the second vaccination certificate incorrectly. The corrected certificate cannot be imported and I cannot delete the old certificates. I've attached a screenshot of the error message.

Thanks for fixing the issue in advance.

What's happen exactly when you press in the bottom on "Impfzertifkat entfernen" on Detail Screen of the impfzertifikat.

@nkuenzel See question of T. Augsten. https://github.com/corona-warn-app/cwa-app-ios/issues/2969#issuecomment-863794068

Well, i don't have this botton. I can only use "Impfzertifikat hinzufügen". I can't check the imported certs. And when i import the new 2nd shot certificate, i get the error mentioned above.

There's nothing we can do about this if the pharmacy issued the second certificate incorrectly you have to go back to them and ask them to give you a correct one.
The personal data has to be the same in the both vaccination certificates.

@Ein-Tim, i already got a new certificate. But i can't import it, because of the error in the screenshot. And i can not delete the wrong issued certificate from the cwa.

So the CWA doen't display the old inserted certificate, hence it can't be deleted by user-interaction (no button shown). But while importing the new certificate the checks for name/information discrepancies throws that error.
So the old imported certificate seems to be still in the storage somehow.

You cannot see this red text?

@nkuenzel, thanks again for reporting here.

So the CWA doen't display the old inserted certificate, hence it can't be deleted by user-interaction (no button shown). But while importing the new certificate the checks for name/information discrepancies throws that error.
So the old imported certificate seems to be still in the storage somehow.

On the home screen of the CWA, there is no certificate shown at all?
a) On the home screen the CWA offers to scan a Impfzertifikate, like this?

b) Or do see something like this?

Corona-Warn-App Open Source Team

@dsarkar, right, there is no certificate shown at all. The answer is a).
When i try to scan the 1st shot certificate again, i got the messages, that it is already imported.

Same problem for me. I got my official certificates from the Vaccination Center today. I scanned both, but they don't show up in the app:

When I try to re-scan the certificates, the error shows up:

I can't delete the old ones - there is no reset button?

@nkuenzel ok. Thanks for the feedback!

@chk-code Thanks for reporting.

Corona-Warn-App Open Source Team

Internal Tracking ID: EXPOSUREAPP-7989

Corona-Warn-App Open Source Team

Ok, strange. I hard-closed the app a couple of times, but it didn't updated.
But now (20mins later or so), I opened it one more time and it's now showing me the correct status:

@chk-code, thanks for the info.
@nkuenzel Could try the same, please. And let us know. Thanks !

@chk-code, when did you add the first certificate, i.e. for how long was the first certificate not shown? Feedback appreciated.

@chk-code, when did you add the first certificate, i.e. for how long was the first certificate not shown? Feedback appreciated.

I added the first QR code roughly at 9:50 - 10:00am. I guess it was around 20-25mins delay.

@dsarkar, i hard closed the app several times and waited for 30 minutes. No success.
I imported the certificates on wednesday and i got the corrected 2nd shot certificate on thursday.

@nkuenzel Thanks for the information.

Please note that the vaccination certificate is shown above of the "Register Test" box and below it there is still the option to register another certificate...

Thanks for the hint. Now i got the grey box. But, i can't register both certificates with the error message above. But maybe its a certificate issue. But it had to problems with the certificates in the CovPass App.

@nkuenzel
Did you remove the old certificate?

Like this:
https://user-images.githubusercontent.com/67682506/122551807-c6acf580-d035-11eb-9cb5-2ba8b66dbcb7.MOV

@nkuenzel  The certificates have the same birthday?

@Ein-Tim , yip, i removed the old certificate. I also removed both certs. When i import the 2nd shoot first, i got the same message, when i tried to import the 1st shot certificate afterwards.

@nkuenzel Workaround. As long your data on the second certificate is correct (e.g. Name and date of birth), delete the first certificate and only import the second certificate. After 14 days the app should show immunity, irrespectively if you have the first certificates imported or not.

@dsarkar, thanks....i'll try the workaround. Thanks a lot guys for the quick response.

@dsarkar Cross reference "DCC card not showing up on home screen": https://github.com/corona-warn-app/cwa-app-android/issues/3549

@dsarkar
Could you let us know in how this issue is described internally?
The OP is about a DOB mismatch, there is probably nothing the developers can do. Or what exactly was the bug here?

@Ein-Tim
The bug here is that the error message is not understandable enough. We will improve the message by basing it on the type of error, e.g. VC_DOB_MISMATCH: Date of birth does not match

@heinezen
That sounds good. If you internally consider this as a bug - leave the bug label. If it's a story, please, change the label to enhancement.
Have a nice Sunday!

@nkuenzel See comment from @Ein-Tim https://github.com/corona-warn-app/cwa-app-ios/issues/2969#issuecomment-897160828.
We suggest closing this issue. Thanks for contributing, and please, any other problem, open here at GitHub an issue! Best wishes, DS

Corona-Warn-App Open Source Team


bug: Extra information in console logs

Bug Report
Ionic version:
[x] 4.x
Current behavior:
Several components output information to the console during normal usage.
For example:
[ion-router] router will load
[ion-router] found nav
[ion-router] route changed [""]
Input: enableInputBlurring
Input: enableScrollPadding
[ion-router] nav changed -> update URL [{…}] ["x"]
Input: enableHideCaretOnScroll
Input: enableHideCaretOnScroll
input-base, pointerStart, type: touchstart
input-base, pointerEnd, type: touchend
native-input, hideCaret, shouldHideCaret: true, input value: x
native-input, hideCaret, shouldHideCaret: false, input value: x

Expected behavior:
Normal usage conditions should not output to the console unless specific logging is requested or configured.
Some issues with writing to the console:

Extra logging information adds noise that makes it harder to see intended logging information
Apps may be sending console output to cloud based loggers (like loggly) which results in lots of unneeded information being sent

If it is important to output detailed logging then it could be added as a config setting or a param to the component to specify logging is desired.

Hi there,
Thanks for the issue! This has been resolved via https://github.com/ionic-team/ionic/pull/18245 and will be included in the next Ionic release. I intentionally kept in some router debug logs since they have been helpful in the past for debugging.
A future Ionic update will introduce a setting that strips log/debug statements from production builds (allowing developers to keep debug statements in but not have it get shipped with every release). This is dependent on a Stencil change.
Thanks for using Ionic!


runc: v1.0.0-rc95

Addresses #3299

Signed-off-by: Jacob Blain Christen<EMAIL_ADDRESS>

oops, i pushed the branch to k3s-io/k3s. oh well


Add play 2.5 support

— maybe publish it with a suffix?

there's already one branch for play 2.5.x (https://github.com/codacy/play-tomcatcp/commits/play-25). Is something wrong with that one?

@mrfyda unfortunately i realised too late that you already created a branch for play-2.5. Let me know if you want to go forward with yours, then we can just close this one here.
Just an info: mine is demoted from a play-app to an sbt library that depends on play-libs only (no play-sbt-plugin) & I separated scala and java sources.

Cherry pick a49f66b to this branch

merge/decline on this ?


Correct TS definition for graph options interfaces

Matches docs here.

Coverage increased (+0.1%) to 95.115% when pulling d0c759643b31895b1d21dbe7e94ebd176592f484 on mattleff:patch-1 into 71313e4ac39e8a15e10fb4b63d0d4a313e32cbe2 on Vincit:master.

Coverage increased (+0.1%) to 95.115% when pulling d0c759643b31895b1d21dbe7e94ebd176592f484 on mattleff:patch-1 into 71313e4ac39e8a15e10fb4b63d0d4a313e32cbe2 on Vincit:master.

Thanks!


[Compute] sig image-definition create: add --os-state to allow specifying whether the virtual machines created under this image are 'Generalized' or 'Specialized'

Issue #11117

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[ ] I adhere to the Command Guidelines.

@bim-msft  please help review.


"Child terminated, stopping" message on websocket disconnect

Whenever a websocket client disconnects, "Child terminated, stopping" appears in the server logs. It doesn't seem to really affect anything, but should maybe investigate.

Looks like the printlns were removed in https://github.com/playframework/playframework/pull/6502 so updating Play version should fix the issue.

Fixed in https://github.com/walfie/gbf-raidfinder/pull/86


Not able to access the web interface

Hi,
Just tried to run the command
 ./afrog -web
[INF] Serving HTTP on :: port 16868 (http://[::]:16868/) ...

But when i tried to access the interface via browser (http://vps-ip:16868/). I am not able to connect the site.

Is the port open for public access?


Initial implementation

This is mostly @mrkrstphr's initial work, but de-scoped and refactored to only provide the basic functionality of creating an entity manager to be used in a test.
The new 'doctrine.entityManager.preCreate' and 'doctrine.entityManager.postCreate' events along with existing peridot suite/test events all provide the flexibility needed to implement your own schema builds, fixture loading, setup, and tear down.
I think this is a good, working start.  We can then add helper features for the functionality listed above prior to a stable release.
Thoughts...?

moved changes to #1.


add task_state command and correct help messages for misc options

@mistercrunch
Fixing a few things.

![img] (http://i.huffpost.com/gadgets/slideshows/293609/slide_293609_2371436_free.gif)


Add clipboard copy button for Contact IDs and App IDs

https://github.com/MainframeHQ/mainframe-os/pull/474


[BUG]: little question - What is the best practice to transit CoE workload from one environment to another?

Hello,
We have deployed and configured latest CoE kit in the dev environment "Environment 1" with few custom configuration in the CoE flows which is requiring now to transit into another environment "Environment 2"
Can you please clarify whether in new environment "Environment 2" - is it best to migrate CoE workload from Environment 1"? OR CoE Starter kit has to be setup and configured from the scratch in the "Environment 2" ?
Thanks and Regards,
Dipti

Hello,
it would be best practice to deploy from Environment 1 to Environment 2 and deploy your customizations as a managed solution. Say Environment 1 is your development environment where you make changes to the solution you then deploy to a Test or Production environments as managed solutions from there.
You can do this manually by exporting the solution as managed and importing it into your target environments, or you can use tools available in Azure DevOps to automate this.
Here's some more info on ALM
https://docs.microsoft.com/en-us/power-platform/alm/
Hope that helps,
Manuela


Map options beta 2 ionic 3

Gesture, camera?

help me please @wf9a5m75

Please read documents.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.0.0/README.md

@wf9a5m75 My friend, I have a problem. Add the div for the map inside the  and the element is placed above the map, but if I leave in the page only the div of the map and if it works.

Could you share your project files (all files are included) on github or bitbacket?
Why and How? Read here.
https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1479

@wf9a5m75  https://github.com/wuilmerj24/prueba-maps-nativo

Thanks. I will check it later.
(I've been traveling in Japan. Please wait for a while)

I checked your project, and I noticed the nav-decor blocks this plugin.
CSS solution is here. Please try it.
https://github.com/ionic-team/ionic/issues/7205#issuecomment-299481840

@wf9a5m75 Friend does not work for me, I will update the repo

@wf9a5m75 https://github.com/wuilmerj24/prueba-maps-nativo

.nav-decor{
   display: none !important;
}

Okay, I finally figured out what the problem is.
The ionic3 framework covers the map view with many elements.
I added some code to prevent this issue.
Please reinstall the plugin. I confirmed the issue was resolved (only checked iOS).
The latest version is cordova-plugin-googlemaps 2.0.0-beta2-20170531-1320.

@wf9a5m75 ok. I am going to try

@wf9a5m75 When trying to install the plugin t gives me this error Error: Can not find plugin.xml for plugin "package". Please try adding it again.

@wf9a5m75 How do I install that version?

@wf9a5m75 Friend I installed the plugins but I installed the versio: 2.0.0-beta2-20170606-1807 will be well? Now I need to place a search box on top of the map how can I do it? Since the map is superimposed over all the elements that are in the content

Hi. I've solved the search box above the map by adding z-index: 2! Important; To the input search class. How can I change the position of the button for my location?

No way is provided.

@wf9a5m75 it's not possible?

Adding Z-index property is a good way to solve this issue.

The location button is provided by native API, not this plugin.
Since Google does not provide the way, no way.

Ok if it was driving me crazy
OK thanks.

@wf9a5m75 Can you change the circumference of the icon of my location?

No. It is provided by Google. Not this plugin.
If you want to change the design etc, you need to implement your own way by yourself.

ok thanks


Number input should "clamp" to default value on blur if left empty

If you delete the contents of the number input and blur out, it should revert to the default value rather than remaining as an empty string. Or this should at least be an option.

@johtso Have you tried the clampValueOnBlur key in the context?

@johtso A number input is like any other input, just it handles numbers. In either a text or number input, I think this is something you have to control yourself, as it's not the default behaviour of inputs.

I'm suggesting that, in keeping with the clampValueOnBlur functionality which ensures the input can't have a value that's out of range when edited manually, ""/NaN should be considered an out of range value and result in clamping.
Otherwise it seems strange to have to handle that one specific exceptional case manually.

@johtso how do you get NaN into the input?

@johtso, for the "" usecase, that means the input can't be left empty.

@johtso how do you get NaN into the input?

Ah, I see that valueAsNumber is actually 0 if value is "".  I'm using a form submission so the server was getting an empty string when it was expecting a number.

@johtso, for the "" usecase, that means the input can't be left empty.

If needing empty number inputs is a possible use-case, then this could be behind an option.

@johtso I see, my perspective is that when we have optional fields, It'll be better to receive "". Because in cases where you're expecting a number, 0 is just another number, "" will be better to recognise falsy inputs when the input is optional. We won't be able to do a if(value===0) check because 0 could be an acceptable value.

@anubra266 how would I make the number input field not optional?

@anubra266 how would I make the number input field not optional?

By using the valueAsNumber

Oh...I'm just understanding your question @johtso

That's a normal input behavior @johtso you have to validate. If the user enters nothing, you validate and say input is required, like any other input.

I'm just saying that zag already does a lot of this validation for you, that's the purpose of using the component. It seems like something that it might make sense for the component to handle.
Just like it doesn't allow you to type text into the input, or enter a number that's outside of the range, you should also be able to specify that it is a required field and therefor an empty string is not a valid value and it should clamp/default to the most sensible value.

cc @segunadebayo

Actually, I just experimented a bit more, and the behaviour I was describing does already happen, but only if the min is set to something greater than 0.
I guess that's because "" is interpreted as being 0.

Sorry just to clarify, that means the current behaviour is inconsistent and there's probably a clear case for making a number input with min=0 clamp to 0 onBlur if the input is empty.

This seems to be the code responsible for interpreting "" as 0 https://github.com/chakra-ui/zag/blob/main/packages/utilities/number/src/number.ts#L54

@johtso could you shed light afresh on the behavior you're expecting here?

When you blur out of an empty input with min set to 0, the value should reset to 0

@johtso and what of when the min is not 0

There's is no issue when the min is set to something else, in that case it is correctly defaulted to that value when you blur out.

@johtso and what of when the min is not 0

There's is no issue when the min is set to something else, in that case it is correctly defaulted to that value when you blur out.

@johtso how do you expect it to behave when the mom value is a negative number?

@anubra266 chakra-ui also has clamping, but it just leaves the field empty on blur if the user deletes the value https://chakra-ui.com/docs/components/number-input#setting-a-minimum-and-maximum-value

Yeah...@johtso, that onBlur behaviour os what I'm looking for so Chakra UI can't help there.

I mean, unless we want to do the same and leave the input empty..

Yeah makes sense @johtso Couldn't find any implementation that does it differently


Unreal fits because the fit does not converge to a final solution

I found one galaxy (low-mass AGN from Reines+2013) where the fit does not converge to a solution leading to wrong emission line fluxes. The fastspecfit-qa for this sources is as follows -

Source Information:

SDSS Information if needed:

It turns out that this particular fit didn't converge because of the too-large negative bound on the line-amplitudes, which in Everest was -1e3 (in standard DESI flux units).
In https://github.com/desihub/fastspecfit/commit/7bd53c9f577a9cdb7c9d7d91085f10d04b5432a4 I now adaptively determine sensible (but conservative) bounds on the amplitude of each emission line, immediately before fitting, which seems to be working OK but should be tested more.
With this change, here's the example posted. @Ragadeepika-Pucha can you verify whether this is satisfactory?
It might make sense to flag fits which may not have converged numerically to the data model, for post-facto inspection.
fastspec /global/cfs/cdirs/desi/spectro/redux/everest/healpix/main/bright/107/10702/redrock-main-bright-10702.fits \
  -o fastspec.fits --targetids<PHONE_NUMBER>6424565 --specprod everest

@moustakas - This looks good. Again, Can I have access to the result file for this one?
Additionally, @stephjuneau and me were discussing finding examples of such sources which did not converge in everest.
If I find such examples, we can probably use those to further test the changes.

Should be significantly better now (see #69). Please reopen if the issue persists.


Correct Cuda Download Link

Put the link for all Cuda releases instead of hardcoding the 9.0 release to avoid misleading.

I signed it!

The [CUDA® Toolkit(https://developer.nvidia.com/cuda-toolkit-archive) in the TF website now points to cuda toolkit archive instead of hard coded cuda versions (cuda zone) as before.


Support input arguments templating

today, tape only support static and fixed arguments upon start. Although this is way too limited. We need to pick and support a templating language. For example: https://ghz.sh/docs/examples#metadata-using-template-variables

cc @SamYuan1990

How about the dynamic variables in postman? https://learning.postman.com/docs/writing-scripts/script-references/variables-list/

How about the dynamic variables in postman? https://learning.postman.com/docs/writing-scripts/script-references/variables-list/. Some random data generator can be leveraged like https://github.com/brianvoe/gofakeit

well, my personal opinion doesn't limit for any kind of implementation.
for post man, well @wangxinalex could you explain more about how integrate post man with tape(a golang base program?)
for the random data generator is a good point. however, if we extend our view. the use case is that
tape user input something in config.yaml xxx word and during tape running replace xxx word with data.
for random case, if user wants random data, this library is very good for us.
@guoger , could you please help comparing the different between https://ghz.sh/docs/examples#metadata-using-template-variables and https://ghz.sh/docs/examples#metadata-using-template-variables ?

How about the dynamic variables in postman? https://learning.postman.com/docs/writing-scripts/script-references/variables-list/. Some random data generator can be leveraged like https://github.com/brianvoe/gofakeit

well, my personal opinion doesn't limit for any kind of implementation.
for post man, well @wangxinalex could you explain more about how integrate post man with tape(a golang base program?)
for the random data generator is a good point. however, if we extend our view. the use case is that
tape user input something in config.yaml xxx word and during tape running replace xxx word with data.
for random case, if user wants random data, this library is very good for us.
@guoger , could you please help comparing the different between https://ghz.sh/docs/examples#metadata-using-template-variables and https://ghz.sh/docs/examples#metadata-using-template-variables ?

In my view, the dynamic variables in postman could provide some insights for tape due since they are both popular request generator. It is unnecessary to port these features from postman 100% because it is based on Javascript, instead we can try to leverage fake data generators like https://github.com/brianvoe/gofakeit to produce some fake data with semantic meaning.
On the other hand, ghz can replace templates with some contextual data https://github.com/bojand/ghz/blob/06f029c14c97612a09095f55075474442ffc8243/runner/calldata.go#L24, of course which can be seen as some random info source, however this may be insufficient if we want semantically meaningful payload.

How about the dynamic variables in postman? learning.postman.com/docs/writing-scripts/script-references/variables-list. Some random data generator can be leveraged like brianvoe/gofakeit

this looks promising.
Suppose following scenario:
1. create 1M accounts with random initial balance, then
2. randomly transfer among those accounts

1 should be easy with dynamic variable. Although I'm scratching my head around 2, where accounts are inherited from 1.
Anyway, satisfying 1 should be a good starting point already, and we could always build on top of it.
@wangxinalex interested?

How about the dynamic variables in postman? learning.postman.com/docs/writing-scripts/script-references/variables-list. Some random data generator can be leveraged like brianvoe/gofakeit

this looks promising.
Suppose following scenario:
1. create 1M accounts with random initial balance, then
2. randomly transfer among those accounts

1 should be easy with dynamic variable. Although I'm scratching my head around 2, where accounts are inherited from 1.
Anyway, satisfying 1 should be a good starting point already, and we could always build on top of it.
@wangxinalex interested?

Sure, let's start with simple semantic random variables.


For music services - how get from album item_id/uri to individual tracks

First of all, it is amazing to me that you have music services working such that you can search for a track on the service and queue it up and play it.  What I can't figure out and don't see examples of is searching a music service for an album and not an individual track and then being able to place the album (or its individual tracks) in the queue for playing.  So for example:
result =  ms.search(category='tracks', term='harvest')
produces a list that can be played based on item_ids.
However, I can figure out what to do with:
result = ms.search(category='albums', term='harvest')
The returned resuls are an MSAlbum object which has an item_id but I don't see any examples of taking that album item_id and turning it into a uri that can either be played directly or can be used to retrieve the individual tracks.  I understand the ability to use music services is a work in progress but is it currently possible to retrieve an album (vs. an individual track) from a music service search and play it?
Thanks,
Steve

The test code at https://github.com/SoCo/SoCo/pull/763#issue-753004109 might provide some hints. You'll have to add the item to the queue, then play from the queue.

Thanks for pointing me to the test code -- I had thought I needed to write a custom add_to_queue but clearly not -- so searching on albums and then placing one of the returned items on the queue using add_to_queue in core.py works perfectly.  Really appreciate the work that was done to be able to use music services -- it makes this project incredibly useful.


Change metrics

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 3 committers have signed the CLA.:white_check_mark: chrisociepa:white_check_mark: djstrong:x: kacpermilanYou have signed the CLA already but the status is still pending? Let us recheck it.


Broken Outlook Extension (React JS) JavaScript Sample (Again)

Once again we appear to have a non-working (quite broken) yo generator for React JS Outlook add-in.
Previously, if you recall we had an invalid self-closed <Host xsi:type="MailHost"/>  which - after quite some sleuthing I was able to resolve and build an add-in without issue. It looks like you've now solved, this but much worse things appear to happen using yo office when creating a React JS Outlook add-in (JavaScript) version... the package.json generated starts with:
0.2",
"eslint-plugin-react": "^7.28.0",
"file-loader": "^6.2.0",
"find-process": "^1.4.4",
"html-loader": "^5.0.0",
"html-webpack-plugin": "^5.6.0",
...
..
Which of course is wrong and will lead to broken JSON that doesn't parse, leading to a project that won't build
Can I politely suggest you test these things before pushing them out?
In the meantime, does anyone have a valid (current) packages.json sample for this type of project (as I can see both this and the manifest.xml has changed a lot since I last used it)

If it helps, the complete log after running yo office is:
I'm all done. Running npm install for you to install the required dependencies. If this fails, try running the command yourself.
npm WARN config cache-min This option has been deprecated in favor of --prefer-offline.
npm ERR! code EJSONPARSE
npm ERR! path C:\Software Development\phish-template\ppp/package.json
npm ERR! JSON.parse Unexpected non-whitespace character after JSON at position 3 while parsing '0.2",
npm ERR! JSON.parse     "eslint-plugin-react": "^7.28.'
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.
npm ERR! A complete log of this run can be found in: C:\Users\RDavies\AppData\Local\npm-cache_logs\2024-07-10T14_30_08_360Z-debug-0.log
No change to package.json was detected. No package manager install will be executed.

Hi @RA-Davies, I expect you are using the https://github.com/OfficeDev/generator-office to create Outlook add-in.
The issue you are facing must be reported to Microsoft as it is not related to the yo tool.


Detect changed translations

At the moment react-intl-translations-manager reports

Perfectly maintained, no remarks!

if there’s a translation for a string but it doesn’t detect if the original string changed.
If the original string changes then the translations of the other languages should be marked as fuzzy so that the translators know that they have to change the translated string to match the new meaning.
E.g. gettext: https://www.gnu.org/software/gettext/manual/html_node/Fuzzy-Entries.html

This seems like a good suggestion. However, currently I don't really have much time for new features, but feel free to take a stab at a pr!

You can achieve this using npm-watch like this:
package.json
{
   ...
   "scripts": {
       "manage:translations": "node ./translationRunner.js",
       "watch": "npm-watch"
   },
   "watch": {
       "build-translations": "src/translations/extractedMessages/**/*.json"
   }
   ...
}

Thanks @mgtitimoli this will help detect changed reservations on the fly. But what we'd really need is that the changed translations are detected when running translationRunner.js gettext inserts the keyword Fuzzy in the .po files as a comment. As long as the keyword fuzzy is present the incorrect translation is not being used any longer but the fallback. This workflow is "pro" and we need that here as well. So I suggest the following workflow:that translationRunner.js generates single JSON translation files for each language with translations in a special directory called "

Thanks @mgtitimoli this will help detect changed reservations on the fly. But what we'd really need is that the changed translations are detected when running translationRunner.js
gettext inserts the keyword Fuzzy in the .po files as a comment. As long as the keyword fuzzy is present the incorrect translation is not being used any longer but the fallback. This workflow is "pro" and we need that here as well. So I suggest the following workflow:

react-intl-translations-manager deletes a translation from the language JSON file (e.g. de.json) if the defaultMessage of the default language changed (so we have a fallback to the default language)
it then creates a second file with the prefix "fuzzy" for every language (e.g. fuzzy_de.json) which contains all the necessary information for the translators:

id
old description
old defaultMessage
new description
new defaultMessage
original language description
original language defaultMessage
date & time it has changed

what do you think?

Thanks @mgtitimoli this will help detect changed reservations on the fly. But what we'd really need is that translationRunner.js persists these changes.
gettext inserts the keyword Fuzzy in the .po files as a comment. As long as the keyword fuzzy is present the incorrect translation is not being used any longer but the fallback. This workflow is "pro" and we need that here as well. So I suggest the following workflow:

react-intl-translations-manager deletes a translation from the language JSON file (e.g. de.json) if the defaultMessage of the default language changed (so we have a fallback to the default language)
it then creates a second file with the prefix "fuzzy" for every language (e.g. fuzzy_de.json) which contains all the necessary information for the translators:

id
description
defaultMessage
old original language description
old original language defaultMessage
new original language description
new original language defaultMessage
date & time it has changed

an alternative would be to include comments in the JSON files for the translators and then minify them to get the resulting language JSON files for production.
what do you think?

@googol7 Thx a lot for your input. This is definitely a problem I want to tackle, and your described workflow seems feasible. Since I couldn't come up with an approach myself, I'll give this a try (when I have some spare time) but this might be the first step to a good solution.
I would go with a separate fuzzy file, since JSON actually doesn't support comments, and adding support with for example JSON5 will probably be more difficult than adding a fuzzy file.

@GertjanReynaert Thx for picking up this suggestion. I think it would be good to also have:
old defaultMessage
new defaultMessage
so that it’s obvious that a translator made a new translation in the field "new defaultMessage" when we get back the file fuzzy_de.json from him.

Any progress?

Same on my side, it is quite important to be able to detect updated 'values'.
At the moment, the extracted messages in defaultMessage.json file contains the updated value, but the ouput locales files related values are not updated.
I would expect that if a value in defaultMessage is updated compared to the default locale, it should invalidate all the related value in each other locale file. Maybe replace the previous value with undefined, so we know that those values need to be translated again ?

+1 - We're currently running into an issue where we have the translation files that contain a mix of both translated and untranslated strings. If the default message of any untranslated strings are changed, I would expect all the translation files to also update those strings without their respective JSON objects automatically also. My workaround is to delete all the untranslated strings in the translation files and just run the translation script again, but it's a hassle and can be easily forgotten. Would be awesome to have this enhancement implemented!


Chart widget - Bad route generated by artisan

Bug report
The artisan command used to create a chart widget generates a bad route.
What I did
php artisan backpack:chart SitesPerStatus

What I expected to happen
    Route::get('charts/sites-per-status', 'Charts\SitesPerStatusChartController@response')->name('charts.sites-per-status.index');

What happened
    Route::get('charts/sites-per-status', 'Charts\SitesPerStatusChartController@response')->name('charts.'.sites-per-status.'.index');

What I've already tried to fix it
I change it manually when needed ;)
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:
### PHP VERSION:
PHP 7.2.19 (cli) (built: May 29 2019 13:58:59) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

### LARAVEL VERSION:
v7.13.0@6fa69bfbd57744a5bbec5538ce483919b3fd625f

### BACKPACK VERSION:
4.1.6@cbd4143d3eb8302916012af205565cd3183f274f

it's already fixed here https://github.com/Laravel-Backpack/Generators/pull/86

Oups! Thanks @dividy and @iMokhles , just merged #86 and tagged it! A composer update backpack/generators should do it for you guys. Thanks again, cheers!


Experiment class refactor

Defined General Experiment Class type that does all of the operations besides loading and presenting the stimulus which is overriden by the derived classes. As of now it incorporates the Visual N170 and Visual P300 experiments - and working towards incorporating Visual SSVEP.
Some things worth thinking about, for the present_stimulus function, a lot of parameters are being passed which is annoying me, so I want to know if it would be smarter to pass the Experiment as an object instead (although I know in general that's bad practice). It also gives us a lot of flexibility for the future complex experiements.
Additionally, since all the main functions are delegated to lower classes, this mechanism should allow a lot of complexity and specificity and generally think this should work (and it looks cool too!).
Has not been tested besides compiling, so that needs to be done once whilst I work towards incorporating the rest of the experiments.

Has not been tested besides compiling, so that needs to be done once whilst I work towards incorporating the rest of the experiments.

I think you should definitely focus on one or two experiments and get them working before you start modifying the rest.

I also just fixed so that CI runs on PRs targeting develop, so if you rebase/merge in those changes you should get CI to run.

Closing as this feature was successfully implemented with #183 and is now working well in the core code base


fix: memoize router

Why?

Returned router is not memorized sometimes leading to re-trigger effects if used in useEffect dependency. 30 mins went uncommenting useEffect dependencies to see what was retriggering it. 😂

I pulled this in myself, it's live on canary!
yarn add solito@canary


ERR_CONNECTION_REFUSED for websocket requests

I have tried to set up persys with both server and electron app on the same machine as well as with the server on a remote machine. Both ways, I'm running into an issue where, even after opening ports, double checking firewall, etc., the front end reports this in the console when trying to send a message via the chat interface:
WebSocket connection to 'ws://localhost:9000/chat/peerjs?key=peerjs&id=***&token=***&version=1.5.4' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Have tried monkeying around with the peerServer config on the server side as well as the chat interface file, but have not found a way to get the interface.min recompiled nor a way around this error.
I've set up the p.json file in the root of the data directory and login works fine, the t.json is showing tokens as expected.

is chat.js running? check with pm2 ps
what do you get when you run curl http://localhost:9000/chat

Dockerfile has been added fyi if you'd like to go that route now.

I went the Docker route, and that resolved the failed connection issue. Now I'm having a different problem where all I'm getting back from the server is the heartbeat via websocket after initiating a conversation. Any further messages in the same conversation result in this from the peerjs endpoint: {"type":"ID-TAKEN","payload":{"msg":"ID is taken"}}. No errors appear in the persys-server log. This appears from PM just before the PERSYS is running line:
┌────┬──────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐

│ id │ name     │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │

├────┼──────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤

│ 1  │ chat     │ default     │ N/A     │ fork    │ 55       │ 0s     │ 0    │ online    │ 100%     │ 67.6mb   │ root     │ disabled │

│ 2  │ rag      │ default     │ N/A     │ fork    │ 77       │ 0s     │ 0    │ online    │ 0%       │ 9.1mb    │ root     │ disabled │

│ 0  │ stats    │ default     │ N/A     │ fork    │ 29       │ 0s     │ 0    │ online    │ 0%       │ 72.0mb   │ root     │ disabled │

└────┴──────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

[PM2] Saving current process list...

pushing an update for log location, it'll be under baseDir/logs
trying to replicate your issue now

pushed the log output patch
use tail -f {your-base-dir}/logs/chat-err.log to stream logs while initiating a chat session
if you get nothing there, also print your main server logs by tail -f {your-base-dir}/logs/server-err.log
are rag.js and stats.js also giving you the same error? (use the latest push, there was a bug for rag.js on previous commit)

Figured it out. I wasn't getting any errors that pm2 wasn't running correctly. Didn't realize that pm2 needed to run globally. Any reason that isn't included as a project dependency and is used globally?

Ah! It should be global. Glad it's working, I'll create an updated install.sh for non-docker installs. Let me know if you run into other issues. Reviewing the dotenv pull, looks great.


Use yamlfix instead of openai library

Use yamlfix instead of openai library
Add project basic requirements e.g., Getting Started, .gitignore, requirements.txt, etc.

LGTM


Xbox: Updated app process URL

The app currently opens the MS Store app when you right-click -> 3rd Party Clients -> Xbox
Whe commit changes the URL to open the actual Xbox app.

Can you add detection to check that Xbox app is actually installed and call new URI only if that's the case?


[JOSS Review] Supported Python versions

Although in README the supported Python version is stated as >=3.8 but in the setup.py or setup.cfg and the conda-forge recipe, the required fields are not specified. This could potentially lead to issues when installing the package with other Python packages that may not support Python 3.8+ versions.
For setup.py or setup.cfg the field is python_requires='>3.8' and for conda-forge recipe, i.e., meta.yml file, - python >= 3.8 should be specified in both host and run sections.
This issue is related to openjournals/joss-reviews#3344

I just noticed that bmi-tester does not support Python 3.10 so you might want to note that Python 3.10 is not supported. At least for development purposes.


🚀 [Feature][Yunite][Webapp] General Search Hint shall have a Special Text for this Network

🚀 Feature-Request
General Search Hint shall have a Special Text for this Network.
See issue: https://github.com/Ocelot-Social-Community/Ocelot-Social/issues/6610

Solved


enh: prompt management w/ version control

Feature Request: Prompt Management System for Open WebUI
Is your feature request related to a problem? Please describe.
Managing prompts in Open WebUI can be cumbersome without a proper system. Hardcoded prompts lead to versioning challenges, complicate updates, and reduce flexibility for both technical and non-technical users. Currently, there is no efficient way to store, track, or manage prompts dynamically, limiting the ability to optimize or customize the system.
Describe the solution you'd like
I propose the implementation of a prompt management system within Open WebUI. This system would allow users to:

Store and track prompts centrally, enabling easier version control.
Update prompts dynamically without needing to redeploy the application.
Provide metrics on prompt performance and help in optimizing them.

Additionally, this system should be capable of integrating with existing prompt management solutions to avoid reinventing the wheel. For example, by allowing connection to a third-party system, users can seamlessly leverage external prompt management tools without extensive modifications to Open WebUI.
Describe alternatives you've considered
Manually updating and managing prompts within the codebase is the current solution, which requires redeployments for changes and lacks efficient version control. This method is not scalable and adds unnecessary complexity.
Additional context
Integration with an external prompt management system (such as an API) would allow teams to use industry-standard tools for managing prompts, reducing development overhead while increasing flexibility and control.

+1 I am looking forward to this feature, it would be very helpful!

This would be a cool feature.
The Msty chat frontend has a similar functionality. It provides:

a pre-populated Prompt Library
the ability to bookmark favourite prompts
the ability to store your own prompts
a quick UI button to apply a library prompt to a new chat
bookmarked prompts appearing at the top of that list

Ok, thanks for this link.
My initial idea was to be a 'prompt management system '
Key element were

rbac over the prompt création, management and definition with team role
control of prompt with several version
one version dedicated to prompt in production
rollback button in case of divergence

Linking to langfuse could be also a good idea

If you wanted to pre-populate prompts, I found a set of CC0 prompts here:
https://github.com/f/awesome-chatgpt-prompts
This appears to be mostly what Msty uses as well.


🐛 [BUG] - unclickable icons

🐛 Bug Report Form
the icons on the home page are not clickable

these icons only have a hover effect and are not clickable
i want to add onclick event on them so they can work as a shortcut to go the resources quickly
🌐 Browsers
Which browsers are you experiencing the problem on? (Select all that apply)

[x] Chrome
[x] Firefox
[x] Safari
[x] Microsoft Edge
[x] Opera
[x] Brave

💻 OS
What is the impacted environment (operating system)? (Select all that apply)

[x] Windows
[ ] Linux
[ ] Mac
[ ] iOS
[ ] Android

📝 Sections Completed
Check the box of the sections you have completed:

[ ] Description
[ ] Reproduction URL
[ ] Reproduction Steps
[ ] Screenshots
[ ] Logs
[ ] Browsers
[ ] OS
[ ] Additional Context

🔍 Priority
Please select the priority of the bug:

[ ] High
[x] Medium
[ ] Low

📜 Code of Conduct
By submitting this issue, you agree to follow our Code of Conduct:

[x] I follow Contributing Guidelines of this project.
[x] I have checked the current issues for duplicate problems.
[x] I have read the readme.

I would like to work on this, Please assign it to me


Synchronize translations with Transifex

Pulled and selectively applied the latest translations in Transifex, excluding any changes that would revert a translated string back to English.
/cc @allierowan @mcwhittemore

These translations were contributed by:

@Verdulo in Esperanto
@sealos and me in Spanish
@paillou in French
@gloffreda in Portuguese
@yuryleb in Russian

But I missed when arrive.<maneuver>.upcoming appeared - when is it supposed to be used, before/instead of arrive.<maneuver>.default or for via points only?

This instruction was added in #184. It isn’t used by compile(), but a client can use it with tokenize() to come up with an instruction like this:

Turn left, then, in 500 feet, you will arrive at your destination, on the left.

Thank you, then I should correct translation again to use more appropriate tense. Please synchronize Russian with Transifex more once (some other arrival phrases are also extended).

Rebasing vs master.

Published v0.10.6.

Thanks @yuryleb – removed in #191.


chore(AVPath): cache the AVPath parser.

What is the current behavior? (You can also link to an open issue here)
The AVPath currently does not cache the AST to reach an element. As a result, we compute it to every single element.
What is the new behavior?
Cache the AST.
Linked to https://github.com/Talend/avpath/pull/1
Please check if the PR fulfills these requirements

[X] The commit message follows Talend standard
[X] Tests for the changes have been added (for bug fixes / features)
[X] Docs have been added / updated (for bug fixes / features) ?
[X] The code coverage on new code >75%
[X] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

Pull request test result: failure :x:

Seems, not valid anymore


Added function overloading JSDoc for add function

Hi,
@englercj  please check
out of topic: Class<T>
For me Class<async> doesn't generate typeof async. I think you need to make new release for https://github.com/englercj/tsd-jsdoc

For me Class doesn't generate typeof async. I think you need to make new release for

I do, I used my local version to generate the typings.

Went ahead and added this to master because I had a few minutes before work. Thanks for helping me figure this out!

@englercj Thanks. Any plans for MiniSignal types? :D

looks good. If any issues, I will let you know... Thanks a lot.
Happy holidays!

Same to you!


return the error if error occured - [closed]

In GitLab by @tmon546596046 on Mar 20, 2018, 05:46
Merges tokenserverpanicfix -> dev
return the error if the error occured.

In GitLab by @wknet123 on Nov 13, 2019, 10:41
The test coverage for backend is  55.10%   and for frontend is 38.11%   check console log

In GitLab by @wknet123 on Nov 13, 2019, 10:41
the it is failed check console log

In GitLab by @wknet123 on Nov 13, 2019, 10:41
closed


Add TitleField to IncomingWebhook resource

Resolves https://github.com/BetterStackHQ/terraform-provider-better-uptime/issues/108
Add the possibility to add/remove title_field in IncomingWebhooks.

Also add validation to rule and field attributes.

The end-to-end tests are expected to fail until we deploy the API update.

Tests are green after API changes deployed ✅


New line scroll bottom

When we add a new line it should scroll to bottom if the line is the last line on the screen

this is something you can easily do with:
div.prism-editor-wrapper {
    max-height: 200px;
    overflow-y: auto;
}

Or have you tried manipulating textarea or/elements scroll position?
There are some pure js solutions to that.
https://stackoverflow.com/questions/9170670/how-do-i-set-textarea-scroll-bar-to-bottom-as-a-default

@mentorgashi Would something like that work?
export default {
  // ...
  computed: {
    lineBreaks () {
      return this.code.split('\n').length
    },
    watch: {
      lineBreaks (oldVal, newVal) {
        if (newVal > oldVal) {
          this.$el.scrollTop = this.$el.scrollHeight
        }
      }
    }
  }
}

Hi guys!
Default scroll behaviour is overwritten here:
https://github.com/koca/vue-prism-editor/blob/2a96fdc84e53052c74904fd7a666cab8affa3e33/src/components/Editor.vue#L308
event:
https://github.com/koca/vue-prism-editor/blob/2a96fdc84e53052c74904fd7a666cab8affa3e33/src/components/Editor.vue#L318
Please feel free to suggest your own ideas via pull request :)

@mentorgashi Would something like that work?
export default {
  // ...
  computed: {
    lineBreaks () {
      return this.code.split('\n').length
    },
    watch: {
      lineBreaks (oldVal, newVal) {
        if (newVal > oldVal) {
          this.$el.scrollTop = this.$el.scrollHeight
        }
      }
    }
  }
}

Probably no, because the default behaviour is handled by the plugin itself.
So instead of watching the value change its necessary to scroll bottom within the plugin component.
I'll try to contribute asap

@mentorgashi yes as i mentioned before
https://github.com/koca/vue-prism-editor/blob/2a96fdc84e53052c74904fd7a666cab8affa3e33/src/components/Editor.vue#L318
we block default scroll behaviour because when the user presses enter we add indentation before the enter character.


Support multiple projects per change

Closes #571
Check the following

[ ] Keep 100% code coverage
[x] Be properly formatted
[x] Documentation changes are included
[x] Include a change file if expected

Additional context
Converting the project flag from StringVarP to StringSliceVarP on the new cmd kept the backward compatibility

So far I managed to update the new command properly, and now I'm dealing with an unexpected side effect on the batch command.
Scenario:

Configure two projects on the config file
Create a change (using new) that affects both projects
Run batch command for the first project

Expected behavior: the change should remain unreleased on the second project
Actual behavior: the change is dropped from unreleased as soon as it is released by the first project

@miniscruff, I fixed the side effect on the batch command with the following behavior: when running the batch command for a project, the project entry will be removed from unreleased files. If the unreleased entry contains only one project, the unreleased file will be removed (because the change will be released for all the projects on it).
Because of this, I had to increase the complexity lint rule from 16 to 17, is that ok?
I couldn't find a way of refactoring without changing the batch command too much.

@miniscruff, I fixed the side effect on the batch command with the following behavior: when running the batch command for a project, the project entry will be removed from unreleased files. If the unreleased entry contains only one project, the unreleased file will be removed (because the change will be released for all the projects on it).
Because of this, I had to increase the complexity lint rule from 16 to 17, is that ok?
I couldn't find a way of refactoring without changing the batch command too much.

Oh, yea I wouldn't change the change struct, I would create a separate file for each project. That should have the least issues with batching.

I prefer the implemented way for some reasons:

The unreleased change file gets more idiomatic and concise because it states that a change may have multiple projects, instead of duplicating all its content
The prompt belongs to a change (change.AskForPrompts), and refactoring the prompt to produce several changes would produce a huge change in the code

If you still prefer producing a change for each project, let me know, and then I can update the pull request.

I prefer the implemented way for some reasons:

The unreleased change file gets more idiomatic and concise because it states that a change may have multiple projects, instead of duplicating all its content
The prompt belongs to a change (change.AskForPrompts), and refactoring the prompt to produce several changes would produce a huge change in the code

If you still prefer producing a change for each project, let me know, and then I can update the pull request.

While I do agree with you, by keeping one file to one change per project it allows us to keep the only two operations as read the whole file and deleting it, no edits. Yes, it is maybe a little weird creating multiple files, but by keeping each project separate we can release them using PRs that for sure won't conflict. If we had to edit a file that would create an issue that changie aims to solve via files.
The internal yaml files, although can be changed, they should sort of be treated as hidden system files, so whether or not we create many or one file shouldn't be an issue.

Yep, I agree with the importance of having changes as atomic as possible.
Conceptually, the new command creates a change, which has validations and prompts within it.
For me, it's not clear how the New.Run should behave.
It seems to me that the unreleased file should have only one project, but I would keep a project list on the Change structure since it is a business rules structure, and not only the file representation.

To implement this, we should move the AskPrompts method to a new structure, and then we should collect the result of promptForProjects for generating multiple changes with the same configuration.
Do you see another way around this?

I just managed a way to move the prompt to another structure that accepts multiple projects, so far called PromptChange.
Could you check if the implementation is okay?
PS.: some tests are still broken, I'll be able to fix them on Monday.

@miniscruff any news on this?

@miniscruff any news on this?

Sorry I am away on a trip this week, still on my list of todos.

Ok, going to tackle this today, finally able to get time to figure this out.

Closing in favor of #579, I did take a bit of inspiration from your work with a few tweaks.
Thanks again @fsmaia


[hi] Localize concepts/Workloads page

What would you like to be added
Localize concepts/Workloads page in Hindi.
Why is this needed
There is no Hindi translation for this page

/area localization
/language hi

Related page -> https://kubernetes.io/docs/concepts/workloads/

/help

As there are large number of files to be localized, a single user must split the PR or multiple assignees can assign the pages they want to localize.


New Team action in the Sidebar doesn't open the Modal when it was open once

This bug can be reproducible following the steps below:

Login
On the sidebar, click on "New Team"

It will open the modal

Close the modal
On the sidebar, click again on "New Team"

It will do nothing

Hi, can you assign me this issue?
I already figured out the source of the problem and I can fix it immediately.


[SUBMISSION] December 2024 - Instruction tuning for tiny-codes

December 2024 Student Submission
Module Completed

[x] Module 1: Instruction Tuning
[ ] Module 2: Preference Alignment
[ ] Module 3: Parameter-efficient Fine-tuning
[ ] Module 4: Evaluation
[ ] Module 5: Vision-language Models
[ ] Module 6: Synthetic Datasets
[ ] Module 7: Inference
[ ] Module 8: Deployment

Changes Made
Describe what you've done in this PR:

What concepts did you learn?
What changes or additions did you make?
Any challenges you faced?

Notebooks Added/Modified
List any notebooks you've added or modified:

[ ] Added new example in module_name/students/my_example.ipynb
[ ] Modified existing notebook with additional examples
[ ] Added documentation or comments

Checklist

[ ] I have read the module materials
[ ] My code runs without errors
[ ] I have pushed models and datasets to the huggingface hub
[ ] My PR is based on the december_2024 branch

Questions or Discussion Points
Add any questions you have or points you'd like to discuss:
1.
2.
Additional Notes
Any other information that might be helpful for reviewers:

@duydl Thanks for the submission! It looks like you need to merge the latest changes from main.

@duydl Got it. I've tidied up the branch and moved your notebooks in to a directory.


Remove useless notifications

I'm frustrated every few days when I open a useless notification from the communitynotes system.
X should un-send notifications from the communitynotes system once no action is needed:

The user has already voted on the note. (Admittedly, re-opening it is user error; an alternative solution for this sub-issue would be to make it easier to differentiate read from unread notifications.)
The relevant tweet has been deleted or hidden.

Screenshot of 2:


BackplaneStatus scales with queues and redis nodes

This mechanism should be issuing:
Pipelined requests for each queue for each redis node.
Performing these in parallel.
Syncing these over multiple requests may eventually become necessary.

Fixed with #1880


Added the Scrivito CMS (https://www.scrivito.com/)

I've added Scrivito to the list.

Sorry, I'll send a corrected version, fixed a typo.


Icon request: flipkart logo

URL for the brand / site / app
https://www.flipkart.com/
Logo resources for the icon
No response
Anything else?
No response

Okay seriously, please use proper capitalization for the brand name and stop adding "logo" to the issue title!

sorry

Based of 2FA Directory and this article, there's no 2FA in Flipcart.


Highlight words in a paragraph

Hello I don't know if I should drop this idea here but I really wish this feature would become true.
Currently we can't highlight words in a paragraph.
That can be really annoying because it keeps me from making my text more readable.
There are some work arounds with some dividers for example but it's not ideal in my opinion.
It'd be really nice if we could make some words bold, or even colorize some words in a paragraph instead of all of it.

+1

Highly need this feature

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

<mark>, bold, underscore, strike-through and color for marked words would be very helpful.

+1

+1

+1

+1

+1

Give the issue a thumbs up 👍  guys, avoid spamming "+1"

Looking forward to this feat! 👍

+1

Would love this!

+1


Work around bug in pylint's parser astroid

Works around https://github.com/PyCQA/astroid/issues/650

Automerge cancelled: Merging is blocked (I don't understand why).


Bug Report: Crash on large selection

Separating #950 into 2 issues. #950 was a "capture" issue. This is a "copy the selection" issue.
Environment
Windows build number: Microsoft Windows [Version 10.0.18917.1000]

Steps to reproduce

Maximize window
Make a selection from top-left corner to bottom-right
Right-click to copy

Expected behavior
Obviously, to not crash.
Actual behavior
Crash (presumably because copy is too big.)

More Info:
So, I'm debugging this and I notice that the issue arises in TermControl::CopySelectionToClipboard():
const auto copiedData = _terminal->RetrieveSelectedTextFromBuffer(trimTrailingWhitespace);
_terminal->ClearSelection();

If I set a breakpoint on the first line, everything works fine.
If I set a breakpoint on the second line, it crashes.

Turns out that this is the fixed by #1254 and is a dup of #1165. So nevermind!