Giter VIP home page Giter VIP logo

exgit's People

Contributors

csae8092 avatar dariok avatar dependabot[bot] avatar simar0at avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

exgit's Issues

build fails

running mvn clean package inside a freshly checked version of the repository exits with

[WARNING] The POM for org.eclipse.jgit:org.eclipse.jgit:jar:3.2.0-SNAPSHOT is missing, no dependency information available

Environment:

Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T13:57:37+02:00)
Java version: 1.8.0_25, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_25\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos"

enhanced user management

  • do not require user to be in the DBA role
  • use a custom group ('git'?) for users who may commit
  • check that a user actually has read rights on the collection

This should be done while writing a new and improved Sync.java (#3)

Adjust error messages

If the user has no write access, error 522a is returned.
Lines 395ff. need additional catches for the specific errors.

Implement a full sync

Suggestion by @dasch124:

not only export/import of changed files, but also delete files
a) on the server
b) in the repo
c) both ways

let exgit:import() import binary content as well

Currently exgit:import() only imports XML data. It would be nice if also binary data would be imported (ideal would be a glob pattern to have some control over what file types get imported and which ones don't)

change the way to check for a repo

reported by @dasch124

The given path was found, not empty and is not a repo: /opt/exist/webapp/WEB-INF/data/exgitrepos/wboe_articles. [source: xquery version "3.1";

import module namespace exgit="http://exist-db.org/xquery/exgit" at "java:org.exist.xquery.modules.exgit.Exgit";

let $repoDir := "/opt/exist/webapp/WEB-INF/data/exgitrepos/wboe_articles"
let $collection := "/db/apps/wboe-api/data"
let $pull := exgit:pull($repoDir, "origin", "{user}", "{password}")
return exgit:import($repoDir, $collection)]

den pfad gibt es und er ist natürlich nicht leer, weil der clone vom repo darin liegt

Handle non-wellformed XML gracefully

If a git repository contains a non-wellformed XML document, exgit:import() stops and the rest of the repository is not imported at all. It would be good that a well-formed XML document would be ignored (or uploaded as binary content into existdb).

git -add not working

adding new files to my exist-db collection and running something like the script below does not add (git add) those new files

let $repoDir := "C:\Users\pandorfer\Desktop\gittest"
let $collection := "/db/apps/rita-new/data"
let $export := exgit:export($repoDir, $collection)
let $message := "added a new file to see if it gets picked up"
let $authorName := "some name"
let $authorMail := "[email protected]"
let $commit := exgit:commit($repoDir, $message, $authorName, $authorMail)
let $push := exgit:push($repoDir, "origin", "username", "pw")

though changes in already added files are picked up perfectly

Export and import need a filter option

Both sync functions need an optional filter so only certain files are synced (e.g. to regularly sync wdbmeta or so that after a store trigger only the changed file and updates wdbmeta are exported, committed and pushed).

implement exgit:clone()

currently, one has to rely on a git repository already being present on the server side. It would be great to also clone a repository via eXgit (ideally also checking out a specific tag or commit)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.