Disconnected waypoints break everything

If you click one point that's not reachable from the next, the entire plugin breaks, because we insist on every step of the path existing

Find a repro first. The E&C area in the demo here doesn't have any case. I don't remember where I've hit it before. Could always force it by clipping out a necessary bridge

https://user-images.githubusercontent.com/1664407/211164796-b1f7152a-ca67-4716-895b-534b3012b879.mp4
This feels natural to me, and it's very obvious when there's no path. If you drag that disconnected point to somewhere on the network, it self-repairs, as shown


Fix for bug #314

Fixes selective and renamed imports without having to touch overload resolution in the way discussed via email.

I've updated the pull request to apply cleanly against dmd/master.

To make the phobos unittests pass again https://github.com/D-Programming-Language/phobos/pull/288 needs to be applied to phobos.

Seems good.
I think you should add test suites into dmd/test/compilable or dmd/test/runnable.

When will this be merged, it just bit me again ¬¬

Found an error with renamed import. Follwoing code
import std.uni;
import ascii = std.ascii;
void main() { isWhite('c'); }

causes this error.
test.d(3): Error: std.ascii.isWhite at C:\dmd2\src\phobos\std\ascii.d(185) conflicts with std.uni.isWhite at C:\dmd2\src\phobos\std\uni.d(37)

From http://d-programming-language.org/module.html,

A local name for an import can be given, through which all references to the module's symbols must be qualified with:

Using isWhite with no qualifier should reference std.uni.isWhite, because using std.ascii.isWhite must be qualified like ascii.isWhite.

Kenji, I believe you're using an old version of this pull request. What you're reporting looks like something I fixed about a month ago and can't reproduce with the new patch. Please verify that you merged ef374c8.

You are right, @ckamm. With the newest patch, that issue did not occur.
But, Phobos requires a patch to fix problems that surfaced by this.
It is need to prevent breaking of Phobos to fix the compiler.

http://stackoverflow.com/q/8674455/554075
I wish I had a punching bag.
Can we expect to see this issued fixed in 2.58?

This fails in the following scenario:
 private int x;
 alias y x;

y is public, but the patch complains that it is private. This manifests itself in multiple failures in compiling phobos:
..\dmd -c -o- -O -release -nofloat -w -d -property -version=StdDdoc -Df..\doc\phobos\std_mmfile.html std.ddoc std\mmfile.d
std\mmfile.d(241): Error: undefined identifier useWfuncs
and:
std/cstream.d(235): Error: variable stdio.__stdinp is not accessible from cstream
std/cstream.d(236): Error: variable stdio.__stdoutp is not accessible from cstream
std/cstream.d(237): Error: variable stdio.__stderrp is not accessible from cstream

I reverted it until it gets fixed.

This pull broke http://d.puremagic.com/issues/show_bug.cgi?id=7373
Can you look into this, please?

Never mind, got it fixed.


Notes link to iNat when recording Field Slip

Adds a checkbox to the field_slip form
Link notes[:Other_Codes] to iNat if the user checks that box

Manual Test

http://localhost:3000/field_slips/qr_reader/new
enter a valid Field Slip Code
complete the form, including Location, ID, and a number in Other Codes,
check the box
Quick Create
Expected Result: It shows a new Observation whose Notes[:Other_Codes] is a link to an iNat observation.

coverage: 93.456%. remained the same
when pulling 3e5e5af7e18a7c9e171f2b393a31c221ea76daec on jdc-field_slip-other_codes-inat-link
into 8c9c7943ac8eee56f16fb8e3a10f97a4ace80dec on main.


Clean up C2397

Make the example more uniform with the others, remove the need to use std::vector and made the doubles in the initializers more explicit (2 -> 2.0). Also made the code block cpp to get proper syntax highlighting on the page.

@TylerMSFT
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off

Thanks for your contribution!


:sparkles: Sign the inventory client for the global hub agent

Summary
Related issue(s)
Fixes # https://issues.redhat.com/browse/ACM-12395
Tests

[x] Unit/function tests have been added and incorporated into make unit-tests.
[ ] Integration tests have been added and incorporated into make integration-test.
[ ] E2E tests have been added and incorporated into make e2e-test-all.
[x] List other manual tests you have done.

use the sample inventory component to test it manually

/retest

/test test-e2e

/lgtm
will have a following PR to rename the struct name.


static-this - Improperly flags returned anonymous class

Bug Report

5.14:
3..3.3333:
CLI

TypeScript code being linted
interface Bar {}

class Foo {
  public static higherOrderComponent(): any {
    return class implements Bar {
      public constructor() {
        console.log(this);   // "this" is valid here but tslint is complaining
      }
    };
  }
}

with tslint.json configuration:
{
  "defaultSeverity": "error",
  "extends": [
    "tslint:all"
  ],
  "rules": {
    "static-this": true
  }
}

Actual behavior
This improperly flags this in an anonymous class returned by a static function, something that is typically used to construct higher-order components.
Expected behavior
this used in a class scoped inside a static function is valid.

I'm already looking for a solution


[Help] GpgKey Url Error when Upgrade JDK Mariner

Describe the bug
Hi all, could like to ask some help when tdnf upgrade -y from mcr.microsoft.com/openjdk/jdk:11-mariner. It reported error as below, could you please help to insight me on how to resolve this?
The option --nogpgcheck can workaround this issue but looks it is not recommended.
Desktop (please complete the following information):
OS & version [e.g. Windows 10, 1822]: Linux
MSFT Build of OpenJDK Version: mcr.microsoft.com/openjdk/jdk:11-mariner
The output from java --version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment Microsoft-25199 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Microsoft-25199 (build 11.0.12+7, mixed mode)
To Reproduce:
Steps to reproduce the behavior:

docker run -ti mcr.microsoft.com/openjdk/jdk:11-mariner bash
tdnf upgrade -y

Expected behavior
End succeeded.
Screenshots, Logs etc

Additional context
Add any other context about the problem here.

Thanks for reporting this. We will look into it.
We also identified a problem where the JDK 11 package is not properly updating on Mariner. The latest version is <IP_ADDRESS> while the system thinks that's an older version.

@Incarnation-p-lee can you please double check if your issue is related to this discussion?
https://github.com/microsoft/openjdk/discussions/206#discussioncomment-2153201

@d3r3kk can your team double check this one please?

Just ran the following:
PS C:\Users\d3r3kk> docker run -ti mcr.microsoft.com/openjdk/jdk:11-mariner bash
root [ / ]# tdnf upgrade -y
Loaded plugin: tdnfrepogpgcheck
Refreshing metadata for: 'CBL-Mariner Official Extras 2.0 x86_64'
Refreshing metadata for: 'CBL-Mariner Official Base 2.0 x86_64'
Refreshing metadata for: 'CBL-Mariner Official Microsoft 2.0 x86_64'
Refreshing metadata for: 'packages-microsoft-com-prod'
Nothing to do.soft-com-prod              84752   100%
root [ / ]# tdnf downgrade msopenjdk-11
Loaded plugin: tdnfrepogpgcheck

Downgrading:
msopenjdk-11                         x86_64             <IP_ADDRESS>-1              mariner-official-microsoft 308.81M 323815839

Total installed size: 308.81M 323815839
Is this ok [y/N]: y

Downloading:
msopenjdk-11                         193183373   100%
Testing transaction
Running transaction
Installing/Updating: msopenjdk-11-<IP_ADDRESS>-1.x86_64
Removing: msopenjdk-11-11.0.17-1.x86_64

Complete!
root [ / ]# tdnf upgrade -y
Loaded plugin: tdnfrepogpgcheck

Upgrading:
msopenjdk-11                         x86_64             11.0.17-1                mariner-official-microsoft 309.37M 324400663

Total installed size: 309.37M 324400663

Downloading:
msopenjdk-11                         193498166   100%
Testing transaction
Running transaction
Installing/Updating: msopenjdk-11-11.0.17-1.x86_64
Removing: msopenjdk-11-<IP_ADDRESS>-1.x86_64

Complete!
root [ / ]#

This seems to be resolved from what I can see. @brunoborges I leave it to you to close it out.


Dashboard for User & Project Metrics

North start metric: documents per project (or even tokens per project).
North start metric: conversations per project.
Total number of projects (over time)
⭐ Number of unique users per project.
⭐ Number of projects per user.
Also add the cumlative.
⭐ Per project, number of days since last interaction?
Avg session duration, or number of chat messages per session?
Pageview per user.
Per user, number of projects interacted with.Stretch goal:* What was the last user interaction (or screen recording) before they dropoff for >30 days?

New metric: Admins vs non-admins.

For a conversation, was it initiated by a User or Admin?
Per course, what percentage of conversations were initiated by a User or Admin?

New Metrics:

Active admin vs active users

Bounce rate = (Single-page visits / Total visits) × 100%

Cumulative graphs for everything

Accuracy of response, user satisfaction --- add satisfaction

Admin side of uiuc chat – ask for access

Usage patterns= what are the peak hours or peak times

Customer segmentation 2- admins and users

Market the product ? survey of professors/ student who already use it

Active user - track every time a user logs in to a specific course/project.
e.g. Find users who viewed course within 7 days.
bounce rate - session duration after going directly to a page...

Finishing work
A/B test the new landing page:

Bounce rate // Conversion (new users sign up // returning users click on ANYTHING).
7 day user retention (return rate)

Clean Dashboard of metrics on Posthog

New metric I want to track: e2e latency of time to first token. From sending a "Chat" to "first token response".


[Bug] Config won't generate correctly with LC_Office installed

when booting up modded lethal, the config appears to be created improperly because of enemies associated with LC_Office.  Specifically, "Halt" does not have any health, I believe.  So when trying to import that value, your routine breaks and no further config information is populated

I have it fixed but I still need to fix one more issue with the rad mech before releasing the update

Thank you for the fix, the config seems to be generating fine now.
A bunch of the enemy health values are incorrect, though.  For instance: Tulip Snakes have 3 hp in your config, but have 1 hp in vanilla.  Vanilla hoarding bug is 2 hp, but config is 3 hp.  Vanilla centipede is 2 hp, but config is 3 hp.
I also thought that radmech hp was missing as well, but the config appears to be generating this entry separate from the other radmech config options.

Also I don't have the slightest idea why the RadMech config is generated multiple times, probably the vanilla game or another mod creates a different instance of the RadMech when the game starts. Regardless, I recommend regenerating the configs

Howdy, I checked again after regenerating the config, and RadMech is still being generated correctly.  No mods for Rad Mech
[06:18:58.6141388] [Error  :EverythingCanDie] It was not possible to generate the configs for the enemy: RadMech

I don't know what to say since it generates the config correctly for me, you probably have some mod that modifies the radmech in a way that doesn't allow it to generate its config

thank you for double checking
if I can find out more information about the source of the conflict I'll be sure to update you


send arprequest and arpreply alternatively for gratuitous arp

Both ARPRequest and ARPReply can be used to send gratuitous ARP, and network devices may only support either one of them.  Change to send request and reply alternatively.
Fix #80

Looking at the RFC we probably could just add a tiny toggle at the top of the gratuitous ARP function and keep the payload as below?
	m := &arpMessage{}
	m.arpHeader = arpHeader{
		1,           // Ethernet
		0x0800,      // IPv4
		hwLen,       // 48-bit MAC Address
		net.IPv4len, // 32-bit IPv4 Address
		opARPReply,  // ARP Reply
	}

	// https://tools.ietf.org/html/rfc5944#section-4.6
	m.senderHardwareAddress = mac

	// When using an ARP Reply packet, the Target Hardware
	// Address is also set to the link-layer address to which this cache
	// entry should be updated (this field is not used in an ARP Request
	// packet).
	m.targetHardwareAddress = ethernetBroadcast

	// In either case, the ARP Sender Protocol Address and
	// ARP Target Protocol Address are both set to the IP address of the
	// cache entry to be updated,
	m.senderProtocolAddress = ip.To4()
	m.targetProtocolAddress = ip.To4()

Good point. This is cleaner.

@jzhoucliqr are you still working on this? Just wondering how critical it is & if we need to get it in sooner rather than later? Thanks!


docs/user-guide/secrets: fix invalid syntax of Pod.spec.containers.command

Example in https://kubernetes.io/docs/user-guide/secrets/#use-case-dotfiles-in-secret-volume section doesn't work:
$ kubectl create -f secret-test.json
secret "dotfile-secret" created
error: error validating "secret-test.json": error validating data: expected type array, for field spec.containers[0].command, got string; if you choose to ignore these errors, turn validation off with --validate=false

This commit fixes invalid syntax.

This change is

Thanks @php-coder . @mikedanese we good now?

Tech LGTM


error when using matrix as input

Hi Lukas,
Thank you for developing this great tool! When I use gene expression matrix as input, it returns following error message after running a long time. I suspect in line 282, when the input is not a SpatialExperiment object, assayNames(spe) will return error. Could you please check and fix if needed?
Thanks,
Haotian
Error in h(simpleError(msg, call)) :    error in evaluating the argument 'x' in selecting a method for function 'assayNames': object 'spe' not found
https://github.com/lmweber/nnSVG/blob/e26ed63be0909e8acc3d16d3cfa9b8ebda2a73aa/R/nnSVG.R#L282

Hi @haotian-zhuang , apologies for the delay, and thanks for reporting this issue. This is now fixed and merged from the updates in pull request https://github.com/lmweber/nnSVG/pull/20. The updates will be installable from Bioc in 1-2 days after they have gone through the Bioc build system, and are also available now from GitHub. Please let me know if there are any further issues. Thank you!


News module not updating

Hi @bastilimbach
Everything works fine. What I noticed that the news module does not update with the latest news unless I was to refresh the browser.
Is that a bug or?

@bachoo786 Hey, may you provide logs from your browser. I am using this project in a project of mine and everything work regarding the News module.
Also this project is basically a wrapper around the awesome MagicMirror project. You may find help in the official forum.

@idoodler Thanks for your help!
@bachoo789 Logs & your config would be really helpful. Maybe something is wrong with your configuration. Maybe @idoodler can provide their working config.

Sure, @bachoo786 I guess you mean the default newsfeed module.
Checkout my module config:
            {
                module: "newsfeed",
                position: "bottom_bar",
                config: {
                    feeds: [
                        {
                            title: "PNP",
                            url: "http://www.pnp.de/_export/rss/nachrichten/stadt_landkreis_passau/passau_land/index.rss"
                        }
                    ],
                    showSourceTitle: true,
                    showPublishDate: true,
                    updateInterval:  20000
                }
            }

@bachoo786 Ping

@bachoo786 If you are still having problems with the configuration please feel free to reopen the issue.


fix: select第一次点击取消值被清空

Coverage decreased (-0.02%) to 71.11% when pulling 799467b40747315343ccad9700bcb89966beb7c4 on Yang03:fix2 into 28f379aa6132a773482c037f0f04c499f085da98 on ZhonganTechENG:dev.


sdk 46

If you don't keep up with upstream changes, you will end up refactoring from 45 to 47 and from ibc v3.0.0 to ibc v6 or v7 and that'll take a very long time.
The notable changes here have to do with the composition of an ibc "stack" around ibc modules and the introduction of the ibc middleware.  This PR also introduces the ibc fee module.
Note: currently, it is stuck at the cursed initialization function.

sdk 46
use the canonical golangci-lint github action
format code nice-like
fumpt
fix naming
neutron now uses pretty strict linting
tidy with 1.19

Unfortunately, IS does not support 0.46. As far as I understand, the informal team is going to add support for 0.47, skipping 0.46 entirely.
P.S. I feel bad about closing this PR; it's a lot of work : ( Thank you so much!


Fix the increment of sstable generation numbers

The existing code only worked correctly when a single sstable existed.
For example, if the existing generations were [1, 2], it would increment
them to [2, 3].  The correct behavior is to go to [3, 4].
This fixes the sometimes failing scrub_test.TestScrub.test_standalone_scrub

+1


Add error_name(), add error name to error_string()

Behaviour before this PR:
error_string(ERR_UNAVAILABLE) -> "Requested operation is unsupported/unavailable"
Behaviour after this PR:
error_string(ERR_UNAVAILABLE) -> "Requested operation is unsupported/unavailable (ERR_UNAVAILABLE)"
error_name(ERR_UNAVAILABLE) -> "ERR_UNAVAILABLE"
error_name() is useful in cases where we (Godot) or the user/gamedev want to log the error that occured, where currently one would log the actual int value, which is ill-advised as it is an implementation detail that may change (and its also annoying to look up a int val in the struct manually).
Improves upon https://github.com/godotengine/godot/pull/38992.

See also https://github.com/godotengine/godot-proposals/issues/2854, which if implemented would allow getting the string name of any exposed enum value.

See also godotengine/godot-proposals#2854, which if implemented would allow getting the string name of any exposed enum value.

Yeah, if we implement that in the future, it would be easy to switch out the current implementation of this :) Would be great, as the array with enum constant names is a little stupid, but currently, it seems the best solution.

Note: Enum constants are bound using this and as they're available at runtime, they should probably be somewhere, so we may be able to access that or make them accessible, as pointed out by vnen. Will investigate.

Closing for now, will redo this properly once https://github.com/godotengine/godot/pull/51791is merged.


Adds v2 fix for default_field

New code assumed user using ‘value’
Added new specs for v2 mount
Bumped Vault gem version to 0.13.0

@maxadamo and @arcenik Hello!
Can you both check this branch in your environments? The previous code seemed to have one issue where you want to use a different field than value, as well as not setting one by default. So I added that logic and changed it to branching over rescuing the code.

note taken @petems .... will do ...

That works for me.

works for me too


Python Bindings with pybind11 or nanobind

Hi,
thanks for the great work!
I wanted to ask if there is any plan to inlcude python bindings for the tool in general or if it should stay as simple as possible and the bindings should be handeled externally? I think other tools like scenariogeneration could benefit from the faster and nice processing of geometries in this libary.
Best regards,
Jonas

Hi, thanks, appreciate it!
I do notice a bigger interest in Python bindings. Unfortunately, I have no experience with Python bindings and currently don't have plans / time to work on it. But I am of course open to adding it. I would like to keep this project lean, but I imagine that only the build needs to be extended a bit and some glue code needs to be written.
Anybody feel free to make a pull request to add this functionality.

Hi, just wanted to write here to notify that I'm currently working on a Cython wrapper for this library as part of a project for an organization I'm in. It's still extremely WIP and isn't usable yet, but I'll be working on it consistently and should have something usable within a month or so ideally.
Thank you @pageldev for this awesome library!


Accept context.Context in XML-RPC requests made in the Go client

Description
Go client accepts a context and uses it when executing any XML-RPC request.
Use case
It is important when using Go to consider context when performing actions. This allows for timeouts and other reasons for cancellations to be controlled by the user of the client. A good example is if the connection to the open nebula api is not temporarily unavailable. In the current implementation a request will just hang. I need this to make code that uses the open nebula api more reliable.
Interface Changes
The Go client will have an additional set of methods in the same way that database/sql does in the standard library. This completely preserves backward compatibility.

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

Nice change :)
I worked on this change a year ago but I didn't complete it, it was implemented in the exact same way for retro compatibility so I agree with your implementation (I just shortened XXXContext to XXXCtx for shorter names).
I drop some notes I took here:

each future method change will have to be done in two places (this will require a bit more of care)
this introduce a small breaking change for users that have already created their custom client
on OpenNebula side, request cancellation doesn't seems to be managed, response will be returned to Goca client even if the request has been cancelled (seen via wireshark). So cancellation is not so efficient here.

There is no big deal with these points and overall Go developers  use context, I think it's a good change for Goca.


Error "unhashable type: 'dict'" during tag update with Netbox >= 2.9.0

Hi,
I'm trying to use pynetbox with Netbox 2.9.3 and faced with an issue during update procedure. Here's sample of code:
update_address = nb.ipam.ip_addresses.get(id)
update_address.update(dict(
    tags = [dict(name = tag)]
))

and I have the following error:
Traceback (most recent call last):
  File "/home/car/git/test/test.py", line 21, in <module>
    tags = [dict(name = tag)]
  File "/home/car/git/test/.venv/lib/python3.6/site-packages/pynetbox/core/response.py", line 419, in update
    return self.save()
  File "/home/car/git/test/.venv/lib/python3.6/site-packages/pynetbox/core/response.py", line 381, in save
    diff = self._diff()
  File "/home/car/git/test/.venv/lib/python3.6/site-packages/pynetbox/core/response.py", line 357, in _diff
    current = Hashabledict({fmt_dict(k, v) for k, v in self.serialize().items()})
  File "/home/car/git/test/.venv/lib/python3.6/site-packages/pynetbox/core/response.py", line 345, in serialize
    current_val = list(OrderedDict.fromkeys(current_val))
TypeError: unhashable type: 'dict'

I can create objects with tags without problems, but update does not work
pynetbox version: 5.0.8
Netbox version: 2.9.3
python version 3.6.9

I can put in a pull request but it seems like the direct fix is to remove tags from LIST_AS_SET Constant.
Here is some sample code that works for me.
  device = nb.dcim.devices.get(name=hostname)
  new_tag = {'name': 'example_tag'}
  device.tags.append(new_tag)
  device.update({"tags": device.tags})

Fixed in https://github.com/digitalocean/pynetbox/pull/291

Hello!
Was that really fixed for ip_addresses?
ip = "<IP_ADDRESS>"
ip_address = nb.ipam.ip_addresses.get(q=ip+"/")

tag = {'name': 'some_tag'}
ip_address.tags.append({"name": tag})

ip_address.update({"tags": ip_address.tags})

File "C:\Program Files (x86)\Software\venv\lib\site-packages\pynetbox\core\response.py", line 345, in serialize
    current_val = list(OrderedDict.fromkeys(current_val))
TypeError: unhashable type: 'dict'

Hello,
Does anyone have any news about this bug? it still doesn't work with netbox 2.9.7.


Fix a wrong function name groupBy() to keyBy() on the "Basic API Concepts" document.

Fix a wrong function name groupBy() to keyBy() on the "Basic API Concepts" document.
This is a trivial fix and there is no related JIRA issue according to http://flink.apache.org/contribute-documentation.html#before-you-start-working-on-the-documentation-

Thanks for the PR @keijiyoshida!
+1 to merge

@fhueske Thanks for your checking this PR!


Add support for addminingaddr, delminingaddr, and setminingaddrs

This commit adds support for the three new RPC's which were added in btcsuite/btcd#845.

The rpcclient is now part of the main btcd repository.  Going to close this.  Please reopen it there.


Qlib Features Calculation error

Hello, I am pretty new to qlib scripting so please bare with me. I am currently running into issues with feature calculations and how that process exactly works. for some background information, I am trying to get it to process my own data from a csv file, it is stock market data. And it has the correct formation with datetime, symbol, open, high, low, close, volume. And I want to make it so that my script can process this data and calculate all 158 features for the data. Please let me know if that is possible, and if it is, I would appreciate some pseudocode for it. Thank you so much.
I have provided some code below for more context:
import qlib
from qlib.contrib.data.handler import Alpha158
import pandas as pd
import os
import logging
Enable detailed logging for debugging
logging.basicConfig(level=logging.DEBUG)
def initialize_qlib(data_dir):
logging.info(f"Initializing Qlib with directory: {data_dir}")
qlib.init(provider_uri=data_dir)
logging.info("Qlib initialized successfully.")
def prepare_qlib_data(csv_path, output_dir):
logging.info(f"Preparing data from CSV: {csv_path}")
df = pd.read_csv(csv_path)
logging.debug(f"Original DataFrame:\n{df.head()}")
# Ensure datetime parsing
if 'datetime' in df.columns:
    df['datetime'] = pd.to_datetime(df['datetime'], errors='coerce')
elif 'date' in df.columns:
    df['datetime'] = pd.to_datetime(df['date'], errors='coerce')
else:
    raise ValueError("CSV file must have a 'datetime' or 'date' column.")

# Drop invalid rows
df.dropna(subset=['datetime'], inplace=True)
df.set_index(['datetime', 'symbol'], inplace=True)

# Save to parquet
os.makedirs(output_dir, exist_ok=True)
output_file = os.path.join(output_dir, 'data.parquet')
df.to_parquet(output_file)
logging.info(f"Data prepared and saved to: {output_file}")

def setup_alpha158_handler(data_dir):
logging.info("Setting up Alpha158 data handler.")
# Define configuration for Alpha158
data_handler_config = {
    "start_time": "2013-12-30",
    "end_time": "2024-12-24",
    "fit_start_time": "2015-01-01",
    "fit_end_time": "2017-01-01",
    "instruments": "AAPL",
}

# Initialize the handler
handler = Alpha158(**data_handler_config)
logging.info("Alpha158 handler initialized successfully.")
return handler

def calculate_features(handler, instrument, freq):
try:
logging.info(f"Calculating features for {instrument} at {freq} frequency.")
    # Debug available columns
    logging.debug(f"Columns in data: {handler.get_cols()}")

    # Fetch labels
    labels = handler.fetch(col_set="label")
    logging.debug(f"Labels:\n{labels.head()}")

    # Fetch features
    features = handler.fetch(col_set="feature")
    logging.debug(f"Features:\n{features.head()}")

    print("Features and labels calculated successfully.")
    return features, labels

except Exception as e:
    logging.error(f"Error calculating features for {instrument}: {e}")
    raise

if name == "main":
csv_path = "C:/Users/14168/.qlib/qlib_data/data/historical (3).csv"  # Input CSV
data_dir = "C:/Users/14168/.qlib/qlib_data/"  # Qlib Data Directory
prepare_qlib_data(csv_path, data_dir)
initialize_qlib(data_dir)

# Calculate and display features
calculate_features('AAPL', freq='day')

try:
    # Prepare data
    prepare_qlib_data(csv_path, data_dir)

    # Initialize Qlib
    initialize_qlib(data_dir)

    # Setup Alpha158
    handler = setup_alpha158_handler(data_dir)

    # Calculate and print features
    features, labels = calculate_features(handler, instrument='AAPL', freq='day')
except Exception as e:
    logging.error(f"An error occurred: {e}")

If you want to use your own prepared data, you first need to convert the data from csv to .bin file, which can be roughly divided into two steps: first do the normalisation of the data, and then converted to .bin file. You can refer to here for the specific steps.


Moved presentation files to the class_files folder

Describe your changes
I moved presentation and report notebooks and static files to the class_files folder so they do not complicate the general structure of the application.

Good call out, @JJModern!


Only create secret if auth.passwordAuth is set

Problem: if users have a solution like Sealed Secrets which creates Secret objects at runtime from a Kubernetes controller, right now there's no easy way to use this instead of the default provided Secret template.
Solution: if the auth.passwordAuth value is not set, do not create a Secret, so that users can create their own secret containing the passwords.db file.

@cla-bot check

@martint any chance we can get this merged? :P


Issue importing config file and generating Login class

When importing the config file and trying to generate the token via legacy or old method, the python interpreter is returning the following error.
Traceback (most recent call last):
File "C:\xxx\helpers.py", line 202, in
cid = aa2.getCompanyId(param)
File "C:\xxx\venv\lib\site-packages\aanalytics2\aanalytics2.py", line 136, in checking
config.config_object["token"] = retrieveToken(*args, **kwargs)
File "C:\xxx\venv\lib\site-packages\aanalytics2\aanalytics2.py", line 88, in retrieveToken
with open(private_key_path, 'r') as f:
PermissionError: [Errno 13] Permission denied: '.

@loldenburg I wasn't able to reproduce the issue, I tried with the following path in my config file:

private.key
/private.key
./private.key
sufolder/private.key

Everything works on my end.
Could you share your path after importing the configuration file ?
You can access it by doing the following :
import aanalytics2 as api2
api2.importConfigFile('myConfigfile.json")
api2.config.config_object['pathToKey']

It takes a lot of time to debug this because I first need to reinstall your newest library again, but the problem I think is not the path itself, but the logic in the config object.

send sth to your private mail as I dont want to share private paths here

Normally this issue has been fixed with the latest releases.


Small tweaks

Fixed formatting issues
Added link and image to standards section
Removed advanced empty sub-sections

thanks @doublebyte1!
@francbartoli are you going to add anything about custom plugins or security/access control?  They were originally included as TODOs, but if we don't include anything by Florence, suggest we delete (per this PR) and add them to the issue tracker for future work.

@tomkralidis I'm going to add only security and access control today. PR is coming later

https://github.com/geopython/diving-into-pygeoapi/commit/117f73a66f506624ec791c98c4b5c2c3428d6aa1
https://github.com/geopython/diving-into-pygeoapi/commit/8f566642b66eb04b937162883f068a4f1bdb7fb5
Does this work?

Thanks @doublebyte1 !


ABAP BTP - system exception ERROR_MESSAGE during Pull

I'm using abapGit to import code from on-premise to ABAP BTP.
During pull I'm getting following error:
Pull aborted: Repository pull aborted - Job canceled after system exception ERROR_MESSAGE
Please check status and message for all imported ABAP objects
There are no additional errors or details. How can I find the root cause?

 Does pulling work with a small test repo like https://github.com/abapGit-tests/CLAS?
Second, what objects are listed under the first node (12)?

Yes, It's a bigger project (~3500 objects) . I used it without issues for smaller projects for the same system combination.

the warnings are about objects that were assigned to a different package. AG handles those nicely.
Using the abapGit ADT plugin makes it difficult to determine the root cause here since it's a quite generic error message. I see you have 20 packages. Devide an conquer. Try defining smaller repos for individual packages. That should help narrow down what causes the problem.

I had also unsupported types in other/smaller packages and they were just ignored.
I'll try to import in smaller chunks/repos.

I narrowed it down to a single class. During the pull while refreshing the status there was following message displayed:
'Pull aborted: A data record is to be inserted even though a data record with the same primary key or same unique secondary key exists.'
It is replaced by
'Pull aborted: Repository pull aborted - Job canceled after system exception ERROR_MESSAGE'

Can you attach the xml file of the class?

#int4#iftt_cl_testcase_pi.clas.xml.zip

I don't see anything wrong with the xml. Since it's related to one class only, there's probably some inconsistent metadata in the system already. If you must know, a SQL trace should help to identify the table. Otherwise, deleting the class and then pulling it again will likely avoid the issue.

No action


Added Unit Convertor #44

#44 completed
Pull Request
Description (required)
A clear and concise description of what your calculator does or the problem/improvement it is solving.
Checklist (required)

[x] I have read and understand the contribution guidelines.
[x] I have tested this code.
[x] I have updated the documentation.
[x] I followed the standards described in the README.
[x] I have reviewed and addressed any comments and feedback.

Screenshots (optional)
If applicable, add screenshots that help visualize the changes you made.
Related Issues (required)
Issue: #XXX [Link to any related issues or tasks.]

@RuanAragao
this pr is complete
please merge this


docker image build error

I found an error during the compilation of the Docker image, following the steps in the README documentation.
Is this error because the go version is not forward compatible?
go version: 1.22
k8s version: v1.29.2
ubuntu 22
root@VM-0-8-ubuntu:/home/ubuntu/usage-metrics-collector# docker build . -t usage-metrics-collector:v0.0.0
[+] Building 74.5s (14/18)                                                                                docker:default
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 804B                                                                                0.0s
 => [internal] load metadata for docker.io/library/alpine:3.17                                                                                0.7s
 => [internal] load metadata for docker.io/library/golang:1.19                                                                                0.7s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [build 1/7] FROM docker.io/library/golang:1.19@sha256:3025bf670b8363ec9f1b4c4f27348e6d9b7fec607c47e401e40df816853e743a                                                                                0.0s
 => [stage-1 1/6] FROM docker.io/library/alpine:3.17@sha256:a6063e988bcd597b4f1f7cfd4ec38402b02edd0c79250f00c9e14dc1e94bebbc                                                                                0.0s
 => [internal] load build context                                                                                0.0s
 => => transferring context: 63.82kB                                                                                0.0s
 => CACHED [stage-1 2/6] RUN apk --no-cache add curl # install for debugging -- not required to run                                                                                0.0s
 => CACHED [build 2/7] WORKDIR /workspace                                                                                0.0s
 => CACHED [build 3/7] COPY go.mod ./                                                                                0.0s
 => CACHED [build 4/7] COPY go.sum ./                                                                                0.0s
 => CACHED [build 5/7] RUN go mod download                                                                                0.0s
 => CACHED [build 6/7] COPY . .                                                                                0.0s
 => ERROR [build 7/7] RUN make build-docker                                                                                73.7s
------
 > [build 7/7] RUN make build-docker:
18.28 go: no main packages to build
50.67 # sigs.k8s.io/controller-runtime/pkg/cache
50.67 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/cache/cache.go:412:58: fields.Selector does not implement comparable
50.67 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/cache/cache.go:442:20: fields.Selector does not implement comparable
50.67 note: module requires Go 1.20
60.71 # sigs.k8s.io/controller-runtime/pkg/cache
60.71 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/cache/cache.go:412:58: fields.Selector does not implement comparable
60.71 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.5/pkg/cache/cache.go:442:20: fields.Selector does not implement comparable
60.71 note: module requires Go 1.20
73.52 make: *** [Makefile:97: build-docker] Error 1
------
Dockerfile:24
--------------------
  22 |     # Build and test code
  23 |     COPY . .
  24 | >>> RUN make build-docker
  25 |
  26 |     FROM alpine:3.17
--------------------
ERROR: failed to solve: process "/bin/sh -c make build-docker" did not complete successfully: exit code: 2
root@VM-0-8-ubuntu:/home/ubuntu/usage-metrics-collector# go version
go version go1.22.3 linux/amd64
root@VM-0-8-ubuntu:/home/ubuntu/usage-metrics-collector#

root@VM-0-8-ubuntu:/home/ubuntu/usage-metrics-collector# kubectl get node
NAME                     STATUS   ROLES           AGE   VERSION
cluster1-control-plane   Ready    control-plane   27m   v1.29.2
cluster1-worker          Ready    <none>          26m   v1.29.2
cluster1-worker2         Ready    <none>          26m   v1.29.2
root@VM-0-8-ubuntu:/home/ubuntu/usage-metrics-collector# kind version
kind v0.23.0 go1.21.10 linux/amd64

/kind support

/triage accepted

/help

Have you tried using Go 1.20 to build?


set the templateRenderer.publicPath on the fly?  [vue-server-render]

What problem does this feature solve?
In some case, I need to set the publicPath base on the runtime. For example, I need to set the publicPath base on request.url and the environment。
But now I can only edit the source code to support that. So, how i wonder if it can be implemented officially. :)
btw, webpack support set the publicPath on the fly. ref
What does the proposed API look like?
const bundleRenderer = createBundleRenderer(serverBundle, {
    template,
    clientManifest,
    runInNewContext: false
})

//request handler
module.exports = async (request, response) => {

    const hostname = request.REQUEST.hostname;
    if(devMode) {
        domain = `${hostname}/proxy/`   cdnDomain;
    } else {
        domain = cdnDomain;
    }

    bundleRenderer.renderer.templateRenderer.publicPath = domain;

    const html = await bundleRenderer.renderToString(context)
    response.end(html)

}

+1
plz take a look

any status about this issue ?

Also would like to register my interest in this feature!
For some context:
I use publicPath to set the URL of the CDN I rely on (Cloudfront). I'm moving my app from Heroku to Docker on a VPS.
On Heroku, I did my Webpack builds as a postinstall script, as is pretty common for Heroku deploys of built applications. This meant that I could set an environment variable on my server, STATIC_PATH=http://path/to/cloudfront, that would get used at build time for the Webpack bundle. It was easy to just set Webpack's publicPath to be that variable in the config.
However, on my new setup, I'd like to pre-build my Webpack bundles, and have them copied into the Docker image as part of my Dockerfile. I've found this is a fairly standard pattern (either building as part of docker build, or pre-building and copying the build artifacts into the image).
An annoying thing about this is that I have to  set STATIC_URL when doing these Webpack  builds locally (or, eventually, on CI) to be the CDN URL, instead of being able to leave that configuration on my server. If Vue's server renderer could adjust the publicPath on the fly, it'd mean I could avoid this.
Thanks for the docs link about __webpack_public__path @loviselu, btw - my first assumption was that this wouldn't be possible on a Webpack level, but it seems like it should be doable.


Word: image sizes stretched

Code:
image::myimage.png[width=600]

In HTML it looks fine:

In Word it looks vertically stretched:

In particular, if I right-click on image and select "Size and Position" it shows this:

Notice the width is set to "28%" (this figure changes depending on the original image aspect ratio) -- if you press "Reset" it fixes the aspect ratio.

Fixed in isodoc and html2doc

Note that "auto" will not survive into DOC output (or for that matter HTML output): all images sizes are checked to see if they are too big for rendering, and will be populated in the process.


Database problems with startup and startup_lite

When I want to build a galaxy container with version 20.05 using especially startup_lite (both with quay.io/bgruening/galaxy and bgruening/galaxy):
#!/bin/bash

# install everything for workflow to work inside container

set -e
galaxy_instance="http://localhost:8080"

# launch the instance
echo "Starting Galaxy..."

export GALAXY_CONFIG_TOOL_PATH=/galaxy-central/tools/
startup_lite

I encounter this problem:
 * Starting PostgreSQL 11 database server
   ...done.
Checking if database is up and running
Traceback (most recent call last):
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
    cursor, statement, parameters, context
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedTable: relation "galaxy_user" does not exist
LINE 3: FROM galaxy_user
             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/check_database.py", line 25, in <module>
    query.count()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3669, in count
    return self.from_self(col).scalar()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3393, in scalar
    ret = self.one()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3360, in one
    ret = self.one_or_none()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3329, in one_or_none
    ret = list(self)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3405, in __iter__
    return self._execute_and_instances(context)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3430, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 984, in execute
    return meth(self, multiparams, params)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/sql/elements.py", line 293, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1103, in _execute_clauseelement
    distilled_params,
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1288, in _execute_context
    e, statement, parameters, cursor, context
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1482, in _handle_dbapi_exception
    sqlalchemy_exception, with_traceback=exc_info[2], from_=e
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
    raise exception
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
    cursor, statement, parameters, context
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "galaxy_user" does not exist
LINE 3: FROM galaxy_user
             ^

[SQL: SELECT count(*) AS count_1
FROM (SELECT galaxy_user.id AS galaxy_user_id, galaxy_user.create_time AS galaxy_user_create_time, galaxy_user.update_time AS galaxy_user_update_time, galaxy_user.email AS galaxy_user_email, galaxy_user.username AS galaxy_user_username, galaxy_user.password AS galaxy_user_password, galaxy_user.last_password_change AS galaxy_user_last_password_change, galaxy_user.external AS galaxy_user_external, galaxy_user.form_values_id AS galaxy_user_form_values_id, galaxy_user.deleted AS galaxy_user_deleted, galaxy_user.purged AS galaxy_user_purged, galaxy_user.disk_usage AS galaxy_user_disk_usage, galaxy_user.active AS galaxy_user_active, galaxy_user.activation_token AS galaxy_user_activation_token
FROM galaxy_user
WHERE galaxy_user.email = %(email_1)s) AS anon_1]
[parameters: {'email_1'<EMAIL_ADDRESS>
This error message keeps repeating himself with Waiting for database.
I am not mounting anything in the export folder. Does somebody else encounter this problem or know what I do wrong?

@bgruening I don't know if you have any idea about what might go wrong here?

It looks like the Galaxy DB is not yet created, which the check_database.py is expecting. I think the DB will be created while Galaxy is starting for the first time (at least since 20.05). As a quick „fix“ I think you could try to change https://github.com/galaxyproject/ansible-galaxy-extras/blob/3c6fe3585aa3b82d22f74a1c3eb59afc1a2a49c0/templates/startup_lite.sh.j2#L42 with something like this https://github.com/bgruening/docker-galaxy-stable/blob/cf2cafebd6aab759ecad11533a18a133a33c14fb/compose/galaxy-server/files/start.sh#L89 or just completely replace it with a long enough sleep 😄

Sadly this did not work :/ Could my problem be related to the changes in this commit?  @abretaud

@bedroesb I think Andreas' suggestion was to replace https://github.com/galaxyproject/ansible-galaxy-extras/blob/3c6fe3585aa3b82d22f74a1c3eb59afc1a2a49c0/templates/startup_lite.sh.j2#L42 with his suggestion. Did you do this, and if yes, what is the output you're seeing ?

@mvdbeek I misinterpreted the suggestion I think, so now I changed the line, changed  .gitmodules to refer to my changed one, and tried to build it. I am unfamiliar with the build process of galaxy stable, and was wondering if I could use the github actions to generate a final galaxy stable image like it does here that I could use to test on? Or am I not looking at the right generated image on docker.io?

That looks correct, at first glance it looks like some of the tests failed because they couldn't mount the cvmfs shares, and maybe that's why the tests failed ?

The suggestion gives:
Waiting for database
/usr/bin/startup_lite: line 44: nc: command not found

You might need to add a apt-get install netcat to your Dockerfile for it to work :)

ok step by step I will get there,  now it is complaining about
Waiting for database
postgres: forward host lookup failed: Unknown host

off course still using in ansible-galaxy-extras:
until nc -z -w 2 postgres 5432 && echo Postgres started; do sleep 1; echo "Waiting for database"; done

and adapted docker file
My try out containers are being pushed at: https://hub.docker.com/repository/docker/bedroesb/galaxy-stable
Thank you for the help btw!

So what the command does is to check if the host is available for requests. In the Docker Compose setup Postgres sits in another container (hostname postgres). As in galaxy-stable Postgres runs in the same container, you probably need to replace the hostname with something like <IP_ADDRESS> or localhost (so nc -z -w 2 <IP_ADDRESS> 5432...), though I personally didn‘t test it.

Ok this worked! This is great, I will open some PR with the changes. But for some reason I now stumble across the same problem as with 19.09 I described here #551, and that is that  ephemeris is not available when I am building on top of this base image.
shed-tools: command not found

galaxy-wait: command not found

Funny things is, If I go into the container interactively, I do have ephemeris on my path available?

The script I run in the container built looks like this:
#!/bin/bash

# install everything for workflow to work inside container

set -e
galaxy_instance="http://localhost:8080"

# launch the instance
echo "Starting Galaxy..."

export GALAXY_CONFIG_TOOL_PATH=/galaxy-central/tools/
startup_lite

# wait until galaxy has started
galaxy-wait -g $galaxy_instance

# run install as user galaxy
su - $GALAXY_USER

# install workflow
echo " - Extracting tools from workflows"
for w in `ls /workflowDir/*.ga | sort -r`
do
    echo $w
    workflow-to-tools -w $w -o /workflowDir/wftools.yaml -l "Tools from workflows"
    echo " - Installing tools from workflow"
    n=0
    until [ $n -ge 3 ]
    do
        shed-tools install -t /workflowDir/wftools.yaml -g $galaxy_instance -u $GALAXY_DEFAULT_ADMIN_USER -p $GALAXY_DEFAULT_ADMIN_PASSWORD && break
        n=$[$n+1]
        sleep 5
        echo " - Retrying shed-tools install "
    done
    echo " - Installing workflow"
    workflow-install --publish_workflows --workflow_path $w -g $galaxy_instance -u $GALAXY_DEFAULT_ADMIN_USER -p $GALAXY_DEFAULT_ADMIN_PASSWORD

done

ok I solved it by adding GALAXY_CONDA_PREFIX=/tool_deps/_conda  export PATH=$GALAXY_CONDA_PREFIX/bin/:$PATH to my build script, thanks to @ieguinoa
It is all working now. Thank you all very much

I have now sadly new problems:
When I run my image with galaxy-stable as base image, I have following error:
Starting postgres
postgresql: ERROR (spawn error)
Checking if database is up and running
Traceback (most recent call last):
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2285, in _wrap_pool_connect
    return fn()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 363, in connect
    return _ConnectionFairy._checkout(self)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 773, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 492, in checkout
    rec = pool._do_get()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 139, in _do_get
    self._dec_overflow()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__
    exc_value, with_traceback=exc_tb,
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
    raise exception
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 136, in _do_get
    return self._create_connection()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 308, in _create_connection
    return _ConnectionRecord(self)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 437, in __init__
    self.__connect(first_connect_check=True)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 657, in __connect
    pool.logger.debug("Error on connect(): %s", e)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__
    exc_value, with_traceback=exc_tb,
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
    raise exception
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 652, in __connect
    connection = pool._invoke_creator(self)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect
    return dialect.connect(*cargs, **cparams)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 490, in connect
    return self.dbapi.connect(*cargs, **cparams)
  File "/galaxy_venv/lib/python3.7/site-packages/psycopg2/__init__.py", line 126, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not connect to server: Connection refused
        Is the server running on host "localhost" (<IP_ADDRESS>) and accepting
        TCP/IP connections on port 5432?
could not connect to server: Cannot assign requested address
        Is the server running on host "localhost" (::1) and accepting
        TCP/IP connections on port 5432?
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/local/bin/check_database.py", line 25, in <module>
    query.count()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3669, in count
    return self.from_self(col).scalar()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3393, in scalar
    ret = self.one()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3360, in one
    ret = self.one_or_none()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3329, in one_or_none
    ret = list(self)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3405, in __iter__
    return self._execute_and_instances(context)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3427, in _execute_and_instances
    querycontext, self._connection_from_session, close_with_result=True
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3442, in _get_bind_args
    mapper=self._bind_mapper(), clause=querycontext.statement, **kw
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3420, in _connection_from_session
    conn = self.session.connection(**kw)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1133, in connection
    execution_options=execution_options,
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/orm/session.py", line 1142, in _connection_for_bind
    conn = engine._contextual_connect(**kw)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2251, in _contextual_connect
    self._wrap_pool_connect(self.pool.connect, None),
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2289, in _wrap_pool_connect
    e, dialect, self
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 1555, in _handle_dbapi_exception_noconnection
    sqlalchemy_exception, with_traceback=exc_info[2], from_=e
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
    raise exception
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/base.py", line 2285, in _wrap_pool_connect
    return fn()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 363, in connect
    return _ConnectionFairy._checkout(self)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 773, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 492, in checkout
    rec = pool._do_get()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 139, in _do_get
    self._dec_overflow()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__
    exc_value, with_traceback=exc_tb,
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
    raise exception
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/impl.py", line 136, in _do_get
    return self._create_connection()
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 308, in _create_connection
    return _ConnectionRecord(self)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 437, in __init__
    self.__connect(first_connect_check=True)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 657, in __connect
    pool.logger.debug("Error on connect(): %s", e)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/langhelpers.py", line 69, in __exit__
    exc_value, with_traceback=exc_tb,
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/util/compat.py", line 178, in raise_
    raise exception
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/pool/base.py", line 652, in __connect
    connection = pool._invoke_creator(self)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect
    return dialect.connect(*cargs, **cparams)
  File "/galaxy_venv/lib/python3.7/site-packages/sqlalchemy/engine/default.py", line 490, in connect
    return self.dbapi.connect(*cargs, **cparams)
  File "/galaxy_venv/lib/python3.7/site-packages/psycopg2/__init__.py", line 126, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused
        Is the server running on host "localhost" (<IP_ADDRESS>) and accepting
        TCP/IP connections on port 5432?
could not connect to server: Cannot assign requested address
        Is the server running on host "localhost" (::1) and accepting
        TCP/IP connections on port 5432?
(Background on this error at: http://sqlalche.me/e/e3q8)

and when I use workflow-install --publish_workflows --workflow_path $w -g $galaxy_instance -a $GALAXY_CONFIG_MASTER_API_KEY  i get:
Traceback (most recent call last):
  File "/export/tool_deps/_conda/bin/workflow-install", line 10, in <module>
    sys.exit(main())
  File "/tool_deps/_conda/lib/python2.7/site-packages/ephemeris/workflow_install.py", line 48, in main
    import_workflow(gi, args.workflow_path, args.publish_workflows)
  File "/tool_deps/_conda/lib/python2.7/site-packages/ephemeris/workflow_install.py", line 20, in import_workflow
    gi.workflows.import_workflow_from_local_path(path, publish=publish_wf)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxy/workflows/__init__.py", line 165, in import_workflow_from_local_path
    return self.import_workflow_dict(workflow_json, publish)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxy/workflows/__init__.py", line 122, in import_workflow_dict
    return self._post(url=url, payload=payload)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxy/client.py", line 152, in _post
    files_attached=files_attached)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxyclient.py", line 159, in make_post_request
    body=r.text, status_code=r.status_code)
bioblend.ConnectionError: Unexpected HTTP status code: 500: {"err_msg": "Uncaught exception in exposed API method:", "err_code": 0}
Traceback (most recent call last):
  File "/export/tool_deps/_conda/bin/workflow-install", line 10, in <module>
    sys.exit(main())
  File "/tool_deps/_conda/lib/python2.7/site-packages/ephemeris/workflow_install.py", line 48, in main
    import_workflow(gi, args.workflow_path, args.publish_workflows)
  File "/tool_deps/_conda/lib/python2.7/site-packages/ephemeris/workflow_install.py", line 20, in import_workflow
    gi.workflows.import_workflow_from_local_path(path, publish=publish_wf)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxy/workflows/__init__.py", line 165, in import_workflow_from_local_path
    return self.import_workflow_dict(workflow_json, publish)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxy/workflows/__init__.py", line 122, in import_workflow_dict
    return self._post(url=url, payload=payload)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxy/client.py", line 152, in _post
    files_attached=files_attached)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxyclient.py", line 159, in make_post_request
    body=r.text, status_code=r.status_code)
bioblend.ConnectionError: Unexpected HTTP status code: 500: {"err_msg": "Uncaught exception in exposed API method:", "err_code": 0}
Traceback (most recent call last):
  File "/export/tool_deps/_conda/bin/workflow-install", line 10, in <module>
    sys.exit(main())
  File "/tool_deps/_conda/lib/python2.7/site-packages/ephemeris/workflow_install.py", line 48, in main
    import_workflow(gi, args.workflow_path, args.publish_workflows)
  File "/tool_deps/_conda/lib/python2.7/site-packages/ephemeris/workflow_install.py", line 20, in import_workflow
    gi.workflows.import_workflow_from_local_path(path, publish=publish_wf)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxy/workflows/__init__.py", line 165, in import_workflow_from_local_path
    return self.import_workflow_dict(workflow_json, publish)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxy/workflows/__init__.py", line 122, in import_workflow_dict
    return self._post(url=url, payload=payload)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxy/client.py", line 152, in _post
    files_attached=files_attached)
  File "/tool_deps/_conda/lib/python2.7/site-packages/bioblend/galaxyclient.py", line 159, in make_post_request
    body=r.text, status_code=r.status_code)
bioblend.ConnectionError: Unexpected HTTP status code: 500: {"err_msg": "Uncaught exception in exposed API method:", "err_code": 0}

after also changing startup.sh.j2 in PR https://github.com/galaxyproject/ansible-galaxy-extras/pull/244 :
Starting postgres
postgresql: ERROR (already started)
Checking if database is up and running
Waiting for database
Waiting for database
Waiting for database

postgresql: ERROR (spawn error)

and

postgresql: ERROR (already started)

Seem a bit odd to me, I‘m not sure it has something to do with the change in the PR 🤔 Is Postgres already started from a different script or do you run it twice somehow?

Ok I finally got a way of installing the workflows in a reliable way, and it even works on the current version of quay.io/bgruening/galaxy:20.05 ! I discovered that if you make use of the install_tools_wrapper.sh to install tools, there are not really problems. So I basically used the code in that wrapper to set up the database/galaxy :
#!/bin/bash

# Enable Test Tool Shed
echo "Enable installation from the Test Tool Shed."
export GALAXY_CONFIG_TOOL_SHEDS_CONFIG_FILE=$GALAXY_HOME/tool_sheds_conf.xml

. /tool_deps/_conda/etc/profile.d/conda.sh
conda activate base

if pgrep "supervisord" > /dev/null
then
    echo "System is up and running. Starting with the installation."
    export PORT=80
else
    # start Galaxy
    export PORT=8080
    service postgresql start
    install_log='galaxy_install.log'

    # wait for database to finish starting up
    STATUS=$(psql 2>&1)
    while [[ ${STATUS} =~ "starting up" ]]
    do
      echo "waiting for database: $STATUS"
      STATUS=$(psql 2>&1)
      sleep 1
    done

    echo "starting Galaxy"
    # Unset SUDO_* vars otherwise conda run chown based on that
    sudo -E -u galaxy -- bash -c "unset SUDO_UID; \
        unset SUDO_GID; \
        unset SUDO_COMMAND; \
        unset SUDO_USER; \
        ./run.sh -d $install_log --pidfile galaxy_install.pid --http-timeout 3000"

    galaxy_install_pid=`cat galaxy_install.pid`
    galaxy-wait -g http://localhost:$PORT -v --timeout 120
fi

# Create the admin user if not already done
# Starting with 20.05 this user is only created at first startup of galaxy
# We need to create it here for Galaxy Flavors = installing from Dockerfile
if [[ ! -z $GALAXY_DEFAULT_ADMIN_USER ]]
    then
        (
        cd $GALAXY_ROOT
        . $GALAXY_VIRTUAL_ENV/bin/activate
        echo "Creating admin user $GALAXY_DEFAULT_ADMIN_USER with key $GALAXY_DEFAULT_ADMIN_KEY and password $GALAXY_DEFAULT_ADMIN_PASSWORD if not existing"
        python /usr/local/bin/create_galaxy_user.py --user "$GALAXY_DEFAULT_ADMIN_EMAIL" --password "$GALAXY_DEFAULT_ADMIN_PASSWORD" \
        -c "$GALAXY_CONFIG_FILE" --username "$GALAXY_DEFAULT_ADMIN_USER" --key "$GALAXY_DEFAULT_ADMIN_KEY"
        )
fi

and this to close off the database/galaxy after installation of the tools/workflows/datalibraries using ephemeris:
if [ $exit_code != 0 ] ; then
    if [ "$2" == "-v" ] ; then
        echo "Installation failed, Galaxy server log:"
        cat $install_log
    fi
    exit $exit_code
fi

if ! pgrep "supervisord" > /dev/null
then
    # stop everything
    sudo -E -u galaxy ./run.sh --stop --pidfile galaxy_install.pid
    rm $install_log
    service postgresql stop
fi

And this gives almost no problems (besides sometimes an API HTTP connection error which appears randomly) and I managed to update the covid-19 workflow container to 20.05 with success.
I am now wondering, do I keep the subtle edits to startup_lite in my other PRs or do I close them and we forget about this way of installing things :) ?

Thanks to @jyotipm29 we are back on track :smile:
The new 24.1 image contains a lot of changes and reflects the latest developments in Galaxy. I would like to close this PR, but please feel free to reopen and rebase against the latest version.
Please give it a try:
docker run -p 8080:80 -p 8021:21 -p 4002:4002 --privileged=true -e "GALAXY_DESTINATIONS_DEFAULT=slurm_cluster_docker"   -v /tmp/galaxy-data/:/export/ quay.io/bgruening/galaxy:24.1

... or any other combination. The readme has been updated. Please add any useful tip to it.
For a list of changes, see the Changelog.

@bgruening THis is really great news! Can't wait to update the GTN images and all the other ones, once I have time.


I managed to connect to the server but when i send a request i am getting no authorisation, can you please assist

Connected to upstream <IP_ADDRESS>:22000!
2019-12-30 10:07:53 - info: Processing queue [pending 0 / total 1]
2019-12-30 10:07:53 - verbose: Queue keys dump: 0
2019-12-30 10:07:53 - info: Got data from ISO-host (17b)
2019-12-30 10:07:53 - verbose: [NO.AUTHO...]
2019-12-30 10:07:53 - info: Processing queue [pending 0 / total 1]
2019-12-30 10:07:53 - verbose: Queue keys dump: 0
2019-12-30 10:07:53 - info: Upstream
2019-12-30 10:07:53 - info: Upstream
2019-12-30 10:07:53 - info: Dropping all active clients
#this is what i am getting

Hi!
"NO.AUTHORIZATION." — this is what the ISO host or some part of the networking infrastructure says. I have discussed the same case with other user before, and it was a problem on the network layer, that he solved successfuly. Nothing to do with SocketQueue here.
You may use --dangerous key to get the full message.


SEO lang attribute - optimizations throughout

No pages, posts, or AMP posts are currently marked-up with lang="iso-code", working to resolve and correct this for our English, Japanese, and other versions.
More to come.

Reviewed this with @dan-auth0 and all checks out for launching MVP v1
MVP v2 will resolve and fix AMP lang attributes.


improve shared targets/properties

Shared targets should be moved out of properties.xml into a dedicated build
file. properties.xml is not intended to hold anything else but properties.
Shared properties that hold a filename should be defined against a root.
Currently they are defined as relative paths and are not usable from different
file roots.
Environment
Operating System: All
Platform: Macintosh
Affected Versions
[current]
Source: https://github.com/javaee/metro-wsit/issues/272
Author: glassfishrobot

obsolete


Installation problems.

I just set up an october project (created a project online and bought the headstart plugin - connected it to my new project).
When I want to install the project - I get an error. Database can not be accessed. And this error comes fom the nocio/headstart plugin.
I tried the installation without the plugin and it works fine.
When I search now for ”headstart" in the plugin shop of my new october installation - it does not find headstart... .
What can this be?

Hi, sorry for the issues. Are you sure you've set up a database for your October installation correctly? October generally does not require a database, so installations may work without issues. Headstart, however, requires a database.
Could you provide the full stack-trace (or screenshot of the error page) for the Database cannot be accessed error so I can see which file it originates from?

Hey! I install october via the wizard intallation: https://octobercms.com/docs/setup/installation#wizard-installation
All works fine until it wants to setup the headstart plugin:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (SQL: select * from system_settings where item = nocio_headstart_settings limit 1)
But the sql connection is right. Without headstart plugin in works just fine. And  password no is not right. I use a password...

This looks like a general database connection issue. It happens when you navigate on the settings page right? Can you edit your config/database.php or .env settings to change the localhost to <IP_ADDRESS> (or in the installation wizard change it under Advanced settings). On some servers, the loop address resolution is a bit strange.

No - I do not browse anywhere. Because I dont come to the admin area. The installation of the whole system fails on "Building configuration files". I inserted everwhere <IP_ADDRESS> instead of localhost - but the problem stays.

If you can't access the admin area, how did you install Headstart?

I connected it via the october-website. I tried to install headstart from a fresh october installation. But then I can not find headstart. Maybe headstart is not compatible with the newest october?

I see. Could you install October and the User plugin first and see whether that works without issues and then use the settings to connect the project with the Headstart plugin.
Also, what October build are you using. It might be that you are on a newer version with a newer Laravel. I'll try and see if there were any breaking changes in the latest version.
Thanks

That worked - thank u!

Great! Thanks for the feedback.


Allow specifying a Python interpreter for gulp

I always work with multiple python installs.
The current gulp file for ipywidgets uses the Python interpreter to fetch the notebook static directory. It assumes that we use the python interpreter which is in PATH.
This change allows specifying which Python interpreter to use when running gulp css.

Thanks @SylvainCorlay


Unable to create new partitions after rolling upgrade on table that had index.warmer.enabled = TRUE

CrateDB version
5.7.5 / 5.8.5 / 5.9.5
CrateDB setup information
Three nodes locally using Docker compose:
services:
  cratedb01:
    image: crate:5.7.5
    ports:
      - "4201:4200"
      - "5532:5432"
    volumes:
      - /tmp/crate/hot-01:/data
    command: ["crate",
              "-Ccluster.name=crate-docker-cluster",
              "-Cnode.name=cratedb01",
              "-Cnetwork.host=_site_",
              "-Cdiscovery.seed_hosts=cratedb02,cratedb03",
              "-Ccluster.initial_master_nodes=cratedb01,cratedb02,cratedb03",
              "-Cgateway.expected_nodes=3",
              "-Cgateway.recover_after_nodes=2"]

  cratedb02:
    image: crate:5.7.5
    ports:
      - "4202:4200"
      - "5632:5432"
    volumes:
      - /tmp/crate/hot-02:/data
    command: ["crate",
              "-Ccluster.name=crate-docker-cluster",
              "-Cnode.name=cratedb02",
              "-Cnetwork.host=_site_",
              "-Cdiscovery.seed_hosts=cratedb01,cratedb03",
              "-Ccluster.initial_master_nodes=cratedb01,cratedb02,cratedb03",
              "-Cgateway.expected_nodes=3",
              "-Cgateway.recover_after_nodes=2"]

  cratedb03:
    image: crate:5.7.5
    ports:
      - "4203:4200"
      - "5732:5432"
    volumes:
      - /tmp/crate/hot-03:/data
    command: ["crate",
              "-Ccluster.name=crate-docker-cluster",
              "-Cnode.name=cratedb03",
              "-Cnetwork.host=_site_",
              "-Cdiscovery.seed_hosts=cratedb01,cratedb02",
              "-Ccluster.initial_master_nodes=cratedb01,cratedb02,cratedb03",
              "-Cgateway.expected_nodes=3",
              "-Cgateway.recover_after_nodes=2"]

Problem description
A table was created on 5.7.5 with warmer.enabled = TRUE. After resetting that parameter and a rolling upgrade to 5.8.5, creating new partitions on that table is no longer possible.
Steps to Reproduce
Start with a three-node cluster, all nodes on 5.7.5. Then create a table with warmer.enabled = TRUE and populate it:
CREATE TABLE IF NOT EXISTS metrics (
   "ts" TIMESTAMP WITH TIME ZONE NOT NULL,
   "ts_month" TIMESTAMP WITH TIME ZONE GENERATED ALWAYS AS date_trunc('month', "ts") NOT NULL,
   "value" INTEGER,
   PRIMARY KEY ("ts", "ts_month")
)
PARTITIONED BY ("ts_month")
WITH ("warmer.enabled" = TRUE);

INSERT INTO metrics (ts, value) VALUES ('2024-02-01 12:00:00', 1);
INSERT INTO metrics (ts, value) VALUES ('2024-02-01 13:00:00', 1);
INSERT INTO metrics (ts, value) VALUES ('2024-02-01 14:00:00', 1);

Next, we reset warmer.enable back to the default value:
ALTER TABLE metrics RESET ("warmer.enabled");

Now, perform a rolling upgrade to 5.8.5 by updating the CrateDB version number in the Docker compose configuration one by one.
Important: In each intermediate state (i.e. after updating each node), perform further INSERT statements on old and new partitions. Then continue with the next node until the cluster is fully on 5.8.5.
Once the cluster is on 5.8.5, try creating yet another new partition:
-- would create a new partition
INSERT INTO metrics (ts, value) VALUES ('2027-02-01 20:00:00', 1);

Upgrading further to 5.9.5 doesn't change the issue.
Workaround: A full cluster restart appears to resolve the issue.
Actual Result
The partition is not created and an exception is thrown:
io.crate.exceptions.SQLParseException: unknown setting [index.warmer.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
	at io.crate.exceptions.SQLExceptions.esToCrateException(SQLExceptions.java:211)
	at io.crate.exceptions.SQLExceptions.prepareForClientTransmission(SQLExceptions.java:200)
	at io.crate.rest.action.SqlHttpHandler.sendResponse(SqlHttpHandler.java:162)
	at io.crate.rest.action.SqlHttpHandler.lambda$channelRead0$0(SqlHttpHandler.java:117)
	at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
	at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194)
	at io.crate.rest.action.RestRowCountReceiver.fail(RestRowCountReceiver.java:84)
	at io.crate.action.sql.RowConsumerToResultReceiver.accept(RowConsumerToResultReceiver.java:63)
	at io.crate.planner.operators.InsertFromValues.lambda$execute$2(InsertFromValues.java:304)
	at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
	at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194)
	at io.crate.action.FutureActionListener.onFailure(FutureActionListener.java:40)
	at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction.lambda$doStart$2(TransportMasterNodeAction.java:173)
	at org.elasticsearch.action.ActionListener$7.onFailure(ActionListener.java:294)
	at org.elasticsearch.action.ActionListener$2.onFailure(ActionListener.java:106)
	at org.elasticsearch.action.ActionListener.accept(ActionListener.java:55)
	at org.elasticsearch.action.ActionListener.accept(ActionListener.java:38)
	at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
	at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194)
	at org.elasticsearch.cluster.AckedClusterStateUpdateTask.onFailure(AckedClusterStateUpdateTask.java:96)
	at org.elasticsearch.cluster.service.MasterService$SafeClusterStateTaskListener.onFailure(MasterService.java:477)
	at org.elasticsearch.cluster.service.MasterService$TaskOutputs.notifyFailedTasks(MasterService.java:404)
	at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:176)
	at org.elasticsearch.cluster.service.MasterService.lambda$doStart$0(MasterService.java:121)
	at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:170)
	at org.elasticsearch.cluster.service.BatchedTask.run(BatchedTask.java:70)
	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: java.lang.IllegalArgumentException: unknown setting [index.warmer.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
	at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:421)
	at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:362)
	at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:333)
	at org.elasticsearch.indices.IndicesService.createIndexService(IndicesService.java:437)
	at org.elasticsearch.indices.IndicesService.createIndex(IndicesService.java:364)
	at org.elasticsearch.action.admin.indices.create.TransportCreatePartitionsAction.executeCreateIndices(TransportCreatePartitionsAction.java:237)
	at org.elasticsearch.action.admin.indices.create.TransportCreatePartitionsAction.lambda$new$0(TransportCreatePartitionsAction.java:102)
	at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:665)
	at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:280)
	at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:175)
	... 8 more

Expected Result
Successful creation of a new partition.

Maybe related to https://github.com/crate/crate/pull/16356 (we had a regression caused by removal of the warmer.enabled setting)

The fix in #16356 checks that the index in question was created in an older version; I think the fact that this is a new partition is bypassing that check, and so rather than logging and ignoring the warning we get an exception.
I think ideally we would just remove the offending setting from the index metadata, but that may get complicated in mixed-version clusters.

Looks like template is not being upgraded.
I thought it's somehow related to https://github.com/crate/crate/commit/c8edfff8fe7713b071841b9db1aea26e3f500245 but reproduction scenario in https://github.com/crate/crate-qa/pull/330 passes without RESET, ie it RESET seems to be somehow important to cause an error.
Added some dummy throw IllegalArgumentException: in the template upgrade code and run crate-qa with   UpgradePath('5.7.x', '/path/to/local/crate'), and got
Caused by: java.lang.IllegalArgumentException: Template upgrade!
        at org.elasticsearch.plugins.MetadataUpgrader.lambda$new$1(MetadataUpgrader.java:49) ~[crate-server-5.10.0.jar:?]
        at org.elasticsearch.gateway.GatewayMetaState.applyPluginUpgraders(GatewayMetaState.java:272) ~[crate-server-5.10.0.jar:?]
        at org.elasticsearch.gateway.GatewayMetaState.upgradeMetadata(GatewayMetaState.java:230) ~[crate-server-5.10.0.jar:?]
        at org.elasticsearch.gateway.GatewayMetaState.upgradeMetadataForNode(GatewayMetaState.java:210) ~[crate-server-5.10.0.jar:?]
        at org.elasticsearch.gateway.GatewayMetaState.start(GatewayMetaState.java:138) ~[crate-server-5.10.0.jar:?]
        at org.elasticsearch.node.Node.start(Node.java:1051) ~[crate-server-5.10.0.jar:?]

so template upgrade code is being called in GatewayMetaState. Checking what's special about RESET case. It's a bit strange that it matters given that warmer.enabled has default value (but set explicitly) and RESET is basically no-op in such case.

Checking what's special about RESET case.

There is another issue where version created might be a problem for partitioned tables and according to @jeeminso he managed to get multiple versions created values for a partitioned table using alter table statements
Nevertheless, this should work regardless of version_created being problematic or not - we must ensure that upgrade logic kicks in when required.
This means that ideally not only templates must be fixed via upgrade in proper place (this issue) but also indices must always go through upgrade (when needed) on mixed clusters. Hence, https://github.com/crate/crate/pull/16356 must be reverted and instead we need do upgrade index metadata in a way that we never even encounter unknown settings after upgrade.


Canot parse select concat((select case when create_date_time < sysdate() then '123' end from dual), 'abc') as test from t

select concat((select case when create_date_time < sysdate() then '123' end from dual), 'abc') as test from t
will get the parse exception:
JSQLParserException: Encountered unexpected token: "(" "("
at line 1, column 14.

Definitely works with 4.1 latest git, I have just tried.

It works with 4.0 release. So check, which version you are using.

Can't we close this now?


Logging

Should add logging to the cli to keep user updated on what's happening. More debug statements would be good too

Liberal sprinkling of logging.debug() and logging.info() calls into the code is not a bad idea.


cs2pr suddenly missing

Describe the bug
I'm suddenly getting this message in my builds:
chmod: cannot access '/usr/local/bin/cs2pr': No such file or directory
Version

[x] I have checked releases, and the bug exists in the latest patch version of v1 or v2.
[x] v2
[ ] v1

Runners

[x] GitHub Hosted
[ ] Self Hosted

Operating systems
ubuntu-22.04
PHP versions
PHP 8.2
To Reproduce
https://github.com/doctrine/orm/blob/2.14.x/.github/workflows/static-analysis.yml#L47
Expected behavior
cs2pr should be present
Screenshots/Logs
https://github.com/doctrine/orm/actions/runs/4515206785/jobs/7952245965?pr=10405#step:3:16
Additional context
Might be an issue with an upstream repo?
Are you willing to submit a PR?
I wouldn't know where to start

I'm seeing the same issue right now.
It appears that GitHub's user content certificate has expired, which may be impacting the retrieval of the PHAR from https://github.com/staabm/annotate-pull-request-from-checkstyle

And it seems to be resolved now. :)


Best parameters for decomposing a gear

I'm trying to decompose this gear:

Using the following parameters:

resolution                              	64000000
max. concavity                          	0
plane down-sampling                     	4
convex-hull down-sampling               	4
alpha                                   	0.05
beta                                    	0.05
maxhulls                                	1024
pca                                     	0
mode                                    	0
max. vertices per convex-hull           	64
min. volume to add vertices to convex-hulls 	0.0001

I obtained the result below:

How should I improve the quality of the decomposition?
I would like that the central hole will be as circular as possible.

Try increasing the resolution, the number of points per CH, the number of
convex hulls and decrease the minimum volume
On Fri, Feb 22, 2019 at 6:53 AM Andrea Incerti Delmonte <
<EMAIL_ADDRESS>wrote:

I'm trying to decompose this gear:
https://user-images.githubusercontent.com/12040383/53249221-e3c89800-36b7-11e9-8c7b-cb2c49496209.png
Using the following parameters:

resolution 64000000
max. concavity 0
plane down-sampling 4
convex-hull down-sampling 4
alpha 0.05
beta 0.05
maxhulls 1024
pca 0
mode 0
max. vertices per convex-hull 64
min. volume to add vertices to convex-hulls 0.0001

I obtained the result below:
https://user-images.githubusercontent.com/12040383/53249827-5ede7e00-36b9-11e9-999d-2c4268db36ac.png
How should I improve the quality of the decomposition?
I would like that the central hole will be as circular as possible.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kmammou/v-hacd/issues/59, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEulzTcjtTnT1Yzwj4UQsmUefIVExd2aks5vQARZgaJpZM4bJwSD
.


Mail notification on commit

Gitea version (or commit ref): 1.9.3
Git version: 2.22.1
Operating system: Arch Linux
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist:
None

Description
I don't know how should it works but I don't get mail notifications about new commits.
I have repo in my watchlist it's starred too.
I'm member of team where repo is.
I have correct mail address and mail server setup (test mail works).
In config file is enabled DEFAULT_EMAIL_NOTIFICATIONS and ENABLE_NOTIFY_MAIL

I don't think this is implemented yet. There is discussion (and possibly a fork with this) along with other notification improvements over at https://github.com/go-gitea/gitea/issues/145

We needs a PR to implement that.

I remember one of @guillep2k 's PR will fix this.

@lunny Sorry, my PRs were about updating references from commit messages, but commits do not send mail notifications per-se. CommitRepoAction() should handle this, and it creates an action through models.NotifyWatchers, but mails are not generated AFAIK.

Implement NotifyPushCommits will resolve the issue?

It looks like most of CommitRepoAction should be moved to notifications. But for a minimal implementation yes, NotifyPushCommits would be enough.

Bump!

On top of that, a visual indicator in the PR's conversation about new commit would also help.

As a workaround for mailing pushing events, I have created a minimal Java Service to handle a push webhook and map it to mail.
It needs a lot of customization but it can be a workaround for small projects.
For anyone who is interested: https://github.com/alam-R/giteaWebhookMailProxy
Cheers!

any news on this ?

Closing this as emails happen on commits (at least to PRs), and they are added to PR conversations.


Rows don't preserve their specified order

Although the outline is specified as an array, the row doesn't appear to preserve the intended order
Original message from @Manoj-Nagarajan:

Hello... i was able to convert json file to a csv file using the steps in the read me file. Thanks a lot for sharing the same. When i convert the json to csv, the output is stored in alphabetical order. Is there any way, which can convert to same order as the soure...
Example :
Source : id, name ,b1_test, url, a1_test . Result is stored in below format in csv file.
Result : a1_test, b1_test, id, name , url
But i want the output csv in below format.
Result : id, name ,b1_test, url, a1_test.
Can you suggest if the same is possible . Thank you in advance...

@Manoj-Nagarajan I'm not sure why you're having that problem. As currently implemented, if I re-order the map fields in the outline.json, the CSV will be output in the new order.
If you re-order the fields in the outline and you're still getting this error, please provide more details. If that solves your issue, please close this ticket.

Missing additional details and it's been two years.


some advices

I see that the API related to placing an order is not implemented. It is recommended to expose transport.Http object so that users can realize some functions they do not have!!

fixed in #27


Custom error message for required fields

Hi, is there a way to define a custom error message for when a required field is empty?  The default "Please fill out this field" is fine in Chrome & Firefox, but in Safari it just says "value missing", which I'd like to change to something more customer-friendly. Is there a way to do this without defining a custom validator?

At the moment, your only option is to set data-native-error on your field to the message, but keep in mind that if you have other built-in validators (like type="email" or pattern) their error messages will be overtaken as well.
This is something I'll address in the next version with the approach in #218.

Great to hear, thanks!

Please do that !


Hot-fix NCCL CUDA Graphs bug

Modulus Pull Request
Description
Closes #107
The workaround fix adds a time delay between the warmup steps and the start of the graph capture to allow enough time for NCCL watchdog to clean-up work. The fix was stress tested against AFNO example from Modulus Launch, and it passed 10/10 times.
Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[x] The documentation is up to date with these changes.
[x] The CHANGELOG.md is
up to date with these changes.

Dependencies

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci


Image cut after rotation and vertical alignment

Hello,
In the doc page : http://foliotek.github.io/Croppie/#documentation

the exemple with the dog picture fail when we rotate left/right and drag down :

Result image is not complete :

the merged #326 doesn't fix this.

+1

+1

Closing this in favor of #293 since it's older.
Couple things to add:

I can't get this to happen.  And #293 has lost steam, which leads me to believe this is resolved.
+1's are a thing of the past.  Github added reactions to alleviate this.  If you want to +1 in the future, just give the issue a thumbs up.


TileLayer: add preload again except for GeoResources containing timestamps (#108065)

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

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.693%

Totals

Change from base Build<PHONE_NUMBER>0:
0.0%

Covered Lines:
13416

Relevant Lines:
13417

💛  - Coveralls


Build stopped deploying to AWS amplify

We have deployed our white label React based applications using AWS Amplify. We update build very frequently and it take almost 5-6 minutes to complete a build.
But my builds have stopped deploying to the server today and I don't understand what could be the issue.
Please clarify what could be the reason for this. Our application is in production and we are concerned if something is wrong with our setup.
Here is the app details :
App Id : dodkejkakumhf
App region : ap-southeast-2
I am attaching a screenshot for your reference.

Thanks,

Hi @ParulSharma2622 👋🏽 it looks like an AppSync API key is missing. Is it possible that the API key has been deleted recently? Also, try running amplify push locally to confirm that your backend environment can be properly updated.

Hi, thanks for your comment. Please check the attached screenshot to see what error I am facing when I run amplify push

@hloriana are you still looking into this bug. It's critical, we are not able to deploy the code on production envs.

This is resolved, thanks.


Powered Armor speed not replacing actor's speed

Like the strength score, a player in powered armor uses the speed of the powered armor in place of their own. Currently this does not appear to be reflected on the character sheet.

Known issue, but thank you for officially posting it. We got limited programmers, and a lot on the table. So it's a game of ketchup we are unable to win at the moment. Hoping more Programmers get interesting in helping.


BuildkiteAgentToken vs BuildkiteAgentTokenParameterStorePath clarity.

Clarify BuildkiteAgentToken vs BuildkiteAgentTokenParameterStorePath in the stack parameter descriptions.
I don't think BuildkiteAgentToken is clearly deprecated (yet?), so don't mention that here just now.
I think we should first revisit the dynamics/security of CloudFormation NoEcho parameters, and the ability to create encrypted SSM Parameter Store parameters from CloudFormation.
When BuildkiteAgentToken is provided, we currently store it in SSM Parameter Store anyway:
  BuildkiteAgentTokenParameter:
    Type: AWS::SSM::Parameter
    Condition: CreateAgentTokenParameter
    Properties:
      Name: !Sub "/${AWS::StackName}/buildkite/agent-token"
      Type: String
      Value: !Ref BuildkiteAgentToken

But it's stored unencrypted, which I suspect was a limitation of CloudFormation : SSM integration. Maybe that's improved?
Also, one of the reasons BuildkiteAgentTokenParameterStorePath was introduced (https://github.com/buildkite/elastic-ci-stack-for-aws/pull/601) was because managing a NoEcho BuildkiteAgentToken parameter in this stack via Terraform resulted in problems which sound more like a Terraform bug, which may or may not have been fixed since.
So — I propose we clarify the descriptions a little and un-deprecate BuildkiteAgentToken until we're sure of its fate.

The CI build is stuck on due to an issue we're investigating re. latest Amazon Linux 2 AMI running on Nitro EC2 instances, but I'm confident updating these CloudFormation parameter descriptions is safe, so 🚀


Fix race condition in unit test

The chardet's encoding detection has a race condition when there are multiple encodings with equally-good matches. This occasionally caused a test that I added in #442 to fail.

LGTM

LGTM


Constituents listed as “Unknown” are not creators of artworks and they shouldn’t be mapped

Constituents who are creators of SAAM artworks have one of the following three codes: verified, candidate, or provisional in the WebConstituents table –only constituents with one of these three codes are selected for the web)
See #30 and #34

Is this still blocking?  Does the mapping need to be fixed?

I don't believe ISI has implemented this yet.

I believe this means the mapping should ignore the records with values blank and "Unidentified ..." in the Maker field of the WebMakers_view file. Please tell me if I am wrong.
If it is correct, do we have a list of such values to ignore?

Unidentified constituents should be mapped along with all of the other constituents who are creators of artworks.
Constituents who are creators of SAAM artworks have one of the following three codes: verified, candidate, or provisional in the WebConstituents table –only constituents with one of these three codes should be mapped.
Constituents without one of the three codes: verified, candidate, or provisional should not be mapped.

As mentioned in #30, there are some constituents that are in the WebConAltNames file that are not in any other file. Every constituent in the WebConstituents_person_view seems to have one of the three codes. So the additional constituents in the WebConAltNames file are the ones creating the issue. If these are not to be included in the mapping, only those constituents that are in the WebConstituents_person_view file should be included in WebConAltNames file. All the additional constituents have to be removed from the WebConAltNames file.

Hi @rkbrasse and @sosarasays - in the interest of timing...could I suggest you take a look at the discrepencies described above between WebConAltNames + WebConstituents_person_view? It might be  easier to fix the source data at this point.

We are discussing in house will update ASAP.
Rich Brassell
Web Developer at the Smithsonian American Art Museum
http://americanart.si.edu/
Work ph#<PHONE_NUMBER>
Cell   ph#<PHONE_NUMBER>
On Mon, Oct 2, 2017 at 10:21 AM, Kate Blanch<EMAIL_ADDRESS>wrote:

Hi @rkbrasse https://github.com/rkbrasse and @sosarasays
https://github.com/sosarasays - in the interest of timing...could I
suggest you take a look at the discrepencies described above between
WebConAltNames + WebConstituents_person_view? It might be easier to fix the
source data at this point.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/american-art/SAAM/issues/42#issuecomment-333549094,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABiqlVBvFitwkRnbBKQe3YBOiD_n__hHks5soPFqgaJpZM4OjQ4D
.