CN109358899B - Method and device for updating resource versions in shared shelf - Google Patents

Method and device for updating resource versions in shared shelf Download PDF

Info

Publication number
CN109358899B
CN109358899B CN201811480313.6A CN201811480313A CN109358899B CN 109358899 B CN109358899 B CN 109358899B CN 201811480313 A CN201811480313 A CN 201811480313A CN 109358899 B CN109358899 B CN 109358899B
Authority
CN
China
Prior art keywords
version
resource
updating
script
shared shelf
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811480313.6A
Other languages
Chinese (zh)
Other versions
CN109358899A (en
Inventor
严世振
余俊
张阳君
马越凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Fengyun Technology Service Co ltd
Original Assignee
Jiangsu Fengyun Technology Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Fengyun Technology Service Co ltd filed Critical Jiangsu Fengyun Technology Service Co ltd
Priority to CN201811480313.6A priority Critical patent/CN109358899B/en
Publication of CN109358899A publication Critical patent/CN109358899A/en
Application granted granted Critical
Publication of CN109358899B publication Critical patent/CN109358899B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application relates to a method and a device for updating resource versions in a shared shelf, belonging to the technical field of computers, wherein the method comprises the following steps: hierarchically scanning a first version of a project resource in a shared shelf from inside to outside; when the nth layer of the first version is modified by layered scanning, sequentially modifying the first n-1 layers of the first version from inside to outside by using a resource updating script to obtain a second version of the project resource, wherein n is an integer greater than 1; setting a first flag for the first version, the first flag indicating that the first version is not recommended to be used; displaying, in the shared shelf, a first version and the second version storing the first indicia; the problem of insufficient compatibility of codes after the version of project resources is updated in the prior art can be solved; the compatibility of project resources to different users can be ensured.

Description

Method and device for updating resource versions in shared shelf
Technical Field
The invention relates to a method and a device for updating resource versions in a shared shelf, and belongs to the technical field of computers.
Background
With the development of software project development technology, the project supports independent uploading and sharing of individual resources in a sharing shelf, and different resources can be used in different technical fields. The shared shelf refers to a platform for storing project resources uploaded by an uploader, and the project resources refer to code resources for creating project templates.
Project resources stored in the shared shelf need to be updated along with the lapse of time, and language version conflicts can be caused by updating the resources; upgrading resources can result in code unavailability, code rewriting is needed, and compatibility is insufficient.
Disclosure of Invention
The invention aims to provide a method and a device for updating resource versions in a shared shelf. In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, a method for updating a resource version in a shared shelf is provided, the method comprising:
hierarchically scanning a first version of a project resource in a shared shelf from inside to outside;
when the nth layer of the first version is modified by layered scanning, sequentially modifying the first n-1 layers of the first version from inside to outside by using a resource updating script to obtain a second version of the project resource, wherein n is an integer greater than 1;
setting a first flag for the first version, the first flag indicating that the first version is not recommended to be used;
displaying, in the shared shelf, a first version and the second version storing the first indicia.
Optionally, the method further comprises:
when the first layer of the first version is modified through layered scanning, setting a second mark for the first version, wherein the second mark is used for indicating that the first version is a personalized customized version of a developer;
storing the first version with the second indicia in the shared shelf.
Optionally, the method further comprises:
when the first version obtained by layered scanning is not modified, sequentially modifying the first version from inside to outside by using the resource updating script to obtain a third version of the project resource; triggering and executing the step of setting the first mark for the first version;
storing the first version and the third version with the first indicia in the shared shelf.
Optionally, characterized in that the method further comprises:
acquiring a resource updating script for updating the first version;
and running the resource updating script.
In a second aspect, an apparatus for updating a resource version on a shared shelf is provided, the apparatus comprising:
the code scanning module is used for carrying out layered scanning on the first version of the project resource in the shared shelf from inside to outside;
the first code modification module is used for modifying the first n-1 layers of the first version from inside to outside in sequence by using a resource updating script to obtain a second version of the project resource when the nth layer of the first version is modified by layered scanning, wherein n is an integer greater than 1;
a first version marking module, configured to set a first mark for the first version, where the first mark is used to indicate that the first version is not recommended to be used;
a first version storage module to store the first version and the second version with the first indicia in the shared shelf.
Optionally, the apparatus further comprises:
the second version marking module is used for setting a second mark for the first version when the first layer of the first version is modified after the hierarchical scanning is carried out, wherein the second mark is used for indicating that the first version is a personalized customized version of a developer;
a second version storage module to store the first version with the second indicia in the shared shelf.
Optionally, the apparatus further comprises:
the second code modification module is used for modifying the first version from inside to outside by using the resource updating script when the first version obtained by layered scanning is not modified to obtain a third version of the project resource; triggering and executing the step of setting the first mark for the first version;
a third version storage module to store the first version and the third version with the first indicia in the shared shelf.
Optionally, the apparatus further comprises:
the script obtaining module is used for obtaining a resource updating script for updating the first version;
and the script running module is used for running the resource updating script.
The invention has the beneficial effects that: hierarchically scanning a first version of a project resource in a shared shelf from inside out; when the nth layer of the first version is modified by layered scanning, sequentially modifying the first n-1 layers of the first version from inside to outside by using a resource updating script to obtain a second version of the project resource; setting a first flag for the first version, the first flag being used to indicate that the first version is not recommended to be used; storing a first version and a second version having a first tag in a shared shelf; the problem of insufficient compatibility of codes after the version of project resources is updated in the prior art can be solved; because the highly customizable automatic code updating technology is adopted in the embodiment, the version updating of the resource can be automatically and dynamically realized according to the degree of the personalized modification of the resource by the developer, and the project resources of each version are reserved, so that the compatibility of the project resources to different users can be ensured.
In addition, the device enables a developer to use project resources of different versions through hidden updating from inside to outside, and does not affect the developer.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood and to implement them in accordance with the contents of the description, the following detailed description is given with reference to the preferred embodiments of the present invention and the accompanying drawings.
Drawings
FIG. 1 is a flow diagram of a method for updating a version of a resource on a shared shelf according to one embodiment of the present application;
FIG. 2 is a block diagram of an apparatus for updating resource versions in a shared shelf according to an embodiment of the present application.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Optionally, the present application takes an execution subject of each step in each embodiment as an example of a device running a shared shelf, where the device may be a server; alternatively, the device may be a terminal such as a computer, a personal computer, or a tablet computer, and the present embodiment does not limit the type of the device.
FIG. 1 is a flowchart of a method for updating a resource version in a shared shelf according to an embodiment of the present application. The method at least comprises the following steps:
step 101, a hierarchical scan is performed from inside to outside on a first version of a project resource in a shared shelf.
Optionally, the device uses a code scanning tool to hierarchically scan the first version of the project resource from inside out.
Alternatively, the hierarchy of project resources from inside to outside may be: a data access layer, a service logic layer and a user interface layer. Of course, other division methods are also possible, and the present embodiment does not limit the division method of the hierarchical structure of the project resources from inside to outside.
And 102, when the nth layer of the first version is modified by layered scanning, sequentially modifying the first n-1 layers of the first version from inside to outside by using a resource updating script to obtain a second version of the project resource, wherein n is an integer greater than 1.
Optionally, before the resource update script is used to modify the first n-1 layer of the first version from inside to outside in sequence, the device obtains the resource update script for updating the first version; and running the resource updating script. Wherein, the resource updating script can be input by the manager of the equipment; alternatively, the resource update script may be uploaded by a user sharing the shelf, and the embodiment does not limit the manner of acquiring the resource update script.
Optionally, the resource update script includes a function to be updated, an update mode, and the like, and the content in the resource update script is not limited in this embodiment.
And 103, setting a first mark for the first version, wherein the first mark is used for indicating that the first version is not recommended to be used.
Alternatively, the first mark may be represented by characters, words, and the like, and the present embodiment does not limit the representation manner of the first mark.
At step 104, the first version and the second version of the stored first indicia are displayed in the shared shelf.
In summary, in the method for updating the resource version in the shared shelf provided by this embodiment, the first version of the project resource in the shared shelf is scanned hierarchically from inside to outside; when the nth layer of the first version is modified by layered scanning, sequentially modifying the first n-1 layers of the first version from inside to outside by using a resource updating script to obtain a second version of the project resource; setting a first flag for the first version, the first flag being used to indicate that the first version is not recommended to be used; storing a first version and a second version having a first tag in a shared shelf; the problem of insufficient compatibility of codes after the version of project resources is updated in the prior art can be solved; because the highly customizable automatic code updating technology is adopted in the embodiment, the version updating of the resource can be automatically and dynamically realized according to the degree of the personalized modification of the resource by the developer, and the project resources of each version are reserved, so that the compatibility of the project resources to different users can be ensured.
In addition, the device enables a developer to use project resources of different versions through hidden updating from inside to outside, and does not affect the developer.
Optionally, based on the embodiment shown in fig. 1, after step 101, when the first layer of the first version obtained by the hierarchical scanning is modified, setting a second flag for the first version, where the second flag is used to indicate that the first version is a personalized customized version of the developer; the first version with the second indicia is stored in the shared shelf.
Optionally, after step 101, when the first version obtained by layered scanning is not modified, modifying the first version sequentially from inside to outside by using a resource update script to obtain a third version of the project resource; setting a first mark for the first version; the first version and the third version with the first indicia are stored in the shared shelf.
In summary, in this embodiment, the version update is for the shared resource of different modules, and for the underlying method of the shared resource. And modifying the bottom layer method, not affecting the published Application Programming Interface (API) of the first version, only increasing the API without reducing the API, and keeping the abandoned API all the time, wherein the abandoned API is only marked as not recommended by the first mark. If the bottom layer code is modified by the developer, the developer considers that the developer wants to customize the bottom layer method of the developer, the published API can not be influenced, and the version is set to be a special regular tag through a second tag and is identified as the developer's own version. In this way, the influence of the unavailability of the API caused by the version update can be minimized, so that the compatibility of the original code after the version update is the best.
FIG. 2 is a block diagram of an apparatus for updating resource versions in a shared shelf according to an embodiment of the present application. The device at least comprises the following modules: a code scanning module 210, a first code modification module 220, a first version marking module 230, and a first version storage module 240.
A code scanning module 210 for performing hierarchical scanning of a first version of a project resource in a shared shelf from inside to outside;
a first code modification module 220, configured to modify, when an nth layer of the first version is obtained through layered scanning and modified, a first n-1 layer of the first version sequentially from inside to outside using a resource update script, so as to obtain a second version of the project resource, where n is an integer greater than 1;
a first version flag module 230, configured to set a first flag for the first version, where the first flag is used to indicate that the first version is not recommended to be used;
a first version storage module 240 to store the first version and the second version with the first indicia in the shared shelf.
Reference is made to the above-described method embodiments for relevant content.
Optionally, based on the embodiment shown in fig. 2, the apparatus further includes:
the second version marking module is used for setting a second mark for the first version when the first layer of the first version is modified after the hierarchical scanning is carried out, wherein the second mark is used for indicating that the first version is a personalized customized version of a developer;
a second version storage module to store the first version with the second indicia in the shared shelf.
Optionally, the apparatus further comprises:
the second code modification module is used for modifying the first version from inside to outside by using the resource updating script when the first version obtained by layered scanning is not modified to obtain a third version of the project resource; triggering and executing the step of setting the first mark for the first version;
a third version storage module to store the first version and the third version with the first indicia in the shared shelf.
Optionally, the apparatus further comprises:
the script obtaining module is used for obtaining a resource updating script for updating the first version;
and the script running module is used for running the resource updating script. It should be noted that: in the above embodiment, when performing the project development management, the project development management apparatus is only illustrated by dividing the functional modules, and in practical applications, the function distribution may be performed by different functional modules according to needs, that is, the internal structure of the project development management apparatus may be divided into different functional modules to perform all or part of the functions described above. In addition, the project development management apparatus and the project development management method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A method for updating a resource version in a shared shelf, the method comprising:
hierarchically scanning a first version of a project resource in a shared shelf from inside to outside;
when the nth layer of the first version is modified by layered scanning, sequentially modifying the first n-1 layers of the first version from inside to outside by using a resource updating script to obtain a second version of the project resource, wherein n is an integer greater than 1; the resource updating script comprises a function to be updated and an updating mode;
setting a first flag for the first version, the first flag indicating that the first version is not recommended to be used;
displaying, in the shared shelf, a first version and the second version storing the first indicia.
2. The method of claim 1, further comprising:
when the first layer of the first version is modified through layered scanning, setting a second mark for the first version, wherein the second mark is used for indicating that the first version is a personalized customized version of a developer;
storing the first version with the second indicia in the shared shelf.
3. The method of claim 1, further comprising:
when the first version obtained by layered scanning is not modified, sequentially modifying the first version from inside to outside by using the resource updating script to obtain a third version of the project resource; triggering and executing the step of setting the first mark for the first version;
storing the first version and the third version with the first indicia in the shared shelf.
4. The method of any of claims 1 to 3, further comprising:
acquiring a resource updating script for updating the first version;
and running the resource updating script.
5. An apparatus for updating a resource version on a shared shelf, the apparatus comprising:
the code scanning module is used for carrying out layered scanning on the first version of the project resource in the shared shelf from inside to outside;
the first code modification module is used for modifying the first n-1 layers of the first version from inside to outside in sequence by using a resource updating script to obtain a second version of the project resource when the nth layer of the first version is modified by layered scanning, wherein n is an integer greater than 1; the resource updating script comprises a function to be updated and an updating mode;
a first version marking module, configured to set a first mark for the first version, where the first mark is used to indicate that the first version is not recommended to be used;
a first version storage module to store the first version and the second version with the first indicia in the shared shelf.
6. The apparatus of claim 5, further comprising:
the second version marking module is used for setting a second mark for the first version when the first layer of the first version is modified after the hierarchical scanning is carried out, wherein the second mark is used for indicating that the first version is a personalized customized version of a developer;
a second version storage module to store the first version with the second indicia in the shared shelf.
7. The apparatus of claim 5, further comprising:
the second code modification module is used for modifying the first version from inside to outside by using the resource updating script when the first version obtained by layered scanning is not modified to obtain a third version of the project resource; triggering and executing the step of setting the first mark for the first version;
a third version storage module to store the first version and the third version with the first indicia in the shared shelf.
8. The apparatus of any of claims 5 to 7, further comprising:
the script obtaining module is used for obtaining a resource updating script for updating the first version;
and the script running module is used for running the resource updating script.
CN201811480313.6A 2018-12-05 2018-12-05 Method and device for updating resource versions in shared shelf Active CN109358899B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811480313.6A CN109358899B (en) 2018-12-05 2018-12-05 Method and device for updating resource versions in shared shelf

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811480313.6A CN109358899B (en) 2018-12-05 2018-12-05 Method and device for updating resource versions in shared shelf

Publications (2)

Publication Number Publication Date
CN109358899A CN109358899A (en) 2019-02-19
CN109358899B true CN109358899B (en) 2021-07-30

Family

ID=65331388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811480313.6A Active CN109358899B (en) 2018-12-05 2018-12-05 Method and device for updating resource versions in shared shelf

Country Status (1)

Country Link
CN (1) CN109358899B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661491A (en) * 2008-08-31 2010-03-03 阿里巴巴集团控股有限公司 Updating method of wide table inside data warehouse
CN103970513A (en) * 2013-01-24 2014-08-06 江苏云知智能科技有限公司 Source data information access method and platform
CN105427597A (en) * 2015-12-09 2016-03-23 江苏风云科技服务有限公司 Information acquisition method for passengers at bus station
CN105871958A (en) * 2015-01-21 2016-08-17 中兴通讯股份有限公司 Method for managing account information in centralized manner and terminal
CN106850976A (en) * 2017-01-13 2017-06-13 努比亚技术有限公司 Using update method and terminal
CN107291750A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of data migration method and device
US9886012B2 (en) * 2014-03-26 2018-02-06 Rockwell Automation Technologies, Inc. Component factory for human-machine interface migration to a cloud platform
CN107678789A (en) * 2016-07-27 2018-02-09 平安科技(深圳)有限公司 The update method and device at UI interfaces
CN108614701A (en) * 2016-12-26 2018-10-02 中移(苏州)软件技术有限公司 A kind of (SuSE) Linux OS method for customizing and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10691514B2 (en) * 2017-05-08 2020-06-23 Datapipe, Inc. System and method for integration, testing, deployment, orchestration, and management of applications

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661491A (en) * 2008-08-31 2010-03-03 阿里巴巴集团控股有限公司 Updating method of wide table inside data warehouse
CN103970513A (en) * 2013-01-24 2014-08-06 江苏云知智能科技有限公司 Source data information access method and platform
US9886012B2 (en) * 2014-03-26 2018-02-06 Rockwell Automation Technologies, Inc. Component factory for human-machine interface migration to a cloud platform
CN105871958A (en) * 2015-01-21 2016-08-17 中兴通讯股份有限公司 Method for managing account information in centralized manner and terminal
CN105427597A (en) * 2015-12-09 2016-03-23 江苏风云科技服务有限公司 Information acquisition method for passengers at bus station
CN107291750A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of data migration method and device
CN107678789A (en) * 2016-07-27 2018-02-09 平安科技(深圳)有限公司 The update method and device at UI interfaces
CN108614701A (en) * 2016-12-26 2018-10-02 中移(苏州)软件技术有限公司 A kind of (SuSE) Linux OS method for customizing and device
CN106850976A (en) * 2017-01-13 2017-06-13 努比亚技术有限公司 Using update method and terminal

Also Published As

Publication number Publication date
CN109358899A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
CN108399072B (en) Application page updating method and device
CN110020325B (en) Page loading method, device, equipment and readable storage medium
US9720656B2 (en) Method and apparatus for enabling agile development of services in cloud computing and traditional environments
CN107656729B (en) List view updating apparatus, method and computer-readable storage medium
CN108958731B (en) Application program interface generation method, device, equipment and storage medium
CN107844352A (en) A kind of application interface collocation method and device
CN104182266B (en) A kind of application installation method and device
US9965812B2 (en) Generating a supplemental description of an entity
CN109101294B (en) Data acquisition method, plug-in, electronic equipment and storage medium
KR20070047675A (en) Method and apparatus for constructing representations of objects and entities
CN109358899B (en) Method and device for updating resource versions in shared shelf
CN111325012A (en) word report generation method and system
CN109240660B (en) Access method of advertisement data, storage medium, electronic device and system
CN108459842B (en) Model configuration method and device and electronic equipment
CN115629763A (en) Target code generation method and NPU instruction display method and device
CN113377458B (en) Plug-in management method and device, electronic equipment and storage medium
CN106998350B (en) Method and system for using frame based on function item of cross-user message
CN113901033A (en) Data migration method, device, equipment and medium
CN115543428A (en) Simulated data generation method and device based on strategy template
JP2017097779A (en) Reservation processing device, reservation processing method, and reservation processing program
CN112015497B (en) Skin changing method and device
CN113254455A (en) Dynamic configuration method and device of database, computer equipment and storage medium
Chaari et al. SEFAGI: simple environment for adaptable graphical interfaces
CN111310090A (en) Content data management system, method, equipment and storage medium of website page
JP2010218099A (en) Communication terminal and method for creating electronic mail

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant