You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**table_dir** and **multifile** options defaults will change the names and directories that the synced files are stored.
5
+
Because of this you need to do one of the following:
6
+
7
+
* Keep same functionality of .9 Release
8
+
* Before upgrade ensure your filesystem and instance are in sync.
9
+
* Upgrade **uxsyncnow** and Load/Preview/and Commit the Updateset on your Instance
10
+
* run **uxsyncnow** with with new --noinit option and setup options to mimic .9 release behavior
11
+
```bash
12
+
$ uxsyncnow --noinit
13
+
Reading config file: uxsyncnow-config-dev.json
14
+
You are connected but no synchronization is started. Use command'sync' to start synchronization.
15
+
uxsyncnow: refresh tables
16
+
uxsyncnow: set option table_dir name
17
+
uxsyncnow: set option multifile flat
18
+
uxsyncnow: sync
19
+
```
20
+
* Switch to the new directory and file format.
21
+
* Before upgrade ensure your filesystem and instance are in sync.
22
+
* Upgrade **uxsyncnow** and Load/Preview/and Commit the Updateset on your Instance
23
+
* Remove all .uxsyncnow-??? cache directories
24
+
***If the files are under source control don't do this step**. Remove the directory where your files from the Instance are synced.
25
+
* run **uxsyncnow** with with new --noinit option to refresh tables to have the table labels retrieved. If you don't do this then the new method to create the table directories with their labels will not work.
26
+
```bash
27
+
$ uxsyncnow --noinit
28
+
Reading config file: uxsyncnow-config-dev.json
29
+
You are connected but no synchronization is started. Use command'sync' to start synchronization.
30
+
uxsyncnow: refresh tables
31
+
uxsyncnow: sync
32
+
```
33
+
* If your files were under source control
34
+
* Determine how to "rename" a file in your source control system. You will have both the old and new directory structure with the "history" on the old file items. The Source System must see the files as a move to the new path and name.
35
+
* After everything is "moved", then ensure that there are no "old" files or directories
36
+
37
+
38
+
### New features
39
+
* Table directories will be the label for the table instead of the database name. For instance **sys_script** will be **Business Rules**.
40
+
* If a table has multiple fields that are "files"then there are two new modes to handle the files. **record** and **field**, both will create directories under the table directory and organize the different files.
41
+
* New command line option **--noinit** added
42
+
* New option added to handle Table Directory naming (**table_dir**).
43
+
* New option added to handle Multiple Fields (**multifile**).
44
+
* With new UpdateSet
45
+
* Two new "blank" templates are added to ignore sys_policy and business rule templates that are "blank" templates and have data but have not been changed on the instance.
46
+
* Ignore the message field on sys_scipt table as a "file." The message is an html_text field that is shown to the user if the show message field is checked. This field is not a large HTML field to be under control and is now ignored.
47
+
48
+
### Bugs Fixed
49
+
50
+
*\#17 Some files are created that should not be because the initial "blank" value contains text
51
+
*\#14 Add option to connect without syncing enhancement
52
+
*\#9 Service Portal widgets do not sync correctly enhancement
53
+
*\#15 Collapse "file" field from name if it is the only one for the table
Copy file name to clipboardExpand all lines: README.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,14 @@ To solve these issues, we've developed an internal too, **UXsyncNow**
40
40
* Push the files from the local work area to the instance. We uses this for production builds to our Integration Instance
41
41
* Can override a *file* from the Instance to be stored/watched in another location. This is useful for specifying files from a build/generate area to the appropriate ServiceNow file. We use this for our WebPack bundles to UI Scripts.
42
42
* Supports using a Proxy Server
43
+
44
+
45
+
# BREAKING CHANGES
46
+
47
+
If you are upgrading from the pre-release, please read CHANGELOG.md. There are breaking changes if you are using a previous release and steps to keep old functionality or migrate to the new functionality is documented in that file.
@@ -140,7 +148,7 @@ If a work area has already been setup, then all you need to do is run **uxsyncno
140
148
| --push | Uses PUSH for the sync method
141
149
| --sync | Uses SYNC for the sync method. This is the default method
142
150
| --nowatch | Causes the application only to process the synchronization of the work area and doesn't watch for changes on the instance or the work area. When the synchronization is done, then the application will exit
143
-
151
+
| --noinit | Connect to the instance but do not initialize the sync engine. Use this during upgrades to connect and set options before the synchronization starts.
144
152
145
153
# Application Command Line
146
154
**uxsyncnow** provides an application command line interface to interact with the application. When the application is started you will receive a command prompt `uxsyncnow:` and can run any of the application commands via this interface. Try `help` to get started.
@@ -253,18 +261,20 @@ Valid options are:
253
261
254
262
| Option | Description |
255
263
| :--------- | :----------------|
256
-
|connection_max | Maximum number of connections to the ServiceNow instance. If you experience problems with too many connections then you can change to number something low like 5 or less and see if it fixes your experience. A value of 0 defaults to the system's default number of connections. |
264
+
|connection_max | Maximum number of connections to the ServiceNow instance. If you experience problems with too many connections then you can change to number something low like 5 or less and see if it fixes your experience. A value of 0 defaults to the system's default number of connections. |
257
265
| connection_wait | Number of milli seconds to wait between requests. This is used not to throttle the instance with too many requests at a time. A value of 0 defaults to the systems' default wait time.|
258
266
| host | The host name of the ServiceNow Instance |
259
267
| interval | How many milli seconds to wait between checking the instance for any changes. The default is 30000 or 30 seconds. You can not set this to value less than 1 second (1000). |
268
+
| multifile | Specifies how to handle multiple *file* fields on a table. All files are stored under the table directory, when there are multiple fields that can be files, then they must be separated. There are three separation modes. <br/> <br/> <ul> <li>**flat** will store all files directly in same directory with a name of the *Record Name*\_*Field Name*\.*extension*.</li> <li> **directory** will create a directory with the *Record Name* and contain a file for each *file* with the *Field Name*\.*extension*.</li> **field** will create a directory for each field with the field name and have a file for each *file* with the *Record Name*\.*extension*</ul>
260
269
| password | Password of the user to connect to the ServiceNow instance. NOTE: This value is encrypted and you can never see it's value.|
261
270
| port | Port to use to connect to the ServiceNow instance. A value of 0 specifies to use the default port.|
262
-
|protocol | The web protocol to use for the ServiceNow instance. This can be either http or https. The default is https |
271
+
|protocol | The web protocol to use for the ServiceNow instance. This can be either http or https. The default is https |
263
272
| proxy | Specifies a Web Proxy server to send all requests through. |
273
+
| table_dir | Specifies the name of each directory created for the tables. Default is to use the Label for the table but it can be chanced to use the database name. Use **label** to use the Label for the table. Use **name** to use the Database Name.
264
274
| top_dir | By default, all the directories of files from the instance will be created in the current directory where **uxsyncnow** is ran. If you want to have the instance directories and files in a subdirectory, you can do this by specifying the top_dir. This will create a directory as specified and will contain work area._|
265
275
| user | The username of the ServiceNow user to connect to the instance. NOTE: This user must have the roles of **admin** and **uxsyncnow_user**|
266
276
267
277
## sync
268
278
269
-
Synchronizes the local work area and the Application files on the instance. It uses the current synchronizationn mode. NOTE: This only needs to be used during first initialization or if you make any configuration changes requiring a re-sync. By default, **uxsyncnow** starts up in sync mode if it can connect to the instance and an application was set.
279
+
Synchronizes the local work area and the Application files on the instance. It uses the current synchronization mode. NOTE: This only needs to be used during first initialization or if you make any configuration changes requiring a re-sync. By default, **uxsyncnow** starts up in sync mode if it can connect to the instance and an application was set.
0 commit comments