Skip to content

print form website#899

Open
danxliu wants to merge 6 commits into
ocf:masterfrom
danxliu:master
Open

print form website#899
danxliu wants to merge 6 commits into
ocf:masterfrom
danxliu:master

Conversation

@danxliu
Copy link
Copy Markdown

@danxliu danxliu commented May 13, 2026

Print from website under account
Use 6 digit otp from joes vm to make sure people are in the ocf

Copy link
Copy Markdown
Contributor

@BNH440 BNH440 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall I think this is unnecessary, it looks to me like the print queue gets pretty backed up during peak times, I think this would just make things worse

Comment thread ocfweb/stats/printing.py

ALL_PRINTERS = ('papercut', 'pagefault', 'logjam', 'logjam-old', 'deforestation')
ACTIVE_PRINTERS = ('papercut', 'pagefault', 'logjam')
ALL_PRINTERS = ('papercut', 'pagefault', 'logjam', 'logjam-old', 'deforestation', 'OCF-BW', 'OCF-Color')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't use the aggregate names here, these variables are referenced elsewhere in ocfweb

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my stats branch for the proper way to do this, although it's far from finished https://github.com/ocf/ocfweb/tree/printer-stats-update

Comment thread ocfweb/stats/printing.py
{
'title': 'Printing Statistics',
'current_printers': PRINTERS,
'current_printers': get_printers().keys(),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you update the variables above and then not use them

Comment thread devenv.lock
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did the devenv get updated as a side effect to this pr

Comment thread conf/ocfweb.conf
db = ocfstats

[printing]
# Joe's VM
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using joe's staff vm is not acceptable for deployment, also there's probably better ways to do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants