لقد كنت أحاول استيراد بعض استعلامات SQL من منتدى discourse إلى آخر. لقد سارت الأمور على ما يرام خلال السنوات القليلة الماضية. ومع ذلك، عندما أحاول الآن استيراد استعلام، فإنه يسمح لي بتحديده ثم لا يحدث شيء. أفكار؟
إعجاب واحد (1)
pfaffman
(Jay Pfaffman)
12 فبراير 2024، 2:33م
2
ستحتاج إلى مشاركة المزيد من المعلومات مثل ما كان الاستعلام.\n\nكيف تحاول استيرادها؟
إعجابَين (2)
هذا مثال لأحد الاستعلامات:
--[params]
-- integer :page = 0
SELECT topic_views.*, single_sign_on_records.external_id, topics.title
from topic_views
left join single_sign_on_records
on topic_views.user_id = single_sign_on_records.user_id
left join topics
on topic_views.topic_id = topics.id
OFFSET :page * 1000
LIMIT ALL
أحاول استيراده باستخدام زر الاستيراد وتحديد الملف (مرفق)
topic-views.dcquery.json (605 Bytes)
تعديل:
باستخدام هذا الزر:
pfaffman
(Jay Pfaffman)
12 فبراير 2024، 3:03م
4
لم أتذكر أن هذه كانت ميزة. عندما أحاول النقر على استيراد وتحديد ملف، لا يبدو أن شيئًا يحدث.
لقد عمل بشكل جيد حتى حوالي شهر أكتوبر، حيث كان بإمكانك تصدير ملف json واستيراده دون مشكلة. الآن كما تقول، لا يحدث شيء. إنه أسرع بكثير من النسخ واللصق لأن لدي عددًا كبيرًا من الملفات.
إعجاب واحد (1)
pfaffman
(Jay Pfaffman)
12 فبراير 2024، 3:29م
6
قد ترغب في نقل هذا إلى Bug
إعجاب واحد (1)
هذا تأثير جانبي لهذا التغيير (في pick-files-button.js):
committed 07:49PM - 28 Jun 23 UTC
بإزالة this.onFilesPicked(files);، فإنك تزيل استدعاء الإجراء المحدد هنا:
https://github.com/discourse/discourse-data-explorer/blob/main/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs#L21
3 إعجابات
إذًا، كان هذا تغييرًا تم إجراؤه بواسطة Discourse، لذا لا توجد طريقة بالنسبة لي شخصيًا لإصلاحه؟
إعجابَين (2)
هذا صحيح؛ من الأفضل انتظار الإصلاح.
إعجابَين (2)
keegan
(Keegan George)
22 فبراير 2024، 9:47م
11
شكرا للإبلاغ عن ذلك! لقد تم حل المشكلة الآن
main ← fix-pick-files-action
opened 07:37PM - 22 Feb 24 UTC
A regression was introduced in a previous commit (https://github.com/discourse/d… iscourse/pull/22232#discussion_r1244417291) which removed `this.onFilesPicked(files)` action because it seemed as if it was not being used. It was also causing errors in the console with usage in the composer for form templates.
However, `<PickFilesButton />` in fact accepts `this.onFilesPicked` as an action passed, which is used, for example, in the Data Explorer plugin. This was apparent as imports [stopped working](https://meta.discourse.org/t/discourse-data-explorer-import-no-longer-works/295074) in Data Explorer.
In this PR, we reintroduce the call to the `this.onFilesPicked(files)` action, however we wrap it in a type check so that it doesn't get called in other usages of the component such as with the form template uploader where it was previously causing errors in the console.
3 إعجابات
keegan
(Keegan George)
تم إغلاقه في
24 فبراير 2024، 4:00م
13
تم إغلاق هذا الموضوع تلقائيًا بعد 42 ساعة. لم يعد يُسمح بالردود الجديدة.