You have to specificy valid userId or conversationId

So it's been a few months since I last worked on my bot.
I started seeing this weird message
You have to specificy valid userId or conversationId
So I have been using Bot Builder 1.10.0 without problems. I am now using the latest version and have made appropriate updates using ResumptionToken
However, when I deploy it to Azure I started to get the following messages (works locally however).
I don't even understand what this means since I'm passing the conversationId and userId in the url and receiving it back from the state param on active directory
Has there been some breaking changes that have been introduced? How do I fix this?

 An error has occurred.
You have to specificy valid userId or conversationId

Microsoft.Rest.HttpOperationException
 at
Microsoft.Bot.Connector.ErrorHandling.HandleError[ObjectT](HttpOperationResponse1 result) at Microsoft.Bot.Connector.BotsExtensions.<GetConversationDataAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bot.Builder.Dialogs.Internals.Extensions.<LoadMessageData>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Bot.Builder.Dialogs.Conversation.<ResumeAsync>d__61.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.Bot.Builder.Dialogs.Conversation.d__41.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at myapp.OAuthCallbackController.<OAuthCallback>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()

So I do an update to the latest version and it won't even compile anymore. There were some breaking changes and I wasn't even made aware of it.
And what is this directline business? what was wrong with the old way doing things?
Now I'm stuck with figuring out what changes I need to make to get my bot working again as something happened in the past few months that complete breaks my current code based on 1.10.0
and this is only happening when I deploy to azure. I can't even replicate it on my localhost...

All the bot builder changes have been posted here and here. You can see all the changes including breaking changes for each version of the nuget. If you don't want to change your code to adapt to changes/breaking changes, you can revert back to older version of the nuget and continue using that.
I guess the error that you are seeing is that you are not indicating a valid conversationId or userId for the ResumeAsync call and as a result builder cannot load the data from connector for that conversationId in the ResumeAsync call.
Bot framework is a preview service and we are keep making changes to improve our API and SDK. We are trying to stay backward compatible as much as possible but sometimes breaking changes are unavoidable. Sorry for inconveniences that this might cause.

I fixed that ResumeAsync by supplying it a ResumptionCookie and Message object, but now I'm getting
No scope with a Tag matching 'Microsoft.Bot.Builder.Dialogs.Internals.DialogModule' is visible from the scope in which the instance was requested. This generally indicates that a component registered as per-HTTP request is being requested by a SingleInstance() component (or a similar scenario.) Under the web integration always request dependencies from the DependencyResolver.Current or ILifetimeScopeProvider.RequestLifetime, never from the container itself.
I then tried to downgrade the Autofac and now everything is broken.

okay I it's the following line that causes the above error
var client = Conversation.Container.Resolve(TypedParameter.From(connectorType));
previously I had
var client = Conversation.ResumeContainer.Resolve(TypedParameter.From(connectorType));
How can I fix this?

reopening because doesn't work on production.
okay I'm stumped. The code works sorta on the localhost but not when its' deployed on azure.
What I mean by sorta is that it doesn't fire the SendMessageAsync. Only when I type something in the emulator will it fire the message but it should fire it immediately after the token is acquired.
I've been trying for the past 5 hours desperately to update my code base to use the new Bot builder api using the FacebookOauth example but to no avail.
My bot is completely broken in production....
public async Task<HttpResponseMessage> OAuthCallback([FromUri] string state, [FromUri] string code, [FromUri] string id_token)
      {
          //parse out the userId and convoId from states parameter
          string[] states = state.Split(new[] { "," }, StringSplitOptions.None);
          string userId = states[0];
          string conversationId = states[1];
          string policyUsed = states[2];

          // Check if the bot is running against emulator
          var channelId = HttpContext.Current.Request.IsLocal ? "emulator" : "cloud";
          var resumptionCookie = new ResumptionCookie(userId, Constants.botId, conversationId, channelId, "en");

          //string id_code = "";
          // Exchange the Facebook Auth code with Access toekn
          var token = await MyHelpers.ExchangeCodeForAccessToken(userId, conversationId, code, id_token, Constants.apiBasePath + "OAuthCallback", policyUsed);

          var msg = resumptionCookie.GetMessage();
          msg.Text = $"token:{token.IdToken}";
          msg.ConversationId = conversationId;

          var reply = await Conversation.ResumeAsync(resumptionCookie, msg);

          // Remove the pending message because login flow is complete
          IBotData dataBag = new JObjectBotData(reply);
          ResumptionCookie pending;

          if (dataBag.PerUserInConversationData.TryGetValue("persistedCookie", out pending))
          {
              dataBag.PerUserInConversationData.RemoveValue("persistedCookie");

              using (var scope = DialogModule.BeginLifetimeScope(Conversation.Container, reply))
              {
                  var persistedCookie = pending.GetMessage();
                  reply.To = persistedCookie.From;
                  reply.From = persistedCookie.To;

                  // Send the login success asynchronously to user
                  var client = scope.Resolve<IConnectorClient>();
                  //var client = Conversation.Container.Resolve<IConnectorClient>(TypedParameter.From(connectorType));
                  await client.Messages.SendMessageAsync(reply);
              }
              return Request.CreateResponse("You are now logged in! Continue talking to the bot.");
          }
          else
          {
              // Callback is called with no pending message as a result the login flow cannot be resumed.
              return Request.CreateErrorResponse(HttpStatusCode.BadRequest, new InvalidOperationException("Cannot resume!"));
          }
      }
  }

I also notice that the reply variable does not have UserId when it's set in ResumptionToken....maybe this is why...I'm not sure

I'm totally at a loss here. I tried both Bot Builder 1.0 and 1.2
           var reply = await Conversation.ResumeAsync(Constants.botId, userId, conversationId, msg, connectorType: connectorType);
Even when I supply the userId AND conversationId it keeps complaining (see my first post)
then with Bot Builder 1.2
I do all the ResumptionCookie stuff and it leads to https://github.com/Microsoft/BotBuilder/issues/405 that no one seems to have a clue.
Hopefully someone can help me out here as I'm seeing extended downtime and have people waiting for this bot to go up soon.

One apparent issue that I am seeing is your channelId. This statement in your code sets the channelId to cloud in your production environment: var channelId = HttpContext.Current.Request.IsLocal ? "emulator" : "cloud";. This is an invalid channelId for connector, you should capture the channelId of the original message and pass it to your oauthcallback controller to make sure that you continue the conversation on the right channel.
Four parameters should be set correctly to make sure that you resume the conversation with the user on the right channel: userId, conversationId, channelId, language.

yeah thats what im doing...im capturing the user channel id.

weird somebody might have fixed something because it's working again I'm not seeing this message granted I'm using Bot builder 1.0 but this was happening even with the old version as of yesterday.
However, now I'm seeing this problem https://github.com/Microsoft/BotBuilder/issues/242 once again
exact same code that was working a month ago now displaying broken behavior
please tell me I screwed up somewhere

so this happens when I test the azure website on my emulator but it doesn't happen on my localhost.
I also noticed that https://github.com/Microsoft/BotBuilder/issues/242 occurs in my azure website but it doesn't happen on my localhost.
In otherwords, my app behaves exactly the same as before on my localhost EXCEPT when it is deployed on azure.
Namely this issue 'you have to specify userId or conversationId' and 'sendmessageasync not really sending message back' is happening on when it's deployed to Azure and not on my localhost
I'm not sure as to where this discrepancy is coming from but this certainly wasn't happening a month ago.

try debugging your service deployed to azure using a valid connector channel rather than emulator. As I mentioned before the resumption flow cannot be tested against the emulator when the bot is deployed to azure because the bot need to retrieve its contextual data from connector service.

@msft-shahins I am watching the streaming logs and it seems like the state field sent to my OAuthCallback endpoint is base64 encoded, perhaps this is why?

great....now it's not even responding....completely broken once more

@msft-shahins okay I've done some debugging on the azure
What I noticed was that
        `var reply = await Conversation.ResumeAsync(Constants.botId, userId, conversationId, msg, connectorType: connectorType);

`
This does not actually resume the conversation. Instead it skips immediately to the next line instead of going back up to the Chain. This is evident by the fact that the "I SHOULD SEE THIS TRACE" trace is never fired.
here's where I send the bot "login" command.
my AuthenticationDialog.cs
  /// <summary>
        /// The chain of dialogs that implements the login/logout process for the bot
        /// </summary>
        public static readonly IDialog<string> dialog = Chain
            .PostToChain()
            .Switch(
                new Case<Message, IDialog<string>>((msg) =>
                {
                    var regex = new Regex("login", RegexOptions.IgnoreCase);
                    return regex.IsMatch(msg.Text);
                }, (ctx, msg) =>
                {
                    // User wants to login, send the message to Facebook Auth Dialog
                    return Chain.ContinueWith(new AuthDialog(msg),
                                async (context, res) =>
                                {
                                    // The Facebook Auth Dialog completed successfully and returend the access token in its results
                                    var token = await res;
                                    System.Diagnostics.Trace.TraceInformation("I SHOULD SEE THIS TRACE");

                                    System.Diagnostics.Trace.TraceInformation(token);

                                    if (token == "cancelled")
                                    {
                                        return Chain.Return("Login Cancelled.");
                                    }

                                    string name;
                                    context.UserData.TryGetValue(Username, out name);

                                    System.Diagnostics.Trace.TraceInformation(name);

                                    return Chain.Return($"You are logged in as: {name}.");
                                });
                }),

here's my oauth controller
 ```

[Route("api/OAuthCallback")]
public async Task OAuthCallback([FromUri] string state, [FromUri] string code, [FromUri] string id_token)
{
System.Diagnostics.Trace.TraceInformation("callback received");
System.Diagnostics.Trace.TraceInformation(state);
//parse out the userId and convoId from states parameter
string[] states = state.Split(new[] { "," }, StringSplitOptions.None);
string userId = states[0];
string conversationId = states[1];
string policyUsed = states[2];
string channelId = states[3];
        // Check if the bot is running against emulator
        var connectorType = HttpContext.Current.Request.IsLocal ? ConnectorType.Emulator : ConnectorType.Cloud;

        //string id_code = "";
        // Exchange the Facebook Auth code with Access toekn
        var token = await AdHelpers.ExchangeCodeForAccessToken(userId, conversationId, code, id_token, Constants.apiBasePath + "OAuthCallback", policyUsed);
        System.Diagnostics.Trace.TraceInformation(token.IdToken);

        // Create the message that is send to conversation to resume the login flow
        var msg = new Message
        {
            Text = $"token:{token.IdToken}",
            From = new ChannelAccount { Id = userId },
            To = new ChannelAccount { Id = Constants.botId },
            ConversationId = conversationId
        };

        // Resume the conversation to SimpleFacebookAuthDialog
        var reply = await Conversation.ResumeAsync(Constants.botId, userId, conversationId, msg, connectorType: connectorType);

        System.Diagnostics.Trace.TraceInformation("resuming");
        System.Diagnostics.Trace.TraceInformation(conversationId);

        // Remove the pending message because login flow is complete
        IBotData dataBag = new JObjectBotData(reply);
        PendingMessage pending;
        if (dataBag.PerUserInConversationData.TryGetValue("pendingMessage", out pending))
        {

            dataBag.PerUserInConversationData.RemoveValue("pendingMessage");
            var pendingMessage = pending.GetMessage();
            reply.To = pendingMessage.From;
            reply.From = pendingMessage.To;

            System.Diagnostics.Trace.TraceInformation("pending");
            System.Diagnostics.Trace.TraceInformation(pendingMessage.ConversationId);

// Send the login success asynchronously to user
var client = Conversation.ResumeContainer.Resolve(TypedParameter.From(connectorType));
await client.Messages.SendMessageAsync(reply);
            System.Diagnostics.Trace.TraceInformation("sendmessageasync");

            return Request.CreateResponse("You are now logged in! Continue talking to the bot.");
        }
        else
        {
            // Callback is called with no pending message as a result the login flow cannot be resumed.
            return Request.CreateErrorResponse(HttpStatusCode.BadRequest, new InvalidOperationException("Cannot resume!"));
        }
    }


Add persistence layer and integration tests

Overview

Add the dao, persistence layer, and integration test suite.
Add semi-e2e integration test for simple utxo scenario

Testing

integ test

Reviewed offline by @pmantica11


Maximum function nesting level of '250' reached, aborting!

Having run 3.0.0 successfully, after recently updating using composer update I get the following error, when I do:
$model = My\Models\Model::find(1);

Returns:
Maximum function nesting level of '250' reached, aborting!

This worked before running composer update.

Funny thing is, if I instead do:
$model = My\Models\Model::whereId(1)->first();
It works

I have tried switching back to the initial 3.0.0 release, but the error is the same. Guess I haven't used ::find() for a while.

Guess I haven't used find in a while as well, @canfiax.
It seems the issue is explained on #283. See if it's fixed for you in 3.1.1!

I'm also having this error, but for the version 2.5.0. I had to rollback to version 2.4.2.

@igorsantos07
I have this problem too. I'm using version 3.3.0 and laravel 5.2  (Is it even supposed to work with 5.2?)
When i call find() (or all() and probably any other database action) i get memory exhaused because of a infinite loop:
LaravelArdent\\Ardent\\Ardent::find() /var/www/app/Http/Controllers/BlogController.php:27,
LaravelArdent\\Ardent\\Ardent->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:914,
Illuminate\\Database\\Eloquent\\Model->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:387,
LaravelArdent\\Ardent\\Ardent->newQuery() /var/www/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:3546,
LaravelArdent\\Ardent\\Ardent->applyGlobalScopes() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:934,
LaravelArdent\\Ardent\\Ardent->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:934,
Illuminate\\Database\\Eloquent\\Model->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:387,
LaravelArdent\\Ardent\\Ardent->newQuery() /var/www/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:3546,
LaravelArdent\\Ardent\\Ardent->applyGlobalScopes() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:934,
LaravelArdent\\Ardent\\Ardent->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:934,
[...]

@ManiacTwister, would you provide us with a gist of the affected model, the
table structure, and the exact call you're making? I do use all() and
find() but do not face those issues.
Igor Santos
-- Desenvolvedor Web
[enviado do meu celular]
On 15 Jan 2016 15:00, "ManiacTwister"<EMAIL_ADDRESS>wrote:

@igorsantos07 https://github.com/igorsantos07
I have this problem too. I'm using version 3.3.0 and laravel 5.2 (Is it
even supposed to work with 5.2?)
When i call find() (or all() and probably any other database action) i get
memory exhaused because of a infinite loop:
LaravelArdent\Ardent\Ardent::find() /var/www/app/Http/Controllers/BlogController.php:27,
LaravelArdent\Ardent\Ardent->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:914,
Illuminate\Database\Eloquent\Model->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:387,
LaravelArdent\Ardent\Ardent->newQuery() /var/www/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:3546,
LaravelArdent\Ardent\Ardent->applyGlobalScopes() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:934,
LaravelArdent\Ardent\Ardent->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:934,
Illuminate\Database\Eloquent\Model->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:387,
LaravelArdent\Ardent\Ardent->newQuery() /var/www/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:3546,
LaravelArdent\Ardent\Ardent->applyGlobalScopes() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:934,
LaravelArdent\Ardent\Ardent->__call() /var/www/vendor/laravelbook/ardent/src/Ardent/Ardent.php:934,
[...]
—
Reply to this email directly or view it on GitHub
https://github.com/laravel-ardent/ardent/issues/281#issuecomment-172015910
.

Here is the gist: https://gist.github.com/ManiacTwister/0dbb10dd67142e7e1000

I just ran into this issue myself. Looks like laravel/framework@ca15fe7317e6cf3a1a138893c804a9c4196904a5 removed applyGlobalScopes() and moved it's logic to newQuery() causing _call() on the Ardent and Eloquent models to loop.

+1 Same problem. Please fix it.

@weyforth got it right, the issue is in the snippet by @shtricul. This is a pretty small fix, related to changed in Laravel between 4 and 5. The weirdest thing is it only happens sometimes, when it should happen every time we do any kind of find, I think.
The fix will be published soon on 3.4.2, as this is a bugfix for an internal API. However, PLEASE use caution when updating, I'm not entire sure it would not bring any troubles with it.


Syntax highlighting for code samples

It will be nice if there is syntax highlighting for code samples such as follows:

coloring command name with bright blue color
coloring command options (long/old/short) with bright cyan color
coloring placeholders including braces with bright yellow color
coloring anything else with gray color

Hey thanks for opening the issue. The first part seema doable easily. I will have to look into options and placeholders color. On my todo list now ✔


Does IdentityServer4.AccessTokenValidation only works in IdentityServer 4 ?

Hi
I am using IdentityServer4.AccessTokenValidation nuget to do OAUTH2 introspection to 3rd party OAUTH2 server, is it recommended to use  IdentityServer4.AccessTokenValidation for any 3rd party OAUTH2 server.
If yes, how do I configure it to send the clientid & client secret in  Http Authoriztion Header , currently its sends in HTTP POST body.
Madhu

As the name implies, we only care about compat with Identityserver

Ok, how about IdentityModel.AspNetCore.OAuth2Introspection does it supports 3rd party OAUTH2 server.
If yes, how do I configure it to send the clientid & client secret in Http Authoriztion Header , currently its sends in HTTP POST body.

It's implemented on the v4 branch -
https://github.com/IdentityModel/IdentityModel.AspNetCore.OAuth2Introspection/blob/v4/src/OAuth2IntrospectionOptions.cs#L51
Nuget is here:
https://www.nuget.org/packages/IdentityModel.AspNetCore.OAuth2Introspection/4.0.0-aultmore
I am planning to release this soon. give it a try.

Ok, will try out.
I see the example in the oauth introspection spec showing sending client id & secret in authorization header, curious to know the reason behind sending client id & client secret in HTTP body instead of authorization header in IdentityServer4.AccessTokenValidation & IdentityModel.AspNetCore.OAuth2Introspection library.

They are both allowed. Please open a feedback issue in the introspection repo.


README GET requests link is dead

The "demo and code" link (try.elm-lang.org/examples/http) for GET requests at the bottom of the README is broken.

That link is not back to life yet, but the README has been updated to not have the link anymore. Thanks for pointing this out.


Calibration data unavailable after Home Assistant restarts

Describe the bug
After Home Assistant restarts (due to update, manual restart, etc.), the sensor.{{vacuum}}_calibration entity becomes unavailable. This causes xiaomi-vacuum-map-card to not render as the card's calibration_source field now points to an unavailable entity.
Current work-around is to restart the ValetudoPNG docker container which repopulates the missing entity.
To Reproduce
Steps to reproduce the behavior:

Run ValetudoPNG and observe calibration and rendered map populate on the MQTT Vacuum
Restart or update Home Assistant
Observe _calibration sensor for vacuum is now Unavailable
Observe xiaomi-vacuum-map-card fails to render due to missing calibration_source

Expected behavior
Expected calibration data to retain after home assistant restarts or ValetudoPNG to repopulate/send the calibration data again.
Screenshots/Outputs
MQTT entry for Vacuum after Home Assistant has restarted

Calibration entity

Firefox console

Container Logs
2023/11/02 00:00:16 Image rendered! drawing:18ms, encoding:56ms, size:36.6kB
2023/11/02 00:00:17 Skipping image render due to min_refresh_int
2023/11/02 00:01:17 Image rendered! drawing:18ms, encoding:57ms, size:36.6kB
2023/11/02 00:01:18 Skipping image render due to min_refresh_int
2023/11/02 00:02:19 Image rendered! drawing:19ms, encoding:56ms, size:36.6kB
2023/11/02 00:02:19 Skipping image render due to min_refresh_int
2023/11/02 00:03:19 Image rendered! drawing:18ms, encoding:55ms, size:36.6kB
2023/11/02 00:04:20 Image rendered! drawing:19ms, encoding:62ms, size:36.6kB
2023/11/02 00:04:21 Skipping image render due to min_refresh_int
etc...

Map is still updating correctly, but _calibration data is never sent again until the container is restarted

I don't think this is fixed yet, due to the discovery topics not being retained. See #9.

Never had a chance to reopen this issue with feedbacn. After a while of testing and a few Home Assistant updates/restarts (up to 2024.1.1 currently), I'm still seeing the same issue.
I was able to clear the MQTT messages and re-connected the client vacuums to get the updated sensor names shown below. Is there further steps we can take to diagnose this issue?

I don't think so, it's the result of the discovery topics not having retain set, as described in #9.


File Driver Session Library: rewind() expects parameter 1 to be resource

When using File Driver Session I get the following error if I setup the /path/application/sessions as said in Session Library Docs.
Severity: Warning --> rewind() expects parameter 1 to be resource, boolean given /var/www/domain.com/system/libraries/Session/drivers/Session_files_driver.php 182
Severity: Warning --> filesize(): stat failed for /var/www/domain.com/application/sessions/ci_session46fd5efca47570eb3aff783881d3f1a27c42d983 /var/www/domain.com/system/libraries/Session/drivers/Session_files_driver.php 186
Severity: Warning --> fopen(/var/www/domain.com/application/sessions/ci_session3fc5c0400677300708efb7dfb8805ab28dec2e11): failed to open stream: Permission denied /var/www/domain.com/system/libraries/Session/drivers/Session_files_driver.php 150
Session: File '/var/www/domain.com/application/sessions/ci_session3fc5c0400677300708efb7dfb8805ab28dec2e11' doesn't exist and cannot be created.

I'm running PHP 5.5.9 on Ubuntu 14.04 with a fresh CI3.0RC
The way to fix is:
chmod 0700 /<path to your application directory>/sessions/

then Session File Driver works.

Are you posting a bug report or a "how to fix this"  thread? File permissions are explained in the manual.

I mean bug report, but also I mention a workaround that works for me.

How is it a bug report if the "work-around" is a requirement that is explained in the documentation (on the very link you posted)?

I think the docs should say you can achieve this permissions using 0700 instead of 0600 if it's not a bug on how Session Driver handle sessions files.

So you're saying that it works with 0700 but not 0600?

@narfbg exactly 0700 works fine, 0600 throws that error I mentioned earlier.

OK, sorry then - my bad.

No worries, Thanks.

The sessions folder have 0700, but I still get those errors.
What could be the problem ?

@george-dragnea check if your web user have the correct permission to write to that folder.


Azure disk ext4

I just set up an Azure cluster and the openebs disks were formatted ext4 and couldn't be added to the cstor pool
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"admission webhook "admission-webhook.cstor.openebs.io" denied the request: invalid cspc specification: invalid pool spec: block device has file system {ext4}","reason":"BadRequest","code":422}

@marcusbooyah fixed this


Expose Matrix Mode 0 "level" feature

Adds a function to expose the "level" feature (Mode 0) on the Matrix.  Also fixes a missing exception import that is used elsewhere in Matrix.

Demo/test program
import time
import buildhat
from buildhat import Hat, Matrix

matrix_a = Matrix('A')

for i in range(9, -1, -1):
	matrix_a.level(i)
	time.sleep(1)
time.sleep(1)


chore(main): release 0.1.10

:robot: I have created a release beep boop
0.1.10 (2024-11-27)
Features

AWS max retry attempts (configurable and higher default) (#531) (816076b)

Dependency Updates

deps: update build digest to d0ef938 (#526) (1b7f547)
deps: update module github.com/aws/aws-sdk-go-v2/service/ec2 to v1.194.0 (#528) (5f14989)
deps: update module github.com/onsi/gomega to v1.36.0 (#525) (585e14b)
deps: update module github.com/stretchr/testify to v1.10.0 (#523) (6ca4a99)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.1.10
:sunflower:


dashboard: add test

Signed-off-by: Zheng Xiangsheng<EMAIL_ADDRESS>
What problem does this PR solve?
Add a test that Dashboard is accessible.
Check List
Tests

Unit test

Related changes

Need to cherry-pick to the release branch

Codecov Report

Merging #2131 into master will decrease coverage by 0.12%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2131      +/-   ##
==========================================
- Coverage   76.68%   76.56%   -0.13%
==========================================
  Files         191      194       +3
  Lines       19902    19995      +93
==========================================
+ Hits        15262    15309      +47
- Misses       3475     3525      +50
+ Partials     1165     1161       -4

Impacted Files
Coverage Δ

pkg/dashboard/apiserver/apiserver.go
81.81% <ø> (ø)

tests/cluster.go
85.71% <100%> (-0.06%)
:arrow_down:

pkg/dashboard/uiserver/uiserver.go
60% <100%> (ø)

pkg/etcdutil/etcdutil.go
78.26% <0%> (-10.15%)
:arrow_down:

server/schedulers/shuffle_hot_region.go
63.55% <0%> (-9.35%)
:arrow_down:

server/region_syncer/client.go
73.27% <0%> (-7.76%)
:arrow_down:

server/heartbeat_streams.go
67% <0%> (-6%)
:arrow_down:

server/schedule/region_scatterer.go
79.34% <0%> (-3.27%)
:arrow_down:

server/member/leader.go
76.53% <0%> (-3.07%)
:arrow_down:

server/cluster/cluster.go
81.37% <0%> (-0.23%)
:arrow_down:

... and 12 more

Continue to review full report at Codecov.

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

/run-all-tests


Need a 'thrust' sound effect

Something from https://soundimage.org/sfx-scifi/ or https://soundimage.org/sfx-vehicles/ might work.  I'm out of time for today, though!


EKUIGen copying working dir

When using the UI generator, dlls from the Working Directory are copied into the directory of EkUiGen, and left there after compilation takes place.
This is a problem when using a forked version, since these extra files are potentially seen by source control.

I see, pls read this https://docs.nuget.org/consume/package-restore and let me know if this is not part of your scenario and why.

This is not part of my scenario since I am using a forked version of the UI generator; this forked version correspond with pull requests #15.

You could make your own local Nuget for your team, it's very simple. Adding DLL's to your source control is just not good idea (except very rare cases).


All functions(MDXTuple.of, MDXHierarchyset etc)  not recognizing spaces in hierarchy, element names

mdxpy functions not recognizing spaces in hierarchy, element names

Hi @reddibhatini,
I built mdxpy with IBM TM1 in mind. TM1 is case insensitive.
Are you intending to use mdxpy with a different OLAP engine?

I'm new in mdxpy as well as TM1. I also saw the space ignored by mdxpy. But it doesn't affect the reuslt. The query works.
I tested then in excel using DBRW formula. Even there the spaces could be deleted without affecting the DBRW formula.
@MariusWirtz Thanks for the information that TM1 is case insensitive.


Updates about my Profile - Glaucia Lemos

cc: @timheuer I've had to update my linkedin link.
Thanks!

OPS Build status updates of commit 8166623:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

advocates/toc.yml
:x:Error

Details

advocates/toc.yml

[Error] W:\s4ri-s\advocates\toc.yml is not a valid TOC File: W:\s4ri-s\advocates\toc.yml is not a valid TOC file, detail: (Line: 4, Col: 3, Idx: 44) - (Line: 4, Col: 3, Idx: 44): Expected 'SequenceStart', got 'MappingStart' (at Line: 4, Col: 3, Idx: 44)..
[Error] Unable to load file 'toc.yml' via processor 'ExperimentalTocDocumentProcessor': W:\s4ri-s\advocates\toc.yml is not a valid TOC File: W:\s4ri-s\advocates\toc.yml is not a valid TOC file, detail: (Line: 4, Col: 3, Idx: 44) - (Line: 4, Col: 3, Idx: 44): Expected 'SequenceStart', got 'MappingStart' (at Line: 4, Col: 3, Idx: 44)..
[Error] W:\s4ri-s\advocates\toc.yml is not a valid TOC File: W:\s4ri-s\advocates\toc.yml is not a valid TOC file, detail: (Line: 4, Col: 3, Idx: 44) - (Line: 4, Col: 3, Idx: 44): Expected 'SequenceStart', got 'MappingStart' (at Line: 4, Col: 3, Idx: 44)..
[Error] Unable to load file 'toc.yml' via processor 'TocDocumentProcessor': W:\s4ri-s\advocates\toc.yml is not a valid TOC File: W:\s4ri-s\advocates\toc.yml is not a valid TOC file, detail: (Line: 4, Col: 3, Idx: 44) - (Line: 4, Col: 3, Idx: 44): Expected 'SequenceStart', got 'MappingStart' (at Line: 4, Col: 3, Idx: 44)..

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

OPS Build status updates of commit 1d9f4b8:
:warning: Validation status: warnings

File
Status
Preview URL
Details

advocates/toc.yml
:warning:Warning
View
Details

advocates/glaucia-lemos.yml
:white_check_mark:Succeeded
View

advocates/toc.yml

[Warning] TOC item (Href:index.html.yml ) with empty name found. Missing a name?
[Warning] TOC item (Href:index.html.yml ) with empty name found. Missing a name?

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Track outgoing Action clicks

We don't want anything super snoopy like Google Analytics but we do wanna know how many people are going out to which links so we can rank popularity and maybe maybe allow paid placements to help us pay back contributors some day, or buy more trees, or something.
Regardless, knowing if anyone is actually clicking these links would be pretty great.
Netlify analytics is a bit useless and only tells you who is hitting frontend links, so we could maybe make an outgoing redirect in Netlify but... egh.
Could be done through a Statamic plugin if those exist, or just some plain old frontend JavaScript.
Suggestions on a postcard and PRs please!

It seems to me like there are 4 options:

Use a link shortening 3rd party service like bitly or rebrandly
Use a plugin for statamic
Use GA or equivalent to track clicks
Create our own datastore and send clicks to our own endpoint.

Use a link shortening service Like bitly or rebrandly
pros:

very easy to set up
analytics out of the box
free tier

cons:

will have to create a shortened link every time we create a new link
lots of traffic will cost

Use GA or equivalent to track clicks
pros:

free tier
simple setup
analytics out of the box

cons:

google have a lot of data about your site

Plugin for statamic
(I could not find a suitable plugin when I took a cursory glance)
Create our own datastore and endpoint
eg. Use netlify function and an airtable/firebase table
pros:

price will remain low
we have complete control of the data

cons:

more time to setup
more services to maintain
no fancy analytics out of the box

A reasonable GA-alternative is fathom - their OSS model is self-hostable, and I think would easily fit in a free-tier heroku dyno.

We've also got Digital Ocean so we could host fathom on a cheapy $5 thing. I'm still trying to bug DO to get us some credits/freeness. https://marketplace.digitalocean.com/apps/fathom-analytics
Having Netlify AND Forge AND Digital Ocean AND Heroku might be a step too far.

Had a look at Fathom and it looks as though the only custom events you can send are called Goals. So it would mean setting up each external link as an individual Goal, and then adding a bit of javascript to send the Goal event before navigating to the external link. https://usefathom.com/support/goals .

Oh man creating ids from the dashboard doesn’t seem like a fun time, again unless we can make an extension for statamic or something which gives it a fathom ID when they’re added. That seems like a lot of work, probably not worth it.
Do we have to use GA? 😞
On Tue, Apr 14, 2020 at 20:42, William Woodhead<EMAIL_ADDRESS>wrote:

Had a look at Fathom and it looks as though the only custom events you can send are called Goals. So it would mean setting up each external link as an individual Goal, and then adding a bit of javascript to send the Goal event before navigating to the external link. https://usefathom.com/support/goals .
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Aha, Matomo it is. I’ll set up a Digital Ocean https://matomo.org/faq/new-to-piwik/faq_71/

According to @mbifulco, Fathom is adding outgoing link tracking, which we can use to avoid writing any code or messing about.

@mbifulco did Fathom get this feature out? :)


chore: remove more unused variables

Michael, thank you very much for the review!  I had added locally, but not pushed, some more removals, so the PR grew, but it is more of the same.  I will not add more modifications to this PR, though.

Thanks!
maintainer merge

bors r+


Plugin seems broken on grafana-4.0.2

Installed Centos RPM: grafana-4.0.2-1481203731.x86_64
I had a few dashboards that were using the Influx-0.8 plugin.  They all stopped working upon upgrade.  The datasource still passes the validation test, but queries fail.
Message:
Cannot read property '_seriesQuery' of undefined

Stack trace:
TypeError: Cannot read property '_seriesQuery' of undefined
    at eval (http://grafana.xxx:8000/public/plugins/grafana-influxdb-08-datasource/datasource.js?bust=1483589508008:54:18)
    at l (http://grafana.xxx:8000/public/app/boot.85c49108.js:48:28969)
    at Function.Sg [as map] (http://grafana.xxx:8000/public/app/boot.85c49108.js:49:29676)
    at InfluxDatasource.query (http://grafana.xxx:8000/public/plugins/grafana-influxdb-08-datasource/datasource.js?bust=1483589508008:35:22)
    at h.f.issueQueries (http://grafana.xxx:8000/public/app/boot.85c49108.js:42:19495)
    at h.issueQueries (http://grafana.xxx:8000/public/app/boot.85c49108.js:18:27260)
    at g (http://grafana.xxx:8000/public/app/boot.85c49108.js:38:29545)
    at http://grafana.xxx:8000/public/app/boot.85c49108.js:38:29717
    at o.$eval (http://grafana.xxx:8000/public/app/boot.85c49108.js:39:5357)
    at o.$digest (http://grafana.xxx:8000/public/app/boot.85c49108.js:39:3843)

Disregard - wallrat's PR fixes this issue for me.

Is there a link to this fix that you can share? Have same problem.

Yes, I pulled in a couple line fix from a pull request that was outstanding
at the time.  FWIW I believe it was merged before 4.1 because I updated and
did not have to re-apply any fix.  In the meanwhile I upgraded to Influx
1.1, also, so I'm using the newer influx datasource.
On Wed, Feb 1, 2017 at 2:39 PM, findneville<EMAIL_ADDRESS>wrote:

Is there a link to this fix that you can share? Have same problem.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/grafana/influxdb-08-datasource/issues/10#issuecomment-276759140,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIdKxWgDwJgrhGxMBGrGsm_F4O82Mz88ks5rYN-DgaJpZM4LbVet
.

It's this one: https://github.com/grafana/influxdb-08-datasource/pull/9/commits/d37371fc5868c81d23f0307cbb6f53aaf17a2ce2
The file is located at /var/lib/grafana/plugins

Any chance d37371f could be merged to master?


Example using crosswalk & data from other R packages?

Consider calling crosswalks from countrycode or concordance and showing conversion to crossmap.

An example using comtradr, concordance and an early version of conformr -- though I recall there was an authentication requirement for comtrade data:
Demo dataset

comtrade (2012-2007, for two countries, import)

library(comtradr)

q <- list()

q$Germany <- comtradr::ct_search(reporters = "Australia",
               partners = c("Germany"),
               start_date = 2016,
               end_date = 2017,
               type = "goods",
               trade_direction = "imports",
               commod_codes = c("All"))

q$Indonesia <- comtradr::ct_search(reporters = "Australia",
               partners = c("Indonesia"),
               start_date = 2016,
               end_date = 2017,
               type = "goods",
               trade_direction = "imports",
               commod_codes = "All")

monthly <- ct_search(reporters = "Australia",
               partners = c("Indonesia"),
               start_date = 2016,
               end_date = 2016,
               freq = "monthly",
               type = "goods",
               trade_direction = "imports",
               commod_codes = "Total")

q$Indonesia %>% glimpse()

q$Indonesia %>%
  filter(aggregate_level == 4, trade_flow == "Import") %>%
  select(classification, period, reporter_iso, partner_iso, commodity_code, trade_value_usd)

concordance::hs5_hs4 %>%
  select(ends_with("_4d")) %>%
  distinct() %>%
  conformr::make_cd_equal(., code_from = HS5_4d, code_to = HS4_4d) %>%
  filter(n_dest != 1)

library(dplyr)
# TODO: highlight code, value 2D transformation.

make code-dict (equal weights)
## from codes
countrycode::<table> %>%
  make_cd_equal(., code_A, code_B, direction = c("BA"))

## from code columns in data table
data %>%
  distinct(code_A, code_B) %>%
  make_cd_equal(., code_A, code_B, direction = c("AB")) %>%
  check_cd_coverage(., data, code_from, code_to) ## should definitely pass

verify existing code-dict
code_dict %>%
  check_cd_weights(., code_from, code_to, weight_col) %>%
  check_cd_coverage(., data, code_from, code_to)

apply code-dict to data
data_A %>%
    dplyr::group_by(case) %>%
    conformr::convert(data = .,
                    code_dict = code_dict_BA,
                    code_from = code_A,
                    code_to = code_B,
                    values_from = value_A,
                    values_to = "value_B",
                    weight_col = weight)

anzsco22 to isco8

Implemented in #117 commits and mock object in #122


Add Kunal Kushwaha's Git and Github tutorial under the Git and Github section

Current Behaviour

Expected Behaviour

Hi! I am Sanjeeban. If you feel this Issue is valid, I would really like to be assigned to this. I would really like to submit a Pull Request regarding this Issue. :)
Thankyou!


[Solvers] Single performance config for all ConvBiasActivAsm1x1U methods

GetSolution() uses PerformanceConfigConvBiasActivAsm1x1U
Solver is inherited from ConvSolver

Fixes https://github.com/ROCmSoftwarePlatform/MIOpen/issues/1432

@atamazov Could you take a look at this PR please?

@atamazov Could you take a look at this PR please?

@junliume @JehandadKhan Could you take a look at this PR? Thanks.

@averinevg Would this change result in changed tuning parameters ?

Neither solver id, nor serialization are changed, so it shouldn't.


feat: Added "Contributor of the Week" to output image.

This PR updates the background, overlay and components' positions to fit in a "Contributor of the Week" header right on top.
Closes: https://github.com/HackSquadDev/contributor-of-the-xxx-python/issues/40

Gotta update background.png and make the text dynamic

I'll make the text dynamic in the upcoming pull requests shortly :)


Reducing broken decimals for 5e_Shaped inventory weights

My players have complained quite a bit about the oddball repeating decimals that pop up in the inventory weights quite regularly.
The problem occurs because binary cannot represent most common decimals (e.g. 0.3) exactly, so a great many calculations produce oddball results. Simply doing all of the math as integer math in hundredths fixes this issue.
This patch changes the calculation by multiplying by 100 at the source of the inventory values, keeping coins an integer count until the final calculation, then dividing by 100 at the end.
I hope this significantly reduces the binary fraction errors that currently plague the inventory weight calculation. I haven't thoroughly tested this, but it seems to work in many cases (assuming I transcribed things correctly from the mingled sheet to the source components).
Ideally there would be a more sweeping change to just not use decimals at all, since this still ends up with some weird calculation errors, but it would require some visible changes to the sheet to do the more comprehensive change, and visible changes might cause issues for campaigns using the sheet.

I think it's better if you push this to mlenser's repo instead of directly to roll20 (so he can see your changes)

Will do.  Wasn't sure the protocol.


Closes #1329 when merged

Migration material per the issue; also added example as requested by Nathan.  Nathan, I don't think a whole new section is required.  That file is overloaded as is with sections --- I intend to break it out after this release.
Signed-off-by: Mary Anthony<EMAIL_ADDRESS>

ping @ehazlett @nathanleclaire See what you think of this gents.

Just made a small tweak to the links. I'll rebase after comments.

Just making a note: we need to add the experimental dir excluded in the coverage check: https://travis-ci.org/docker/machine/builds/66139286#L605

@moxiegirl why is the "experimental" directory not a subdir of docs?

@ehazlett So, the thinking with experimental is to put it outside docs.  This does a couple of things:

Keeps experimental features out of the "production ready feature" docs; hypertexting can land users anywhere on the page and we don't want them to land on docs for a feature and have them thinking the feature is ready
Allows you to add to experimental features on the fly --- or pull them --- or add quick warnings.  If we had this material in docs we would have to do a formal publish cycle which can be costly

@moxiegirl ok thanks.

Not having a separate section seems OK, although I worry a bit the information will become buried.

So, the experimental features are there as a way to get feedback before releasing a feature as final.  The docker/docker team is doing a separate binary but they are a bigger project.    So, I think of BETA as something we are ready to ship but want tested.  Experimental is something we want to call out for UX --- it is a way of saying: "We think this feature is what you want, is it?"
The Experimental section will be called out in the Release Notes.   And, having each project handle it similarly will reinforce the utility of the section.

@moxiegirl Also, as @ehazlett mentioned, you'll need to add ${DIR}/experimental to the string here: https://github.com/docker/machine/blob/master/script/generate-coverage#L44

@nathanleclaire Understood. I'll update/rebase shortly. I know we want to close this quick.

No rush, just letting you know :)

So, I think of BETA as something we are ready to ship but want tested. Experimental is something we want to call out for UX --- it is a way of saying: "We think this feature is what you want, is it?"

OK, that helps clarify a bit, thanks.

ping @ehazlett @nathanleclaire recheck please

LGTM


Inclusion of Librespot build options for

Can i firstly say thank you,
This implementation is great.  THe issue that i have where i require the pulseaudio backend built into the librespot.
It seems the installer basic create package directly from github so i modify the build on cloned git for example  it wont read.
Would it be possible to options for the build o librespot into script ?
or if there is another clever for me to make the changes, please let me know.

No. Raspotify will be alsa only for the foreseeable future.
You can compile librespot on your pi by following the instructions at the librespot repo.


[Suggestion] Bug Report Message

Since i've lately been getting a lot of Bug Report Mails, which include basically no useful information without an description of the error, i'd like to suggest an additional message Dialog when Reporting Bugs, to make sure people do not use the feature to troll.
Would such a feature be hard to add?

Report Bugs actually used to report broken activity, like you include the icon but add wrong activity or mistyped it.
I'm thinking to add dialog to choose what kind of bug that user want to report, like

Icon included inside icons preview, but the actual icon not change
Another one
etc

Sounds great :)

@leifniem Since I have prepared to release 2.0.5, I will add this options in next update, sorry...

@danimahardhika 2.0.5 will be release today?))

@leifniem I added a dialog before user send report bugs in release 3.0.2

Fantastic! You're the man!


Add Footer

Add footer with sliding window where contributors github profile should be displayed dynamically from contributors list
when clicked on the profile it should redirect to their respective github profile

hi @shrinidhihegde3 I would like to pick this feature do you have any idea for reference ?

https://api.github.com/repos/shrinidhihegde3/snippify-hub/contributors
Run the above link in the browser you will idea...
Use this api for collecting all the information and display in footer.
https://nmithacks.com/
Check this for how slider works
At the bottom of the page there will be organisers profile just sliding..

Yes please I'll do it


fix: enabled triggers prematurely

Closes: https://github.com/vuejs/apollo/issues/1422
seems like the query is triggering too early before the variables was properly updated.
Not sure what would be the best approach, but this does fix the issue above

Any progress on this?

@hellboywar  that's all the changes neccessary to fix the issue 😁

@hellboywar that's all the changes neccessary to fix the issue 😁

Yeah, I get it) waiting for it to be merged and released  🙂  Maybe making checks pass helps to speed it up

@hellboywar that's all the changes neccessary to fix the issue 😁

Yeah, I get it) waiting for it to be merged and released  🙂 Maybe making checks pass helps to speed it up

I created a PR as well and besides the "Check PR Title" check, I was not able to understand the other PR checks, in my case its just a change in the documentation.
Also the contribution guide doesn't seems to be very explicative about this check and I see a lot of PRs blocked by these, anybody can throw a hint to this?

This change will break SSR as nextTick isn't called on the server.


Unable to update Mopidy to 1.2.4

Which addon?

Mopidy
Describe the bug

Trying to update from 1.2.3 to 1.2.4 results in an error
ERROR (SyncWorker_1) [supervisor.docker.interface] Can't install ghcr.io/poeschl/ha-mopidy-armv7:1.2.4 -> 500 Server Error for http+docker://localhost/v1.40/images/create?tag=1.2.4&fromImage=ghcr.io%2Fpoeschl%2Fha-mopidy-armv7: Internal Server Error ("name unknown").
To Reproduce

Click on Update on the addons page, the button will turn red and an error will be displayed in the Supervisor logs.
Expected behavior

I expected the Supervisor to download the latest version of the addon and install it
Screenshots

System

Supervisor version:  supervisor-2021.02.6
Host system version:  Home Assistant OS 5.11

Fixed with a8199c0656e4544c2ea3c62e593a20f4bbcae87c. The mopidy images build was disabled, the image will be available after the build is done.

Reverted version for mopidy. For a build most of the addon needs to be modernized.


Check for result local script

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
New Monitor
🔖 Feature description
I would be nice if you can run and check a local script and based on the result given back do a check.
For example; I want to create a (bash) script which checks if HTTP2 is enabled (please do not ask my why.. ;-) ).
The result can be true of false and process that result in the monitoring check.
✔ Solution
Enable running local scripts and process result in monitoring
❓ Alternatives
No response
📝 Additional Context
No response

Create the bash script and include a line that calls the "Push" monitor via curl if http2 is enabled.

Closing as a duplicate of https://github.com/louislam/uptime-kuma/issues/1117


[BUG] from_asgi does not use base_url to retrieve the spec

Checklist

[X] I checked the FAQ section of the documentation
[X] I looked for similar issues in the issue tracker

Describe the bug
When using the schemathesis.from_asgi function, it can be passed the base_url to use when making requests, just like the other from_* functions; however, when retrieving the actual ASGI endpoint the base_url is not used (the client uses the default), so the spec is never retrieved. See https://github.com/schemathesis/schemathesis/blob/master/src/schemathesis/specs/openapi/loaders.py#L458
To Reproduce
Steps to reproduce the behavior:

Create an ASGI app that serves its OpenAPI spec on the GET /api_spec endpoint.
Serve the app on, say, http://localhost:5000
Run the following test file using pytest:

import schemathesis

schema = schemathesis.from_asgi("/api_spec", app_instance, base_url="http://localhost:5000")

@schema.parametrize()
def test_api(case):
    case.call_and_validate()

Expected behavior
The test goes through all endpoints in turn.


Error after restarting config-api deployment

Describe the bug
When restarting config-api deployment, DB seems to be re-seeded creating duplicate objects like scopes.
To Reproduce
Steps to reproduce the behavior:

Install Jans with config-api
execute a kubectl rollout restart to jans-config-api deployment
See jans-config-api doesn't start

Expected behavior
After restart of pod config-api should be able to start without any problems.
Screenshots
Pod logs below after deployment restart.
INFO - jans.pycloudlib.wait - 2021-02-12 18:26:52,608 - Config is ready INFO - jans.pycloudlib.wait - 2021-02-12 18:26:52,637 - Secret is ready INFO - jans.pycloudlib.wait - 2021-02-12 18:26:53,022 - LDAP is ready
18:26:58 INFO  [io.ja.co.ConfigApiApplication] (main) =================================================================
18:26:58 INFO  [io.ja.co.ConfigApiApplication] (main) =============  STARTING API APPLICATION  ========================
18:26:58 INFO  [io.ja.co.ConfigApiApplication] (main) =================================================================
18:26:58 INFO  [io.ja.co.co.ConfigurationFactory] (main) Loading base configuration /etc/jans/conf/jans.properties
18:26:58 INFO  [io.ja.co.co.ConfigurationFactory] (main) Loaded base configuration:{certsDir=/etc/certs, fido2_ConfigurationEntryDN=ou=fido2,ou=configuration,o=jans, confDir=, jansAuth_ConfigurationEntryDN=ou=jans-auth,ou=configuration,o=jans, persistence.type=ldap, pythonModulesDir=/opt/jans/python/libs:/opt/jython/Lib/site-packages}
18:26:58 INFO  [io.ja.co.co.ConfigurationFactory] (main) Loading configuration from 'ldap' DB...
18:26:58 INFO  [io.ja.or.ld.op.im.LdapConnectionProvider] (main) Attempting to create connection pool: 1
18:26:59 INFO  [io.ja.or.ld.op.im.LdapConnectionProvider] (main) Attempting to create connection pool: 1
18:26:59 INFO  [io.ja.or.ld.op.im.LdapConnectionProvider] (main) Attempting to create connection pool: 1
18:26:59 INFO  [io.ja.or.ld.im.LdapEntryManagerFactory] (main) Created LdapEntryManager: io.jans.orm.ldap.operation.impl.LdapOperationServiceImpl@3f81621c
18:26:59 INFO  [io.ja.co.co.ConfigurationFactory] (main) Configuration loaded successfully.
18:26:59 INFO  [io.ja.co.co.ConfigurationFactory] (main) =============  createAuthorizationService() - ConfigurationFactory.getApiProtectionType() = oauth2
18:26:59 ERROR [io.ja.co.au.ConfigApiResourceProtectionService] (main) 2 Scope with same name.
18:26:59 ERROR [io.ja.co.co.ConfigurationFactory] (main) Failed to create AuthorizationService instance: javax.ws.rs.WebApplicationException: Multiple Scope with same name - https://jans.io/oauth/config/acrs.readonly
at io.jans.configapi.auth.ConfigApiResourceProtectionService.createScopeIfNeeded(ConfigApiResourceProtectionService.java:105)
at io.jans.configapi.auth.ConfigApiResourceProtectionService.verifyResources(ConfigApiResourceProtectionService.java:71)
Additional context
This deployment is using _dev docker images

issue is confirmed. Duplicated entries are being created and the source seem to be the app itself which fails to identify with the defined scopes.

@ruiengana can you please redeploy with 1.0.0_dev images. LDAP is populated with duplicate entries so you have two options , either access ldap with an ldap browser and delete all replicated scopes and then pull the latest 1.0.0_dev image by deleting the pod for config-api or simply redeploy jans.  You should be able to scale as well now.
NAME                                READY   STATUS      RESTARTS   AGE
jans-config-pn8rb                   0/1     Completed   0          7m40s
jans-opendj-0                       1/1     Running     0          7m40s
jans-scim-58fdcc54ff-p62mf          1/1     Running     1          7m40s
jans-fido2-65fd6b5957-8km7l         1/1     Running     1          7m40s
jans-auth-server-576bbcd7d9-swqpr   1/1     Running     1          7m40s
jans-persistence-2rpsh              0/1     Completed   0          7m40s
jans-config-api-649b8fb8c8-nkrbj    1/1     Running     1          7m40s
jans-config-api-649b8fb8c8-9q4r6    1/1     Running     0          39s

Issue bug related in the source : https://github.com/JanssenProject/jans-config-api/issues/16#issuecomment-780004551
ref: https://github.com/JanssenProject/jans-pycloudlib/commit/8c56ce10f32743ddb8925b8cf5315d5b1db22faf

@moabu I can confirm we can now restart config-api, hwoever, application logs seem to suggests scopes are being changed / replaced on restart, is that correct?

@ruiengana the scopes shoudn't be changed. It just checks if the scope exists or not. You can verify that by looking at your scopes in an ldap browser.


State machine hides callback exceptions. (SOLVED)

When I get an error like "an exception occurred in a caller-provided callback function" is there a way of finding out what that exception might be? If not, this is a huge problem for debugging.

I agree; it's still not included in the readme.

+1 This information could be very helpful


Remove ruby version check from "bundle exec"?

This is a continuation to #2951.  Is there any reason to do a Ruby version check when running "bundle exec" at all?  As far as I can tell there's two situations:

Running a command that does load the Gemfile, such as "bundle exec rails c"
Running a command that doesn't load the Gemfile at all, such as "bundle exec ruby -v"

I realize I'm stating the obvious there.  But in the former case, the Ruby version check will be performed by the subcommand anyway.  As of today, it's effectively being run twice.  In the latter case, where the Gemfile isn't being loaded, you wouldn't see the error you see today, but does that really matter?  Bundler isn't being used for anything other than a command dispatcher in that case.

@indirect are those spec failures OK?


feat(http): Please make buildUrl public

Feature Request:
It would be great if buildUrl would be public. It is a function which was copied nearly identical into Restangular and I had to do the same for a private module.

+1 for pkozlowski's solution ... moving buildUrl into a $urlBuilder sevice seems like a good solution to me. Need this functionality

Sounds good to me. +1 for a $urlBuilder service.

I hope is not too late for debate...
@pkozlowski-opensource  and mates, here you have another approach that solves the same issues and addresses @petebacondarwin concerns, giving more control to userland and keeping core simpler, IMHO.

@donaldpipowitch @junhanamaki @ivanff Here you have another approach ready to be used in angular > v1.2
http://codepen.io/jmendiara/details/bdGbPN/


registration form for students

I want to work on this issue .

@simranquirky  Can you please explain what I have to do in this ??

you have to create an html file where we take input such as student name, roll, class, sections, subjects enrolled,schoolname etc and a submit button. ni backend work involved , just HTML CSS and js.

Okay , Basically you are saying that the login information have to save in DBMS .right ????

"no backend work"

Okay . So kindly assign me this work . I want to work on it .

sure

Thank you @simranquirky for assigning me this work .

hey, @simranquirky  could I please upload the Registration form with javascript validation for students.

Yes just create a separate folder for that @mifrasgaffoor

@simranquirky I want to work on this please assign it to me

Ok create. A separate folder for your work.

@simranquirky I would like to contribute to this. Please can you assign it to me?

Yes. Make sure to create a separate folder.

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


Support custom IDs for Sketch library sync

This adds a document/page name option in the config together with a customIds opt-in option that uses permanent IDs for shared styles in html-sketchapp if you know all IDs (data-sketch-text) are unique and will not change.
This PR should fix library sync between updates (symbols can have a permanent ID).
Documentation should probably be added to the README.md for setting symbol IDs:
  symbolMiddleware: ({ symbol, node, suffix }) => {
    const symbolName = node.dataset.sketchSymbol;

    symbol.setId(`${symbolName}${suffix}`);
    symbol.setName(symbolName);
  },

New config options:
{
  name: 'project-id-here',
  customIds: true
}

Depends on changes in https://github.com/brainly/html-sketchapp/pull/151 (that would need to be merged first).
#18

symbol-middleware.test.js fails because of a snapshot test mismatch. Not sure what's causing this and whether it's safe to override the snapshot test.

Hey, thanks for this PR! Definitely keen to support this behaviour. However, since we're unable to merge this PR until https://github.com/brainly/html-sketchapp/pull/151 is merged first, I'm closing this for now. Please feel free to reopen once this is no longer the case.

The brainly/html-sketchapp#151 has been merged, can you please reopen this PR @macintoshhelper @markdalgleish ? :)

I've reopened it with changes for the new text middleware, apologies for the delay!

@michalsnik @markdalgleish


chore(master): release 1.1.3

:robot: I have created a release beep boop
1.1.3 (2023-08-10)
Miscellaneous

deps: update dependency pestphp/pest-plugin-laravel to v2.2.0 (663ce55)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/laravel-stripe-webhooks/releases/tag/v1.1.3 :sunflower:


Update_meet_commands_functionality

Command changes

Removed ConfirmCommand
Added EmptyCommand functionality
Adding a meeting requires at least an attendee index
Adding a meeting requires at least an agenda
Invalid meeting indexes results in Unknown Attendees

Codecov Report

Merging #142 (8cea46d) into master (3b6b219) will decrease coverage by 0.13%.
The diff coverage is 16.00%.

@@             Coverage Diff              @@
##             master     #142      +/-   ##
============================================
- Coverage     50.77%   50.63%   -0.14%
- Complexity      601      603       +2
============================================
  Files           118      117       -1
  Lines          2651     2662      +11
  Branches        310      313       +3
============================================
+ Hits           1346     1348       +2
- Misses         1216     1224       +8
- Partials         89       90       +1

Impacted Files
Coverage Δ

.../java/seedu/address/logic/commands/AddCommand.java
92.30% <ø> (ø)

...java/seedu/address/logic/commands/BackCommand.java
0.00% <ø> (ø)

...va/seedu/address/logic/commands/DeleteCommand.java
100.00% <ø> (ø)

...edu/address/logic/commands/DeleteFieldCommand.java
0.00% <ø> (ø)

...java/seedu/address/logic/commands/EditCommand.java
93.33% <ø> (ø)

...java/seedu/address/logic/commands/ViewCommand.java
0.00% <ø> (ø)

...dress/logic/commands/meeting/CancelAllCommand.java
0.00% <0.00%> (ø)

...du/address/logic/commands/meeting/MeetCommand.java
0.00% <0.00%> (ø)

.../address/logic/commands/meeting/UpdateCommand.java
0.00% <0.00%> (ø)

.../seedu/address/logic/parser/AddressBookParser.java
72.72% <0.00%> (ø)

... and 9 more

Continue to review full report at Codecov.

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


On a serious note: @norcali, there'a a feature overview with a lot of examples: https://github.com/milessabin/shapeless/wiki/Feature-overview:-shapeless-2.0.0
Also, there's a book: https://github.com/underscoreio/shapeless-guide
Also, you can google some slides. Just try "shapeless tutorial".
Also, you may ask on stackoverflow and Gitter channel, if none of the above works for you.

@norcalli that kind of language isn't acceptable here. Any repetition will get you blocked immediately.
The shapeless guide pointed to by @tkroman is excellent.

Would it make sense to link to the book from this project's README.md?  Given that it is recommended by the both of you.

Yes, it would.

Hey thanks guys. Adding a link to the shapeless guide in the README is basically exactly what I wanted. Sorry for the outburst, but I inherited some shapeless stuff, and my work project was being delayed by not having any documentation, so I had to stay late, leading to me being understandably frustrated.

You should address that sort of frustration to employers who give you unreasonable deadlines, not people who give you free software (in both senses of "free").


🌐 Add Chinese translation for Tutorial - Dependencies in path operation decorators

🌐 Add Chinese translation for Tutorial - Dependencies in path operation decorators

It seems this was translated in a different PR, so I'll close this one, but thanks for the effort! ☕


Blog App: validations and model specs

Activities:

[ ] Add the following validations:

For the User model:
Name must not be blank.
PostsCounter must be an integer greater than or equal to zero.

For the Post model:
Title must not be blank.
Title must not exceed 250 characters.
CommentsCounter must be an integer greater than or equal to zero.
LikesCounter must be an integer greater than or equal to zero.

[ ] Add unit specs for all of your models' methods and validations.

Was wrong


[incubator-kie-drools-6088] Performance issue with many kbase models …

…and many large spreadsheets
Issue:

https://github.com/apache/incubator-kie-drools/issues/6088

Hi @mariofusco
The performance issue only arises when a KieProject has many kbase models and many large spreadsheets.
In this case, AbstractKieProject.buildKnowledgePackages is called per kbase model. AbstractKieProject.buildKnowledgePackages calls AbstractKieProject.addFiles -> KieBuilderImpl.filterFileInKBase -> KieBuilderImpl.filterFileInKBase -> KieBuilderImpl.isFileInKieBase -> KieBuilderImpl.packageNameForFile -> KieBuilderImpl.packageNameFromAsset -> KieBuilderImpl.packageNameFromDtable -> DecisionTableProviderImpl.loadFromResource -> SpreadsheetCompiler.compile.
If a KieProject has 20 kbase models and 20 spreadsheets, packageNameFromDtable is called 400 times. One packageNameFromDtable  may not take very long time (1 or 2 seconds), but 400 times are significant.
https://github.com/apache/incubator-kie-drools/blob/main/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBuilderImpl.java#L438
This PR introduces packageNameCache and brings the cache across static methods. This doesn't look nice, but firstly I wanted to share the idea.
Another possible approach would be caching the DRL generated by SpreadsheetCompiler, but where is the appropriate place to have the cache? (and when we should invalidate the cache)

Workaround for non-fixed version: Split KieContainer/ReleaseId per kbaseModel so you can avoid the combinatorial explosion.

GHA  ubuntu-latest: flaky
2024-09-18T09:04:13.7047738Z [ERROR] Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 16.53 s <<< FAILURE! -- in org.drools.compiler.integrationtests.TimerAndCalendarFireUntilHaltTest

Thanks a lot for your analysis of the problem @tkobayas. I implemented a very similar alternative solution, that however moves that same cache in the dtable module, trying to explain why I believe this would be a better solution. Let me know what you think about it.

Replaced by https://github.com/apache/incubator-kie-drools/pull/6097


Missing checksum file in jdk-11.0.2+9_openj9-0.12.1 release

Platform:
linux
Architecture:
x64
Please describe the issue that you are having with our binaries and if possible how to recreate it.
The release https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/tag/jdk-11.0.2%2B9_openj9-0.12.1 is missing a checksum file for the linux x64 build.
This also shows up in the JDK checksum link at: https://adoptopenjdk.net/releases.html?variant=openjdk11&jvmVariant=openj9#x64_linux which links to https://adoptopenjdk.net/releases.html?variant=openjdk11&jvmVariant=openj9.
The checksum file is also not available via the api i.e using https://api.adoptopenjdk.net/v2/info/releases/openjdk11?release=jdk-11.0.2%2B9_openj9-0.12.1&openjdk_impl=openj9&os=linux&arch=x64&type=jdk&heap_size=normal

I believe the pipeline https://ci.adoptopenjdk.net/job/build-scripts/job/openjdk11-pipeline/288/console created the checksum. Not sure what happened after that.

The checksum file has been manually recreated and added back into the release. So this is fixed for now. However we don't understand the underlying error. We couldn't see any errors in the job that copies the file across (I believe it's a refactoring job in Jenkins, that I don't have visibility of).

This has happened again in the jdk8u202-b08_openj9-0.12.1 release. The checksum file for the AIX jre is also missing - https://adoptopenjdk.net/releases.html?variant=openjdk8&jvmVariant=openj9#ppc64_aix. @lumpfish

Deleted and regenerated/re-uploaded the sha256.txt manually. It was showing when I tried to edit the release with a red warning triangle beside it inviting me to delete and upload the file again ... So I did. Hopefully it will show up on the website soon and I'll download/verify it

LGTM - closing


Implementation of adaptive stepsize control not consistent with the formula.

remove unnecessary step_reject

Reference issue

What does this implement/fix?

According to the textbook Hairer, Nørsett, Wanner (2008) Solving Ordinary Differential Equations I Nonstiff Problems (4.13)
It is unnecessary to introduce further step size reduction when the proposed step is accepted beyond the formula (4.13).
Additional information

The following ODE example comes from the tutorial
using OrdinaryDiffEq
using SpecialFunctions
y1_0 = +1 / 3^(2/3) / gamma(2/3)
y0_0 = -1 / 3^(1/3) / gamma(1/3)
y0 = [y0_0, y1_0]
function func(y, p, t)
    return [t * y[2], y[1]]
end
t_span = [0.0, 4.0]
prob = ODEProblem(func, y0, t_span)
sol = solve(prob, DP5(), controller=IController(), abstol=1e-6, reltol=1e-3)
println(sol.t)

produces:
[0.0, 0.10097672265100154, 1.0464361916820448, 1.9106051647969808, 2.498732043381801, 3.0353600344515415, 3.5811711679538556, 4.0]

For Scipy:
from scipy.integrate import solve_ivp
from scipy.special import gamma, airy
from rk import DOPRI5
y1_0 = +1 / 3**(2/3) / gamma(2/3)
y0_0 = -1 / 3**(1/3) / gamma(1/3)
y0 = [y0_0, y1_0]
def func(t, y):
    return [t*y[1],y[0]]

t_span = [0, 4.0]
sol1 = solve_ivp(func, t_span, y0, method=DOPRI5, rtol=1e-3, atol=1e-6)
print("sol1.t: {}".format(sol1.t))

produces
sol1.t: [0.         0.10097672 1.04643602 1.91060117 2.49872472 3.08684827
 3.62692846 4.        ]

Using this PR:
produces
sol1.t: [0.         0.10097672 1.04643602 1.91060117 2.49872472 3.03534834
 3.5811605  4.        ]

which is more similar to the result of Julia.

Please have a look at this PR comment (the whole PR is of interest) and the associated commit. The reason why this if condition and the step_rejected variable are added to the step implementation within rk.py is to match the behaviour of the original DOP853 code. Within SciPy, RK23, RK45 and DOP853 are all relying on rk.py, and thereby, they all call the same step implementation. In removing this if condition, you would have to distinguish, at least within _step_impl, RK23 and RK45 from DOP853. Otherwise, you would need to justify such a change for DOP853 as well.

Please have a look at this PR comment (the whole PR is of interest) and the associated commit. The reason why this if condition and the step_rejected variable are added to the step implementation within rk.py is to match the behaviour of the original DOP853 code. Within SciPy, RK23, RK45 and DOP853 are all relying on rk.py, and thereby, they all call the same step implementation. In removing this if condition, you would have to distinguish, at least within _step_impl, RK23 and RK45 from DOP853. Otherwise, you would need to justify such a change for DOP853 as well.

I checked the refactor of the original fortran implementation, which is more readable. It indeed has the mystical
control which is not explained in the textbook.
The corresponding code line
reads like this:
if ( reject ) hnew = posneg*min(abs(hnew),abs(h))

Here posneg is a direction (+1 or -1).
[1] E. Hairer, S. P. Norsett G. Wanner, “Solving Ordinary Differential Equations I: Nonstiff Problems”, Sec. II.

@zhaofeng-shu33 what it the preferred resolution here? Should we leave as-is or do different things here for the different methods?


IP and User calls to PaDS

We are currently getting several IP and user calls per minute from your server to the PaDS API. This is not a problem as such I just wanted to know if they were necessary, and whether they were going to continue when we go into production.
They seem to go in sets of 4, an IP call to create the session, then a user call with the new session ID, then another IP call with the new session ID and finally a user call.  Then after a short time it starts again.

I'm not running calls at the moment.  Working on something else. Haven't run one for at least an hour, maybe more.

It looks like it is from the production server as they have the same IP address (<IP_ADDRESS>) as permit calls coming from David and Paul.

@adistasio
I'm not sure about these yet, but it may be related to something polling the server directly on the production server, whereas I don't see it on stage.  It looks like all night, every few seconds, I am getting requests with no client ID.  No client ID requests are assigned 666 for devilish reasons.  (Though the OpenAPI document interface does not supply a client ID in requests, so that shows up too as 666 unless you set a cookie for client id.

These functions happen automatically with API calls that have client and session id parameters.  (The "tick" call api_status does not have these.)
This is wasting session ids too, and PaDS bandwidth.  I may have to stop asking for a session ID for requests without a client ID (or with client ID 666).  That would mean the OpenAPI doc would require that you set a cookie for the client ID, since it's possible that's how these requests are coming in, though they could also be coming in directly.
Perhaps it's Google or some indexer hitting this?
I've added a log item to see the nature of the request coming in.

Thanks for the update.
It would be good to get this sorted, there were 35,000 anonymous IP and user of calls over the weekend. There were only 145 calls from logged-on users!

@nrshapiro  @jwoosnam I've updated the firewall for production. The issue should be resolved now but please let me know if you see any other issues.

@lhorne-gavant I am not sure how the firewall would affect this, but the number of calls coming through has NOT reduced.

@adistasio
@lhorne-gavant  - yes, we're still getting hit every few seconds.  See the production console for stdout.
2020-12-14T09:41:43.893-05:00 | 2020-12-14 14:41:43 main/get_client_session(231): INFO Client 666 request w/o sessionID: http://<IP_ADDRESS>/v2/Session/Status/'
-- | --
  | 2020-12-14T09:41:43.893-05:00 | 2020-12-14 14:41:43 opasDocPermissions/get_authserver_session_userinfo(248): INFO Non-logged in user for client-id 666 sessionId: 47b3245f-4eef-49f6-b371-bf34054fff4e. Info from PaDS: SessionId has not been successfully logged on, so user details can't be retrieved.
  | 2020-12-14T09:41:43.893-05:00 | 2020-12-14 14:41:43 opasDocPermissions/get_authserver_session_info(224): INFO ***authent: False - get_full_session_info total time: 0.05286002159118652***
  | 2020-12-14T09:41:44.143-05:00 | 2020-12-14 14:41:43 libs.opasAPISupportLib/get_session_info(287): INFO Session 47b3245f-4eef-49f6-b371-bf34054fff4e not found. Getting from authserver (will save on server)
  | 2020-12-14T09:41:44.143-05:00 | 2020-12-14 14:41:43 opasDocPermissions/get_authserver_session_userinfo(248): INFO Non-logged in user for client-id 666 sessionId: 47b3245f-4eef-49f6-b371-bf34054fff4e. Info from PaDS: SessionId has not been successfully logged on, so user details can't be retrieved.
  | 2020-12-14T09:41:44.143-05:00 | 2020-12-14 14:41:43 opasDocPermissions/get_authserver_session_info(224): INFO ***authent: False - get_full_session_info total time: 0.05238676071166992***
  | 2020-12-14T09:41:44.143-05:00 | 2020-12-14 14:41:43 libs.opasAPISupportLib/get_session_info(301): INFO getSessionInfo: session_id='47b3245f-4eef-49f6-b371-bf34054fff4e' user_id=0 username='NotLoggedIn' is_valid_login=False has_subscription=False is_valid_username=False authenticated=False confirmed_unauthenticated=True authorized_peparchive=False authorized_pepcurrent=False session_start=datetime.datetime(2020, 12, 13, 19, 11, 55, 26825) session_end=None session_expires_time=datetime.datetime(2020, 12, 20, 19, 11, 54, 26825) user_type='Unknown' admin=False api_client_id=666 pads_session_info=PadsSessionInfo(HasSubscription=False, IsValidLogon=False, IsValidUserName=False, ReasonId=200, SessionExpires=604799, SessionId='47b3245f-4eef-49f6-b371-bf34054fff4e', session_start_time=datetime.datetime(2020, 12, 13, 19, 11, 55, 26825), pads_status_response=200, pads_disposition=None, ReasonStr='') pads_user_info=None
  | 2020-12-14T09:41:50.073-05:00 | 2020-12-14 14:41:43 root/raw(833): INFO solrpy request: q=art_id:APA.009.0331A&fl=art_id,+art_vol,+art_year,score&version=2.2&wt=xml
  | 2020-12-14T09:42:06.160-05:00 | 2020-12-14 14:42:06 main/get_client_session(231): INFO Client 666 request w/o sessionID: http://<IP_ADDRESS>/v2/Session/Status/'
-- | --

@jwoosnam I had assumed that number of calls would be coming from bots, but that was not the case here. The production healthcheck endpoint has been updated and I no longer see the extra calls in the api logs. Thanks for the heads up!

@lhorne-gavant Sorted!!  The last call in the log file was 2020-12-14 14:49:14.647 GMT


(MAINT) Mergeback 1.9.4 from release to master

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@e207b2e). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             master    #444   +/-   ##
========================================
  Coverage          ?   1.86%
========================================
  Files             ?     481
  Lines             ?   77841
  Branches          ?       0
========================================
  Hits              ?    1450
  Misses            ?   76391
  Partials          ?       0

Continue to review full report at Codecov.

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


[oadp-1.4] OADP-3504: imagePullPolicy based on image having or not digest

Why the changes were made
cherry picked from commit https://github.com/openshift/oadp-operator/commit/93be41ae23bd20f749178f7e7d9c93821796c5d0 : PR https://github.com/openshift/oadp-operator/pull/1397
How to test the changes made
Follow instructions from parent PR.

/retest
terminating timeout

/lgtm

/lgtm

/override ci/prow/4.16-e2e-test-kubevirt-aws


build engine file failed

I want to run frcnn model from model/frcnn/faster_rcnn_resnet10.etlt. However when I run with command ./deepstream-custom -c pgie_frcnn_tlt_config.txt -i ./sample_720p.h264 ,error happend.
nvidia@nvidia-X10SRA:~/zongxp/tlt/deepstream_tlt_apps$ ./deepstream-custom -c pgie_frcnn_tlt_config.txt -i ../deepstream_tlt_apps_bak/sample_720p.h264  Now playing: pgie_frcnn_tlt_config.txt 0:00:00.528579923 10118 0x55ae34a35b00 INFO                 nvinfer gstnvinfer.cpp:602:gst_nvinfer_logger:<primary-nvinference-engine> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1591> [UID = 1]: Trying to create engine from model files parseModel: Failed to open TLT encoded model file /home/nvidia/zongxp/tlt/deepstream_tlt_apps/./models/frcnn/faster_rcnn_resnet10.etlt ERROR: tlt/tlt_decode.cpp:274 failed to build network since parsing model errors. ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:797 Failed to create network using custom network creation function ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:862 Failed to get cuda engine from custom library API 0:00:00.529707445 10118 0x55ae34a35b00 ERROR                nvinfer gstnvinfer.cpp:596:gst_nvinfer_logger:<primary-nvinference-engine> NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1611> [UID = 1]: build engine file failed Segmentation fault (core dumped)
I have no changed anything, and my env is cuda10.2,trt 7.0

it's because the bandwidth of this project is out of use, so the models downloaded are not correct, we are now working to fix this.
Thanks for the notification!

We put the model in another place.
Please check the "Known issues" in the README page.
Thanks!


Add configOverride parameter to getSchema

I finally got around to hacking on using location data in prisma-lint!
https://github.com/loop-payments/prisma-lint/pull/84
Everything works great when testing in the prisma-lint repository, but I didn't get location data when running the linter on a schema in a different repository (backend) that uses prisma-lint. I think this is because prisma-ast was looking for a config file in backend.
I wasn't sure how to get the location node configuration for prisma-ast to be set by prisma-lint without requiring backend to also have to configure prisma-ast, which felt like too much to ask for users of prisma-lint.
This PR allows prisma-lint to request location information on demand from prisma-ast, regardless of the config.
I recommend reviewing with the hide whitespace option enabled:

Thanks for the feedback. I've iterated in that direction -- let me know what you think.

@maxh this feature should be available via prisma-ast v0.8.0


Enable FirestoreV1IT to run against a non default host

Added FIRESTORE_HOST env variable to allow endpoint (i.e. host + port) other than default endpoint for testing purposes. If FIRESTORE_HOST env variable is set, it will be used as Firestore endpoint. If FIRESTORE_HOST env variable is not set, the default endpoint will be used.
Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

#27255

Run PostCommit_Java_Dataflow

Run PostCommit_Java_Dataflow

Run PostCommit_Java_DataflowV2

Hi, I disabled FirestoreV1IT again on master due to test failures: #27267
I see the same test failure on https://ci-beam.apache.org/job/beam_PostCommit_Java_DataflowV1_PR/182/
For testing this PR now it would need to remove the exclusion here:
https://github.com/apache/beam/blob/664f355ee9c631afb4d80440e837e7b48028bbc8/runners/google-cloud-dataflow-java/build.gradle#L563
https://github.com/apache/beam/blob/664f355ee9c631afb4d80440e837e7b48028bbc8/runners/google-cloud-dataflow-java/build.gradle#L612

Run Java PreCommit

Run Java PreCommit

R: @pcostell for Firestore.

What are next steps on this PR? @SabaSathya @pcostell @Abacn

FirestoreV1IT integration tests need to be triggered by phrase Run PostCommit_Java_Dataflow The relevant tests is currently disabled: https://github.com/apache/beam/pull/27256#issuecomment-1610069831
To confirm, is this PR still blocked by #25851 ?

This PR results in a command line arg of --host, which is a little generic and has the risk of conflicting with other PipelineOptions classes (not to mention non-PipelineOptions arguments). Can we revisit to rename to something more specific like firestoreHost (which corresponds with the already-existing firestoreDb)
cc @Abacn

This PR results in a command line arg of --host, which is a little generic and has the risk of conflicting with other PipelineOptions classes (not to mention non-PipelineOptions arguments). Can we revisit to rename to something more specific like firestoreHost (which corresponds with the already-existing firestoreDb)
cc @Abacn

Thanks, this sounds totally reasonable and I should have noticed this honestly. Would you mind drafting a PR for it. This flag currently is used for testing purpose so it should be fine


Allow for debug pyenvs in setup.py

It's assumed that we are not in a python debug env in setup.py. so linking fails

we should be able to use the env var $PYENV - if it's set we can deduce if it's a debug environment
creating a debug pyenv looks like this
CFLAGS="-O0 -ggdb" CONFIGURE_OPTS="--enable-shared" pyenv install -kg $PYVER


Invalid highlight inside information popup

Check for existing issues

[X] Completed

Describe the bug / provide steps to reproduce it
It looks like there is an issue with highlighting inside the information popup.
Environment
Zed: v0.119.15 (Zed Preview)
OS: macOS 14.3.0
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.
No response

This might be related: #2343

This is fixed in 0.119.17


File Transfer methods put() and upload() don't honor dry-run flag

https://github.com/capistrano/capistrano/blob/master/lib/capistrano/configuration/actions/file_transfer.rb
transfer() honors the dry-run flag.
upload() (and put() which is a wrapper around upload()) doesn't.
This is why, for example, deploy:web:disable doesn't honor the dry-run flag:
https://github.com/capistrano/capistrano/issues/151
But more generally, any task built on put() or upload() will fail to honor the dry-run flag.

All methods like put get upload download are usign the transfer method which honors dry-run flag as you could see in this line of code https://github.com/capistrano/capistrano/blob/master/lib/capistrano/configuration/actions/file_transfer.rb#L40
But the execute_on_servers actually connecting to the all servers and will not harm to servers.

My mistake, thanks for correcting me. I guess it's the fact that it does actually try to connect to the remote servers which threw me. As you noted, transfer does still invoke "execute_on_servers", even in dry-run. Whereas instead "run()" bails out before calling "execute_on_servers" in dry-run mode. The discrepancy between the two is most noticeable when alternating between deploy:web:enable and deploy:web:disable, both with dry-run. One simply prints out the command it would have tried, the other also attempts to connect to the remote servers. In my opinion it would be a good practice for dry-run to always imply skipping execute_on_servers. I see from the line you cited above that it would not actually try to do anything once connected to the remote servers. Still, I feel a dry run should not even connect to the servers. Alternatively, if connecting to the servers is deemed as something to be included in a dry run, it would be clearer if that occurred in all cases (run() as well as transfer()).

Ok, I got your point, I also think that result should be the same in both cases, I''ll try to come up with a patch for the transfer method.

Thanks!

I submitted my pull request as #167


Added support for HTTP methods

See #331
I think before we finalize the pythonic method for this, these changes can be utilized.

Coverage decreased (-0.04%) to 92.12% when pulling 7a3a73cb7f0fd9a00010372312b2489e5982f79c on mihirvj:master into 483546d781a9c26779953de74f0911b279da7550 on jakubroztocil:master.

Can you change the commit message (and title) to read:

"Added completion support for HTTP methods"

The message is very misleading otherwise.

@mihirvj I'd also add PATCH, OPTIONS, and I believe there are other commonly used methods as well

Now I realize this will only work without any --options (e.g. $ http -v P<tab> wont complete).
The more robust approaches mentioned in #331 are probably a better way to go.


idiomatic way to return errors with json body and StatusCode::Ok

i'm making a toy server that implements the alternative registries web API.
The endpoints all need to return a 200 response on errors, with a json body encoding the actual details.
I'm struggling to find a nice pattern for doing this using tide.

My endpoint functions have to return Result<impl Into<Response>, tide::Error>, even though the tide::Error path is never reachable.
i can't propagate errors with the ? operator-

what i've come up with is an "inner" endpoint function that returns a result, and then a "public" endpoint function that converts that Result into a tide::Response and Ok-wraps it. It works, but it feels slightly clumsy.
pub async fn endpoint(request: Request<State>) -> tide::Result<tide::Response> {
    Ok(
        match inner_endpoint(request).await {
            Ok(response) => response.into(),
            Err(e) => e.into()
        }
    )
}

pub async fn inner_endpoint(request: Request<State>) -> Result<MyResponse, MyError> {
    ...
}

impl From<MyError> for tide::Response {
    fn from(e: MyError) -> Self {
        ...
    }
}

impl From<MyResponse> for tide::Response {
    fn from(e: MyResponse) -> Self {
        ...
    }
}

i suspect this is a duplicate of #452

I guess returning 2xx HTTP statuses on failure is not your choice but I also hope you agree that it is a gross anti-pattern.
Not the most helpful comment but I couldn’t resist

I guess returning 2xx HTTP statuses on failure is not your choice but I also hope you agree that it is a gross anti-pattern.

I don't really have a strong opinion here. It indicates that the operation executed successfully, and allows you to provide a structured response. Also the API is only ever consumed by one client, which is expecting precisely this. But as you say, it's out of my hands anyway
Even if you were returning other http codes, but wanted to choose them manually, or set a custom body or headers, you'd run into the problem I'm describing. It's in no way specific to 200 codes.

Not the most helpful comment but I couldn’t resist

Agreed.

Will this be addressed by https://github.com/http-rs/tide/pull/549?
    app.middleware(ErrorHandler::new(
        |err: tide::http::url::ParseError| async move {
            Ok(Response::new(StatusCode::Ok).body_json(json_api_error_response))
        },
    ));

@Fishrock123 possibly! Conceptually though, it does seem awkward to take a structured error, convert to a tide::Error, and then use a handler to turn it back into some structured error response

Is this still an issue in Tide 0.12? (i.e. with https://github.com/http-rs/tide/pull/570)

It should now indeed be possible to write:
let mut app = tide::new();
app.at("/").get(|_| async { Ok(json!({ "hello": "nori" })) });
app.listen("localhost:8080").await?;


chore(network): add debug printout of the peer address

Pull Request type
Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Does this introduce a breaking change?

[ ] Yes
[ ] No

Other information

This change is

Current dependencies on/for this PR:

#1744  👈
main

This stack of pull requests is managed by Graphite.


Git changes aren't deployed on a cloud instance for automatic e2e test

Merged PR Dev: Reboot GitHub Actions Test Workflow #72


Change default branch name to main

@aymanhab

This looks complete already.
Although it has broken the build script (at least the linux one) as it keeps looking for a 'master' branch instead.


Question

Hello iceland 2k14 .
It would be fantastic if we could add boot_file , for kangaroo .Or at least an input file .txt , where more than one pub key can be placed.
I will be glad of any answer, THANK YOU FOR TAKING THE TIME FOR US.

Multi pubkey Support not working yet.


Cleaned SCF.py

Added code comments, and 100% pep8 cleared

Codecov Report

Merging #35 into master will not change coverage.
The diff coverage is 76.92%.

@@           Coverage Diff           @@
##           master      #35   +/-   ##
=======================================
  Coverage   95.27%   95.27%
=======================================
  Files           5        5
  Lines         148      148
=======================================
  Hits          141      141
  Misses          7        7