These are chat archives for USGS-WiM/BLTAdmin_angular

13th
Jun 2016
Hans Vraga
@HansVraga
Jun 13 2016 13:22
@venikunche @troddick We can coordinate here too =)
Tonia Roddick
@troddick
Jun 13 2016 13:22
sounds good
Veni
@venikunche
Jun 13 2016 13:26
sounds good
Tonia Roddick
@troddick
Jun 13 2016 13:51
ok. I've updated the blt database
and the bltservices
on prod
i created a folder on the desktop of the prod server and copy/pasted the existing bltservices to it prior to updating them.. just in case
I already logged out. Veni, do you want to do the same for the bltweb app before you update it?
Hans Vraga
@HansVraga
Jun 13 2016 14:11
@venikunche - until Aaron can get you rights, can you work with T to get code deployed?
Tonia Roddick
@troddick
Jun 13 2016 14:15
@venikunche if everything on github bltadmin_angular is up to date, I can bring it down locally and put it on prod
Veni
@venikunche
Jun 13 2016 14:26
@troddick: Yes, it's up to date
There is a file called config.js under the js folder that needs to be updated with prod url's
After that, we need to update the IIS settings to make sure the login popup doesn't appear
I think that should be it
Tonia Roddick
@troddick
Jun 13 2016 14:30
want to get everything updated and then I'll fork it
i'll update the iis now
Veni
@venikunche
Jun 13 2016 14:31
Let me know how I can help. I don't have access to prod yet
Tonia Roddick
@troddick
Jun 13 2016 14:31
if you could update the github repo with what needs to go on the prod server, I'll update IIS and then fork your repo to copy/paste on prod
Veni
@venikunche
Jun 13 2016 14:32
ok, i'll do that
Tonia Roddick
@troddick
Jun 13 2016 14:36
ok. i will fork and update the prod server. I'll let you know when I'm done
Veni
@venikunche
Jun 13 2016 14:37
Great. Thanks Tonia!
Tonia Roddick
@troddick
Jun 13 2016 14:49
http://localhost/BLTWeb/#/login .. there's some kind of loop going on trying to access the login.cshtml
is your login page an html or cshtml page?
Veni
@venikunche
Jun 13 2016 14:55
it's a regular html page but i had to set it as a .cshtml
i'll take a look
Tonia Roddick
@troddick
Jun 13 2016 14:55
it's live, but not working. any ideas?
can I just change it from cshtml to html on 'rename' file?
Veni
@venikunche
Jun 13 2016 14:57
It is trying to access the pages in the templates folder but it is get a 403 Forbidden error
I can access the js files
Tonia Roddick
@troddick
Jun 13 2016 14:58
ok. is there something i need to set to allow that? It works from the test server, right?
Veni
@venikunche
Jun 13 2016 14:58
I am not sure
For testing, we set it up in a different folder
Is there something different that needs to be done for BLTWeb?
Ok, I just looked at how i was testing it on dev
I had created a separate folder in BLTWeb called angular and that was working fine
Tonia Roddick
@troddick
Jun 13 2016 15:01
i got both servers open and comparing
bltweb2 right?
Veni
@venikunche
Jun 13 2016 15:02
No, it's C:\inetpub\wwwroot\BLTWeb\angular
Tonia Roddick
@troddick
Jun 13 2016 15:03
Veni
@venikunche
Jun 13 2016 15:04
We were trying to set it up in a separate folder and it wasn't working for some reason. So i just stuck to working in the angular folder
Veni
@venikunche
Jun 13 2016 15:13
I am going to create a separate folder on dev (BLTDev3) and copy the code to there and see if it works
Tonia Roddick
@troddick
Jun 13 2016 15:13
outside of bltweb main folder?
Veni
@venikunche
Jun 13 2016 15:13
yes
Tonia Roddick
@troddick
Jun 13 2016 15:13
ok. i'm logging into stn dev server to see how I have the angular app set up
Veni
@venikunche
Jun 13 2016 15:16
sounds good
Yeah, I am seeing the same issue for BLTWeb3 on dev. I'll compare the IIS settings and see what's different
Tonia Roddick
@troddick
Jun 13 2016 15:17
ok
Veni
@venikunche
Jun 13 2016 15:22

Not sure why this works, but I changed line 42 in web.xml to this

<forms loginUrl="/#/login" timeout="2880" />

That seems to resolve the issue for BLTWeb3. Could you try it in prod too.
Tonia Roddick
@troddick
Jun 13 2016 15:23
where is web.xml?
Veni
@venikunche
Jun 13 2016 15:23
in BLTWeb at the root
Tonia Roddick
@troddick
Jun 13 2016 15:24
not seeing it.. are you looking in the file explorer or IIS
Veni
@venikunche
Jun 13 2016 15:25
ah sorry. In the file explorer.
oh, I don't have it in github
Tonia Roddick
@troddick
Jun 13 2016 15:25
I cloned the BLTAdmin_angular project and have folders in there for css, fonts,img..etc and the index.html page
ah
Veni
@venikunche
Jun 13 2016 15:26
yeah i didn't put it in github, that file was already in the BLTWeb folder
should I add it to github?
Tonia Roddick
@troddick
Jun 13 2016 15:26
yes please
Veni
@venikunche
Jun 13 2016 15:28
ok, it's on github now
no need to change the file
hopefully, this works
Tonia Roddick
@troddick
Jun 13 2016 15:29
ok. let me pull and update
hmm..having problems pulling from upstream in cmder.. gotta figure this out real quick
Tonia Roddick
@troddick
Jun 13 2016 15:40
ok. it's working now
but only as http
https fails on login
I will update the services references to call https://
Hans Vraga
@HansVraga
Jun 13 2016 15:42
Closer!
Veni
@venikunche
Jun 13 2016 15:42
ok, the reference is in the config.js file
Tonia Roddick
@troddick
Jun 13 2016 15:42
where all are those referenced?
ok just that one place?
Veni
@venikunche
Jun 13 2016 15:42
yes
lines 2 and 3 in the config.js file
Tonia Roddick
@troddick
Jun 13 2016 15:43
working now
Veni
@venikunche
Jun 13 2016 15:43
sorry, lines 2, 3 and 4
Tonia Roddick
@troddick
Jun 13 2016 15:43
want to give it a try and poke around ..see if everything looks good?
Veni
@venikunche
Jun 13 2016 15:43
do we need to change it for the arcgis services too?
Tonia Roddick
@troddick
Jun 13 2016 15:43
we should have aaron do a redirect to make sure it always goes to https
i did
Veni
@venikunche
Jun 13 2016 15:44
ok, great
i'll try it out
Hans Vraga
@HansVraga
Jun 13 2016 15:44
:point_up: June 13, 2016 11:43 AM we should - put in a trello card?
Tonia Roddick
@troddick
Jun 13 2016 15:44
yes, want me to?
brb..gotta take the dog out
Hans Vraga
@HansVraga
Jun 13 2016 15:46
please! (sorry, I promised Aaron to be aggresively reminding everyone about this)
Veni
@venikunche
Jun 13 2016 15:48
i did a few quick tests. things are looking good so far.
i'll test it a little bit more thoroughly without actually making any changes
Tonia Roddick
@troddick
Jun 13 2016 15:58
cool
added to trello
Veni
@venikunche
Jun 13 2016 16:03
Ok, I tried viewing the data from the different PULAs, Parts and the Users. I also logged in as a guest. Everything seems to be working as it should.
I think editing and adding should work too as the services for Gets are working fine but I didn't test that as don't want to mess with the production data

@troddick: I saw that I added some test data by mistake a while back. Could you remove that from the test database:
Active Ingredients:
test
test-edited
testing123

Organizations:
Z org
Test

Let me know if you need the ids or other information
Tonia Roddick
@troddick
Jun 13 2016 16:09
ok. let me open the oracle db
Veni
@venikunche
Jun 13 2016 16:10
thank you
sorry, i meant from the prod database :)
Tonia Roddick
@troddick
Jun 13 2016 16:14
deleted them
Veni
@venikunche
Jun 13 2016 16:14
ok, great
Is there anything else that needs to be tested or checked? the public site or links pointing to BLTWeb prod?
Tonia Roddick
@troddick
Jun 13 2016 16:15
ah, yeah.. the public page is pointing to the services that were updated
Veni
@venikunche
Jun 13 2016 16:16
I'll test it out. Where is the public page?
thanks!
Veni
@venikunche
Jun 13 2016 16:26
everything seems to be working
If there isn't anything else, I think we are set. Sorry, I couldn't help with the front end side, Tonia. Thanks for deploying everything.
Tonia Roddick
@troddick
Jun 13 2016 17:15
no problem. glad everything is working! So nice when things go smoothly
Veni
@venikunche
Jun 13 2016 17:23
yeah, i am glad things went smoothly.
Veni
@venikunche
Jun 13 2016 17:38
@troddick: I am getting the browser login popup when I enter the wrong password. Could you enable form authentication for BLTServices too in IIS please.
Tonia Roddick
@troddick
Jun 13 2016 17:39
ah.. thought i had to disable for all
lol
sorry
i will enable for all (top level and apps)
Veni
@venikunche
Jun 13 2016 17:39
hehe
Tonia Roddick
@troddick
Jun 13 2016 17:41
refresh and try again. i enabled
Veni
@venikunche
Jun 13 2016 17:42
that fixed it. thanks!
Tonia Roddick
@troddick
Jun 13 2016 17:43
great!