Configuring a model's TTL

Feature
Feature description
I would like to propose the idea of adding ttl as part of a model's optional configurations.
Simply put, this would give an indicator of the expected life expectancy of the data. If a run is called that involves the said model and it's life expectancy has not expired, the run job can simply ignore the materialization of this table to save time.
ttl could be defined as a unit of time in seconds, in the example below, the model would be refreshed at most once every 3600 seconds (1h)
{{-
  config(
    ttl=3600,
  )
-}}

...

Who will this benefit?
I think this feature would be most useful for larger data pipelines that may have cross dependencies. As a project grows, it is more likely that different datasets require different refresh rates.
For example, you may have one table, tableA, that is pulling info from a source table that updates once a day. Another table, tableB, pulls info from a source table that updates every minute. Assuming both of these tables are required to materialize yet another table, tableC, we understand logically that it is less than optimal to refresh tableA at the same rate as tableB and tableC. In fact, we could leave tableA alone for a while and still keep tableC 'fresh' for most of the day.
ttl would allow data engineers to provide extra information to prevent unecessary computation and reduce time required to refresh entire data pipelines.

hey @mlavoie-sm360 - thanks for the feature request!
We typically recommend handling something like this from an orchestrator. You might be able to approximate this by adding tags to your models (like hourly, and nightly), then just re-running those models on a specified interval. That might look like:
# Run this hourly
dbt run --models tag:hourly+

# Run this nightly
dbt run

You also mentioned that you have source tables that are loaded with varying frequencies. Maybe another option is to use sources to denote the link between your source tables and dbt models? Then you could do:
# Run models that depend on Source A hourly
dbt run --models source:sourceA+

# Run models that depends on Source B more frequently
dbt run --model source:sourceB+

I think the ttl you've described here is pretty interesting, but there are a couple of issues I'd like to think through further:

dbt doesn't store any state outside of the database - where should we record the timeout timestamp?
what happens when the model logic changes? Do consumers just get the old version of the table until the ttl expires?

Of these, I think the second issue is the bigger concern -- we could figure out some way to store state if it proved valuable for a use case like this. I have a harder time wrapping my head around how the ttl should behave in typical workflow settings. Curious to hear your thoughts on if this logic can be pushed into the orchestrator, or if you think there are other benefits of using a ttl here.
Thanks again!

Hey @drewbanin - thanks for the feedback!
You are right when you talk about approximating this behaviour by using tags and an orchestrator. In fact, that is our current approach to solving this issue, but I know it could be better. Bear with me here.
Our orchestrator is Airflow. In our SQL, we use tags to identify when things should be refreshed (daily, twice_a_day, every_3_hours, hourly, near_rt, etc.). These tags are only applied to 'leaf' queries, the ones that don't have children.
We have a handful of tables that we have identified as candidates for TTLing, these are usually part of a schedule that refreshes more often than is really necessary for that table. For example, tableA is part of a flow that refreshes every hour because data in tableB refreshes every hour and they are both required to generate tableC, as I had explained earlier.
To avoid refreshing tableA, we apply a tag:ttl to tableA and our orchestrator applies an --exclude tag:ttl whenenver it runs it's normal scheduled jobs (daily, twice_a_day, etc.). Our orchestrator then has a separate task for tableA with it's own custom schedule. A new task is created manually for each new ttl tagged tables.
It works!
But I feel like it could be simpler DRYer. Every time we identify one of these TTL candidates, two things need to happen, the SQL needs to be tagged as a ttl, a new task in the orchestrator needs to be created to run that table on it's own schedule. This creates a risk, there is no way to know that every ttl has it's matching task. Again, on a small scale that is not an issue, as your pipeline grows, the concerns grow with it. If both of these things could happen in an atomic kind of way, risk would be reduced.
I shared all of this to add more context to the conversation, hopefully it helps paint a clearer picture for pinning down the need I am hoping this feature would cover.
In regards to your two questions, I think they are right on, so let me play ball a little with you and give it a go.
Questions
I'll start with this one: what happens when the model logic changes? Do consumers just get the old version of the table until the ttl expires?
Absolutely, things will keep running as they are until the time to live expires. What if I need it to expire right away? Perhaps, using force-refresh could ignore the ttl flag, like sodbt run -m +tag:daily --force-refresh?
No matter the approach taken, I feel like that question has the same answer, the underlying question is the one I feel we should ask, how do you refresh the table earlier if required?
Second: dbt doesn't store any state outside of the database - where should we record the timeout timestamp?
Great question, I don't know, I don't know enough about the inner workings of DBT to make a statement on that. Since we are bouncing ideas, I am going to go in a completely different direction then the one I intended in the first place, but what if dbt didn't handle any of this other then to expose the information?
What if I could do something like this and ask dbt to list every query tagged ttl and then have an elegant way of also getting the configuration values in a json format for example.
{{-
  config(
    tags=['ttl'],
    my_custom_var='0 0 * * *'
  )
-}}

select * from ...

It would then be easy to create a much DRYer task in the orchestrator asking for a list of tables with a given tag and then pulling out the required info to derive the schedule for that task. We would then have increased the flexibility of DBT without increasing it's complexity.
DBT's role here would be to provide enough flexibility within it's own framework to be leveraged by other systems to do more complex things without adding more bells and whistles.
What are your thoughts?

Two other ideas regarding the question where should we record the timeout timestamp?

Using a mechanism similar to source snapshot-freshness
Using a mechanism similar to the example given to create audit tables

Hey @mlavoie-sm360  - thanks for the measured and thoughtful response! I think you made an incredibly good point here. What do you think about this?

What if I could do something like this and ask dbt to list every query tagged ttl and then have an elegant way of also getting the configuration values in a json format for example.

We're adding a dbt ls command for v0.14.0. This command accepts model selectors, then returns all of the matching resources (eg. models).
The feature spec shows some options (docs to come!). You could do something like:
$ dbt ls --models tag:ttl --output json
{
    "name": "my_model",
    "resource_type": "model",
    "package_name": "debug",
    ...
    "config": {
        "enabled": true,
        "materialized": "incremental",
        "my_custom_var": "0 0 * * *"
    }
}

The output is one line per matched resource, so you could pipe this into some process that plucked out a config field and operated on it accordingly.

I feel confident that would allow us to be DRY and ATOMIC in our setup. I am looking forward to giving this approach a try.

Hey @mlavoie-sm360 - dbt ls is merged and going live in dbt v0.14.0! Check out the (prerelease) docs here: https://docs.getdbt.com/v0.14/reference#list


Swift URLSession Response headers missing

Description
I can't get the X-Repo-Commit from the header through Swift URLSession, but it is present when capturing HTTP traffic.
I can only switch to using libcurl to solve this problem now.
URLSession

libcurl

curl

Reproduction
    @Test
    func example() async throws {
        var request = URLRequest(url: URL(string: "https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct/resolve/5a33ba103645800d7b3790c4448546c1b73efc71/model.safetensors")!)
        request.httpMethod = "HEAD"

        let (_,response) = try await URLSession.shared.data(for: request)

        print(response)
        guard let httpResponse = response as? HTTPURLResponse else {
            throw URLError(.badServerResponse)
        }

        print(httpResponse.allHeaderFields)
        print(httpResponse.allHeaderFields.debugDescription)
    }

curl -I "https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct/resolve/5a33ba103645800d7b3790c4448546c1b73efc71/model.safetensors"

Expected behavior
Get x-repo-commit: 5a33ba103645800d7b3790c4448546c1b73efc71
Environment
swift-driver version: 1.115 Apple Swift version 6.0.2 (swiftlang-<IP_ADDRESS>.2 clang-16<IP_ADDRESS>)
Target: arm64-apple-macosx15.0
Additional information
No response

https://github.com/Alamofire/Alamofire/issues/1192

cc @itingliu


Video/audio out of sync during play only with Safari

Hi there, testing a live stream with video.js contrib dash generated by MP4Box.
I can notice a problem of audio / video synchronization that occurs only after some loops of the video in input and only on Safari (with chrome there is no delay):
The problem starts to occur only when the loop begins repetitions:
For example if I watch a video of 20 minutes, audio and video are synchronized, when the video repeats its self as desired with -dash-live the delay between audio and video begins to grow, which will become evident after 3, 4 repetitions.
if I reload the page the audio will be back synchronized.
The problem is only visible after the repetition of several loops.
There are no errors from mp4box,
The test was performed with video.js contrib dash.
TWO HOURS PER TEST ON DESKTOP:
safari on osx positive: audio before video
chrome on osx negative test
TWO HOURS PER TEST ON ANDROID/CHROME
Always negative
This is the video used for test: https://www.sendspace.com/file/kj17x5
I was thinking the issue is on git gpac but when I found out the problem is only on Safari, I thought it was a player issue, some ideas?
Thanks!

Hey @DanielMartine , are you still seeing this issue? If so, it may be worth opening the issue with https://github.com/Dash-Industry-Forum/dash.js , as we wrap their player for this source handler.


Canvas

Will wait to see what reworks we will do for icon buttons before merging this one

@Ddungyov after you approve once more we can merge this


feat: add PlanOnly mode

If planOnly is true, never apply terraform changes.
closes #670

I guess all the docs changes are here because it was not generated when those fields were added/changed and now when I run to generate, it generated it.

I guess all the docs changes are here because it was not generated when those fields were added/changed and now when I run to generate, it generated it.

that's fine.

I guess all the docs changes are here because it was not generated when those fields were added/changed and now when I run to generate, it generated it.

If you want to make life a bit easier for reviewers, you could generate with the new tool version but not your changes, then make your changes and generate again, in separate commits.

Thank you for the PR @yitsushi and thank you for reviewing @squaremo
I'll test this mode and get back to you shortly @yitsushi

❯ tfctl get
NAMESPACE       NAME            READY   MESSAGE         PLAN PENDING    AGE
flux-system     helloworld-tf   Unknown Plan generated  true            4 minutes

Message saying "Plan generated": correct.
I was able to view plan via the tfctl: correct.

However, the Ready state would be "Ready" instead of "Unknown" - as we intended to make this object green in the planOnly mode.

❯ tfctl get
NAMESPACE       NAME            READY   MESSAGE         PLAN PENDING    AGE
flux-system     helloworld-tf   Unknown Initializing    true            8 minutes

It's a bit tricky now. After the reconciliation kicked off next round, the object turned Unknow + Initializing.

It's not blocked and wait for manual intervention.
❯ tfctl get
NAMESPACE       NAME            READY   MESSAGE         PLAN PENDING    AGE
flux-system     helloworld-tf   Unknown Initializing    true            2 minutes


Token expire

Look like token were expired, and all solution righ tnow is not working unforthenetly
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/control4/light.py:132
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 4:31:19 PM (3 occurrences)
Last logged: 5:47:30 PM
[139866916344512] { "error": "Unauthorized", "details": "Expired or invalid token" }
[139866717870400] { "error": "Unauthorized", "details": "Expired or invalid token" }
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/homeassistant/init.py", line 130, in async_handle_turn_service
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 898, in entity_service_call
task.result()  # pop exception if have
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1199, in async_request_call
return await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 580, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/config/custom_components/control4/light.py", line 132, in async_turn_on
await c4_light.rampToLevel(brightness, transition_length)
File "/usr/local/lib/python3.11/site-packages/pyControl4/light.py", line 51, in rampToLevel
await self.director.sendPostRequest(
File "/usr/local/lib/python3.11/site-packages/pyControl4/director.py", line 99, in sendPostRequest
await checkResponseForError(await resp.text())
File "/usr/local/lib/python3.11/site-packages/pyControl4/error_handling.py", line 114, in checkResponseForError
raise exception(response_text)
pyControl4.error_handling.BadToken: {
"error": "Unauthorized",
"details": "Expired or invalid token"
}

restart of home assistant fixing this


ISSUE-1234 Add authorization for topology test resource for secure mode

Apply Topology ACL to TopologyTestRunResource

applied simple rules

add/update: WRITE
get/list: READ
run: EXECUTE

@arunmahadevan You may want to verify ACL per operation is properly checked. If you have some other rule of ACL for test run and relevant resources in mind, please let me know. Thanks in advance!


Album art not added from some soundcloud songs

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.12.14. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2017.12.14

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
youtube-dl -o '~/Downloads/%(title)s.%(ext)s' --audio-format mp3 --embed-thumbnail --add-metadata https://soundcloud.com/garyvee/sideways-prod-mad-real -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-o', '~/Downloads/%(title)s.%(ext)s', '--audio-format', 'mp3', '--embed-thumbnail', '--add-metadata', 'https://soundcloud.com/garyvee/sideways-prod-mad-real', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.12.14
[debug] Python version 3.6.3 - Darwin-17.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4
[debug] Proxy map: {}
[soundcloud] garyvee/sideways-prod-mad-real: Resolving id
[soundcloud] garyvee/sideways-prod-mad-real: Downloading info JSON
[soundcloud] 309699954: Downloading track url
[soundcloud] 309699954: Downloading m3u8 information
[soundcloud] 309699954: Checking http_mp3_128_url video format URL
[soundcloud] 309699954: Checking hls_mp3_128_url video format URL
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://cf-media.sndcdn.com/2J4HFe1jjmlX.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vMko0SEZlMWpqbWxYLjEyOC5tcDMiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MTM1OTQ1MDR9fX1dfQ__&Signature=KoNtc2AZglBAzxF9lripmNkyBpa9kSjX0MXbZxYREThuOYYJcM~Zs5ie6C9FU5wPf-Vkv~PXnF1VJpRfNnARIKYE9ahM2h3h-wgQuxqwhOLYOio3wtFssb36U0INUC2LLdCm1v8zv0oQIj7thl3SEBnLfrOwLw6vjHXvfoDKWFPICABVG~aLW~Y5n3tNSC9cA2ZLCuSaFgfmS5bwkss~KscEqUt6iK8amza5H8Q4cTi4LSaNX2q0ERiVULaSuv-xfCOVl9FrU4A-X3J7xp5rt-JouWCZh65qrHREw6KfiQV8YQTx4wY-yPYxHrAFDGZydZk09Yaxchl4UkUDrJy7LA__&Key-Pair-Id=APKAJAGZ7VMH2PFPW6UQ'
[download] /Users/craig/Downloads/Sideways (Prod. Mad Real).mp3 has already been downloaded
[download] 100% of 3.16MiB
[ffmpeg] Adding metadata to '/Users/craig/Downloads/Sideways (Prod. Mad Real).mp3'
[debug] ffmpeg command line: ffmpeg -y -i 'file:/Users/craig/Downloads/Sideways (Prod. Mad Real).mp3' -c copy -metadata 'title=Sideways (Prod. Mad Real)' -metadata date=20170226 -metadata description= -metadata comment= -metadata purl=https://soundcloud.com/garyvee/sideways-prod-mad-real -metadata artist=garyvee 'file:/Users/craig/Downloads/Sideways (Prod. Mad Real).temp.mp3'
ERROR: Thumbnail was not found. Nothing to do.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 2032, in post_process
    files_to_delete, info = pp.run(info)
  File "/usr/local/lib/python3.6/site-packages/youtube_dl/postprocessor/embedthumbnail.py", line 34, in run
    raise EmbedThumbnailPPError('Thumbnail was not found. Nothing to do.')
youtube_dl.postprocessor.embedthumbnail.EmbedThumbnailPPError: Thumbnail was not found. Nothing to do.

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Soundcloud song: https://soundcloud.com/garyvee/sideways-prod-mad-real

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
Issue is that some album art is not added from some songs from soundcloud
Example is this song https://soundcloud.com/garyvee/sideways-prod-mad-real which shows album art on soundcloud.com but this is not added when running youtube-dl -o '~/Downloads/%(title)s.%(ext)s' --audio-format mp3 --embed-thumbnail --add-metadata https://soundcloud.com/garyvee/sideways-prod-mad-real -v

Hi @davisonio,
There does not appear to be any album art associated with this entry on Soundcloud, and hence no thumbnail can be generated by the post-processor.  This can be seen from the raw data fetched from the site by the youtube-dl robot:
{u'reposts_count': 9, u'attachments_uri': u'https://api.soundcloud.com/tracks/309699954/attachments', u'video_url': None, u'track_type': None, u'release_month': None, u'original_format': u'mp3', u'label_name': None, u'duration': 207012, u'id': 309699954, u'streamable': True, u'user_id': 2366352, u'title': u'Sideways (Prod. Mad Real)', u'favoritings_count': 166, u'commentable': True, u'label_id': None, u'download_url': u'https://api.soundcloud.com/tracks/309699954/download', u'state': u'finished', u'downloadable': False, u'policy': u'ALLOW', u'waveform_url': u'https://w1.sndcdn.com/2J4HFe1jjmlX_m.png', u'sharing': u'public', u'description': u'', u'release_day': None, u'purchase_url': None, u'permalink': u'sideways-prod-mad-real', u'comment_count': 1, u'purchase_title': None, u'stream_url': u'https://api.soundcloud.com/tracks/309699954/stream', u'last_modified': u'2017/02/28 14:43:54 +0000', u'user': {u'username': u'garyvee', u'permalink': u'garyvee', u'avatar_url': u'https://i1.sndcdn.com/avatars-000298106657-ogrgmg-large.jpg', u'kind': u'user', u'uri': u'https://api.soundcloud.com/users/2366352', u'last_modified': u'2017/06/23 16:49:10 +0000', u'permalink_url': u'http://soundcloud.com/garyvee', u'id': 2366352}, u'genre': u'', u'isrc': None, u'download_count': 0, u'permalink_url': u'https://soundcloud.com/garyvee/sideways-prod-mad-real', u'playback_count': 18992, u'kind': u'track', u'release_year': None, u'license': u'all-rights-reserved', u'monetization_model': u'NOT_APPLICABLE', u'artwork_url': None, u'created_at': u'2017/02/26 23:40:09 +0000', u'bpm': None, u'uri': u'https://api.soundcloud.com/tracks/309699954', u'original_content_size': 8281906, u'key_signature': None, u'release': None, u'tag_list': u'', u'embeddable_by': u'all'}
I believe this page displays the artist avatar instead, which is why youtube-dl is tossing the error about the thumbnail.  If you run the same command with the following URL instead, you will see a proper thumbnail included with the download:
https://soundcloud.com/postmalone/rockstar-feat-21-savage
Cheers,
Parmjit V.

Hi yeah that seems to be the case hmm... shouldn't it download the artist avatar as a 2nd try though? Maybe this is intended behaviour...

Makes sense - this idea has already been raised in issue #12878.  A new PR has been submitted to address this.
Happy 2018!

Thank you! I'll close this now in favour of the PR you created thanks :)


Additional API support for milestones

Implements the ability to manage repository milestones and issue milestones via the API.

POST /repos/:owner/:repo/milestones

Parameters

Name
Type
Description

title
string
The name of the milestone

description
string
Description of the milestone

due_on
time
The due date e.g., "2016-09-06T00:00:00-07:00"

Example
{
  "title":"1.0.1",
  "description":"Fix pack 1",
  "due_on":"2016-09-06T00:00:00-07:00"
}

Response
Status: 201 Created
Content-Type: application/json

{
  "id":4,
  "state":"open",
  "title":"1.0.1",
  "description":"Fix pack 1",
  "open_issues":0,
  "closed_issues":0,
  "closed_at":null,
  "due_on":"2016-09-06T00:00:00-07:00"
}

Edit a milestone
Repository owners and users with write access can perform this action.
PATCH /repos/:owner/:repo/milestones/:index

Parameters

Name
Type
Description

title
string
The name of the milestone

description
string
Description of the milestone

due_on
time
The due date e.g., "2016-09-06T00:00:00-07:00"

If a parameter is empty, that part of the label will remain unchanged
Example
{
  "due_on":"2016-09-15T00:00:00-07:00"
}

Response
Status: 200 OK
Content-Type: application/json

{
  "id":4,
  "state":"open",
  "title":"1.0.1",
  "description":"Fix pack 1",
  "open_issues":0,
  "closed_issues":0,
  "closed_at":null,
  "due_on":"2016-09-15T00:00:00-07:00"
}

Delete a milestone
Only users with write access to a repository can perform this action.
DELETE /repos/:owner/:repo/milestones/:id

Response
Status: 204 No Content

Issue Milestones
Get the milestone for an issue
GET /repos/:owner/:repo/issues/:index/milestone

Response
Status: 200 OK
Content-Type: application/json

{
  "id":2,
  "state":"closed",
  "title":"1.0",
  "description":"Initial release",
  "open_issues":0,
  "closed_issues":12,
  "closed_at":"2016-07-04T14:37:05-07:00",
  "due_on":"2016-07-04T00:00:00-07:00"
}

Set an issue's milestone
Only users with write access to a repository can perform this action.
POST /repos/:owner/:repo/issues/:index/milestone

Parameters

Name
Type
Description

id
int
ID of the milestone

Example
{
  "id": 4
}

Response
Status: 200 OK
Content-Type: application/json

{
  "id":4,
  "state":"open",
  "title":"1.0",
  "description":"Fix pack 1",
  "open_issues":5,
  "closed_issues":3,
  "closed_at":null,
  "due_on":"2016-09-06T00:00:00-07:00"
}

Remove an issue's milestone
Only users with write access to a repository can perform this action.
DELETE /repos/:owner/:repo/issues/:index/milestone

Response
Status: 204 No Content

Please sign the CLA.

Thanks!

Just a note, issue-milestone endpoints will be removed because you can get these info with issue APIs.


Removing uses of dir::topdown|dir::once

The semantics of dir::topdown|dir::once is quite complex.  This PR is an experiment to remove its use from rego-cpp. I believe it should be equivalent, but has split a few passes.

[ ] Update comments
[ ] Separate passes in line with current style
[ ] Tidy up well-formed definitions


Make notebooks reproducible

Description
Minor changes to some notebooks to make them reproducible. Some major changes are in:

notebooks/attack_database_reconstruction.ipynb: import diffprivlib and downgrade scikit-learn to version 1.1.0 to avoid AttributeError: sklearn.metrics._dist_metrics has no attribute DatasetsPair.
notebooks/attack_decision_based_boundary.ipynb: added correct import statements, and fix preprocessing shape mismatch in KerasClassifier constructor.

Fixes # (issue)
Type of change
Please check all relevant options.

[x] Improvement (non-breaking)
[x] Bug fix (non-breaking)
[ ] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

[ ] Test A
[ ] Test B

Test Configuration:

OS
Python version
ART version or commit number
TensorFlow / Keras / PyTorch / MXNet version

Checklist

[x] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Codecov Report

Merging #2210 (867021a) into main (bc39091) will decrease coverage by 64.39%.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@             Coverage Diff             @@
##             main    #2210       +/-   ##
===========================================
- Coverage   85.62%   21.23%   -64.39%
===========================================
  Files         308      308
  Lines       27448    27442        -6
  Branches     5044     4984       -60
===========================================
- Hits        23502     5827    -17675
- Misses       2667    21445    +18778
+ Partials     1279      170     -1109

see 250 files with indirect coverage changes

attack_decision_based_boundary.ipynb: There seem to be two unused imports from tensorflow.keras.applications.resnet50 importing preprocess_input and decode_predictions. The preprocess_input has been there before, but I think we can remove it. The decode_predictions seems to be new in this pull request and I think it would be nice to apply it in the cells below to show the category name next to the category index in the printed outputs.

I used the decode_predictions to print the class names. Please have a look and let me know if this is what you were expecting.

attack_graphite_whitebox.ipynb: This is not related to your changes. I think it would be nice to add a prediction of the classifier on the adversarial image x_test_adv in the last cell to show that the attack was successful.

Done! 🙂


feat: add resister-autonomoustuff-repository action

Moved from #6.

@wep21 The test has passed! Please review. :pray:

/rebase

/rebase

/rebase

/rebase

I found a typo in the PR title... :pleading_face: I'm sorry. Will rebase and fix it.


Add sponsor to discipline

Short description

This PR adds a relation between sponsor and discipline.
Proposed changes

add a new field sponsor to discipline object
add IDs of sponsors in the API responses with disciplines
adjust tests

There are two possible implementation suggested in the issue. It is currently implemented with the first option.
Currently only one sponsor can be assined to each discipline. If multiple of sponsors are to be assosiated with one discipline, let me know.

Resolved issues

Fixes: #458

As stated in  #458 .


simplify the reader

Use peeking-input-port so that we don't need to simulate Racket's reader

I think you meant exponential time. Yes, it has that drawback, but this can be easily avoided with memoization. How do you feel about this solution?

Oops, yes, exponential time. XD I think I typed that out, thought about it for a couple of seconds, and then put it aside and forgot to come back to it.
Memoization? Wow, like temporarily using a custom read/read-syntax that recognizes when it's at a position it's read from before?
Memoizing the list elements... I wonder if the default reader behavior for ( [ { could actually invoke a custom read/read-syntax to parse its elements. I think it would just use the readtable it was looked up from. We could flood a readtable with memoizing reader macros for lots of characters, but that wouldn't catch everything. :-p
Oh, are you just talking about memoizing the #/ reader macro itself? That would reduce the asymptotic complexity of nested #/, but it sounds like each original call to #/ would still attempt to invoke ( and [ before it succeeded with {. From the user's perspective, some parts of the code would be parsed one extra time if they appeared inside #/...] or two extra times if they appeared inside #/...}. I'd rather every reader macro call appearing in the code be performed exactly once.


Code fixes and plugin system types added

Resolves #29 - Obsolete HdpcSupportOnFeedback property substitution
Fixes #31 - Booking time null check
Others:

Floating point equality checking with == operator

Added:

Plugin system types

I tried implementing the plugin loader modifications, but the loader is in a project in a different solution than the assembly that the plugins supposedly reference currently. They need to be able to both reference the plugin types for plugin creation and plugin loading. The implementation would simplify a lot of the manual reflection code though too as well as the plugin template.

Hey @ndorin - I was able to change the base branch over to development just now.


[eWeLink] WebSocket messge received:  {"error":400,"reason":"Bad Request"

Hi,
since yesterday I have an issue with ewelink plugin
I have this message : "[eWeLink] WebSocket messge received:  {"error":400,"reason":"Bad Request","apikey":"xxxxx","sequence":"xxxxx","actionName":"userOnline"}
No change has been made :
Homebridge version v1.2.3
Plugins installed
Homebridge UI
homebridge-config-ui-x v4.31.0
Homebridge Ewelink Max
homebridge-ewelink-max v0.1.24

Just another comment, you may correct the message :"[eWeLink] WebSocket messge received" with ""[eWeLink] WebSocket message received"

Try to a stop an equipment
[2020-11-2 18:48:53] [eWeLink] Setting power state to [off] for device [PC 2]
[2020-11-2 18:48:53] [eWeLink] Requesting power state for [PC 2]
[2020-11-2 18:48:53] [eWeLink] WebSocket messge received:  {"error":406,"sequence":"1604339333126"}
[2020-11-2 18:48:53] [eWeLink] WebSocket was closed. Reason [1006]
[2020-11-2 18:48:53] [eWeLink] API reported that [PC 2] is On
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [Lampe (SONOFF 1)]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [Guirlande (SONOFF2)]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [Lanterne (SONOFF4)]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [PC 1]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [PC 2]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [New1]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [New2]
[2020-11-2 18:48:55] [eWeLink] Requesting power state for [New3]
[2020-11-2 18:48:55] [eWeLink] Sonoff API 503 error
[2020-11-2 18:48:55] [eWeLink] Sonoff API 503 error
[2020-11-2 18:48:55] [eWeLink] API reported that [PC 2] is On

Same problem

https://github.com/howanghk/homebridge-ewelink/issues/120#issuecomment-718543377

solved by uninstalling this plugin for me, and installing ewelink homebridge (verified)

Not working for me..... no error any more but I still can’t control the sonoff

I build a new homebirdge with homebridge-ewelink
need change "email" to "username" in config.json
works fine now
not sure whether necessary to pay and upgrade ewelink account to Pro. I just paid.

After second reinstall / reconfigure now it works :-)

Any change of fixing this issue (400 - bad request) on this plugin (homebridge-ewelink-max)?
Or, alternatively allow the other plugin (homebridge-ewelink) to run under the stable/wanted version of homebridge 0.4.53
I tried to swap the homebridge-ewelink-max for the homebridge-ewelink but this plugin requires HomeBridge version of >=1.0.0 and I'm currently using homebridge v0.4.53 (because homebridge-knx only runs on this stable version of homebridge)
So it seems I am stuck :-(
pi@raspberrypi:~ $ date; npm outdated -g --depth=0
Sat Nov 7 08:55:53 WET 2020
Package Current Wanted Latest Location
hap-nodejs 0.4.53 0.4.53 0.8.2 global
homebridge 0.4.53 0.4.53 1.1.6 global
homebridge-camera-ffmpeg 0.1.19 0.1.19 3.0.3 global
pi@raspberrypi:~ $ date; npm list --depth=0 -g
Sat Nov 7 09:31:26 WET 2020
/usr/lib
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>pi@raspberrypi:~ $
Any help appreciated


Integration testing: GetClusterConfig accessibility

Check that GetClusterConfig  is only available to admin users. Check that a regular user is denied access.

moved to server repo: https://github.com/hyperledger-labs/orion-server/issues/341


1.18 fabric

Issue Reference
https://github.com/AlmostReliable/ponderjs/issues/4
Proposed Changes

fixed #4 in fabric
dunno if it will work but its the same changes as https://github.com/AlmostReliable/ponderjs/commit/5700ebfe96f556c13d836158a9e3454b934a0d32

Additional Context

yeah dont mind this im definitely not good at this


Google G-Suite SAML and non-ascii in claim

Since Google G-Suite follows SAML standard that defines that SAML message needs to have only ASCII chars.
It is almost impossible in practice to avoid this on SAML Claims for surname field values etc.
Also, please confirm that Azure AD SAML Claim does not support Transformation from non-ASCII to ASCII function/operator.
Therefore, I suggest to remove existing note from documentation:

Ensure that the the SAML Response doesn't include any non-standard ASCII characters in the DisplayName and Surname attributes.

And instead add instructions to remove the fields from claim: givenname, surname and displayname, which are created by default.

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

ID: 3fdf59c4-653e-956e-d675-f7e17ed7d488
Version Independent ID: 57b9c048-a938-6e21-633b-e0aabdd59946
Content: Tutorial: Azure Active Directory single sign-on (SSO) integration with Google Cloud (G Suite) Connector
Content Source: articles/active-directory/saas-apps/google-apps-tutorial.md
Service: active-directory
Sub-service: saas-app-tutorial
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@hkusulja Thank you for your feedback! We will review and update as appropriate.

@hkusulja, Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@jeevansd,
Will you please suggest me on this?

#please-close

I do not see, why is this closed, and documentation is not fixed / updated.

@hkusulja, I updated the document by removing that note regarding non- Ascii characters..

@v-hagamp ok, but what about other things that I wrote above?

@hkusulja, givenname, surname and displayname these are default attributes can't be removed. If you want to remove these fields, remove them manually.

@v-hagamp , what I am saying is that they are by default there, and by your instructions/recommendation they should be manually removed during implementation. Since they contain characters which are not allowed, also those are not used by Google G-Suite.
Please revise and update docs.

To anyone that finds this thread: we encountered the same thing. Some of our users have special characters in their first or last names. By removing the note about non-ASCII characters in attributes instead of amending it, we weren't prepared for these users to be unable to authenticate via Azure to Google Workspace. I'd reopen this GitHub issue if I could. The "fix" is not inclusive and set up for failure.
We didn't even notice the issue until a few days after we switched to Azure for SSO, because users were able to keep sessions open or were on vacation. The error message they receive is:

Google Workspace - This account cannot be accessed because the login credentials could not be verified.

The problem is that sending any non-ASCII character in an attribute results in the user being unable to login. My initial fix was to rename some of the attributes (like changing givenname to givenname_disabled), but Google still reads the attribute and rejects the user's login.
Since we populate users with GCDS, the fix was to remove the non-email attributes altogether, as @hkusulja indicated. We kept Unique User Indentifier mapped to user.userprincipalname. We also mapped emailaddress to user.userprincipalname, but your environment might be different. If the user already exists in Google Workspace, they'll be able to login via SSO after that.
I don't know if it's possible for Azure to transform non-ASCII characters in attributes, but it'd be very useful for the documentation to address that if the functionality exists.

@MayankBargali-MSFT, @ssivas , @v-hagamp  #pleasereopen

It seems that there is limitation that Azure AD does not support replace/transform the data inside claims from non-ASCII to ASCII as it is per standard required.


Enable to damage screen in IDS for vr_modal

VR Modal view could not be updated because screen damage is not applies when immersive display system (IDS).

closed by #302


Add EarlyStop spec to the FeatureEngineeringSearchSpec API

The Feature Engineering Search should contain it's own config for early stopping.

Added, opened a bug in the model repo for UI support


[Feature Request] access to exportHARRequest for the plugins API

It would be nice to have access to exportHARRequest function from the plugins API so that we can write custom httpSnippets for networking code.
Thank you!
Great software!!

found out that this can be done with the workspaceActions instead of requestGroupsActions


[Bug] [INFRA/EYE] Failing to validate custom content when providing multiple licenses

Search before asking

[X] I had searched in the issues and found no similar issues.

Apache SkyWalking Component
License Tools (apache/skywalking-eyes)
What happened
Hi!
I've provided the following configuration expecting two different header patterns to be recognized, given that I have two different header contents in my source files (note that both configurations work separately):
header:
  - license:
    copyright-owner: Company Ltd.
    content: |
      Copyright [year] [owner]
      Licensed under the Apache2.0. See LICENSE file in charm source for details.
    paths:
      - 'lib/**'
    comment: on-failure
  - license:
    spdx-id: Apache-2.0
    copyright-owner: Company Ltd.
    content: |
      Copyright [year] [owner]
      See LICENSE file for licensing details.
    paths:
      - '**'
    paths-ignore:
      - 'lib/**'
    comment: on-failure

The resulting scan is ignoring the specified content. the tools is also throwing a warning failed to find a license template for spdx id , open header-templates/.txt: file does not exist.
What you expected to happen
The tool should have compared the headers against the content, analogous to what happens when a single license item is set.
How to reproduce

Create a new repository with the following files

.licenserc.yaml

header:
  - license:
    copyright-owner: Company Ltd.
    content: |
      Copyright [year] [owner]
      Licensed under the Apache2.0. See LICENSE file in charm source for details.
    paths:
      - 'lib/**'
    comment: on-failure
  - license:
    spdx-id: Apache-2.0
    copyright-owner: Company Ltd.
    content: |
      Copyright [year] [owner]
      See LICENSE file for licensing details.
    paths:
      - '**'
    paths-ignore:
      - 'lib/**'
    comment: on-failure

Add a sample.sh file with the following content

# Copyright 2023 Company Ltd.
# See LICENSE file for licensing details.

Add a lib/samplelib.shfile with the following content

# Copyright 2023 Company Ltd.
# Licensed under the Apache2.0. See LICENSE file in charm source for details.

Run the GitHub action with the following configuration

- name: Check license headers
        uses: apache/skywalking-eyes/header@main
        with:
          config: .licenserc.yaml

Anything else
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Please provide a suitable title according.

Please provide a suitable title according.

Sorry. Fixed

Hi, @arturo-seijas , this turns out to be typos in the doc, please see https://github.com/apache/skywalking-eyes/pull/159

HI again!
I've been testing this and, although I'm not getting the warning anymore, The paths and paths-ignore` sections are being ignored:
header:
  - license:
      copyright-owner: Company Ltd.
      content: |
        Copyright [year] [owner]
        Licensed under the Apache2.0. See LICENSE file in charm source for details.
      paths:
        - 'lib/**'
      comment: on-failure
  - license:
      spdx-id: Apache-2.0
      copyright-owner: Company Ltd.
      content: |
        Copyright [year] [owner]
        See LICENSE file for licensing details.
      paths:
        - '**'
      paths-ignore:
        - 'lib/**'
      comment: on-failure


Detekt does not work run with type resolution

Detekt does not work run with type resolution, nor does it generate the report.
Expected Behavior

When I run ./gradlew tasks the tasks says detekt<VariantName>Debug should run with type resolution.
Observed Behavior

When I run ./gradlew tasks the tasks says detekt<VariantName>Debug runs with type resolution, but it doesn't.
Steps to Reproduce

Context

Your Environment

Version of detekt used:
Version of Gradle used (if applicable):
Gradle scan link (add --scan option when running the gradle task):
Operating System and version:
Link to your project (if it's a public repository):

Sorry to hear you're having trouble with detekt, but we'll need a lot more information to help you. It's essential to at least complete the "Steps to reproduce" section in the issue template.

@spasnoor21 it doesn't have to be a full-on working project (although that's extremely preferred). It's possible that your Gradle Detekt setup or your yaml config contains something that breaks things. Have a look in your Gradle code (detekt {, withType<...Detekt>, DetektExtension, detekt.yml). Essentially anywhere detekt is mentioned in your project might be relevant.

Closing - it's been 6 weeks since feedback was requested. Please reopen if you have more information to share and we may be able to investigate, thanks!


Update RCNN-family docstrings

This issue is about docstrings in MaskRCNN, FasterRCNN, RegionProposalNetwork classes. Since it's not a bug, or a documentation (../index.html) issue, I opened a blank issue.
Issue

I think the rpn_score_thresh argument is wrongly defined in both MaskRCNN & FasterRCNN docstrings;
https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/mask_rcnn.py#L87-L88
probably because of simple copy/paste from box_score_thresh argument, which is correctly defined:https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/mask_rcnn.py#L94-L95
and the score_thresh argument is missing in the RegionProposalNetwork docstring:
https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/rpn.py#L158

Possible fix:

Update both docstrings in mask_rcnn.py and faster_rcnn.py for the argument:

"""
rpn_score_thresh (float): only return proposals with an objectness score greater than rpn_score_thresh
"""

And in rpn.py, add the following argument inside the docstring:

"""
score_thresh (float): only return proposals with an objectness score greater than score_thresh
"""

Explanation:
Both arguments (rpn_score_thresh & box_score_thresh) are first passed to FasterRCNN:
https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/mask_rcnn.py#L227-L252
where rpn_score_thresh is passed to RegionProposalNetwork:
https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/faster_rcnn.py#L234-L244
and box_score_thresh is passed to RoIHeads:
https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/faster_rcnn.py#L259-L269
In RegionProposalNetwork (here the score_thresh argument is missing in the docstring), rpn_score_thresh is used inside filter_proposals function to filter proposals based on the objectness score:
https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/rpn.py#L271-L284
and the filter_proposals function is used during both training and inference:
https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/rpn.py#L372
Hence, the docstring should change from: "during inference, only return proposals with a classification score greater than rpn_score_thresh" to: "only return proposals with an objectness score greater than rpn_score_thresh"

In RoIHeads, box_score_thresh is used inside postprocess_detections:
https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/roi_heads.py#L707-L708
and the postprocess_detections is only executed during inference:
https://github.com/pytorch/vision/blob/6f0deb9bccf27ab99e1e5553aa7c6645416c5a34/torchvision/models/detection/roi_heads.py#L767-L775
Hence, the docstring is correct for box_score_thresh.

In case my observations are correct, I would be glad to submit a PR.

Thanks a lot for the detailed report @rizavelioglu, I think you're 100% correct! We'd love to review your PR. On top of MaskRCNN and FasterRCNN, it looks like this is affecting MaskRCNN as well?


results from existing plot look weird on Linux

when you have a report with imported curves, then rerunning it in the latest gives different results

@Samuelopez-ansys
please take model from  TFS 557847


BUG: cannot use nested expressions while using jackson as provider (Error casting ArrayNode to List)

for example cant read this<EMAIL_ADDRESS>in<EMAIL_ADDRESS>!= "Jasson")]..author_id)]"
Using Configuration:
JacksonJsonNodeJsonProvider
JacksonMappingProvider
java.lang.ClassCastException: class com.fasterxml.jackson.databind.node.ArrayNode cannot be cast to class java.util.List (com.fasterxml.jackson.databind.node.ArrayNode is in unnamed module of loader 'app'; java.util.List is in module java.base of loader 'bootstrap')
at com.jayway.jsonpath.internal.filter.ValueNode$JsonNode.asValueListNode(ValueNode.java:341)

Hi. I would love to solve this issue.

Is your query correct?
I upgraded to 2.6.0 and it works
Thanks a lot!
Roey

@kallestenflo we are experiencing same issue on json-path version 2.7.0.
In json-path 2.7, com.jayway.jsonpath.JsonPath#put method is extended with this block of code:
       if (evaluationContext.getPathList().isEmpty()) {             boolean optSuppressExceptions = configuration.containsOption(Option.SUPPRESS_EXCEPTIONS);             if (optSuppressExceptions) {                 return handleMissingPathInContext(configuration);             } else {                 throw new PathNotFoundException();             }         }
In case when we want to suppress exceptions, com.jayway.jsonpath.JsonPath#handleMissingPathInContext method will fail, as it's tries to cast com.fasterxml.jackson.databind.node.ArrayNode to java.util.List.
In json-path version 2.6 com.jayway.jsonpath.JsonPath#resultByConfiguration method is used, which returns List, so there is no issue.
This issue is blocking us in migration to version of json-path 2.7.

having the same issue as @kallestenflo mentioned.
any workaround for this?

Hi. I'm facing the same issue here. Everything works fine in 2.6 (no need for Option.SUPPRESS_EXCEPTIONS), but fails in 2.7 (which requires Option.SUPPRESS_EXCEPTIONS in order for JsonPath#put not to fail on a missing path, as @nenad-kosanovic-tam pointed out).
For what it's worth, in my case the issue pops up when doing a put(), which fails in com/jayway/jsonpath/internal/JsonContext.java, at line 207:
    @Override
    public DocumentContext put(JsonPath path, String key, Object value) {
        List<String> modified = path.put(json, key, value, configuration.addOptions(Option.AS_PATH_LIST));

Here path.put(...) returns an ArrayNode, and the cast fails.

Is anyone able to find a workaround for this?


security,  authorize only the use of functions

hi, i want authorize my users to use only a server side javascript function but when i try to call a function i received constantly the 401 unauthorized message. i can connect with success a user but i cant call the functions. My security permissions is this

my goal is that any user can communicate with my database only through the server functions. how do I do this without an error?

What are doing the functions? If a function interacts with the database, they you need more privileges.

No answer, closing it.


Docs for jaeger integration

https://preliminary.istio.io/docs/tasks/observability/distributed-tracing/jaeger/


[🐛 Bug]: Remove project not working

VSCode Environment
Version: 1.67.2
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:20:57.384Z (3 wks ago)
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 21.5.0
Marquee Version
v3.1.1654195685
Workspace Type
Local Workspace
What happened?
The remove from list button in the Projects widget opens tries to open the project instead of removing it. Also it would be nice if when trying to open a project that didn't exist anymore you'd be prompted to delete the project from the list.
What is your expected behavior?
Opens the project.
Relevant Log Output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

[X] I have searched the existing issues

Reported through the Marquee portal by @tmayoff -- thank you!

Quick edit, not sure if it was a typo from me or from the copy to Github but, the remove from list button opens the project and not closes. The expected behaviour is that it removes the project from the list

Also upon further inspection it looks like it does remove it, but immediately opens it readding the project to the list

@tmayoff what would be your expectation here? It currently adds all projects that you open through VSCode. So removing the project your are currently on and reloading the webview will keep that project around.

I was able to reproduce this for some projects of mine as well, we will look into it. Cheers!

A submitted a fix for this in #162


can not reproduce the PQ on ade20k dataset by training from scratch？

can not get PQ 48 on ade20k dataset with swim-L backbone，i only get PQ 46，how to get the result you provide in the paper?

Hi @wjgaas, thanks for your interest in our work. How many times did you train? You may need to retrain to accommodate the variance in performance. We trained all our models thrice and reported the best results.

Hi @wjgaas, thanks for your interest in our work. How many times did you train? You may need to retrain to accommodate the variance in performance. We trained all our models thrice and reported the best results.

thansk for you reply, i trained thrice, the results are 46.31, 46.27, 46.52  PQ on ade20k dataset with swim-L backbone, with the config you provided in the readme (https://github.com/SHI-Labs/OneFormer/blob/main/configs/ade20k/swin/oneformer_swin_large_bs16_160k.yaml).

Hi @wjgaas, could you also share the scores for AP and mIoU metrics? Also, to be sure, you are using the same environment as suggested in the installation instructions, right?

Hi @wjgaas, were you able to resolve this issue? If not, could you share your training logs? Also, did you try training with loading the https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_large_patch4_window12_384_22k_to_1k.pth weights?

Closing this due to inactivity. Feel free to re-open if you still face issues.

Hi @wjgaas, thanks for your interest in our work. How many times did you train? You may need to retrain to accommodate the variance in performance. We trained all our models thrice and reported the best results.

thansk for you reply, i trained thrice, the results are 46.31, 46.27, 46.52 PQ on ade20k dataset with swim-L backbone, with the config you provided in the readme (https://github.com/SHI-Labs/OneFormer/blob/main/configs/ade20k/swin/oneformer_swin_large_bs16_160k.yaml).

I also experience the same issue.

In general, results should not vary that much within the same runs (if you run it 10 times, the variance needs to be reasonable) or even with a slightly different dependencies.
I see your paper is accepted to CVPR and congrats on that but this is a very serious issue and I hope authors address it.
A good first step is to publish all the logs.

Hi @achen46, thank you for your interest in our work.
Please share your logs and exact details on your environment (GPU architecture and model, CUDA toolkit version, PyTorch, Torchvision, Detectron, and NATTEN versions + their compiled CUDA versions), so we can help you. That is the first piece of information any issue on an open-source repository requires. Simply stating that "it does not work with exactly following instructions" does not help.
We ran an experiment with a fresh clone of the same code (this GitHub repo) that you are having issues with, and we got the following numbers: PQ: 50.5, AP: 36.2, mIoU (s.s./m.s.): 56.6/57.6 (trained yesterday on 03/05/2023). The results are better than our reported numbers in our CVPR paper with PQ: 49.8, AP: 35.9, mIoU (s.s./m.s.): 57.0/57.7 (trained 7 months ago on 08/14/2022), where we only ran three times and reported the best number.
You can find the WandB logs for the original and reproduced runs here: WandB logs. We also share the training log with step-wise loss values for your reference and environment setup details to help your experiments.


reverse lookup broken on Mac OS runners

Description
Reverse lookup of the host name is not working on the Mac OS runner.
ubuntu-latest:
$ nslookup fv-az955-853:
...
Name:	fv-az955-853.mlkcatuscfmejm4ctfapoghrmg.cx.internal.cloudapp.net

macos-latest:
$ nslookup $(hostname -f)
...
** server can't find Mac-1698147376508.local: NXDOMAIN

For an example, see the nslookup and python.socket steps of this workflow run:
https://github.com/oliver-sanders/actions-dns-test/actions/runs/6626432376/job/17999359243
First spotted a couple of weeks ago.
For context, see these two similar instances where reverse DNS stopped working on the Linux images:

https://github.com/actions/runner-images/issues/3185
https://github.com/actions/runner-images/issues/4901

Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 11
[X] macOS 12
[ ] macOS 13
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
Image: macos-12
Version: 20230921.1
Is it regression?
Yes this is a regression, sadly I don't have a link to the last successful build
Expected behavior
Reverse lookup should return the hostname.
Actual behavior
Reverse lookup results in error.
Repro steps
To reproduce, see this workflow:
https://github.com/oliver-sanders/actions-dns-test/actions/runs/6626432376/job/17999359243

Hi @oliver-sanders,
Thanks for reporting. We are investigating the issue

@oliver-sanders, after poking around, nslookup doesn't seem to be the right tool for DNS lookups on macOS, which is also mentioned on tool's man page. It also leaves me wondering whether this behavior always been the case.
Using dscacheutil gives more stable results, honouring local files (similar hack was with Ubuntu in the past, but the issue was in IP inconsistency). E.g. below should return host IPs:
echo -e "$(ipconfig getifaddr en0) $(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
dscacheutil -q host -a name $(hostname -f)

We will continue investigating and see if something else could be done

@shamil-mubarakshin, thanks for looking in.
Didn't know there were issues with nslookup on Mac OS, interesting.
I also used Python's socket bindings in my tests which show similar failures for reverse lookups which had worked previously:
socket.gethostname()                              : Mac-1698147376508.local
socket.getfqdn()                                  : Mac-1698147376508.local
socket.getfqdn(socket.gethostname())              : Mac-1698147376508.local
socket.getfqdn(socket.getfqdn())                  : Mac-1698147376508.local
socket.gethostbyname_ex(socket.gethostname())[0]  : [Errno 8] nodename nor servname provided, or not known
socket.gethostbyname_ex(socket.getfqdn())[0]      : [Errno 8] nodename nor servname provided, or not known

Here's an example of a workflow where the Mac OS job failed the first two times and passed on the third: https://github.com/cylc/cylc-flow/actions/runs/6634707075
With this message in the failed runs:
socket.gaierror: [Errno 8] nodename nor servname provided, or not known: 'Mac-1698197657674.local'

# attempt 1 - fail
  Image: macos-12
  Version: 20230921.1

# attempt 2 - fail
   Image: macos-12
  Version: 20231017.6

# attempt 3 - pass
   Image: macos-12
  Version: 20230921.4

Unfortunately the workaround isn't quite enough for my use case due to other interactions which require additional workarounds. We still occasionally get test runners where reverse lookup works.

Getting some funky behaviour with Python's socket library (with @shamil-mubarakshin's above patch applied).
Runner: macOS 12.6.9:
>>> socket.gethostname()
'Mac-1702490668849.local'

>>> socket.gethostbyname_ex('Mac-1702490668849.local')
('mac-1702490668849.local', [], ['<IP_ADDRESS>'])

>>> socket.getfqdn()
'Mac-1702490668849.local'

>>> socket.gethostbyname_ex('Mac-1702490668849.local')
('Mac-1702490668849.local', ['Mac-1702490668849'], ['<IP_ADDRESS>'])

(This does not happen with macOS 12.7.1 runner:)
>>> socket.gethostname()
'Mac-1702490723337.local'

>>> socket.gethostbyname_ex('Mac-1702490723337.local')
('mac-1702490723337.local', [], ['<IP_ADDRESS>'])

>>> socket.getfqdn()
<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>.ip6.arpa

>>> socket.gethostbyname_ex('Mac-1702490723337.local')
('mac-1702490723337.local', [], ['<IP_ADDRESS>'])

Tried out macos 13 beta image and ran into the same issue (updated the OP).
Error from Python's socket interface:
socket.gaierror: [Errno 8] nodename nor servname provided, or not known: 'Mac-1702983423766.local'

Runner information:
Current runner version: '2.311.0'
Operating System
  macOS
  13.6.1
  22G313
Runner Image
  Image: macos-13
  Version: 20231204.4
  Included Software: https://github.com/actions/runner-images/blob/macos-13/20231204.4/images/macos/macos-13-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-13%2F20231204.4

I've just tried to downgrade to macos-11 but apparently we're hitting the very same issue. I've run a simple test forking @oliver-sanders repo to verify the local DNS is working on any of the macos but it seems it's failing for all the available runners: https://github.com/squakez/actions-dns-test/actions/runs/7559304732/job/20582826961

@shamil-mubarakshin suggested (https://github.com/actions/runner-images/issues/8649#issuecomment-1779548056) that nslookup might not be the right tool for the job on Mac OS although I don't know the reasons why. Maybe worth testing via another interface.
The Python interfaces I rely on for my use case do work reliably on the macos-11 image but are broken on all newer images. My project is sticking with the macos-11 runners for now, but this old runner will be withdrawn in due course at which point we will have to drop macos as our usage is too complex to work around with the patch in https://github.com/actions/runner-images/issues/8649#issuecomment-1779548056.

Yeah, I've seen that. However in my case the problem is not the direct usage of nslookup. It is docker process that is using the local dns service to resolve a local name defined in /etc/hosts/. What it seems to me is that the local DNS service is completely off (I've checked the host has nothing running on port 53 as well), so, any resolution of local names is failing. I found a workaround by using localhost ip, but definetely, it is something that would require some attention as we'd expect a full functionality parities between the different runners. Let's see how if goes in future runners.

it seems to me is that the local DNS service is completely off

^ that!

The macOS 11 runner image will be removed by 6/28/24. To raise awareness of the upcoming removal, jobs using macOS 11 will temporarily fail during scheduled time periods defined below:

The workaround of falling back to macos 11 is about to expire, however the DNS of all new images remains problematic.

@shawnnapora, @shamil-mubarakshin (apologies for the poke)
The workaround of using macos 11 to avoid this DNS configuration bug is about to expire. Do you know if this issue is likely to be resolved in later macos images?

Here's a reproducer of the problem in case it's of any help: https://github.com/vieiro/gha-macos-resolve-hostname

Hi @oliver-sanders ,
Please find the update below:
1.) Successful run for macOS12, macOS13 and macOS14 :
https://github.com/sarathrajsrinivasan/macos-test/actions/runs/9949103379/job/27484814461
2.) Use below to update "/etc/hosts":
  for host in "$(hostname)" "$(hostname -f)"; do
      echo -e "$(ipconfig getifaddr en0) $(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
      dscacheutil -q host -a name $(hostname -f)
  done

Updated "/etc/hosts" value:
  <IP_ADDRESS>	     localhost
  <IP_ADDRESS>    broadcasthost
  ::1                localhost
  <IP_ADDRESS>      Mac-1721092163886.local     Mac-1721092163886
  <IP_ADDRESS>      Mac-1721092163886.local     Mac-1721092163886

3.) To get the IP address from the hostname:
  (a.) We can use dscacheutil to get the ip address of the host :

       dscacheutil -q host -a name $(hostname -f)

       name      : mac-1721092163886.local
       ip_address: <IP_ADDRESS>

  (b.) Use below powershell code:

      $hostName = [System.Net.Dns]::GetHostName()
      [System.Net.Dns]::GetHostEntry($hostName)

      HostName                  Aliases   AddressList
      --------                  -------   -----------
      mac-1721092163886.local   {}        {<IP_ADDRESS>, fe80::1424:f824:ec93:644d%7, f…

4.) After above fix, we were able to ping the host through the hostname:
 ping -c 4 Mac-1721092163886.local

    PING mac-1721092163886.local (<IP_ADDRESS>): 56 data bytes
    64 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=64 time=0.046 ms
    64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=64 time=0.206 ms
    64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=64 time=0.273 ms
    64 bytes from <IP_ADDRESS>: icmp_seq=3 ttl=64 time=0.250 ms

5.) Reg. Python's socket bindings :
  Before fix:
  ocket.gethostname()                               : Mac-1721092163886.local
  socket.getfqdn()                                  : Mac-1721092163886.local
  socket.getfqdn(socket.gethostname())              : Mac-1721092163886.local
  socket.getfqdn(socket.getfqdn())                  : Mac-1721092163886.local
  socket.gethostbyname_ex(socket.gethostname())[0]  : [Errno 8] nodename nor servname provided, or not known
  socket.gethostbyname_ex(socket.getfqdn())[0]      : [Errno 8] nodename nor servname provided, or not known

  After fix:
  socket.gethostname()                              : Mac-1721092163886.local
  socket.getfqdn()                                  : Mac-1721092163886.local
  socket.getfqdn(socket.gethostname())              : Mac-1721092163886.local
  socket.getfqdn(socket.getfqdn())                  : Mac-1721092163886.local
  socket.gethostbyname_ex(socket.gethostname())[0]  : Mac-1721092163886.local
  socket.gethostbyname_ex(socket.getfqdn())[0]      : Mac-1721092163886.local

6.) Please check the above and let us know if it helps. We are working on adding the "/etc/hosts" change as part of the image. Will keep you posted.

@MetRonnie Yes we are working on adding it as part of the image itself. Will update once the change is rolled out.

Thanks for the update.

Hi @oliver-sanders @MetRonnie,
We have added the above change to the "/etc/hosts" as part of the image itself. Please check.
Closing the issue now.  Please let us know incase of any questions.

I have tested this and still got the DNS problems on
Runner Image Provisioner
  2.0.374.1+4097a9592d27ce71de414581a65bffbda888dd1b

But I ran again a few times and everything worked on
Runner Image Provisioner
  2.0.382.1+d27903c82fd0a98a6c4ff2ea9e193b4413f3d608

In both cases, the other runner version information was identical
Current runner version: '2.319.1'
Operating System
  macOS
  14.6.1
Runner Image
  Image: macos-14-arm64
  Version: 20240811.1

Hi @MetRonnie ,
Could you please check now. This should be resolved 👍🏼


With mod.json

Sorry, forgot to add the mod.json. Here's the fully working code with the mod.json updated to our current values.

What is the intent of the PR? There are no README changes, and there are two mod.jsons. Maybe add a bit more description to the PR, or tell me to buzz off because it's not my biz :D

Oh, did I send that to you? Sorry! I am learning get and today I was
learning pull requests. I meant to put the request to gnivler's fork
(branch?) but I guess it went to you!
On Thu, Jul 12, 2018, 1:59 PM janxious<EMAIL_ADDRESS>wrote:

What is the intent of the PR? There are no README changes, and there are
two mod.jsons. Maybe add a bit more description to the PR, or tell me to
buzz off because it's not my biz :D
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gnivler/RogueTechPanicSystem/pull/13#issuecomment-404598052,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AnB5Zm0nvfsPp1a7o52PAhm6qH_N81nqks5uF458gaJpZM4VNXc5
.

It's on gnivler's fork, but I have repo access, so I saw the PR come in.

Yeah sorry dZ the PR isn't gonna work, it's got our old stuff in it.  master is updated to your last dev branch.  I'll add you to this project so you can work on it directly


Manual, 20.1. Synapse Homeserver: example is wrong

The example configuration suggests the setting
 services.postgresql.initialScript = ''
    CREATE ROLE "matrix-synapse" WITH LOGIN PASSWORD 'synapse';
    CREATE DATABASE "matrix-synapse" WITH OWNER "matrix-synapse"
      TEMPLATE template0
      LC_COLLATE = "C"
      LC_CTYPE = "C";
  '';

This fails because services.postgresql.initialScript has to be of type null or path.

@ma27 (I think)

Thanks for pointing this out! Fixed on master and release-20.03 :)


Updates

Finally pushed this, after 4 re-dos hahaha yaw q na

Hihihihihi thank you kilig si aqu

san?
On Mon, Jul 31, 2017 at 3:03 PM, Adrielle Escaro<EMAIL_ADDRESS>wrote:

Hihihihihi thank you kilig si aqu
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/hakeempolistico/School-Management-System/pull/14#issuecomment-318985692,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXMSubqhb1hSQZC8wHESo0IrN18bEOdkks5sTXw8gaJpZM4On5rv
.

dun sa well done


Implement chatbot functionality using Streamlit

This commit adds the implementation of a chatbot using Streamlit, a Python library for building interactive web applications. The chatbot allows users to interact with an AI assistant, asking questions and receiving responses in real-time.
Features include:

Integration with the MiniCPM-V-2.0 model for generating responses.
User-friendly interface with text input for questions and options for uploading images.
Sidebar settings for adjusting parameters such as max_length, top_p, and temperature.
Ability to clear chat history to start a new conversation.

The chat history and session state are managed using Streamlit's session_state functionality, ensuring a seamless user experience across interactions.
This implementation provides a simple and intuitive way for users to engage with the chatbot, making it accessible for various use cases.

Update MiniCPM-Llama3-V-2_5 streamlit demo

Thanks for your contribution，we will review this PR soon.

Implementing a chatbot using Streamlit is an excellent way to leverage the power of AI models for real-time interaction. Below is a step-by-step guide to set up a basic chatbot using Streamlit and the MiniCPM-V-2.0 model. We'll include features such as a text input for questions, options for uploading images, and sidebar settings for adjusting chatbot parameters.
Prerequisites

Python: Make sure you have Python installed. Streamlit is compatible with Python 3.6 - 3.9.
Libraries: Install the necessary libraries.pip install streamlit transformers

Step-by-Step Implementation

Initialize a Streamlit App: Create a new Python file, e.g., chatbot.py.

Import Libraries:
import streamlit as st
from transformers import pipeline

Load the Model:
@st.cache(allow_output_mutation=True)
def load_model():
    return pipeline("text-generation", model="MiniCPM-V-2.0")

model = load_model()

Create Sidebar Settings:
st.sidebar.title("Settings")
max_length = st.sidebar.slider("Max Length", 50, 500, 150)
top_p = st.sidebar.slider("Top P", 0.5, 1.0, 0.9)
temperature = st.sidebar.slider("Temperature", 0.5, 1.0, 0.7)

Define Chat Functionality:
st.title("Streamlit Chatbot")

if 'history' not in st.session_state:
    st.session_state.history = []

def clear_history():
    st.session_state.history = []

st.button("Clear Chat", on_click=clear_history)

user_input = st.text_input("You: ", "")
if user_input:
    st.session_state.history.append({"user": user_input})

    response = model(user_input, max_length=max_length, top_p=top_p, temperature=temperature)[0]['generated_text']
    st.session_state.history.append({"bot": response})

if st.session_state.history:
    for interaction in st.session_state.history:
        if "user" in interaction:
            st.write(f"You: {interaction['user']}")
        if "bot" in interaction:
            st.write(f"Bot: {interaction['bot']}")

Run the Streamlit App:
streamlit run chatbot.py

Optional: Image Upload Functionality

Update the Sidebar for Image Upload:
st.sidebar.file_uploader("Upload an image", type=["png", "jpg", "jpeg"])

Process the Uploaded Image:
(Assuming integration with MiniCPM-V-2.0 supports image processing, otherwise, just show the image)
uploaded_file = st.sidebar.file_uploader("Upload an image", type=["png", "jpg", "jpeg"])

if uploaded_file is not None:
    st.sidebar.image(uploaded_file, caption="Uploaded Image.")
    st.write("The bot currently supports text-based input. Image processing coming soon!")

Conclusion
By following these steps, you have implemented a basic chatbot using Streamlit with a user-friendly interface. The chatbot can handle text inputs and generate responses using the MiniCPM-V-2.0 model. Additionally, sidebar settings allow users to customize the chatbot behavior, and session state management ensures a seamless user experience across multiple interactions.
Remember to check the documentation for any specific integration details or updates related to the MiniCPM-V-2.0 model and its compatibility with Streamlit.
Happy coding!

Thanks for your contribution. There are several questions:

It seems that multi-turn conversation is not implemented, because I noticed that the answers are not added to history msgs?
Sampling decoding also supports top_k and repetition_penalty. You can add  these parameters  in sidebar. ref
v2.5 now supports streaming output, can this be added? Only add stream=True in model.chat. ref

Done！
This update, based on the May 25, 2024 version of modeling_minicpmv.py, includes the following enhancements:

Introduction of repetition_penalty and top_k parameters to the st.sidebar, enabling users to adjust these model parameters dynamically.
Default support for stream=True in the model.chat method to facilitate real-time streaming responses.

Additionally, I feel that multi-turn conversations may not be very important. The chat_history array is currently used only to display the conversation history on the Streamlit interface. Essentially, the code can maintain continuous interaction based on the last image. The historical text from multi-turn conversations might interfere with the model's ability to express information accurately for various images shown before and after.


React bootstrap 4 arrayfield template

Reasons for making this change
fixes https://github.com/MLH-Fellowship/react-jsonschema-form/issues/17, https://github.com/MLH-Fellowship/react-jsonschema-form/issues/22, https://github.com/MLH-Fellowship/react-jsonschema-form/issues/21, https://github.com/MLH-Fellowship/react-jsonschema-form/issues/25
waiting for https://github.com/MLH-Fellowship/react-jsonschema-form/pull/46
If this is related to existing tickets, include links to them as well.
Checklist

[x] I'm updating documentation

[x] I've checked the rendering of the Markdown text I've added

[x] I'm adding or updating code

[x] I've added and/or updated tests
[x] I've updated docs if needed

[x] I'm adding a new feature

[x] I've updated the playground with an example use of the feature

Cool


Order Acceptance Functionality in Enatega Multivendor Restaurant App

Issue: Order Acceptance Functionality in Enatega Multivendor Restaurant App
Description:
In the restaurant app, there is an issue with the order acceptance functionality. When a restaurant receives an order and tries to accept it, the system does not process the acceptance correctly. This prevents the order from moving to the next stage and causes confusion and delays in the order fulfillment process.
Expected Behavior:

When a restaurant receives an order, they should be able to accept it by clicking on the "Accept" button or a similar action.
After accepting the order, the system should update the order status to reflect that it has been accepted.
The order should then move to the next stage, such as "Preparing" or "In Progress," depending on the restaurant's workflow.
The restaurant staff should be able to view the accepted orders separately from pending or rejected orders.

Current Behavior:

When the restaurant staff tries to accept an order, the app does not respond appropriately and crash.
There is no clear separation of accepted orders, making it difficult for the staff to prioritize and manage orders effectively.

Steps to Reproduce:

Log in to the restaurant app as a staff member with the necessary permissions.
Navigate to the order section or the page where new orders are displayed.
Locate a pending order that has not been accepted yet.
Attempt to accept the order by clicking on the designated acceptance button or action.
Observe the system's response and check if the order status and workflow stage update correctly.

Expected Resolution:
The issue with the order acceptance functionality needs to be investigated and resolved. The system should allow restaurants to accept orders successfully, update the order status accordingly, and move the order to the appropriate workflow stage. This will ensure a smooth and efficient order processing experience for both the restaurant and the customers.
https://github.com/Ninjas-Code-official/Marketplace-Food-Delivery-Solution/assets/134473133/54b3b0d8-5fa8-46c5-a547-81ba6037c5bd

We have addressed and resolved the issue in the latest app update. The app should continue to function smoothly without any crashes or errors. We recommend that you update the app to the latest version through the App Store.


Ability to parameterize shield generator

This PR allows a style deployer to pass parameterized options to the shield generator code.  As an initial capability for this framework, I've included the option to generate non-deterministic shield artwork

It is genuinely difficult to internalize that there's a legitimate real-world use case for the phrase "shield generator."

Well, it's entirely feasible that someone might want to make a map with shields that are stylistically different.

I know, I know. I was making what I hoped was identifiable as a joke. This is the first time I've seen someone use the phrase "shield generator" who wasn't writing science fiction about, say, a raid on the moon of Endor. I should have been less circumspect.
Carry on. 🙂


investigate potential concurrency issues

If this happens:

a url is tagged and cached, thus setting the tag to a value
a url2 is requested and being fetched
a post increments the tag value
url2 response key is computed using the new tag value, but its content correspond to a time where the tag was at another value
?

That is not a problem per se.


Mask Chrome extension IDs in threat-hunting keyword list

Fixes #176
XProtect looks for programs that match 3 or more Chrome extension IDs that are listed by the 3rd party threat-hunting YARA set. This obfuscates the listed extension ID slightly by moving the last character to sit within brackets.

Thanks for figuring this out!

@egibs - The idea is that the make update-XXX rule should fully automate everything relating to rule updates. With this update, it still will - even with the double pinning.
Eventually, I'd like to have the update rules run automated by a periodic GitHub action. I want to flesh out a few more examples first though.


Optimization: Faster extraction

Current situation
The extraction is done sequential with each chunk being read from the file. One file is shared with seek+read.
Impact
Slow extraction
Ideal future situation
Maybe: Mmap the file once and have the verification/extraction functions read the "array" so that the for-loop could do bzip decompression in parallel.
But since we need to use pwrite anyway for parallel writing, we can also use it for parallel reading (or multiple FDs).
Here are Rust traits:
https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#tymethod.read_at
https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
Implementation options
Use rayon to run the extraction for-loop in parallel

The preparations are done in https://github.com/flatcar/ue-rs/pull/46 but it turns out that we can't directly use rayon's par_iter because we make use of error handling in the loop and would have to pass the errors to the main thread somehow.

We can reopen this if necessary but for now I'll close it as it's low priority.


Add an option to show the version of the CLI

I wanted to report the version of the CLI installed in my environment in another ticket, then realized that the option --version is not implemented.
$ devcontainer --version
Specify a command
devcontainer <command>

Commands:
  devcontainer open [path]   Open a dev container in VS Code
  devcontainer build [path]  Build a dev container image

Options:
  -h, --help               Show help  [boolean]
      --disable-telemetry  Disable telemetry  [boolean] [default: false]

It appears you have the older 'vscode devcontainer CLI' installed on your machine.  Despite the name it is not the same as the source code in this repo.
I suggest removing that command and installing the CLI from this repository.  You can do so with npm:
npm install -g @devcontainers/cli

We're aware that two tools with the same name is confusing.  I imagine the goal is to either remove the "vscode devcontainer CLI" completely, or forward commands to a vscode-specific build of the OSS CLI (this repo).
@bamurtaugh @chrmarti @Chuxel - We should do something about this to avoid future confusion :)

Thanks for the tag @joshspicer and for opening this issue @tschaffter!
@alexdima and @chrmarti have been working on forwarding from the previous devcontainer CLI to the new OSS devcontainer CLI.
The built-in CLI devcontainer (or devcontainer-insiders for VS Code Insiders) of the Remote-Containers extension now forwards to the built-in open source CLI. The open command and the previous CLI arguments for the build command are also supported.
@chrmarti @alexdima is there another scenario we'll still need to cover where users may install / use the older CLI in another way (not from Remote-Containers)?

There is a --version option now, but I need to fix where it looks up the version (currently goes to the extension's package.json, but we want the CLI's package.json to be used).


Remove keychain cache to avoid token invalidation problems

Summary
Remove keychain cache, since it was not being properly invalidated in all instances of the notification service.
Ticket Link
Fix https://mattermost.atlassian.net/browse/MM-52991
Release Note
Fix notifications showing a session expired message when it shouldn't.

@EduardoSellanes I would appreciate if you could take a run with this PR and see if the issue is fixed on your side.

Building app in separate branch.

@larkox I tested it and works perfect... thanks!

@amyblais if we have to add anything to the 2.7 release, it would be great to piggyback this. If the release does not need any fix, we can wait until 2.8

/cherry-pick release-2.7


Can't build

Describe the bug
error: failed to run custom build command for `webview_official v0.0.2`

Caused by:
  process didn't exit successfully: `D:\Development\Projects\tauri\src-tauri\target\debug\build\webview_official-2ced1dda416ff475\build-script-build` (exit code: 1)
--- stdout
cargo:rustc-link-lib=windowsapp
cargo:rustc-link-lib=user32
cargo:rustc-link-lib=oleaut32
cargo:rustc-link-lib=ole32
cargo:rustc-link-search=C:\Users\amrba\.cargo\registry\src\github.com-1ecc6299db9ec823\webview_official-0.0.2\webview-official/script/Microsoft.Web.WebView<IP_ADDRESS>8/build/native\x64
cargo:rustc-link-lib=WebView2Loader.dll
cargo:rerun-if-changed=webview-official/webview.h
cargo:rerun-if-changed=webview-official/webview.cc
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-pc-windows-msvc")
CXX_x86_64-pc-windows-msvc = None
CXX_x86_64_pc_windows_msvc = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-pc-windows-msvc = None
CXXFLAGS_x86_64_pc_windows_msvc = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
DEBUG = Some("true")
CXX_x86_64-pc-windows-msvc = None
CXX_x86_64_pc_windows_msvc = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-pc-windows-msvc = None
CXXFLAGS_x86_64_pc_windows_msvc = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
CXX_x86_64-pc-windows-msvc = None
CXX_x86_64_pc_windows_msvc = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-pc-windows-msvc = None
CXXFLAGS_x86_64_pc_windows_msvc = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
CXX_x86_64-pc-windows-msvc = None
CXX_x86_64_pc_windows_msvc = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-pc-windows-msvc = None
CXXFLAGS_x86_64_pc_windows_msvc = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
running: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "webview-official/webview.h" "-I" "webview-official/script" "-W4" "-FoD:\\Development\\Projects\\tauri\\src-tauri\\target\\debug\\build\\webview_official-348073e42499b04c\\out\\webview-official/webview.o" "-c" "webview-official/webview.cc"
webview.cc
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\ppltasks.h(1523): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
c:\users\amrba\.cargo\registry\src\github.com-1ecc6299db9ec823\webview_official-0.0.2\webview-official\webview.h(195): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt\winrt/base.h(19): fatal error C1083: Cannot open include file: 'optional': No such file or directory
exit code: 2

--- stderr

error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "webview-official/webview.h" "-I" "webview-official/script" "-W4" "-FoD:\\Development\\Projects\\tauri\\src-tauri\\target\\debug\\build\\webview_official-348073e42499b04c\\out\\webview-official/webview.o" "-c" "webview-official/webview.cc" with args "cl.exe" did not execute successfully (status code exit code: 2).

--- stderr

error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "webview-official/webview.h" "-I" "webview-official/script" "-W4" "-FoD:\\Development\\Projects\\tauri\\src-tauri\\target\\debug\\build\\webview_official-348073e42499b04c\\out\\webview-official/webview.o" "-c" "webview-official/webview.cc" with args "cl.exe" did not execute successfully (status code exit code: 2).

To Reproduce

create vue app using vue create <app-name>
cd <app-name> and invoke vue add tauri
yarn tauri:serve

Platform and Versions (please complete the following information):

OS: windows 10 v2004 using build-tools 2015
Node: 14.8.0
NPM: 6.14.7
Yarn: 1.22.4
Rustc: 1.45.2

Would you please include the output for tauri info as well? Looks like you are using the vue plugin. /cc @nklayman

Operating System - Windows_NT(10.0.19041) - win32/x64
Microsoft Edge - 44.19041.423.0_neutral__8wekyb3d8bbwe

Node.js environment
  Node.js - 14.8.0
  tauri.js - 0.11.1

Rust environment
  rustc - 1.45.2
  cargo - 1.45.1
  tauri-bundler - 0.9.1

Global packages
  NPM - 6.14.7
  yarn - 1.22.4

App directory structure
/.git
/dist_tauri
/node_modules
/public
/src
/src-tauri

App
  tauri.rs - 0.9 (0.1.0, 0.9.1) (outdated, latest: 0.9.1)
  mode - embedded-server
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'
  distDir - unset
  devPath - unset
Done in 12.83s.

I believe this the problem has to do with me using build tools 2015, I uninstalled it an installed 2019 and now I get a totally different error that's related to webview
error: failed to run custom build command for `webview_official v0.0.2`

Caused by:
  process didn't exit successfully: `D:\Development\Projects\tauri\src-tauri\target\debug\build\webview_official-2ced1dda416ff475\build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-lib=windowsapp
cargo:rustc-link-lib=user32
cargo:rustc-link-lib=oleaut32
cargo:rustc-link-lib=ole32
cargo:rustc-link-search=C:\Users\amrba\.cargo\registry\src\github.com-1ecc6299db9ec823\webview_official-0.0.2\webview-official/script/Microsoft.Web.WebView<IP_ADDRESS>8/build/native\x64
cargo:rustc-link-lib=WebView2Loader.dll

--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', C:\Users\amrba\.cargo\registry\src\github.com-1ecc6299db9ec823\webview_official-0.0.2\build.rs:67:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


"Delete and restore user accounts" or "Delete user accounts"?

Sidebar and link says "Delete and restore user accounts" but title says "Delete user accounts". Only has content for "Delete user accounts".

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

ID: 223fde07-be36-8fb8-b756-4f3c8087210f
Version Independent ID: 4d993987-b95a-62d8-0237-e4caec5908d2
Content: Delete user accounts with Office 365 PowerShell
Content Source: Enterprise/powershell/delete-and-restore-user-accounts-with-office-365-powershell.md
Service: o365-administration
GitHub Login: @JoeDavies-MSFT
Microsoft Alias: josephd

@officedocsbot assign @mypil

@arowswell - Thank you for submitting feedback.
Upon checking the document content, there is actually a portion under the "Use the Microsoft Azure Active Directory Module for Windows PowerShell" section which discusses how to restore deleted user accounts and even provides some syntax examples of Powershell commands on how this is done.
I hope this helps clarify your issue. Thank you.

@officedocsbot close


Feature Request: Support for Satellite servers as a method of attaching entitlements.

We're using Red Hat Satellite to manage entitlements.  It would be helpful to allow the use of a Satellite server during the provisioning process.
In our use case, a large University, multiple schools run different satellite servers, but we share an enterprise account for license management, so the current deployment in the Marketplace and this repository are, currently, not usable.
Thanks!

I will look into this and see what is required to support that.

Thanks!  This is a huge blocker for us moving OpenShift to Azure right now.


[Bug] 回复中的公式不能正常显示

Bug Description

Steps to Reproduce
对话中输入“电子的电量是多少”？
Expected Behavior
公式可以正常呈现，而不是展现MathML。
Screenshots
No response
Deployment Method

[ ] Docker
[X] Vercel
[ ] Server

Desktop OS
No response
Desktop Browser
No response
Desktop Browser Version
No response
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response

This issue related to this:

#3239
#4155
#3964


portico: zxcvbn checker doesn't update when password filled from keepass.

Possibly also the case with lastpass and other password managers.

It should just require calling some zxcvbn function to update; the "hard part" is probably going to be figuring out how to make some JS run when passwords are filled.

Works fine on Lastpass for me, maybe it's something to do with the way keepass fills the field?

Yes, It has to do with the way keepass fills the field, but there should be a solution. I like to solve this issue.
@zulipbot claim

@rishig I have check this issue, it's working fine in my case. So if you can share GIF so I can find it's error.
That how exactly when you pass, it's not affecting bar.

Closing as per https://chat.zulip.org/#narrow/stream/Outreachy.202017-2018/topic/issue.206319. Thanks @YJDave for the thorough investigation!


Model validation

Since switching to 10ºC for base temp, the new model outputs are more qualitatively different from pixel-wise linear regression and also seem to vary depending on either data resolution or k or both. (see also https://github.com/cct-datascience/organization/issues/2354)
Might want to develop methods for this stuff, but not actually do it until we decide on thresholds (#5) since some model tuning will be specific to each dataset.
In no particular order (but I should order these before doing them):

[ ] Check that k is appropriately large for all models
[ ] Check residuals—is gaussian error family still appropriate?
[x] Check (temporal and spatial) autocorrelation—itsadug package or spdep package (for Moran's I permutation test)
[ ] #11
[ ] What about NCV?  Is it worth trying again? (#1)
[ ] Read papers I have about spatiotemporal analysis with GAMs—what, if anything, do they do differently?

Temporal correlation is there, but values of rho are negative and relatively small (I think).  ACF plots have really no pattern in them.  I now know how to deal with temporal autocorrelation if I reviewer asks (on a branch, will push to GH soon)

Create a .qmd for model validation that can eventually become an appendix


Clarify microblocks state for transactions to distinguish from pending

With the recent influx of new users I see a lot of questions like this:

Users do not understand this. They think they should have STX and think they can spend it but they can't. It is not yet anchored.

Should the user get the answer in the wallet? add some info "confirmed in microblock, will become spendable after an anchorblock".
Or if it is causing more confusion rather then helping should this be removed? That would go well with the suggestion here https://github.com/hirosystems/stacks-wallet-web/issues/2944#issuecomment-1411816492 to display microblock confirmations as an advanced stage of pending rather than confirmation.

For example in metamask, balance is only reduced once tx is fully confirmed. Sometimes after 20 seconds, and during those 20 seconds, no balance is showing as "pending being taken out".
Our tx is longer, sure if you wanna separate out, you could have like using the above case
Available balance: 0
pending spend -> 10.924

This is closed because microblocks are no longer used in the upcoming Nakamoto release. This functionality was removed in preparation for that.


As a content admin, I want to select a featured image for content pages so I can give an idea of the content on the sources landing page and provide a visual preview for social media.

Notes for testing

When you edit a content page (like the cards or logbooks), you should now have an option to choose a featured image
The featured image should be displayed on the landing page that the content page belongs to (e.g. sources for the cards or logbooks)

design testing
please check that a landing page (try with "sources") looks like the design, on all devices that you can:
desktop / tablet / mobile
there should be a subtle lifting effect when you hover over the cards/tiles on the landing page.
dev notes

add optional featured image field to content page type
display featured image on sources list page tile
use featured image for social media
add breadcrumbs to landing pages & content pages

I can edit the logbooks page and I see featured image as an option.
But I tried to upload a featured image (a jpg) and a body text, but only the body text showed up.

Does the image have to be SVG too?

Just tried again and now that I have the publishing function, it works!! Here's a lovely screenshot of Lucille Ball representing the

logbooks.

If I want to delete the image and the text, how do I do that? Hit "unpublish"? If I try to delete and save now, it won't let me.

@clmahoney body content is required for content pages, but you should be able to use the 'clear choice' option on the featured image and save to remove the image.

This looks great! I was able to chose the featured image, as seen in the screenshot above, and then remove it. I have left in a "test" in the current body, since it's not able to be deleted.

OK, re: design testing:

Mobile test: this looks good except that I cannot see the breadcrumbs (I think I'm using that correctly) at the top of the page. See screenshot.

There is also no preview text for the different sections on the landing page, although there is on the desktop/laptop version

This looks awesome on mobile. See screenshots! Image of fish with umbrellas and all.

Tablet looks awesome too!

I see the lifting effect when I hove over the different pages on the landing page, but only on my laptop. Should I be seeing them on my mobile or iPad?

Also: I see that the pages are staggered slightly: is this just because there is a featured image in one? Are they meant to be like this or should the outlines all be the same?

@clmahoney I think you should see the lifting effect really briefly at the moment you touch them on a mobile or iPad, since there's no "hover", but it will activate when you touch.

@thatbudakguy I don't see a lifting effect but the image does turn grey right before it clicks me through

I think we're ok with that behavior for now; we can revisit later if necessary. I'm going to close this so we can release on Monday.