[03:53] <pieq> Hello! I was trying to use the staging Launchpad instance to test something, but it looks like it's offline. Is it normal?
[03:53] <pieq> wgrant, ^ ?
[03:56] <wgrant> pieq: something must have gone wrong with the update over the weekend. I'm afk atm but will fix it when I'm back
[03:56] <pieq> wgrant, no worries, no hurries :) Thanks for the feedback!
[06:59] <pieq> Still no love for staging launchpad? :)
[07:02] <wgrant> pieq: Looks like it'll be at least 24 hours. The DB takes a while to restore.
[07:02] <wgrant> pieq: Can you use qastaging instead?
[07:04] <pieq> wgrant, I'm testing a script that publishes things on launchpad, and to test on the staging instance I use `$ APPORT_STAGING=1 my-script`. Is it possible to use qastaging the same way?
[07:04] <wgrant> pieq: Published what sort of things?
[07:04] <pieq> bug reports
[07:04] <wgrant> pieq: That will work fine on qastaging, but I don't know if apport has a built-in environment variable for it.
[07:05] <wgrant>  - launchpad.py: Change $APPORT_STAGING to $APPORT_LAUNCHPAD_INSTANCE, so that
[07:05] <wgrant> So APPORT_LAUNCHPAD_INSTANCE=qastaging will probably work
[07:05] <pieq> wgrant, I will check if this works, thanks!
[07:08] <pieq> wgrant, hm... but in my script I use launchpadlib's EDGE_SERVICE_ROOT (for production instance) or STAGING_SERVICE_ROOT (for staging). I don't see another option for QA staging
[07:13] <wgrant> pieq: You can just use 'production', 'staging' or 'qastaging' in place of those constants, usually.
[07:13] <wgrant> (edge hasn't been a thing for about six years)
[07:14] <pieq> wgrant, EDGE_SERVICE_ROOT = 'https://api.edge.launchpad.net/'
[07:14] <pieq> STAGING_SERVICE_ROOT = 'https://api.staging.launchpad.net/'
[07:15] <pieq> wgrant, so for production I should just use 'https://api.launchpad.net/' and for qastaging 'https://api.qastaging.launchpad.net/'?
[07:15] <wgrant> pieq: That's right, but with a post-2011ish launchpadlib you can usually just use the name rather than the full URL.
[07:15] <wgrant> 'production', 'staging' or 'qastaging'
[07:15] <pieq> wgrant, oh great
[07:16] <pieq> let me travel in time, back to 2018 then! :D
[07:17] <wgrant> A good plan