Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHRAS-3928_download_async #4386

Merged
merged 37 commits into from
Oct 30, 2023
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0640580
WIP/POC DO NOT MERGE
jygaulier Oct 5, 2023
1d036dd
WIP OK TO TEST ; DO NOT MERGE
jygaulier Oct 11, 2023
0ee7874
WIP/POC DO NOT MERGE
jygaulier Oct 5, 2023
85eca07
WIP OK TO TEST ; DO NOT MERGE
jygaulier Oct 11, 2023
99d7cc7
Merge branch 'master' into PHRAS-3928_poc-pusher
jygaulier Oct 12, 2023
a43bc75
Merge branch 'PHRAS-3928_poc-pusher' of github.com:alchemy-fr/Phrasea…
jygaulier Oct 12, 2023
03a7cda
cleanup
jygaulier Oct 12, 2023
8e44279
cleanup
jygaulier Oct 12, 2023
b6a497d
better conf & cleanup
jygaulier Oct 12, 2023
1bb9047
fix typo
jygaulier Oct 12, 2023
13ac9dc
fix stamp transparency (bump imagine)
jygaulier Oct 12, 2023
a9f7cf0
Merge branch 'master' into PHRAS-3928_poc-pusher
jygaulier Oct 16, 2023
9d873cf
fix test
jygaulier Oct 16, 2023
4a3b913
Merge branch 'PHRAS-3928_poc-pusher' of github.com:alchemy-fr/Phrasea…
jygaulier Oct 16, 2023
375321b
fix missing js feedback (when worker publish before client subscribes)
jygaulier Oct 17, 2023
bdf2ced
cleanup
jygaulier Oct 17, 2023
566605c
fix "remove stamp" choice
jygaulier Oct 18, 2023
b5b3077
add default conf
jygaulier Oct 18, 2023
bf7a2ea
WIP/POC DO NOT MERGE
jygaulier Oct 5, 2023
b6b4325
WIP OK TO TEST ; DO NOT MERGE
jygaulier Oct 11, 2023
53d0df4
WIP/POC DO NOT MERGE
jygaulier Oct 5, 2023
ad357af
WIP OK TO TEST ; DO NOT MERGE
jygaulier Oct 11, 2023
a302a34
cleanup
jygaulier Oct 12, 2023
8328714
cleanup
jygaulier Oct 12, 2023
46e3cef
better conf & cleanup
jygaulier Oct 12, 2023
d015984
fix typo
jygaulier Oct 12, 2023
e7f9650
fix stamp transparency (bump imagine)
jygaulier Oct 12, 2023
11b3e33
fix test
jygaulier Oct 16, 2023
db2c0c1
fix missing js feedback (when worker publish before client subscribes)
jygaulier Oct 17, 2023
70d77de
cleanup
jygaulier Oct 17, 2023
de31b34
fix "remove stamp" choice
jygaulier Oct 18, 2023
84709b1
add default conf
jygaulier Oct 18, 2023
d65d681
WIP OK TO TEST generates an excel report for async download.
jygaulier Oct 19, 2023
2ef09ae
fix for rebase
jygaulier Oct 19, 2023
13643c9
fix xl formating for tabs >1
jygaulier Oct 24, 2023
fe36a87
fix test
jygaulier Oct 26, 2023
5d1365a
Merge branch 'master' into PHRAS-3928_poc-pusher
nmaillat Oct 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP/POC DO NOT MERGE
use "pusher" to wait for export-by-email worker to tell client that export is done.
nb: export worker is artificially delayed by 30s !
  • Loading branch information
jygaulier committed Oct 19, 2023
commit 53d0df4e0b0578974344d89bc38a1bf96dbd609b
29 changes: 28 additions & 1 deletion Phraseanet-production-client/src/components/record/export.js
Original file line number Diff line number Diff line change
@@ -340,7 +340,34 @@ const exportRecord = services => {

$('#sendmail form').submit();
humane.infoLarge($('#export-send-mail-notif').val());
$dialog.close();
// $dialog.close();



// Enable pusher logging - don't include this in production
Pusher.logToConsole = true;
const pusher = new Pusher('07b97d8d50b1f2b3d515', {
cluster: 'eu'
});
const channel = pusher.subscribe("my-channel");
pusher.connection.bind("state_change", function (states) {
// states = {previous: 'oldState', current: 'newState'}
console.log("========== connection changed : ========== ", states);
});
channel.bind("my-event", (data) => {
// Method to be dispatched on trigger.
console.log("========== received from pusher : ========== ", data);
channel.unbind("my-event");
console.log("========== channel unbinded ========== ");
channel.disconnect();
console.log("========== channel disconnected ========== ");
pusher.unsubscribe("my-channel");
console.log("========== pusher unsubscribed ========== ");
pusher.disconnect()
console.log("========== pusher disconnected ========== ");
});


});

$('.datepicker', $dialog.getDomElement()).datepicker({