Hey Phyllis,
Oops… I forgot we don’t have an “Open” menu item in the right-click context menu. To open an item, you simply double-click it in the Team Projects tree.
Also, you don’t have to manually check out an object before opening it. When you double-click an object to open it, Toad will prompt you to automatically check the object out before it opens. That way, you can simply work with your objects rather than worrying about manually checking them out first.
-John
From: John Bowman
Sent: Friday, April 01, 2016 4:46 PM
To: toadoraclebeta@toadworld.com
Subject: RE: [Toad for Oracle - Beta Discussion Forum] Team Coding - Initial Thoughts
Hey Phyllis,
Your thought process makes sense, but I think you’re overthinking it a bit.
You’re correct in that the green circle means the object is available. From here, you can “check out” the object or open it (using the right-click menu and selecting “Open”, or simply double-clicking on the object). Using Git, you’ll be working in a local copy (or clone) of your master repository – you won’t be working directly in GitHub (or an equivalent).
When you check out the object, you should see a message in your output window that the object has been successfully checked out. When you open the object (either by selecting “Open” or double-clicking the object): if the object is a PL/SQL object, its DDL will automatically open in the editor; otherwise, the object will open in the Schema Browser.
To work with DDL for a non-PL/SQL object, you’d need to do what you stated: view the source in the Schema Browser or Describe window, select all, and copy it to the editor. We can look at adding F4 functionality to the Team Coding Manager window.
However, once you’ve compiled the DDL in the editor (or finished making changes in the Alter window of the Schema Browser), all you need to do is press the “Check-in” button. You don’t need to manually save anything. Team Coding will handle all the file manipulation with the VCS provider internally.
In Team Coding, unless you’re specifically working with a custom script, all you need to worry about is working directly with your objects in the database. You don’t need to worry about loading or saving files at all – Team Coding will handle all of that behind the scenes.
Does that help to make a bit further sense?
-John
From: phyllis.helton_1150 [bounce-phyllishelton_1150@toadworld.com]
Sent: Friday, April 01, 2016 2:03 PM
To: toadoraclebeta@toadworld.com
Subject: RE: [Toad for Oracle - Beta Discussion Forum] Team Coding - Initial Thoughts
RE: Team Coding - Initial Thoughts
Reply by phyllis.helton_1150
Hi John,
Thanks for the reply.
First, our reason for switching to Git is related to trying to standardize the source control provider. Our team didn’t have a lot of input in that, but it works for us.
Let me explain what I’m trying to do, and that might help.
I have a project set up with all the Views and PL/SQL type objects owned by 2 different users. In the future, we’ll have more users. Right now, none of these objects are in Git - we have a clean slate.
The first thing I tried to do was make changes to a view. I opened the Team Coding Manager and saw that all the views there have a green check box next to them. I selected one of the views and right-clicked - selected Check Out. (Incidentally, it doesn’t appear that the check-out worked, but that might be something I’ve done wrong) Now I want to edit the view. Dragging it just puts the name in the editor - that’s not what I want. So I do an F4 on the name of the view in the Team Project window - nothing happens. There are no options on the right-click menu to add the code to the editor either. Sigh.
Now I go to the Open Object dialog box. I drop down the Object Type combo box, but don’t see View there, so I select All. Still no views. Cancel out of that and pull the name of the view into the editor and F4, Select All Copy and then paste into the Editor. Finally I can start working on my view.
Once I make the changes to the view, I need to get the changes into my file for Git, so now I have to do a Save As and navigate to the appropriate folder (or have lots of folders in my favorites) and then save and overwrite the existing file - because I selected from the DB and there is no association with a file on the disk.
Does it make sense what I’m trying to do and why this feels very cumbersome to me? Even if we decide that we don’t care about the history aspect of the Team Coding and only use the Team Projects to make sure we are checking objects in and out to not step on each other’s toes, this still seems very cumbersome to edit a view.
Here is what I would expect or just want to happen with Team Coding.
-
I set up my Project and tell it the folder location and structure on my hard drive so it can associate the objects with files on disk.
-
When I want to check out an object, it gives me the choice (or I set an option for it to remember) of opening the object from a file or the DB
-
I open the object in the editor directly from the Team Project window, edit and then when I compile it automatically saves it to the local file as well (or gives me an option)
Blessings,
Phyllis
To reply, please reply-all to this email.
Stop receiving emails on this subject.
Or Unsubscribe from Toad for Oracle - Beta notifications altogether.
Toad for Oracle - Beta Discussion Forum
Flag this post as spam/abuse.